B&B Electronics I-7565-H2 User Manual

g
I-7565-H1 / I-7565-H2
Hi
h Speed USB/CA
Converter
User’s Manual
Warranty
All products manufactured by ICP DAS are under warranty regarding defective materials for a period of one year from the date of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for damages resulting from the use of this product. ICP DAS reserves the right to change this manual at any time without notice. The information furnished by ICP DAS is believed to be accurate and reliable. However, no responsibility is assumed by ICP DAS for its use, or for any infringements of patents or other rights of third parties resulting from its use.
Copyright
Copyright 2009 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks
of their respective companies.
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 1
Table of Contents
1. Introduction ........................................................................................4
1.1 Features............................................................................................. 5
1.2 Specifications..................................................................................... 5
2. Hardware.............................................................................................7
2.1 Block Diagram.................................................................................... 7
2.2 Pin Assignment of CAN Port .............................................................. 8
2.3 Hardware Connection ........................................................................ 8
2.4 Terminator Resistor Settings ............................................................ 10
2.5 Init / Normal Dip-switch .....................................................................11
2.5.1 Firmware Update Mode...................................................................11
2.5.2 Firmware Operation Mode.............................................................. 12
2.6 LED Indication.................................................................................. 14
2.7 Cable Selection................................................................................ 15
3. Driver Installation.............................................................................17
3.1 Install I-7565-H1/H2 Driver:.............................................................. 17
3.2 Verify Driver Installation: .................................................................. 20
3.3 Uninstall I-7565-H1/H2 Driver .......................................................... 21
4. Software Utility.................................................................................22
4.1 INI File Function............................................................................... 22
4.2 Connection Function ........................................................................ 22
4.3 Communication Function ................................................................. 24
4.4 Config Function................................................................................ 26
4.4.1 Module Config Function ................................................................. 27
4.4.2 Advanced Config Function ............................................................. 30
4.5 Data Log Function............................................................................ 31
4.6 Status Bar Function.......................................................................... 33
5. API Library -- VCI_CAN.dll...............................................................35
5.1 API Library Overview ....................................................................... 35
5.2 API Library Function Table............................................................... 36
5.3 Flow Chart for Users’ Program Development by Using API ............. 38
5.4 Init Function ..................................................................................... 39
5.4.1 VCI_OpenCAN............................................................................... 39
5.4.2 VCI_CloseCAN .............................................................................. 41
5.5 Module Config Function ................................................................... 42
5.5.1 VCI_Set_CANFID .......................................................................... 42
5.5.2 VCI_Get_CANFID .......................................................................... 44
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 2
5.5.3 VCI_Get_CANStatus ...................................................................... 46
5.5.4 VCI_Clr_BufOverflowLED .............................................................. 47
5.5.5 VCI_Get_MODInfo ......................................................................... 48
5.5.6 VCI_Rst_MOD ............................................................................... 49
5.6 Communication Function ................................................................. 50
5.6.1 VCI_SendCANMsg ........................................................................ 50
5.6.2 VCI_RecvCANMsg......................................................................... 52
5.6.3 VCI_EnableHWCyclicTxMsg.......................................................... 54
5.6.4 VCI_DisableHWCyclicTxMsg ......................................................... 56
5.7 Software Buffer Function.................................................................. 57
5.7.1 VCI_Get_RxMsgCnt....................................................................... 57
5.7.2 VCI_Get_RxMsgBufIsFull .............................................................. 58
5.7.3 VCI_Clr_RxMsgBuf ........................................................................ 59
5.8 Other Function ................................................................................. 60
5.8.1 VCI_Get_DllVer .............................................................................. 60
5.8.2 VCI_DoEvents................................................................................ 61
5.9 Return Code..................................................................................... 62
6. Troubleshooting...............................................................................63
6.1 The Connection Issue ...................................................................... 63
6.2 The CAN Baud Rate Issue............................................................... 64
6.3 The Same CAN-ID Conflict Issue..................................................... 66
6.4 The PC Rebooting Issue.................................................................. 66
6.5 The Max Data Transfer Rate (fps) Issue .......................................... 66
6.6 The Data Loss Issue ........................................................................ 66
6.7 The Module Number Applied to One PC Issue ................................ 67
6.8 The Long Driver Installation Time Issue ........................................... 67
6.9 The Supported CAN Filter-ID Number Issue.................................... 68
6.10 Other Issue ...................................................................................... 69
7. History of Version ............................................................................70
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 3

1. Introduction

I-7565-H1 and I-7565-H2 are the high speed intelligent USB to CAN converters with one and two CAN channels separately. They provide faster CAN bus communication performance than I-7565. Both I-7565-H1 and I-7565-H2 support CAN2.0A/2.0B protocol and different baud rates from 5 Kbps to 1 Mbps. The important feature of I-7565-H1/H2 is to support the user-defined baud rate function no matter what the baud rate is. When connecting I-7565-H1/H2 to PC, PC will load the relevant device driver automatically (hot plug & play). Therefore, users can make data collection and processing of CAN bus network easier and quicker by applying I-7565-H1/H2. The application fields can be CAN bus monitoring, building automation, remote data acquisition, environment control and monitoring, laboratory equipment & research, factory automation, etc.
The following is the application structure for these two USB/CAN
modules : (1) I-7565-H1: High Speed intelligent USB to 1- port CAN bus Converter. (2) I-7565-H2: High Speed intelligent USB to 2- port CAN bus Converter.
Figure 1-1: Application of I-7565-H1/H2
I-7565-H1 application I-7565-H2 application
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 4

1.1 Features

RoHS Design
Fully compliant with USB 1.1/2.0 (Full Speed)
Fully compatible with the ISO 11898-2 standard
Support both CAN2.0A and CAN2.0B
No external power supply (powered by USB)
Integrated with one or two CAN bus interface
Programmable CAN bus baud rate from 5Kbps to 1Mbps or user-
defined baud rate
Support CAN bus acceptance filter configuration
Timestamp of CAN message with at least ±1ms precision
Support firmware update via USB
Provide utility tool for users module setting and CAN bus
communication testing conveniently
Provide API library for user program development
Provide PWR / RUN / ERR indication LED
Built-in jumper to select 120 ohm terminal resister
Max data flow for CAN channel: 3000 fps ( depends on users’ PC
hardware performance )
The CAN buffer is 256 data frames for I-7565-H1 and 128 data frames
in each CAN port for I-7565-H2.
Watchdog inside
Driver supported for Windows 2000/XP and WinCE (available soon)

1.2 Specifications

[ USB specs: ]
Input port : USB (USB Type B)
Compatibility : USB 1.1 and 2.0 standard
Driver Supported : Windows 2000/XP and WinCE (available soon)
[ CAN specs: ]
CAN interface connector:
I-7565-H1 : 9-pin D-sub male I-7565-H2 : 10-pin terminal-block
CAN Baud Rate : 5K ~ 1Mbps or User-defined baud rate
Isolation Voltage : 3000Vrms on the CAN side
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 5
[ Module specs: ]
Dimensions : 108mm x 72mm x 35mm (H x W x D)
Operating temperature : -25 to 75ºC (-13 to 167ºF);
Storage temperature : -40 to 80ºC (-40 to 176ºF);
Humidity : 5 to 95%, non-condensing;
LEDs :
PWR LED for power RUN LED for communication
ERR LED for error
[ Software Utility Tool / API Library: ]
Provide CAN bus user-defined baud rate / acceptance filter
configuration
Easily transmit / receive CAN messages for testing and display the
time-stamp of each received CAN message.
Provide saving the CAN message as “TXT” file for data log.
Provide sending CAN message by using the internal timer of module
for high precision transmission.
Check / Reset module status remotely and get current CAN bus
message flow.
Users can develop own program by API library quickly and easily.
[ Application: ]
Factory Automation;
Building Automation;
Home Automation;
Control system;
Monitor system;
Vehicle Automation;
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 6

2. Hardware

Figure 2-1: Hardware externals of I-7565-H1/H2

2.1 Block Diagram

Figure 2-2 is a block diagram illustrating the functions on the I-7565­H1/H2 module. It provides the 3000Vrms Isolation in the CAN interface site.
Figure 2-2: Block diagram of I-7565-H1 / I-7565-H2
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 7

2.2 Pin Assignment of CAN Port

Table 1: CAN DB9 Male Connector on I-7565-H1
Terminal 2-wire CAN
1 Not Connect
2 CAN Low
3 CAN Ground 4
Not Connect
5 6 CAN Ground
7 CAN High
8
Not Connect
9
Figure 2-3: Pin Assignment on I-7565-H2

2.3 Hardware Connection

The pin assignment of the CAN port on the I-7565-H1 (DB9 male) defined in both the CANopen DS102 profile and in appendix C of the DeviceNet specifications. It is the standard pin assignment for CAN. The hardware connection between device and I-7565-H1/H2 is like Figure 2-4.
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 8
Figure 2-4: CAN Hardware Wire Connection
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 9

2.4 Terminator Resistor Settings

According to the ISO 11898 specifications, the CAN Bus network must be terminated by two terminal resistors (120
) for proper operation,
as shown in the below figure.
Figure 2-6: Terminal Resistor
Therefore, the I-7565-H1/H2 module supplies a jumper for users to active the terminal resistor or not. If users want to use this terminal resistor, please open the I-7565-H1/H2 cover and use the
JP3 for I-7565-H1 / JP3, JP4 for I-7565-H2 to activate the 120terminal resistor built in the module, as the Figure 2-7. Note that the default setting is active.
Figure 2-7: Terminal Resistor Jumper
Enable (default), (Position: 1-2) Disable, (Position: 2-3)
Figure 2-8: JP3/JP4 Jumper Position
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 10

2.5 Init / Normal Dip-switch

On the back of the I-7565-H1/H2 module, there is a dip-switch used
firmware operation or firmware updating of the module. The following
for steps show how to use this dip-switch.

2.5.1 Firmware Update Mode

Please set the dip-switch to the “Init” (Initial) position like Figure 2-9.
Then the I-7565-H1/H2 will work in the “
Firmware Update Mode” after the power of the module has been turned on again. In this mode, users can update the firmware of the I-7565-H1/H2 module via USB and the module will become a “USB Mass Storage Device” and also shows a folder like Figure 2-10 automatically.
Figure 2-9: Init Position of Dip-Switch
Figure 2-10: USB Mass Storage Device
Users just need to execute “Firmware_Update_Tool.exe” and follow
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 11
the below steps to complete the firmware updating process.
[1] Choose “USB” interface and “USB Disk”. [2] Click “Browser” button to choose firmware file. (like I7565H1_v1.01.fw) [3] Click “Firmware Update” button to start firmware updating process.
The result will show in “Firmware Update” field.
Figure 2-11: Normal Position of Dip-Switch
The Firmware_Update_Tool program can be downloaded from
http://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/i-7565­h1h2/software/tool

2.5.2 Firmware Operation Mode

In operation mode, users need to set the dip-switch to the “Normal” position like Figure 2-12 and turn the power off then on again so that the I­7565-H1/H2 can run in the operation mode. In this mode, users can send / receive CAN messages via PC USB port.
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 12
Figure 2-12: Normal Position of Dip-Switch
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 13

2.6 LED Indication

There are three LEDs provided to indicate to users what situation the
I-7565-H1/H2 is in. The following is the illustration of these three LEDs
and the position of these three LEDs shows as Figure 2-12.
(1) PWR LED :
It is used to help users to check whether the I-7565-H1/H2 is standby. If the module is working in “firmware operation” mode, the PWR LED is always turned on. However, when the module is working in the “firmware updating” mode, the PWR LED will flash approximately once per second.
(2) RUN LED :
It is used to show whether the I-7565-H1/H2 is transmitting/receiving CAN messages. The RUN LED will flash whenever a CAN message is sending or receiving. In I-7565-H2, the RUN LED is shared by CAN1 port and CAN2 port.
(3) ERR LED :
It is used for demonstrating an error that has occurred. The ERR LED is normally turned off when the module works in a good condition. When the Bus-Off error happened, the ERR LED will always turn on until the Bus-Off condition disappeared. If the CAN/USB buffer built in I-7565­H1/H2 overflows or CAN message can’t be sent out successfully, then the ERR LED will flash continuously. In I-7565-H2, the ERR LED is shared by CAN1 port and CAN2 port.
Figure 2-13: LED position of I-7565-H1/H2
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 14
Table 2: LED indication of I-7565-H1/H2
LED Name I-7565-H1/H2 Status LED Status
ALL LED
PWR LED
RUN LED
ERR LED
Hardware Init Fail
All LED always turned on permanently after reset
Hardware WDT Fail All LED flash per 2 second
Contact to ICP DAS All LED flash take turns
Firmware Updating Mode Flash per second Firmware Operation Mode Always turned on Power Off Off Transmission Flash Bus Idle Off Transmission Fail Flash per 100 ms Buffer Overflow Flash per second Bus-Off Always turned on No Error Off

2.7 Cable Selection

The CAN bus is a balanced (differential) 2-wire interface running over either a Shielded Twisted Pair (STP), Un-shielded Twisted Pair (UTP), or Ribbon cable. The CAN-L and CAN-H Wire start on one end of the total CAN network that a terminator of 120 Ohm is connected between CAN-L and CAN-H. The cable is connected from CAN node to CAN node, normally without or with short T connections. On the other end of the cable again a 120 lines. How to decide a cable type, cable length, and terminator depends on the baud rate in the CAN bus network, please refer to the following table 3.
(Ohm) terminator resistor is connected between the CAN
Figure 2-14: Un-shielded Twisted Pair (UTP)
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 15
Table 3: Cable selection
Bus speed Cable type
Terminator Bus Length
Resistance/m
Cable
50k bit/s at 1000m 100k bit/s at 500m 500k bit/s
0.75~0.8mm2 18AWG
0.5~0.6 mm2 20AWG
0.34~0.6mm2
70 mOhm
< 60 mOhm
150~300
600~1000m
Ohm
150~300
300~600m
Ohm
< 40 mOhm 127 Ohm 40~300m
at 100m 1000k bit/s
22AWG, 20AWG
0.25~0.34mm2 < 40 mOhm 124 Ohm 0~40m
at 40m
23AWG, 22AWG
Note: The AWG means a standard method used to measure wire. The numbering system works backwards from what people would think, the thicker (heavier) the wire, the lower the number. For example: a 24AWG wire is thicker/heavier than a 26AWG wire.
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 16

3. Driver Installation

This section will show how to install the I-7565-H1/H2 USB/CAN
converter device driver under Windows 2000/XP and users can
download the I-7565-H1/H2 device driver from ICP DAS web site:
http://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/i-7565-h1h2/driver.
Please follow the below steps to finish I-7565-H1/H2 driver installation.

3.1 Install I-7565-H1/H2 Driver:

[ Step - 1 ]
Plug in the I-7565-H1 or I-7565-H2 to PC and Windows will detect the new device and shows the “ prompting you to install the driver for the detected USB Device. Please select “No, not this time” option and click “Next” button like Figure 3-1.
Found New Hardware Wizard” screen
Figure 3-1: New Hardware Wizard (1)
[ Step - 2 ]
Please select “install from a list or specific location (Advanced)” option
and click “Next” button like Figure 3-2.
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 17
Figure 3-2: New Hardware Wizard (2)
[ Step - 3 ]
Please select “Search for the best driver in these locations” option and check “include this location in the search:” checkbox and click “Browser” button to assign the I-7565-H1/H2 driver location and then click “Next” button like Figure 3-3.
Figure 3-3: New Hardware Wizard (3)
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 18
[ Step - 4 ]
Please click “Continue Anyway” button like Figure 3-4 .
Figure 3-4: New Hardware Wizard (4)
[ Step - 5 ]
Please click “Finish” button to complete I-7565-H1/H2 device driver installation like Figure 3-5.
Figure 3-5: New Hardware Wizard (5)
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 19

3.2 Verify Driver Installation:

This section will show how to verify whether the driver of I-7565-H1/H2 was properly installed. If the driver is installed successfully, then there will be a “Virtual COM Port” assigned by Windows. Please follow the below steps to check it.
Click “Start” Æ “Settings” Æ “Control Panel” and then double click on the “System” icon. Once the “System Properties” screen displayed, click on ” Hardware” tab and then click on the “Device Manager” button. Double-click on Ports (COM & LPT) item. If the device driver was
correctly installed, users can find the “
ICPDAS I-7565-H2 USB2CAN” device listing and the “Virtual COM Port”
number that Windows has assigned to the device is COM3 like Figure 3-6.
ICPDAS I-7565-H1 USB2CAN” or
Figure 3-6: Virtual COM Port Number
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 20

3.3 Uninstall I-7565-H1/H2 Driver

Please follow the below steps to uninstall I-7565-H1/H2 device driver.
[ Step - 1 ]
Click “Start” Æ “Settings” Æ “Control Panel” and then double click on the “System” icon. Once the “System Properties” screen displayed, click on ” Hardware” tab and then click on the “Device Manager” button. Double-click on Ports (COM & LPT) item. Please find the “
7565-H1 USB2CAN” or “ICPDAS I-7565-H2 USB2CAN” device listing and
right click mouse button on it and choose “Uninstall” item like Figure 3-7.
ICPDAS I-
Figure 3-7: Uninstall I-7565-H1/H2 Driver (1)
[ Step - 2 ]
Click “OK” button to complete I-7565-H1/H2 device driver un-
installation like Figure 3-8. After that, the “
ICPDAS I-7565-H2 USB2CAN” device listing will disappear on Ports
or “
ICPDAS I-7565-H1 USB2CAN”
(COM & LPT) item.
Figure 3-8: Uninstall I-7565-H1/H2 Driver (2)
I-7565-H1/H2 High Speed USB/CAN Converter User’s Manual (Ver 1.1, Nov/2009) ------------- 21
Loading...
+ 49 hidden pages