1.USB-CAN Bus Interface Adapter & CANalyst-II Analyzer Manual
1.USB-CAN Bus Interface Adapter & CANalyst-II Analyzer Manual
Instruction VersionV2.02
Version Update Date2016.06.01
Content
Chapter 1:
I
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
1.2 Parameters
support protocol conversion between USB and CAN-bus;
USB-CAN-2(A/C) is dual-channel intelligent CAN interface module;
CANalyst-II Analyzer is dual-channel intelligent CAN interface module;
1
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Email: [email protected]
CAN-bus-USB gateway;
USB interface to CAN network interface;
Extend CAN-bus line length;
Industrial site CAN network data monitoring.
Name
Amount
Adapter host
Comment
CD-ROM
gift
gift
gift
Channels isolation
USB-CAN-2A
no
USB-CAN-2C(Extreme
Edition)
yes
CANalyst-II
Analyzer(Extreme Edition)
yes
Isolation
voltage
Transparent
transmission
relay function
High-level
protocol
analysis
function
no
no
2500V
yes
no
2500V
yes
yes
Instructions:
1, All-models support: USB_CAN_Tool with the original code from our company, Zhou
LigongZLG CANTest and the latest version of Ji Yang electric CANTools.
2, CANalyst-II analyzer: Support the latest version of ZLG CANPro protocol analysis
platform software and High-level protocol analysis function.
3
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
3, Extreme Edition dual channel equipment: support CAN relay function and transparent
transmission function.
Note: for instructions on CAN relay function and transparent transmission function please
refer to Relay, transparent transmission function and use of relay software instructions.
4
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
5
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Name
Description
R+
R-
Terminal resistance R-
CANH
CANL
PWR
CAN1
CAN2
Email: [email protected]
Name
Description
R1
R2
PWR
SYS
CAN1
CAN2
Method of operation:
CAN Transmit: When a user application calls the Transmit Function, a message will
be push to the channel T-Buffer (its a FIFO buffer) in USB-CAN adapter immediately,
then the CAN Controller transmit it to the CAN-Bus.
CAN Receive: The CAN Controller receives a CAN frame from CAN-Bus, and push it
to the channel R-Buffer (also a FIFO buffer) in USB-CAN adapter immediately, when a
user application call the Receive-Function, the message will be return.
7
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
3.1.1 Windows XP
Connect USB-CAN intelligent interface module to the PC with USB cable correctly.
The Windows will then auto run an installation wizard called new hardware is found after
the hardware is detected. Select Install the software automatically (Recommended).
Click Next to continue;
If the windows XP do not run the wizard, Right click "My Computer" and select
"Device Manager" and find the other devices in other devices list:
8
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Right click Unknown device, and select Update Driver from the menu:
Select Install from a list or specific location (Advanced) .Click Next to continue:
9
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Next, select Search for the best driver in these locations, and check Include this
location in the search:(do not select Search removable media
(floppy ,CD-ROM)otherwise it is possible to come with an exclamation point or tips after
successfully installed the driver and reboot the corresponding device in Device Manager
which causing the device unusable.). Then click Browse button to browse the driver
folder:
Select directory and install (driver located in the directory of CD directory [hardware
drivers]).
Select directory and install CANalyst-II or USBCAN (Depending on the model) in the
directory of [hardware drivers]. Use the Browse for Folder window selects where the
driver is:
10
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
11
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
In some cases, the system will prompt a message that the WinUSBCoInstaller2.dll
cannot be found. Then, click "Browse", and select the WinUSBCoInstaller2.dll file from the
i386 (for 32 bit system) or AMD64 (for 64 bit systems) folder in the directory of drive
program directory "CANalyst-II or USBCAN".
12
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
13
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
When the system suggest to restart, or an exclamation point on a model in the device
manager appear, please restart the system.
Email: [email protected]
in the software installation directory, so can also install the driver from the file of
corresponding USB drive.
If the windows 7 do not run the wizard, Right click "My Computer" and select "Device
Manager" and find the other devices in other devices list:
15
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Right-click unknown device, select update driver software, manually add the driver
of the device. Select the driver for installation from directory as showed in diagram below.
Then it will prompt a message said whether to confirm the installation, click confirm to
go.
Select Browse the computer to find the driver software and click next.
16
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Select directory and install (driver located in the directory of CD directory [hardware
drivers]). Select directory and install CANalyst-II or USBCAN (Depending on the model)
in the directory of [hardware drivers]. Use the Browse for Folder window selects where
the driver is:
In some cases, the system will prompt a message that the WinUSBCoInstaller2.dll
cannot be found. Then, click "Browse", and select the WinUSBCoInstaller2.dll file from the
i386 (for 32 bit system) or AMD64 (for 64 bit systems) folder in the directory of drive
program directory "CANalyst-II or USBCAN".
If installed "USB_CAN TOOL Setup. exe", the corresponding USB drive will generate
17
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
in the software installation directory, so can also install the driver from the file of
corresponding USB drive.
18
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
19
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
20
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
First time to install the USB-CAN please make sure to check run Engine .this
installation package is needed for the application developed from the LABVIEW
environment.
21
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
22
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
23
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
24
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
25
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Select Device
If use USB-CAN-2(A/C) or CANalyst-II Analyzer product, select menu Select
Start/Stop Device
Select menu Device Operation-> Start, to open specified channel, USB-CAN Tool
Registers
Select menu Device Operation-> Registers, to view the registers information
current configuration
Select menu Information-> ParamNow, to view the current configuration.
Device Information
26
Email: [email protected]
Select menu Information-> Device Information, to view the device information such
as product model, serial number, version number, etc.
Select Channel
USB-CAN-2(A/C) product have two channels, the index number is respectively 0, 1
(Ch1, Ch2).
Set CAN parameters to ensure that the setting is correct for each channel.
Work mode
USB CAN products support 3 kind of work-mode: normal, listen, self-Test (loopback).
Normal: The CAN module will appear on the CAN-bus, and it can send and receive
CAN messages.
Listen: The module will appear on the CAN-bus, but in a passive state. It can receive
CAN messages, but cannot transmit CAN messages or answer. This mode can be used
as a bus monitor because it does not affect CAN-bus communications but can observe
the CAN-bus states.
Self-Test (loopback): For adapter self-test, CAN module receives its own messages.
In this mode, the send part of the CAN module is connected internally with the reception
one. This mode will provide a "false" response, so that dont need another node to provide
the acknowledge bit. And the CAN messages will not sent to CAN-bus.
Filter
Users can set the filter-mode, ACR and AMR to filter the received CAN messages.
Note: please refer to 9.annex 2:CAN description parameter settingfor further
information.
Transmit messages
When transmit messages, need to select extend frame/standard frame, a remote
frame/data frame, frame ID, data length, data and other information.
27
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
Please enter 16 hexadecimal format values In the CAN test software ID edit box and
data edit box, and each value need space. When sending ID up from the top 4 values,
data up to the first 8 values.
Note: The System time in data list is system time in computer, and compare with the
actual eventuate-time there may be up to 50ms difference.
Attention: The USB-CAN products will not receive acknowledge message when
it isnt connect to the CAN-bus or parameters settings error , then it will resend the
messages automatic until the message is received by other node in CAN-bus or the
USB-CAN product restart. There is 1000 frames length send buffer, it will return 0
when call the VCI_transmit function failure.
ID Format
There are two kind of format for ID format: SJA1000 mode (Align Left) and Real ID
(Align Right).
SJA1000 modeSJA1000 internal registers format, the highest bit of the ID and ID
byte Bit31 alignment. For example, standard frame ID = 2, make 0x00 00 00 02 shift left
21 bit, and the SJA1000 mode ID is 0x 00 40 00 00; if the frame is extended one, make
0x00 00 00 02 shift left 3 bit, then the SJA1000 mode ID is 0x00 00 00 10(temporary
invalid).
Real ID: The lowest bit (Bit0) of ID is aligned with the ID byte Bit0.For example, if ID =
2, then file 00 00 00 02 in the ID edit box directly. This format is simple and intuitive.
Each time the data will be displayed in the list box on the interface.
Enable/Disable Receive
Check CAN receive enable to open the receive thread. The latest messages will be
shown in list control in time. If uncheck CAN receive enable, when there are messages
on CAN-bus, the receive buffer on the USB-CAN adapter may overflow.
When in the high-speed receiving, it is best not operating the CAN settings, query etc.
Open the CAN bus receiver function, when check receiving box in the main interface,
receiving function is opened at the same time.
If the data received from the other CAN node will be displayed on the interface.
Email: [email protected]
3.4 Self-Test
Each channel supports self-test mode.
Do Self-test in the following steps:
1) Plug the USB-CAN adapter into the PC's USB, and then run the USB-CAN Tool.
2) Select menu Select Device USB-CAN 2.0, then select menu Device
Operation Start to open the USB-CAN adapter, and set the work mode to self-test
in next popup dialog.
3) In the main UI Send area, set Frames=1, Send Interval=1000, check CAN
receive enable, then, click send button to send message. It will receive the same
message in same channel.
If there is no problem in the receiving function test shows that the USB - CAN adapter
no fault in the work.
USB - CAN - 2 (A/C), CANalyst-II has dual channel CAN interfaces, you also can
interconnect channel1 and cchannel2 to test. This test is more comprehensive, and can
direct response CAN transceiver failure, please refer to the USB - CAN bus adapter test
documentationfor more detail.
Tips:
If the above operation is not success, please check the correct steps carefully. If it still
does not work, please contact us.
If it cant receive messages after the USB-CAN adapter restart, may need to restart
29
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]
30
Zhuhai Chuangxin Optoelectronics Technology Co., Ltd
Email: [email protected]