Hardware Manual RM CANview USB
Transcription
Hardware Manual RM CANview USB
Hardware Manual RM CANview USB 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB Table of Contents 1 2 3 4 5 6 General.................................................................................................................................3 Connectors ..........................................................................................................................4 LEDs .....................................................................................................................................7 Technical Data.....................................................................................................................8 Installation ...........................................................................................................................9 CANview USB Driver installation.......................................................................................9 6.1 Windows 2000 installation:..........................................................................................10 6.2 Changing the virtual COM port in Windows 2000 ........................................................13 6.3 Uninstall Windows 2000 Drivers ..................................................................................16 7 Programs ..........................................................................Fehler! Textmarke nicht definiert. 8 Hardware Version History ................................................................................................19 9 Document Version History ...............................................................................................20 Safety instructions These instructions are part of the device. They contain text and illustrations for the correct handling of the module and must be read before installation or use. Adhere to the information in the documentation. Non-observance of the instructions, operation which is not in accordance with use as prescribed below incorrect installation or handling can affect the safety of people and equipment. The device must be installed, connected and put into operation by a qualified electrician. Disconnect the device externally before handling it. Also disconnect any independently supplied output load circuits. In case of malfunction of the device or uncertainties please contact the manufacturer. Tampering with the device can seriously affect the safety of people and equipment. This is not permitted and leads to an exclusion of liability and warranty. 2 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 1 General CANview USB is designed to connect a CAN-Bus system to a PC via USB-Port. In order to avoid limitations in data throughput from the device to the computer the fast USB-Bus is used for data transmission. The CANview USB is equipped with a powerful 8 - bit microcontroller with an integrated fullCAN-interface and a flash memory that can be programmed from within the system. This enables the implementation of company-specific protocols or additional functions. CANview USB is powered by the USB Bus which makes it independent from an additional power supply. The CANview USB driver is designed to be accessed in two different ways: 1) Via direct USB access 2) Via virtual COM Port Using the direct USB access a direct communication with the device via a driver dll is possible in order to allow a fast and direct communication with the CANview USB. In COM Mode the driver simulates an additional COM port in order to allow an easy access and implementation of the device. To avoid the typical bottleneck that is common for standard RS232 ports this simulated interface supports data transmission speeds of up to 12 Mbit/s. Apart from that the CANview USB also provides memory to store up to 256 CAN messages in the internal RAM. The commands for controlling the CANview USB are designed according to the instruction set of the CANview and the CANgateway USB. This enables the fast replacement of the RS232 to CAN converter tool by the USB interface without any changes towards existing software. Apart from the active mode CANview also supports a CAN passive mode in which the device just listens to the CAN Bus with the transmission line completely disabled. Another feature is the automatic baud rate detection. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 3 Hardware Manual RM CANview USB For CAN data management the CANview USB is shipped with “RM CAN Device Monitor”, that provides a comfortable user - interface for receiving, editing and sending CAN messages. Basic configuration of CANview USB such as CAN Baud rate, Filter of CAN Messages and USB port specific settings are done by the “RM CAN Device Configurator” Software. This is a Class A device. It may cause radio interferences in your living quarters. In this case the user can be asked to take adequate measures. 2 Connectors The CANview USB is equipped with the following connectors: CAN USB The 9-pin Male D-Sub Connector is used to interface the CAN Bus with the CANview USB. With the USB connector the device must be connected to a USB Master. 4 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB The Pin layout of these connectors is shown in the following tables. The location of the different pins is shown as looking directly at the plug of the device. (CAN) Pin Description 1 n.c. 2 CAN-Low 3 GND 4 n.c. 5 n.c. 6 GND 7 CAN-High 8 n.c. 9 n.c. Shell Enclosure (Shield) (USB) Pin Description 1 VBus 2 D- 3 D+ 4 GND Shell Enclosure (Shield) 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 5 Hardware Manual RM CANview USB Important information for Using the CANview USB - The signals on the CAN connection terminals CAN-Low and CAN-High must match the signals on the CAN-terminals of the connected devices. - GND of the CAN-connector has to be connected to CAN-GND - The USB-Port is used to interface the CANview USB with the PC. It provides a data transmission rate of up to 12Mbit/s. For interfacing the device with a PC a standard USB cable can be used. - It is recommeded to power the device by a USB Host or by a self powered USB Hub. On bus powered Hubs, the Voltage drop of VBus can be to high under worst case conditions which might prevent the device from starting up. - As no components to be maintained by the user are contained in the device, the housing must not be opened. The device can only be repaired by the manufacturer. The device must be disposed of in accordance with the national environmental regulations. - You can download the latest Version of the Firmware from www.rmcan.com . - The USB cable length is limited to 3 m to match the EMC requirements (protection agains surge). - For CAN baud rates the following guidelines can be used to estimate the maximum length of the bus-line: CAN Baud Rate Max. bus length 1Mbit/s 25m 800 kbit/s 50m 500 kbit/s 100m 250 kbit/s 250m 125kbit/s 500m 50kbit/s 1000m - Be careful, if using shielded CAN cable, the galvanic isolation will be lost. 6 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 3 LEDs The CANview USB device has 4 LEDs for short visual Status control. The meaning of this LEDs is described in the Table below: LED Description ON Off: Device has no connection to power supply On: Device is ready for operation Blinking: Device is in Configuration Mode USB Off: No data is sent or received via USB Blinking: Data is sent or received via USB Blinking synchronous with ERROR: USB Error occured CAN Off: No data is sent via CAN Blinking: CAN Communication Blinking synchronous with ERROR: CAN Error occured ERROR Off: No error active Blinking synchronous with CAN: CAN Error Blinking synchronous with USB: USB Error If an Error occurred, the error Status is send out via USB. For more Information please look at the Command Manual for the CANview USB If all LEDs are permanent on an no data is transmitted or received via CAN or USB, the Bootloader of the Device is activated. Only the flashing procedure can bring it back to normal operation mode. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 7 Hardware Manual RM CANview USB 4 Technical Data 8 Value Description Supply Voltage 5 V , powered via USB Bus Current Drawn < 100 mA after enumeration Operating Temperature 0 - 60°C Diagnosis LEDs 4 (ON, USB, CAN, ERROR) Additional features Automatic Baud Rate Detection CAN Active / CAN Passive Mode CAN galvanically isolated CAN High Speed Interface (ISO11989) Controller 8-Bit Flash Memory Size 32k SRAM Size 128kB EEPROM Size 2kB CAN Specification 2.0 A/B CAN-Bus coupling according to ISO 11898, High speed Max. CAN Baud Rate 1Mbit/s USB Baud Interface USB 1.1 USB Buffer Memory 256 messages USB Connector Type B PC Requirements Pentium CPU, 32 MB RAM, 10 MB free Disk Space Supported Operating Systems Windows 98, 98SE, ME, 2000, XP Standard Housing Aluminium Dimensions in mm (LxBxH) 98x60x35 Certifications CE 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 5 Installation Simply connect the CANview USB to the CAN network that should be monitored and to the PC. The device will then be powered by the USB. If the device is connected to the PC for the first time, a dialog box will open asking for a driver for the device. For further information about installation of CANview USB drivers please read the next section. After reading all configuration parameters from the last setup (from the internal EEPROM), the CANview USB is ready for operation. 6 CANview USB Driver installation The CANview USB requires special drivers in order to be used with your PC. These drivers are available for a variety of different operating systems. Shipped with the standard package of the CANview USB is a driver for Windows 98/ME/2000/XP that provides access to the device via a virtual COM port. If you are interested in drivers for other operating systems or for direct access to the device, please see our support page at www.rmcan.com or write an e-mail to [email protected]. The virtual COM port driver for Windows simulates an additional COM port. This enables the device to be used as a more powerful replacement for the CANview. The simulated port does not have the limitation of the low transmission speed between the serial device and the PC but still supports the complete command set of the pure RS232 device as well as some additional commands. For further information about the exact commands see the CANview USB command manual. In order to install the Windows driver for CANview USB please follow the steps described below. It is assumed that the drivers are installed for the first time. If you want to update existing drivers, please uninstall the previous version. How this is done is described in the uninstall section for your operating system. Installing the drivers on other operating systems than windows 2000 is similar to the described procedure. Installing the drivers under Windows ME may cause warning messages that the drivers are not certified by Microsoft. These messages can be ignored, the drivers will work correctly. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 9 Hardware Manual RM CANview USB 6.1 Windows 2000 installation: 1. Connect the CANview USB to the USB port of your PC using the provided cable. 2. After this, the PC will perform a scan for new USB devices. After this scan Windows will prompt the following dialog: 3. Select ‘Next’ to continue the setup 4. Choose the option shown below and press ‘Next’ to continue the setup. 10 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 5. Select the location where the driver is placed. If you install the device using the CD-ROM shipped with the CANview USB select ‘CD-ROM drives’. Otherwise choose ‘Specify a location’. 6. Now a message should be displayed that a driver for the CANview USB was found. Select ‘Next’ to continue the setup. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 11 Hardware Manual RM CANview USB 7. The installation of the hardware driver is successfully finished as soon as the following screen is displayed: Press the ‘Finish’ button to complete the hardware driver setup. 8. Now a dialog is shown indicating that the virtual COM port needs to be installed. The procedure for this is exactly the same as for the CANview USB driver setup. After this setup is finished the device is ready for operation. 12 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 6.2 Changing the virtual COM port in Windows 2000 This feature is especially helpful if the setup-routine has chosen a very high COM port, such as COM10, but your software only supports low COM port numbers. With the steps described below you are able to quickly change the number of the virtual port that is used by the CANview USB. 1. In order to change the virtual COM port open the Device Manager has to be displayed. This can be done by executing the following steps: Open Control Panel -> System Properties -> Hardware -> Device Manager. If you open the branch ‘Ports (COM & LPT), a dialog similar to the one shown below should be displayed. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 13 Hardware Manual RM CANview USB 2. Double click ‘RM CANview-USB which results in the following dialog being displayed 3. Here select the tab ‘Port Settings’ which looks like shown on the following picture: 14 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 4. If you click at the button ‘Advanced…’ a dialog will open showing further settings of the COM port. Here you can change the port number by selecting another port from the drop down menu ‘COM Port Number’. 5. To check if the CANview is now assigned to an other virtual COM port close all windows and look at the settings in the device manager. The new COM port will be shown in the brackets after the ‘RM CANview-USB’ label like shown in the example below. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 15 Hardware Manual RM CANview USB Do not select a COM port that is already used by another device such as the physically existing COM ports. It is also recommended to close all applications that access the CANview USB at the old COM port as well as the new one while changing the ports. 6.3 Uninstall Windows 2000 Drivers In order to uninstall the drivers for the CANview USB please carry out the following steps: 1. Open the ‘Control Panel’ and choose ‘Add / Remove Programs’. The following dialog will appear: 2. Press the ‘Change / Remove’ button of the ‘RM CANview USB Drivers’ section. This starts the Uninstaller of the CANview USB Driver. It looks like shown in the following dialog: 16 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB If you have pressed the button ‘Change / Remove’ in error, you can cancel the uninstall-process by clicking at ‘Cancel’ in the Uninstaller window. 3. After unplugging the CANview USB press continue in order to uninstall the drivers. The process is finished as soon as you see the following dialog: Both drivers installed during setup are uninstalled by just one uninstaller. 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 17 Hardware Manual RM CANview USB 7 Software CANview USB is shipped with the following programs: Program Description RM CAN Device Configurator Tool for configuring CAN Parameters as well as virtual COM port values RM CAN Device Monitor Tool for monitoring, editing and sending CAN messages ATMEL Flip tool Tool for flashing new Firmware to the CANview USB For further information about the software please see the user manual of the respective program. 18 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00 Hardware Manual RM CANview USB 8 Hardware Version History 16.12.00 V1.0 First official Version 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • CMCVUSB V1.00 19 Hardware Manual RM CANview USB 9 Document Version History 22.10.2002 20 1.00 first official version 2002 RM Michaelides Software & Elektronik GmbH • Donaustraße 14 • D-36043 Fulda • Germany • HWCVUSB V1.00