background image

16

©2017 Guangzhou ZHIYUAN Electronics

Date: 2017/03/09

User Manual

V1.00

Guangzhou ZHIYUAN Electronics Co., Ltd.

Industrial high performance CAN interface card

USBCAN-4E-U User Manual

7. How to set the communication baud rate of the PC-CAN interface card?
Provide a set of commonly used baud rate settings. If users want to use other baud
rates, please refer to “CAN-bus Universal Test Software and Interface Library User
Manual” to calculate. Note that the CAN controller of the USBCAN-4E-U interface
card uses a 36MHz clock. When users define the Baud rate, they should calculate
according to this clock frequency.

8. Whether the system entering into standby or sleep mode affects reception?
It will affect reception. All processing will be stopped at this time, and it probably lead
to hardware receiving buffer overflow error. If a program is started, the device will try
to prevent the system entering into the standby or sleep mode, thus ensuring the
system to work properly. When using the USBCAN-4E-U interface card, please
disable the standby and sleep function of the system.

9. How to deal with errors in the application?
Errors are mainly divided into function call error and CAN-bus communication error.
Function call error is generally caused by parameter errors. For example, the device
number is out of range or type number has error. The error number returned by
Win32 function GetLastError is 87. And operating for the disable device is actually an
illegal handle operation. Since the call of specific function has provided a
corresponding Win32 standard error code, users can use GetLastError for error
analysis. This part of debugging work should be completed in design generally.
CAN-bus communication error is generally caused by the CAN network. Also, it may
be caused by improper user settings, for example, inconsistent baud rate settings, or
calling the transmit function without starting the CAN controller, etc. Most of the errors
have been handled simply in the device driver, and if you want a deeper level of error
analysis and processing, you can call the VCI_ReadCANStatus function.
Also note that the data overflow interrupt error may be caused by these conditions: (1)
software receiving buffer overflow. This means that the application can not process
the received data timely, and users should optimize the application or change the
communication policy. (2) hardware receiving buffer overflow. This error is caused by
PC interrupt delay at the receiving terminal. It just can resolve by upgrading the
computer performance or coordinating the remaining nodes to reduce the
transmitting speed.

10. What matters should be considerated for turning on/off the device?
The USBCAN-4E-U interface card provides four CAN ports, allowing users to operate
different ports in the same program. The USBCAN-4E-U interface card is not allowed
to share the way to open the device, and the same device can not be opened by
different program through calling the VCI_OpenDevice function for several times. The
VCI_OpenDevice and VCI_CloseDevice functions can only be called once when the
application is initialized and exited.
If the current port is no longer used when the device is turned off, users should call
the VCI_ResetCAN function to make the current port separated from the CAN bus.

Summary of Contents for USBCAN-4E-U

Page 1: ...USBCAN 4E U User Manual Date 2017 03 09 V1 00 Guangzhou ZHIYUAN Electronics Co Ltd Industrial high performance CAN interface card User Manual DS20151101...

Page 2: ...customer so as to provide a reliable and efficient solution for the industrial communication CAN network Features PC interface is compliance with USB2 0 full speed protocol specification It integrate...

Page 3: ...Manual Interface Bus USB2 0 full speed Performance Rate Transmission rate Configuration Operating mode API Operating system support Windows 2000 XP WIN7 Tool software support Universal CAN test tool C...

Page 4: ...e 2017 03 09 User Manual V1 00 Guangzhou ZHIYUAN Electronics Co Ltd Industrial high performance CAN interface card USBCAN 4E U User Manual Revision Revision History History Version Rev Date Modificati...

Page 5: ...1 4 3 Protection Grade 4 1 5 Application 4 Chapter 2 Device Hardware Interface 5 2 1 Power Supply 5 2 1 1 External Power Supply Mode 5 2 1 2 USB Bus Power Supply Mode 5 2 2 DIP Switch of Terminal Resi...

Page 6: ...N interface card is a powerful tool for CAN bus product development and CAN bus data analysis Furthermore due to its small size and plug and play the USBCAN 4E U interface card is the best choice for...

Page 7: ...IS11898 specification It is integrated with 1 4 channels CAN bus interface Programmable CAN bus communication Baud rate in the range of 5Kbps 1 Mbps The power supply can be provided via the USB Bus or...

Page 8: ...red in 25 as shown below Table 1 1 Electric Parameters Parameter Name Condition Rating Value Unit Min Typ Max Operating voltage DC 9 15 36 V Operating current 1 Operating voltage 15V 4 channel CAN clo...

Page 9: ...tact Group pulse test IEC61000 4 4 2 C Capacitive coupling Surge test IEC61000 4 5 1 A Capacitive coupling L N USB port Static test IEC61000 4 2 6 A Contact CAN interface Static test IEC61000 4 2 6 A...

Page 10: ...USBCAN 4E U interface card At this time the indicator PWR is yellow The physical form of the power interface is the OPEN3 terminal and the connector schematic diagram and signal definition are shown i...

Page 11: ...interface are DB9 socket OPEN5 socket OPEN3 socket and so on USBCAN 4E U CAN bus channel uses standard male DB9 socket output The pin definition of DB9 is shown in Table 2 2 Table 2 2 Pin definition...

Page 12: ...dicators Status Function PWR Yellow Device is powered on SYS Red Indicates the device initialization status and the USB is unconnected Green Indicates USB interface signal CAN CAN indicators are extin...

Page 13: ...ommon twisted pair or shielded twisted pair If the communication distance exceeds 1Km the section area of cable should be greater than 1 0mm2 which depends on the specific distance Generally the longe...

Page 14: ...USBCAN E 2E U interface card to the PC The attached USB cable is connected to the PC s USB port directly at this time it uses bus power supply mode to provide 5V voltage for the USBCAN 4E U interface...

Page 15: ...AN 4E U industrial high performance CAN interface card device 3 1 Driver Installation Windows XP can automatically detect a new device as shown in Figure 3 1 and activate the Find new hardware wizard...

Page 16: ...Mark Include this location in search and click the Browse button In the pop up folder browsing dialog box specify the location of the driver installation file Click Next to continue Figure 3 4 Driver...

Page 17: ...ics Co Ltd Industrial high performance CAN interface card USBCAN 4E U User Manual installation Figure 3 5 Complete driver installation Check the installation of the device via Start Control Panel Syst...

Page 18: ...Industrial high performance CAN interface card USBCAN 4E U User Manual Figure 3 7 Check the status of driver installation 3 2 Uninstall the Driver You can uninstall the device driver via Start Control...

Page 19: ...performance CAN interface card USBCAN 4E U User Manual Figure 3 9 Uninstall the driver Click the OK button in the Confirm Device Delete dialog box The driver of USBCAN 4E U will be uninstalled The Dev...

Page 20: ...nce is needed to connect in networking users should add with a 120 terminal resistance externally 3 Can multiple USBCAN 4E U interface cards be installed in a computer The interface with old version d...

Page 21: ...ng Win32 standard error code users can use GetLastError for error analysis This part of debugging work should be completed in design generally CAN bus communication error is generally caused by the CA...

Page 22: ...transmission speed is about 2000 fps the standard data frame is 11Bytes 1Mbps If the transmission speed is too fast it will cause data overflow of the remote receiving device without response Users ca...

Page 23: ...r is empty at this time the function will wait for a specified timeout of arriving or receiving data before returning the number of frames successfully received When the value of Wait is 0xFFFFFFFF fo...

Page 24: ...d speech or other means ZHIYUAN Electronics shall not be liable for any liability other than the liability stated in the terms and conditions of sale of its products Furthermore with regard to the sal...

Page 25: ...635573 Shenzhen Office Room 1203 F 12 Electronics Building No 2072 Shennan Road M Futian District Shenzhen TEL 0755 83640169 83783155 Wuhan Office Room 12128 No 158 Luoyu Road Guangbu Village Hongshan...

Reviews: