background image

17

©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

The device driver will call the VCI_ResetCAN automatically to exit the CAN bus
connection only when the last device handle is closed.

11. How to use the interrupt mode to operate communication card?
The USBCAN-4E-U interface card does not provide an interface for direct operation
interruption because the interruption has been processed by driver. Most of the
reasons for operation interruption in an application are that the program does not
know when data arriving at the device,thus need a message receiving trigger to read
data from the buffer. The general method to solve this problem is to use multiple
threads (or multiple tasks). That is, start a new thread and call the VCI_Receive
function to query the receiving buffer in the thread. The blocking mechanism has
been implemented in the VCI_Receive. If there is no data in the buffer, the thread will
be suspended. At this time, it will not take up the CPU time, and the application can
still handle other transactions.

12. How to use VCI_Transmit function?
The driver of the USBCAN-4E-U interface card provides about 128 frames of
transmitting buffer FIFO. Each time the call of VCI_Transmit can transmit up to about
128 frames of data. The transmission speed of the transmitting device is determined
by the hardware and software performance of the current computer. Generally, the
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 can add delay in the application programming
appropriately to reduce the transmission speed.
Each frame has a time-out limit in the transmission process. The timeout period is
about 2 seconds when the single frame is sent. When transmitting multiple frames at
a time, the timeout period for the last frame transmission is 2 seconds and for the
remaining frames are 1 second. The sending timeout is usually due to CAN bus busy
and the lower priority of the current node, but not a function call or communication
error. Users can program to achieve re-transmission (usually, the timeout event rarely
occurs in the low-speed network). Therefore, ensure that the CAN bus occupancy
should not exceed 60-70% of the bus capacity in system design.

13. How to use the VCI_Receive function better?
The device driver provides the software receiving buffer with 100000 frames, which
provides sufficient response time for application programmers. When the software
receiving buffer data overflows, the device driver will call VCI_ResetCAN to reset the
CAN bus and set the CAN status data overflow interrupt flag. Note that both the
software buffer overflow and the CAN controller hardware buffer overflow use this
flag.
The receive function provides the Wait parameter for multi-thread programming,
encapsulated inside is a blocking function. The meaning of the Wait parameter is
similar to the dwMilliseconds parameter of Win32 WaitForSingleObject (refer to the
description of Win32API). It specifies a timeout return time for VCI_Receive in

Содержание USBCAN-4E-U

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Страница 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...

Отзывы: