CAN Converter Usermanual en
CAN Converter Usermanual en
1. Introduction ------------------------------------------------------------------------------------------ 5
1.1 Features and differences of CAN converter series -------------------------------------- 7
1.2 Communication Mode Description --------------------------------------------------------- 12
1.2.1 Normal mode ------------------------------------------------------------------------------ 12
1.2.2 Pair Connection mode ------------------------------------------------------------------ 14
1.2.3 Listen only mode ------------------------------------------------------------------------- 15
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 2
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.12 RA[CHK]<CR> --------------------------------------------------------------------------------- 73
4.13 Error Code -------------------------------------------------------------------------------------- 74
5. Appendix ------------------------------------------------------------------------------------------- 76
5.1 Cable selection -------------------------------------------------------------------------------- 77
5.2 I-7565 Driver Installation Instructions ---------------------------------------------------- 78
5.2.1 Verifying the installation ---------------------------------------------------------------- 82
5.2.2 Remove the driver ----------------------------------------------------------------------- 83
5.3 tM-7565 Driver Installation Instructions -------------------------------------------------- 84
5.3.1 Installing the hardware ----------------------------------------------------------------- 87
5.3.2 Verifying the installation ---------------------------------------------------------------- 90
5.3.3 Remove the driver ----------------------------------------------------------------------- 91
5.4 Calculation of user-defined CAN baud rate --------------------------------------------- 92
5.4.1 Setting parameters of CAN Converter Utility -------------------------------------- 92
5.4.2 Parameter description ------------------------------------------------------------------ 93
5.4.3 Example description --------------------------------------------------------------------- 97
5.5 CAN ID filter setting ------------------------------------------------------------------------ 100
5.6 Application of Pair Connection mode --------------------------------------------------- 101
5.7 COM port software -------------------------------------------------------------------------- 104
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 3
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Important Information
Warranty
All products manufactured by ICP DAS are under warranty regarding
defective materials for a period of one year, beginning from the date
of delivery to the original purchaser.
Warning
ICP DAS assumes no liability for any damage 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, not for any infringements of patents
or other rights of third parties resulting from its use.
Copyright
Copyright @ 2018 by ICP DAS Co., Ltd. All rights are reserved.
Trademark
Names are used for identification purpose only and may be
registered trademarks of their respective companies.
Contact us
If you encounter any problems while operating this device, feel free to contact us via
mail at: [email protected] .
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 4
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
1. Introduction
CAN (Controller Area Network) bus is a serial communication interface, which is
highly fault-tolerant even in harsh environments with noise. Therefore, there is often a
need in the industry to convert interfaces such as RS -232, RS-485, RS-422 or USB to
CAN interface for communication, so CAN converters are developed. For example,
when the original equipment with RS-232, RS-485, RS-422 or USB interface (referred to
as UART side, such as PC, I-8000, WinPAC-8000…etc) needs to control or monitor
other new CAN interface equipment (referred to as CAN side), the electrical signal and
data can be converted through the CAN converter, the data of the UART side device
can be transferred to the CAN side device, or the data of the CAN side device can be
transferred to the UART side device.
In addition, the CAN converter supports three communication modes with normal
mode, pair connection mode and listen only mode. Among them, the pair connection
mode has a function similar to transparent transmission, which can transparently
transmit the data from one side to the other side.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 5
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 6
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
1.1 Features and differences of CAN converter
series
Common features:
Support CAN 2.0A and CAN 2.0B specifications.
According to the CAN bus specification, the maximum transmission distance is
1000 meters.
Built-in Dual-Watchdog function in the module.
Use software to set module parameters.
Provide power, data flow, error LED indicator.
Provide CAN and UART receiver software buffer.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 7
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Comparison table of differences between converters:
CAN interface
ISO-
Specification ISO-11898-2
11898-3
10k ~
Baud Rate (bps) 10k ~ 1M
125k
1000 frames
FIFO 256 frames
256 frames (*1)
(*1) The module shell laser is marked V2, or the firmware version is after v3.90.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 8
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530-FT I-7530 I-7530A I-7565 tM-7530 tM-7530A tM-7565
UART interface
RS-
232/485/422 USB RS-232/485/422
USB
COM RS-232 (can't be used (virtual RS-232 (can't be used
(virtual COM)
simultaneously COM) simultaneously)
)
110~115200 110~230400
Baud Rate (bps) 110~921600 110~230400
110~230400 (*1) 110~921600 (*2)
900 frames
FIFO 256 bytes
256 bytes (*1)
(*1) The module shell laser is marked V2, or the firmware version is after v3.90.
(*2) The firmware version is after v3.90.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 9
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530-FT I-7530 I-7530A I-7565 tM-7530 tM-7530A tM-7565
Extended function
UART command
string append Don't support Support
timestamp (*1)
In pair connection
response with
CAN ID (*3)
In pair connection
mode, the user
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 10
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Command timeout
in pair connection Don't support Support
mode (*3)
(*1) Please refer to section 3.2 UART settings for the description in "Timestamp Response".
(*2) Please refer to section 3.3 CAN settings for the description in "User Defined CAN Baud Rate".
(*3) Please refer to Section 3.4 for the description of "Response with CAN ID", "End Characters of UART Commands", "Pair
Connection Command Timeout" in Paired Connection Mode.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 11
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
1.2 Communication Mode Description
The CAN converter supports three communication modes with Normal mode, Pair
connection mode and Listen only mode as below descripption. In addition, please refer
to section 3.4 for the setting method of the communication mode. If you need to use the
COM port software during the test, please refer to section 5 .7.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 12
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
In addition, if the customer only needs to exchange CAN messages with the CAN
device through the CAN converter (for example: I-7530), and does not need to know the
UART command string on the UART side, the VxCAN Utility can be used to achieve this
requirement.
The test interface of VxCAN Utility can convert UART command strings into CAN
messages as below figure, and the used mathod of test interface in VxCAN Utility,
please refer to section 3.6.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 13
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
1.2.2 Pair Connection mode
As the name suggests, this mode is designed to use two CAN converters for pair
connection. The main purpose will transfer the interface from UART to CAN, and then
transfer again the interface from CAN to UART, so that the interface conversion effect
can be achieved without modifying the program of the field device as below figure .
In addition, if only one CAN converter (for example: I-7530) uses this mode, the
effect will be similar to the function of transparent transmission. Th e data be inputed
from the UART side of the CAN converter will be directly output to the CAN message as
below figure.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 14
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
1.2.3 Listen only mode
This mode only supports tM-7530, tM-7530A and tM-7565, and be used to monitor
the messages of the CAN network without converting the message, so it will not send
any CAN messages to the CAN network, such as Error Frame or ACK signal.
For example, there are two CAN devices (such as I-7530 and I-7565-H2) in the
communicating, and the user want to obtain CAN messages betwee n CAN devices, the
user can set the tM-7565 to listen only modee, and then connect the CAN side into the
CAN network, and connect the UART side to the PC for monitoring.
If the user uses a common communication port (COM port) testing software to
monitor in the PC as shown in figure 1.2.3.1, and will get the UART command string.
If the user uses the testing interface of VxCAN Utility to monitor in the PC as
shown in figure 1.2.3.2, and will get CAN messages.
Among them, if the user need to use the COM port testing software, please refer to
section 5.7. If the user need to use the testing interface of VxCAN Utility, please refer to
section 3.6.
Figure1.2.3.1. Using COM port testing software to monitor the UART command string
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 15
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Figure 1.2.3.2. Using VxCAN utility to monitor the CAN message
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 16
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2. Hardware information of CAN converter
2.1 Specification Table
I-7530 I-7530A I-7565 tM-7530 tM-7530A tM-7565 I-7530-FT
CAN interface
Channels 1
9-pin
3-pin 7-pin screwed
Connector 9-pin male D-Sub male D-
spring type terminal block
Sub
Baud Rate 10k ~
10 k ~ 1 M
(bps) 125k
DC-DC: 3000 VDC
Isolation N/A
photocoupler: 2500 Vrms
Built-In Built-In
Terminator Built-In 120Ω 120Ω 120Ω Built-In
N/A
Resistor (Jumper-selected) (Wiring- (Jumper- 1kΩ
selected ) selected)
Specificati ISO
ISO 11898-2
on 11898-3
UART/USB interface
RS-232 RS-232
RS- virtual virtual
COM RS-485 RS-232 RS-485 RS-232
232 COM COM
RS-422 RS-422
14-pin 9-pin 10-pin
9-pin 9-pin
screwed USB female D- screwed
Connector female USB Type B female
terminal Type B Sub terminal
D-Sub block block D-Sub
Data bit 5, 6, 7, 8
Stop bit 1, 2
Parity bit None, Odd, Even
LED
indicator ON LED Run LED ON LED
light ERR LED Err LED ERR LED
Power
ower reverse ower reverse polarity ower
Protection polarity protection, Over- reverse
protection, Over- voltage brown-out polarity
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 17
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530 I-7530A I-7565 tM-7530 tM-7530A tM-7565 I-7530-FT
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 18
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.2 Pin Assignment
RS-232 terminal of I-7530/tM-7530/I-7530-FT:
Pin Description
1 N/A
2 TXD
3 RXD
4 N/A
5 GND
6 N/A
7 N/A
8 N/A
9 N/A
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 19
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
CAN bus terminal (DB9 male) of I-7530 / I-7530A / I-7565 / I-7530-FT:
Pin Description
1 N/A
2 CAN Low
3 CAN GND
4 N/A
5 CAN GND
6 N/A
7 CAN High
8 N/A
9 N/A
1 F.G.
Pin Description
1 CAN_GND
2 CAN_H
3 CAN_L
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 20
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
UART/CAN terminal of tM-7530A:
7 1
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 21
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.3 Block Diagram
I-7530 and tM-7530 provide the communication interface of CAN and RS -232, and
the CAN side has isolator.
The hardware appearance of the I-7530-FT is same as the I-7530, and the main
difference between the I-7530-FT and the I-7530 is compliance with different CAN
specifications. Among them, the I-7530-FT is a CAN device that complies with the ISO
11898-3 specification and has the characteristics of low-speed fault tolerance (LSFT),
but there is no isolator on the CAN side, while the I-7530 is a CAN device that complies
with the ISO 11898-2 specification, and there is an isolator on the CAN side.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 22
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530A and tM-7530A provide four communication interfaces with CAN, RS-232,
RS-485 and RS-422. Among them, RS-232, RS-485 and RS-422 are the same UART
communication port, so they cannot be used at the same time. In addition, the I -7530A
and tM-7530A have isolators on the CAN side.
I-7565, tM-7565 provide CAN and USB communication interface, and provide virtual
COM function on USB interface, that is to say, if the device only has USB interface, you
can use I-7565, tM-7565 instead of I-7530. In addition, the I-7565 and tM-7565 are
powered through the USB interface, so no external power supply is required, and I -7565
and tM-7565 have isolators on the CAN side.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 23
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.4 Wiring method
The I-7530, I-7530-FT and tM-7530 are RS-232 data communication modules, and
the RS-232 interface uses a D-Sub 9-pin female terminal. The below picture will
describe the wiring between the PC and the module.
The UART communication port of the I-7530A has three interfaces with RS-232,
RS-485 and RS-422, and the three interfaces cannot be used at the same time. The
below figure shows the wiring method for connecting the I -7530A to other UART
devices. When using the RS-485 or RS-422 interface, we recommend using twisted pair
cables as the communication medium.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 24
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
I-7530, I-7530A, I-7565 and I-7530-FT in CAN communication port (DB9 male) pin
assignment is based on CANopen DS102 introduction and the DeviceNet specification.
The wiring method is as follows:
The CAN interface of the tM-7530 uses spring-loaded terminals, and the wiring methods
as follows:
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 25
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
tM-7530A has three interfaces, namely RS-232, RS-485 and RS-422, and the
three interfaces cannot be used at the same time. The wiring method uses screw
terminals as follows:
Figure: tM-7530A power supply terminal and CAN bus terminal wiring
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 26
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
The tM-7565 uses screw terminals, which are wired as follows:
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 27
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.5 Terminal resistor
According to the ISO 11898 specification, in order to operate correctly the ISO
11898-2 CAN bus network, it is necessary to set terminal resistors at both ends, which
is 120Ω as below figure. If there is no terminal resistor or only one terminal resistor
exists on the CAN bus, it may affect the signal stability of the CAN network. Therefore,
when the signal stability is not good, it is recommended to use a terminal resistor.
Jumper position
Status
(JP3)
Enable
(Default)
Disable
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 28
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Jumper position
Status
(JP4)
Enable
(Default)
Disable
Jumper position
Status
(JP4)
Enable
(Default)
Disable
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 29
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
tM-7530 does not have a built-in terminal resistor. If the user needs to use a
terminal resistor, please connect a 120 ohm terminal resistor in parallel between
CAN_H and CAN_L of the CAN bus as below figure:
tM-7530A has a built-in terminal resistor. If the user needs to enable the terminal
resistor function, please short the CAN_H pin and the TR pin as below figure below:
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 30
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
The tM-7565 has built-in terminal resistors. If the user needs to enable the terminal
resistor, please adjust the jumper to the 1 and 2 positions as below figure
Jumper position
Status
(JP3)
Enable
(Default)
Disable
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 31
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.6 Init / Normal DIP switch
The Init / Normal DIP switch is used to determine the working mode of the module
after it is turned on. The working mode can be divided into "Initialization Mode" or
"Normal Operation Mode", which are used to set the module parameters or use it
normally.
When the user uses the module for the first time, it is necessary to switch the DIP
switch to Init and then power on, the module can enter the initialization mode to set the
parameters, and after the parameter setting is completed, turn the DIP switch to Normal
and repower on again, the module will enter the normal operation mode according to
the set parameters.
The differences in the working modes are explained as follows :
Initialization mode: This mode is used to set the communication parameters and
communication modes of UART or CAN, such as: baud rate, data format, CAN
ID filter, normal mode, etc. After completing the setting, all parameters will be
stored to the EEPROM of module. In addition, the UART baud rate and data
format of this mode are fixed at 115200, n, 8, 1.
Normal operation mode: This mode is mainly used to convert UART data and
CAN messages. In this mode, the "communication mode" of the module is
defaulted to "normal mode", so you can use the UART command string (please
refer to Chapter 4) to obtain module information or dynamically change the
settings of UART and CAN.
The position of DIP switch will different by module. The DIP switch of the I -7530, I-
7530A, I-7565 and I-7530-FT are located on the back of the module, while the tM-7530,
tM-7530A and tM-7565 are located on the side of the module. About the position of the
modules as below figure:
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 32
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
tM-7530 tM-7530A tM-7565
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 33
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
2.7 LED indicator
The CAN converter provides two LED indicators to show the module in which
working mode, and whether an error has occurred as below described.
The I-7530, I-7530A, I-7565 and I-7530-FT provide ON LED and ERR LED, while
tM-7530, tM-7530A and tM-7565 provide Run LED and Err LED. Among them, ON LED
and Run LED have the same function, and ERR LED and Err LED have the same
function. The following descriptions focus on ON LED and ERR LED.
The ON LED shows the module is working in which working mode. When the ON
LED indicator flashes once per second means the module is in "Initialization Mode" and
the DIP switch is in "Init", and when the ON LED indicator is always on means that the
module is in "Normal Operation Mode" and the DIP switch is in "Normal".
The ERR LED shows whether an error has occurred in the module. If there is no
error, the ERR LED wil turn off. On the contrary, if an error has occurred, the ERR LED
will be turn on or flashing, at this time the user can use the UART command string
"S[CHK]<CR>" in chapter 4 to get the detailed error infornation. Among them, if the
cause of the error is "CAN or RS-232/RS-485/RS-422/USB overload warning", you can
use the UART command string "C[CHK]<CR>" to clear the error, or reboot the module
to restore the state.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 34
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
For the position and status display of the LED indicators in the I -7530, I-7530A, I-
7565 and I-7530-FT, please refer to the pictures and tables as below.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 35
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
For the position and status display of the tM-7530, tM-7530A and tM-7565 LED
indicators, please refer to the pictures and tables as below.
message
FIFO overflow
CAN Bus Off Always turned on
Err
CAN Error Passive
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 36
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3. Module setting and start using
This chapter will describe how to use VxCAN Utility to configure and use module.
The user can download VxCAN Utility from the download center in the product webpage
of each CAN converter, or search and download VxCAN Utility on ICP DAS' homepage
as below figure.
VxCAN
• Adjust the dip switch to "Init" and then power on again. The COM port is fixed at
115200, n, 8, 1, and the ON LED or RUN LED blink once per second.
Module • Use the VxCAN utility to search for COM ports and set parameters.
settings
• Adjust the dip switch to "Normal" and then power on again. The ON LED or RUN
LED will always be on.
• Use the VxCAN utility to search for COM ports and test communication, or
Start using connect to other CAN devices to test communication.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 37
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.1 Setting steps
Step 1. Before the module is powered on, please do not connect other CAN
devices to the CAN side of the module. First, set the module's Init/Normal DIP
switch to the “Init” position and powering on, and then confirm the ON LED or Run
LED indicator whether to blink once per second as like the tM -7565 and I-7565 are
follows picture.
Step 2. Connect the PC's USB or COM port to the module and open VxCAN Utility
with "administrator".
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 38
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Step 3. After clicking the “Search” button , in the “Search Options” screen, select
the COM port to search for the module, and select 115200, n, 8, 1 for parameters
such as baud rate and data format, and click the “Search CAN products” button to
search.
(Note): If there are multiple COM ports of "same model name" modules in the
list, it is recommended to search for the COM port of one module at a time,
and then search and set the next module after the setting in step 5 is
completed. For example: there are 2 sets of I-7565 in the picture below,
respectively I- 7565 (showing I-756x (COM4)) and I-7565 V2 (showing ICPDAS I-
7565 USB-To-CAN Converter (COM7)), please search and configure I-7565 (COM4)
first, and then search and configure I-7565 V2 (COM7) again.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 39
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Step 4. After the search is completed, the search list on the left will list the CAN
modules that have been searched by the PC, such as "I-7565 –Init" in the picture
below.
(Note): If there is no "-Init" after the displayed module name, please return to
step 1 to confirm whether the Init/Normal dip switch is set to Init.
Step 5. Clicking on the words "I-7565 -Init" in the search list will display the setting
screen on the right. The setting screen is mainly divided into three areas of different
colors, namely UART setting (light green), CAN setting (light orange) and
communication mode setting (light blue). For detailed description of each
parameter, please refer to sections 3.1.1 to 3.1.4.
Setting screen
Search list
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 40
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.1.1 UART setting
* Baud Rate: Set the UART baud rate. Different CAN converters have different upper
baud rate limits.
* Data Bit: Set the UART data bit, the CAN converters support four data bit settings,
which are 8, 7, 6, and 5 bits.
* Stop Bit: Set the UART stop bit, the CAN converters support two data bit settings,
which are 1 and 2 bits respectively.
* Parity Bit: Set the UART parity bit check, the CAN converter s upports three data bit
settings, which are none, odd and even.
* Add Checksum: Set the CAN converter to enable the checksum for the UART
command string, and only supports the communication mode is the normal mode. If
the function be set to enable, when the UART command string is transceived or
received need to add two check characters to be checksum after the stri ng as below
figure below. In addition, please refer to section 4.1 for the calculation method of
the checksum.
* Error Response: Set the CAN converter to enable the error response for the UART
command string which in chapter 4, and the function only supports the
communication mode is the normal mode. If the function be set to enable, the
module will respond with an error code when the user enters an incorrect UART
command string. In addition, please refer to section 4.13 for error codes.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 41
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
* Timestamp Response: Set the CAN converter to enable the timestamp pesponse
for the UART command string which in chapter 4. The function only supports
modules such as tM-7530, tM-7530A and tM-7565, and only supports the
communication modes are normal mode and listen only mode. If the function be
set to enable, when the CAN converter converts the CAN message to a UART
command string will add a timestamp of 9 ASCII characters (unit is 10us) after the
string. In the other word, if the function be set to disable, the UART will not add
timestamp after command string.
In addition, because the timestamp reponse is enabled, the module will add
timestamp after the UART command string, so it is suitable for users to use the
COM port software to parse the data after receiving data as below figure.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 42
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
However, if the user only need to monitor CAN messages with time stamps can use
VxCAN Utility to receive data from the UART, because VxCAN Utility will add timestamp
regardless of whether the module supports timestamp response, whi ch means that, in
addition to tM-7530, tM-7530A and tM-7565, it can also be applied to modules such as
I-7530, I-7530A, I-7565 and I-7565-FT as below Figure.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 43
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.1.2 CAN setting
* CAN specification: Use the CAN specification CAN 2.0A (11-bit CAN ID) or CAN
2.0B (29-bit CAN ID).
* CAN baud rate: Set the CAN baud rate, which can support 10K, 20K, 50K, 125K,
250K, 500K, 800K, 1000K and 83.3K bps. If these baud rates cannot meet the
user's needs, and the special baud rates can be set through the "User -defined CAN
baud rate" function.
* User Defined CAN Baud Rate: When using the user-defined CAN baud rate, the
user needs to fill in the value of the CAN baud rate in the "Required Baud Rate"
field, and click the "Calculated" button to calculate the "Real Baud Rate". When the
calculated real baud rate and the required baud rate are different, it means that the
required baud rate cannot be calculated due to hardware limitations, so the "Real
Baud Rate" field will display the actual closest and can support The CAN baud rate.
As below figure, the required baud rate is 72000bps, but the calculated real baud
rate that can be supported is 71428bps.
If the user want to get more information about the real baud rate, please click the
"Advanced" button and select the appropriate real baud rate to suit the application as
beolw figure. Among them, the field of Sample Point refers to in the CAN message,
when the time width of a bit is defined as 0~100% from the start point to the end point,
the sample point is which position within this time width. For example: 87.5% means
that the sample point is in the 87.5% position of 0~100%. In addition, SJW is the setting
for adjusting the amplitude of the sample point, which is usually used to solve the
problem of oscillator phase offset between different CAN devices, and ensure the CAN
device can receive correct CAN messages. In general, the commonly used sample point
and SJW are 87.5% and 1.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 44
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
* CAN ID Filter: Clicking this button will open the setting window of the CAN ID filter
as below figure, the user can limited the CAN converter only receives which CAN ID
messages.
When the CAN converter receives the CAN message, the CAN ID filter will decide
whether to check the bit value in the same position with the CAN ID according to the bit
value in a certain position of acceptance mask (ACM). If the bit value of a position in
the ACM is 1, the bit value in the same position of the CAN ID will be checked; if the bit
value of a position in the ACM is 0, the bit value in the same position of the CAN ID will
not be checked, for example: the ACM is 7C0 (111 1100 0000 bit) which means CAN ID
only bit 10 to 6 will be checked, and bit 5 to 0 are not checked.
Next, after determining the ACM will check which bits of the CAN ID, the CAN
converter will only receive the same CAN ID as the acceptance code ( ACC) in these
bits, for example: when the ACM is 7C0, The CAN ID filter will only check the bit 10 to 6
of the CAN ID, and the ACC is 100 (001 0000 0000 bit), which means that the CAN
converter will only receive CAN messages with CAN IDs from 100 to 13F, a s below
figure.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 45
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
In other words, if the ACM is set to 000, it means that all CAN ID messages are
received without checking the CAN ID, and the content of the ACC can be ignored at
this time. Please refer to section 5.5 for details on how the ACC and ACM a re
calculated.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 46
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.1.3 Communcation mode setting
This function is used to set the communication mode of the CAN converter, which
can be divided into three modes: normal module, pair connection mode and listen only
mode.
In normal mode, the UART interface of the CAN converter can only receive the
command string as described in chapter 4. In the other word, when the CAN converter
receives the CAN messages and convert to the UART interface will also displayed the
command string. By the way, any commands input UART interface don't follow the
command string format will be regarded as an error message.
In pair connection mode, the user needs to set a fixed CAN ID in the VxCAN Utility.
When the CAN converter receives the UART data will fill in the UART data into the data
field of the CAN message, and use this CAN ID to sen d the CAN message to the CAN
side. Among them, the fixed CAN ID is helpful for the application of transparent
transmission or pair connection, not only to know the CAN message comes from which
CAN converter, but also to avoid to appear the same CAN ID in the CAN network. In
addition to the fixed CAN ID, the pair connection mode also supports other parameter
settings, such as: "Response with CAN ID", "End Characters of UART Commands" and
"Pair Connection Command Timeout", etc., which will be further explained later.
Listen Only mode: Only supports tM-7530, tM-7530A and tM-7565. When using this
mode, the tM-7530, tM-7530A and tM-7565 will only receive messages and will not
reponse any CAN signals to the CAN network, including the signal of Error Frame and
ACK.
Among them, pair connection mode can according to the application select
parameter settings, so the following is a further description of the pair connection mode,
including "Fixed CAN ID", "Response with CAN ID", "End Characters of UART
Commands" and "Pair Connection Command Timeout".
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 47
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Pair Connection Mode: When the pair connection mode is selected, the setting
fields on the right will expand as below figure, and the order will be explained as
follows.
* Fixed CAN ID: Set a fixed CAN ID. Because in the CAN network, each CAN
converter must have a different CAN ID to avoid multiple converters with the same
CAN ID to send CAN messages to the CAN network at the same time, and the
messages of the same CAN ID to collide and cause errors. If the CAN specification
selected by the user is CAN 2.0A, the CAN ID is 11-bit ID, and the range is
000~7FF. If the CAN specification selected by the user is CAN 2.0B, the CAN ID is
29-bit ID, and the range is 00000000~1FFFFFFF.
* Response with CAN ID: The user can set whether to add the CAN ID before the
data and send to the UART side. The CAN ID is ASCII format, for example: CAN ID
is 001, when it is sent to the UART side and will display 0x30 0x30 0x31 as below
below.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 48
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
* End Characters of UART Commands: The CAN converter will according to the
end character to judge whether the data reception is completed. If the reception is
completed, the CAN converter will add the end character to the received data and
send it to the other side as below figure. For example: if the end character i s CR
(0x0D), as long as the CAN converter receives CR, it will be regarded as the
completion of data reception, and the received data will be added to the end
character, and then sent to the other side.
None: The end character is not used, so the CAN converter will transmit the
received data to the other side until a "Pair Connection Command Timeout"
occurs, or the firmware buffer is full.
CR: Set the end character as CR, and the hexadecimal value of ASCII code is
"0x0D".
LF: Set the end character as LF, and the hexadecimal value of ASCII code is
"0x0A".
CR_LF: Set the end character as CR and LF, and the hexadecimal values of
ASCII code are "0x0D" and “0x0A”.
LF_CR: Set the end character as LF and CR, and the hexadecimal values of
ASCII code are "0x0A" and “0x0D”.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 49
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
User-defined: This function allows the user to define the ending character,
and only suppout tM-7530, tM-7530A and tM-7565. Among them, "User
Defined1" and "User Defined2" can set 1 end character and 2 end characters
respectively as beolw figure, when "User Defined2" is selected and the end
characters are set to 0x0D and 0x0A, when the CAN converter receive 0x0D
and 0x0A, and the received data will be added to the end character and then
sent to the other side.
* Pair Connection Command Timeout: Set the waiting time when receiving data,
and only suppout tM-7530, tM-7530A and tM-7565. When the CAN converter
receives a byte data, it will wait for this time to confirm whether new data has been
received. If no new data is received after this time will determined that the data is
received completely, and will send the data to the other side.
"CAN Timeout" can set the timeout time for converting CAN data to UART data, and
"UART Timeout" can set the timeout time for converting UART data to CAN data. If the
user wants to send the data immediately, the value can be set to 0.
Among them, the function of "UART Timeout" will only work when "End Characters
of UART Commands" is set to "None". In addition, about the application of the pair
connection mode, please refer to section 5.6.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 50
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.1.4 Saving and default value
After the user selects the parameters in the "setting screen", and click the "Save All
Setting" button to write the parameters into the EEPROM of the CAN converter, but if
the user wants to restore the parameters to the factory default values, please click the
"Load Default Setting" button to restore all the parameters of the "Setting Screen" to the
default values, and then click the "Save All Settings" button to write the parameters into
the EEPROM of the CAN converter. Finally, set the Init/Normal of DIP switch to Normal,
and power on the CAN converter again to start using these parameters.
The default values of CAN converter as below table:
UART side
Baud Rate DIP switch is Init, the baud rate will fix at 115200.
DIP switch is Normal, the baud rate will as below.
115200:I-7530、I-7530A、tM-7530、tM-7530A、tM-
7565 and I-7530-FT
921600:I-7565
Data Bit 8
Stop Bit 1
Parity Bit None
Add Checksum Disable
Error Response Disable
Timestamp Response Disable
CAN side
CAN specification 2.0A
CAN baud rate 125k
acceptance code (ACC) 000
acceptance mask (ACM) 000
Communacation mode
mode Normal mode
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 51
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
3.2 Start using
Step 1. Please confirm you have completed the setup steps in Section 3.1.
Step 2. Before the module is powered on, please do not connect other CAN
devices to the CAN side of the module. First, set the module's Init/Normal DIP
switch to the “Normal” position and powering on, and then confirm the ON LED or
Run LED indicator whether always on as like the tM-7565 and I-7565 are follows
picture.
Step 3. Connect the PC's USB or COM port to the module and open VxCAN Utility
with "administrator".
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 52
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Step 4. After clicking the “Search” button , check the COM port, baud rate, data
format and other parameters of the module to be searched in the "Search Options"
screen, and click the “Search CAN products” button to search in sequence.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 53
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Step 5. After the search is completed, the search list on the left will list the CAN
module models that have been searched by the PC, as shown in the figure below
"I-7565".
(Note): If multiple module names of the same model are found, these modules
will be combined into a group and represented by different VxCANPorts. For
example: Step 4 finds I-7565 and I-7565 V2 in COM4 and COM7 respectively, they
will be combined into one and represented by two VxCANPorts CAN1 and CAN2 as
shown in the figure below.
I-7565 I-7565 V2
Step 6. Click on the VxCANPort of the module and select the CAN converter parameters to
be used, then check "Active Port" and click the "Confirm" button.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 54
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Step 7. Click the “Start” button to open the communication interface and connect the
CAN side of the module to other CAN devices. The wiring method is CAN High to CAN
High and CAN Low to CAN Low. In addition, the communication interface is mainly
divided into two areas, namely the CAN message transmission area and the reception
area. If the user wants to send a CAN message, please fill in the data in the fields in the
transmission area and click the "Send" button. When the module receives the CAN
message, it will automatically display the CAN message in the receiving area. For more
detailed VxCAN Utility operation methods, please refer to the VxCAN Utility manual.
CAN message
Transmission
area
CAN message
reception
area
For example, the picture below is the communication screen and data content of
testing I-7530 (Normal mode) and I-7565-H2.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 55
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4. UART command string
When the DIP switch is in Normal and the communication mode is in normal mode,
the module supports the following command strings in ASCII format that allow the user
to send and receive CAN messages on the UART side through these command formats,
or set module parameters. The command format as below:
Command format: <Command>[CHK]<CR>
<Command> : RS-232/RS-485/RS-422/USB commands for CAN converter
[CHK] : 2-character checksum value. The checksum will only be
activated when this function is enabled using the CAN converter
The command strings list as below, and the details are described in the following
subsections.
Table: List of command strings
Command Description
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 56
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Set the parameter configuration of the UART
P2BBDSPAE[CHK]<CR>
side, but do not store it
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 57
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.1 Checksum algorithm
The checksum algorithm is that convert all the characters of the command string
(the first character to the characters before [CHK]) into ASCII hexadecimal values, and
take out the lowest 2 digit value after adding up, and then convert this value back to an
ASCII string, for example as below.
Example:
Command: Restart CAN converter module, RA[CHK]<CR>.
1. String sum = 'R' + 'A' = 52h + 41h = 93h.
2. Therefore, the checksumis 93h, then [CHK] = ”93”.
3. The command string contains the checksum is "RA93<CR>".
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 58
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.2 tIIILDD…[CHK]<CR>
Description: Transmit or receive standard data frame.
Syntax: tIIILDD…[CHK]<CR>
t Represent a standard (2.0A) data frame.
III 11 bits Identifier (000~7FF)
L Data length (0~8)
DD… Input data frame value according to the data length (00~FF)
Response:
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: t03F6112233445566<CR>
Send a CAN message with a standard data frame. ID=03F, DLC=6, data1=11,
data2=22, data3=33, data4=44, data5=55 and data6=66.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 59
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.3 TIIIL[CHK]<CR>
Description: Transmit or receive standard remote frame.
Syntax: TIIIL[CHK]<CR>
T Represents a standard (2.0A) remote frame.
III 11 bits Identifier (000~7FF)
L Data length (0~8)
Response:
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: T2E88<CR>
Send a CAN message with a standard remote frame.
ID=2E8, DLC=8.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 60
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.4 eIIIIIIIILDD…[CHK]<CR>
Description: Transmit or receive expanded data frame
Syntax: eIIIIIIIILDD…[CHK]<CR>
e Stands for the extended (2.0B) data frame.
IIIIIIII 29 bits Identifier (00000000~1FFFFFFF)
L Data length (0~8)
DD… Input data frame value according to the data length (00~FF)
Response:
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: e1234567851122334455<CR>
Send a CAN message with an extended data frame. ID=12345678, DLC=5, data1=11,
data2=22, data3=33, data4=44 and data5=55.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 61
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.5 EIIIIIIIIL[CHK]<CR>
Description: Transmit or receive expanded remote frame.
Syntax: EIIIIIIIIL[CHK]<CR>
E Stands for the extended (2.0B) CAN remote frame.
IIIIIIII 29 bits Identifier (00000000~1FFFFFFF)
L Data length (0~8)
Response:
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: E010156786<CR>
Send a CAN message with an extended remote frame.
ID=01015678, DLC=6.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 62
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.6 S[CHK]<CR>
Description: Read the CAN baud rate and error message of the CAN converter.
Syntax: S[CHK]<CR>
S Command character.
Response:
Note:
In order to communicate with the computer to receive error information, the user must
enable the "Error Response" function in the CAN converter software. In addition, all
returned results are in ASCII format, so the user must convert ASCII to hexadecimal as
beolw table.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 63
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
8 1000K CAN baud rate, I-7530-FT not supported
Bit 5 Reserved
Bit 3 Reserved
Bit 2 Reserved
Example:
Command: S<CR>
Receive: !50000000<CR>
Obtain some current information from the CAN converter module, and the response
will show the following results: CAN baud rate=250K, CAN register= normal, CAN
transmit error counter=0, CAN receive error counter=0 and CAN/RS232 FIFO=
normal.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 64
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.7 C[CHK]<CR>
Description: Clear error flag or overload in register of CAN converter.
Syntax: C[CHK]<CR>
C Command character
Response:
Valid Command: No response, and will turn the ERR LED off after the ERR LED
was turned on as a result of the CAN Converter FIFO overflow error flag.
Invalid command: ?<Error Code>[CHK]<CR>
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: C<CR>
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 65
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.8 P0BBDSPAE[CHK]<CR>
Description: Set the parameter configuration and storage of the UART side.
Syntax: P0BBDSPCE[CHK]<CR>
P0 Command character
BB RS-232/RS-485/RS-422/USB Baud rate
D Data bit
0 = 5 bits Data formation
1 = 6 bits Data formation
2 = 7 bits Data formation
3 = 8 bits Data formation
S Stop bit (0=1 stop bit, 1=2 stop bits)
P Parity (0=None, 1=Odd, 2=Even)
C Checksum (0=No, 1=Yes)
E Error Response (0=No, 1=Yes);
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 66
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Code BB Description
Response:
Valid command: No response, and will automatically restart after writing the configuration
parameters of the UART
Invalid command: ?<Error Code><CR>
Note:
In order to communicate with the computer to receive error information, the user must
enable the "Error Response" function in the CAN converter software. In addition, in
firmware 2.X or earlier, the I-7565 only supports a baud rate of 921600 bps.
Example:
Command: P00B30000<CR>
Set RS-232/RS-485/RS-422/USB baud rate=115.2K, data bit=8, stop bit=1, none
parity, none checksum to the CAN converter and no error return, the CAN converter
will reboot and use these parameters
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 67
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.9 P1B [CHK]<CR>
Description: Change the CAN configuration of CAN Converter module. Module will
be rebooted after saving these parameters into EEPROM successfully.
Syntax: P1B[CHK]<CR>
P1 Command character
B CAN Baud rate
Code B Description
Response:
Valid command: No response, and will write CAN configuration parameters to the
module and restart automatically
Invalid command: ?<Error Code><CR>
Note:
In order to communicate with the computer to receive error information, the user must
enable the "Error Response" function in the CAN converter software. This command does
not support user-defined CAN baud rate.
Example:
Command: P14<CR>
Set the CAN baud rate=125K, and then reboot the module.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 68
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.10 P2BBDSPAE[CHK]<CR>
Description: Set the parameter configuration of the UART side such as RS -
232/RS-485/RS-422/USB, and these parameters will not be saved. When the
module is restarted, these parameters will be restored to the previous settings.
Syntax: P2BBDSPCE[CHK]<CR>
P2 Command character
BB RS-232/RS-485/RS-422/USB Baud rate
D Data bit
0 = 5 bits Data formation
1 = 6 bits Data formation
2 = 7 bits Data formation
3 = 8 bits Data formation
S Stop bit (0=1 stop bit, 1=2 stop bits)
P Parity (0=None, 1=Odd, 2=Even)
C Checksum (0=No, 1=Yes)
E Error Response (0=No, 1=Yes)
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 69
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Code BB Description
Response:
Valid command: No response, and will change and not save the configuration
parameters on the UART side
Invalid command: ?<Error Code><CR>
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: P20B30000<CR>
Set RS-232/RS-485/RS-422/USB baud rate=115.2K, data bit=8, stop bit=1, none
parity, none checksum to the CAN converter module and no error return. When the
module is rebooted, the parameters are restored to previous settings.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 70
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.11 P3SBCCCCCCCCMMMMMMMM [CHK]<CR>
Description: Set the parameter configuration of the CAN side, but do not store it
Syntax: P3SBCCCCCCCCMMMMMMMM[CHK]<CR>
P3 Command character
S CAN Specification 2.0A/2.0B
B CAN Baud rate
CCCCCCCC CAN ID filter acceptance code (ACC)
MMMMMMM CAN ID filter acceptance mask (ACM)
Response:
Valid command: No response, and the CAN bus configuration parameters will be
changed.
Invalid command: ?<Error Code><CR>
Note:
In order to communicate with the computer to receive error information, the user must
enable the "Error Response" function in the CAN converter software. For the CAN ID filter
setting, please refer to "Set CAN ID Filter" in Section 3.3.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 71
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Example:
Command: P3040000000000000000<CR>
Change CAN baud rate=125K, accept code=0x00000000, accept
mask=0x00000000. When the module is rebooted, the parameters are restored to
previous settings.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 72
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.12 RA[CHK]<CR>
Description: Restart the CAN converter module.
Syntax: RA[CHK]<CR>
RA Command character
Response:
Valid command: No response, and will reboot the CAN converter module.
Invalid command: ?<Error Code><CR>
Note:
In order to communicate with the computer to receive error information, the user
must enable the "Error Response" function in the CAN converter software.
Example:
Command: RA<CR>
When the CAN converter module receives this command and will reboot.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 73
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4.13 Error Code
If the CAN converter has enabled the "Error Response" function of the UART
setting in section 3.2, the CAN converter will reply error messages to the device or
computer via RS-232/RS-485/RS-422/USB. The meaning of the error code message as
below table:
Error
Description Possible causes & solutions
code
The data byte of the CAN message does not conform to the
Invalid CAN data length, for example:
2
length Error: t001512345<CR>
Correct: t00150102030405<CR>
4 Reserved None.
When the CAN converter wants to transfer the data from the UART side to the CAN
side, if the baud rate of the CAN is different from the baud rate of the CAN network, the
ON LED of the CAN converter will flash at a constant frequency, and the CAN converter
cannot send the any CAN message to the CAN network.
In addition, the user can use the command "S[CHK]<CR>" to check the status of
the CAN converter to confirm what is wrong. Generally speaking, the common problems
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 74
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
are as follows:
1. CAN connection problems.
2. terminal resistance problems.
3. problems with different CAN baud rates.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 75
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5. Appendix
This chapter attaches common problems and solutions to help users quickly to
check problems.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 76
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.1 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
resistor 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Ω (Ohm) terminator resistor is connected between
the CAN lines.
How to decide a cable type, cable length, and terminal resistor depends on the
baud rate in the CAN BUS network, please refer to the following table.
Cable
terminator
CAN baud rate Cable type resistance / Bus Length
resistor
meter
50k bit/s, 0.75~0.8mm2 150~300
70 mOhm 600~1000m
1000m 18AWG Ohm
100k bit/s, 0.5~0.6 mm2 150~300
< 60 mOhm 300~600m
500m 20AWG Ohm
500k bit/s, 0.34~0.6mm2
< 40 mOhm 127 Ohm 40~300m
100m 22AWG, 20AWG
1000k bit/s, 0.25~0.34mm2
< 40 mOhm 124 Ohm 0~40m
40m 23AWG, 22AWG
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 77
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.2 I-7565 Driver Installation Instructions
This chapter will describe how to install the driver for the I -7565 converter on
Windows XP, 2000, ME, 98 (NT not yet supported) operating platforms. Among them,
the driver can be downloaded from the Download Center of the I -7565 product
webpage. The product webpage as beolw: https://www.icpdas.com/en/product/I-7565-G
Next explains how to install the driver in Windows 2000, and this installation
process is applicable to other Windows operating systems, and the installation steps
are as below.
1. Please turn on your computer to the Windows operating platform first.
2. Connect the USB port of the I-7565 to the USB port of the computer.
3. When Windows detects the USB device will appear a screen to promote you to install
the device driver, and then click Next to continue the installation.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 78
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4. The "Install Hardware Device Drivers" window will appear on the screen. After
selecting "Search for a suitable driver for my device [recommended]", click "Next" to
search for the most suitable driver for the new device.
5. After selecting the "Specify a location" option, click "Next" to start to search.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 79
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
6. For the file path, please select this folder win2k_xp, and this folder will be in the
folder of the driver you downloaded, and then click "OK" to start to search.
7. After Windows has found the correct driver, click "Next" to start to install the driver.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 80
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
8. Windows will install the USB-to-Serial driver, and notify that the installation is
complete after the installation is complete. At this time, please click "F inish" and re-
plug the USB cable.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 81
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.2.1 Verifying the installation
This chapter explains how to verify whether the I-7565 has been installed and
confirm the virtual COM port number assigned to the I-7565 by Windows.
Please connect the USB port of the I-7565 to the USB port of the computer, and
then perform the following steps:
1. Click “Start” on the Windows toolbar “Settings” “Control Panel”“System” and after the
system content window is displayed, click ”Hardware” “Device Manager”.
2. Double-click “Ports (COM & LPT)”, if the device has been installed, the information of “I-
756X Converter (COM8)” will be displayed in the device list. Among them, COM 8 is the
virtual COM port number assigned by the computer to the I-7565, and this number may be
different on each computer, please use the number assigned by the computer as the main
one.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 82
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.2.2 Remove the driver
The steps to remove the driver for the I-7565 as below:
1. Execute the removal program dremover98_2K.exe in the driver folder.
2. When you want to remove the utility, and the Uninstaller will prompt you click "OK" to
continue.
3. After the software has been removed, the program will prompt you to restart
Windows, please click "OK" to continue.
4. After successfully removing the driver software, Windows will display a dialog window
of "Remove driver successfully", please restart the computer.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 83
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.3 tM-7565 Driver Installation Instructions
This chapter will describe how to install the driver (x32, x64) of tM -7565 on
Windows XP, Windows 7, Windows 10 operating system. Among them, the driver can be
downloaded from the Download Center of the tM-7565 product webpage. The product
webpage as below: https://www.icpdas.com/en/product/tM-7565
Next will explain how to install the driver in Windows XP. The installation process is
applicable to other Windows operating systems, and the installation steps as below.
1. Please turn on your computer to the Windows operating platform first.
2. Click on the driver file and install the tM-7565 driver.
3. After clicking, the installation wizard will ask for the driver installation location. After
confirming the installation path, and click the "Next" button to proceed to the next
step.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 84
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4. In this step, you can choose whether to create a desktop shortcut. If you need to
create a desktop shortcut, please check the "Create a desktop shortcut" option, and
then click the "Next" button, if you do not need to create a desktop shortcut, please
click the "Next" button directly.
5. During the installation process, the following warning message will be displayed.
Please click the "Continue Anyway" button.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 85
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
6. After the driver installation is complete, please click the "finish" button.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 86
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.3.1 Installing the hardware
The hardware installation will install twice, once for the hardware driver and once
for the virtual COM port driver. The detailed steps as below:
1. Connect the USB port of the tM-7565 to the USB port of the computer.
2. After Windows detects the new USB device will appear a screen to promote you to
install the device driver. Please select "Yes, this time only" and click the "Next"
button.
3. Select "Install from a list or specific location [Advanced]" and click the "Next" button
to search for the most suitable driver for the new device.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 87
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4. Select “Don’t search. I will choose the driver to install” and click the “Next” button.
5. Select "ICPDAS tM-7565 USB-To-CAN Converter" and click the "Next" button.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 88
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
6. During the installation process will appear the following warning message, please
click the "Continue Anyway" button.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 89
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.3.2 Verifying the installation
This chapter explains how to verify whether the tM-7565 has been installed and
confirm the virtual COM port number assigned to the tM-7565 by Windows.
Please connect the USB port of the tM-7565 directly to the USB port of the
computer, and then perform the following steps:
1. Click “Start” on the Windows toolbar “Settings” “Control Panel” “System, and after
the system content window is displayed, click “Hardware” “Device Manager”.
2. Double-click “Ports (COM & LPT)”, if the device has been installed, the information of
“ICPDAS tM-7565 USB-To-CAN Converter (COM3)” will be displayed in the device list.
Among them, COM 3 is the virtual COM port number assigned by the computer to the I-
7565, and this number may be different on each computer, please use the number assigned
by the computer.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 90
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.3.3 Remove the driver
The steps to remove the driver for the tM-7565 as below:
1. "Control Panel" "Add Remover", and then click the "Remove" button.
2. After uninstalling the installer will appear a prompt window, and please click the "Yes" and
"Yes to All" buttons to remove the tM-7565 driver.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 91
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.4 Calculation of user-defined CAN baud rate
This chapter explains how to calculate the "user-defined CAN baud rate" when the
user uses an old version of the tool software (CAN Converter Utility) for setting, and the
calculation only support I-7530, 7530A and I-7565, but not for I-7530 (v2 version), I-
7530A (v2 version), I-7565 (v2 version), tM-7530, tM-7530A, tM-7565, I -7530-FT and I-
7530-FT (v2 version).
In addition, if the user uses the VxCAN Utility to set the us er-defined CAN baud
rate, please refer to the description in "User-defined CAN baud rate" in section 3.3, and
the VxCAN Utility can automatically calculate the CAN baud rate for the user, and then
the use clicks "Save All Setting" to write the CAN baud rat e into the module.
1. Clock Mode: This parameter is the clock of the MCU. Assuming that the CAN
baud rate is less than 12Kbps, the value of this parameter is 0, and the rest are
1.
2. Bit Timing 1:This parameter is the bit timing register 1 of the MCU, please refer
to Section 5.4.2.
3. Bit Timing 2:This parameter is the bit timing register 2 of the MCU, please refer
to Section 5.4.2.
4. Bit Timing 3:This parameter is the bit timing register 3 of the MCU, please refer
to Section 5.4.2.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 92
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.4.2 Parameter description
The Bit Timing register of MCU contains 6 kinds of parameters, namely BPR, SJW,
PRS, PHS2, PHS1 and SMP as below table:
In general, the SJW0, SJW1 of the register Bit Timing 2 and SMP of register Bit
Timing 3 are all 0, and the time width Tbit of one bit is composed of Tsyns, Tprs , Tphs1
and Tphs2. Among them, the time width can be divided to several time slices(TQ) base
on the system clock.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 93
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
The formula as below:
Number of Time Slices (TQ) = System Clock (Hz) / CAN Baud Rate (bps)
For example: when the system clock is 20MHz and the CAN baud rate is 40K bps,
the number of time slices (TQ) is 20(MHz) / 40(Kbps) = 500, that is to say that one bit of
the time width Tbit is divided into 500 time slices in the CAN converter, and these time
slices are allocated to Tsyns, Tprs, Tphs1 and Tphs2. Among them, Tsyns is defined to
one time slice, and the time slices of Tprs, Tphs1 and Tphs2 need to refer the number
be set of PRS, PHS1 and PHS2 in the Bit Timing register, the calculation method as
below.
T prs = (PRS + 1) * TQ
T phs1 = (PHS1 + 1) * TQ
T phs2 = (PHS2 + 1) * TQ
Therefore, the number of time slices Tbit of one bit can be expressed as below that
can be divided into (4 + PRS + PHS1 + PHS2) time slices.
T bit = T syns + T prs + T phs1 + T phs2
= 1 * TQ + (PRS + 1) * TQ + (PHS1 + 1) * TQ + (PHS2 +1) * TQ
= [1 + (PRS + 1) + (PHS1 + 1) + (PHS2 + 1)] * TQ
= (4 + PRS + PHS1 + PHS2) * TQ
However, since the maximum value that can be set for PRS, PHS1 and PHS2 is 3
bits (the value is 7), the number of time slices Tbit of one bit can only be divide d into 25
time slices at most that is 4 + 7 + 7 + 7 = 25. As mentioned above, when the number of
time slices Tbit of one bit needs to be divided into 500 time slices, the 500 time slices
need to be divided by a proportional value to be reduced first, and t hen allocate the
value to the PRS , PHS1 and PHS2. Among them, if the proportional value is
represented by (BRP+1), the representation of the time width Tbit of one bit will be
modified as below.
T bit / (BRP + 1) = (4 + PRS + PHS1 + PHS2) *TQ
T bit = (4 + PRS + PHS1 + PHS2) * (BRP+ 1) * TQ
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 94
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
In addition, when Tbit is fixed at 500, the maximum value of (4 + PRS + PHS1 +
PHS2) is limited to 25, and the maximum value of BRP in the register Bit Timing 1 i s 63,
so (4 + PRS + PHS1 + PHS2) will be in the range of 8~25, and (BRP + 1) will be in the
range of 20~62, that is to say, the range of BRP will be in the range of 19~61.
For example, when the system clock is 20MHz and the CAN baud rate is 40K bps,
the CAN converter is divided into 500 time slices (TQ) in a time width Tbit of one bit. If
(4 + PRS + PHS1 + When PHS2) is fixed to 20, the BRP value
T bit = 500 * TQ = (4 + PRS + PHS1 + PHS2) * (BRP + 1) * TQ
T bit = 500 / 20 = (BRP + 1) = 25
BRP = 24
In addition, because (4 + PRS + PHS1 + PHS2) is fixed at 20, the user can know
the time width of one bit that containe the number of time slices is Tbit = 4 + PRS +
PHS1 + PHS2 = 20, but now can't determine the values of these three parameters, so
necessary to calculate the values of these three parameters according to the
proportional value of the sample point as below.
The sample point is mean that the position of the proportion in a bit time width Tbit.
That is to say, if a bit time width Tbit is 0~100%, and the sampling point is 60 that mean
the posotion of sampling point is the 60% in a bit time width Tbit. The sampling point be
calculated as below:
Sample point = (T syns + T prs + T phs1 ) / T bit
= (T syns + T prs + T phs1 ) / (T syns + T prs + T phs1 + T phs2 )
= [1 * TQ + (PRS + 1) * TQ + (PHS1 + 1) * TQ] / TQ * (4 + PRS + PHS1 + PHS2)
= TQ * [1 + (PRS + 1) * TQ + (PHS1 + 1)] / TQ * (4 + PRS + PHS1 + PHS2)
= TQ * (3 + PRS + PHS1) / TQ * (4 + PRS + PHS1 + PHS2)
= (3 + PRS + PHS1) / (4 + PRS + PHS1 + PHS2)
If as mentioned above, the time width of one bit is Tbit = 4 + PRS + PHS1 + PHS2,
and the sum must be 20, when the sampling point is 60%, then
0.6 = (3 + PRS + PHS1) / (4 + PRS + PHS1 + PHS2)
(3 + PRS + PHS1) = 0.6 * 20 = 12
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 95
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Therefore, if PHS1 is 7, then PRS will be 2. Next, if PHS1 and PRS are brought into
the formula of (4 + PRS + PHS1 + PHS2) = 20, then PHS2 = 20 - 4 - 2 - 7 = 7.
That is to say, the user can calculate the value of BRP from the number of time
slices included in the time width of one bit, and calculate the values of PRS, PHS1 and
PHS2 from the sampling point.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 96
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.4.3 Example description
If the user want to use the user-defined CAN baud rate is 40K bps and the sampling
point is 60%, because the CAN baud rate is greater than 12Kbps, the clock mode needs
to be set to 1.
However, when Clock Mode is set to 1, the MCU will use X2 mode, which means
the system clock is 20MHz. In addition, if the MCU is in X1 mode, the system clock is
10MHz.
The following steps will guide the user to calculate the paramet ers of the Bit Timing
register.
1. Calculate the number of time slices (TQ) after division:
Number of time slices (TQ) = System clock (Hz) / CAN baud rate (bps)
= 20 M(Hz) /40 k(bps), where Hz is times/second and bps is bits/second
= 500 times/bit
2. Reduce the number of time slices. Because the number of time slices has a
limited range in the register, it is necessary to use the BRP value to reduce the
scale, as below figure and formula. Among them, as mentioned above, since the
number of time slices (4 + PRS + PHS1 + PHS2) of one bit is limited by the
maximum setting range of the register, the maximum value of (4 + PRS + PHS1
+ PHS2) is 25. At the same time, if considering the setting range of BRP in the
register, that is to say, the available range of (4 + PRS + PHS1 + PHS2) is 8~25,
so it can be known that the range of the value that can be set by (BRP+1) is
20~62, and the range of BRP values that can be set is 19~61.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 97
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
If we fix (4 + PRS + PHS1 + PHS2) to 20, the BRP value is:
Tbit / (BRP + 1) = (4 + PRS + PHS1 + PHS2) * TQ
500 / (BRP + 1) = 20
500 / 20 = (BRP + 1) = 25
BRP = 24
3. Find the values of PRS, PHS1 and PHS2 using the sampling points. If it is assumed
that the sampling point is 60%, and (4 + PRS + PHS1 + PHS2) in step 2 is fixed to
20, then:
取樣點的取樣比例 = (3 + PRS + PHS1) / (4+PRS+PHS1+PHS2)
60% = (3 + PRS + PHS1) / 20
12 = (3 + PRS + PHS1)
Among them, since the maximum value of PRS, PHS1, and PHS2 in the register is
7, if it is assumed that PHS1 is 7, it can be known that PRS is 2, as below formula.
12 = (3 + PRS + PHS1)
PRS = 12 - 3 - 7
PRS = 2
Next, since (4 + PRS + PHS1 + PHS2) is fixed at 20, it can be known that PHS2 is
7, as below formula.
(4 + PRS + PHS1 + PHS2) = 20
PHS2 = 20 - 4 - 2 – 7
PHS2 = 7
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 98
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
4. Generally, both SJW and SMP are set to 0. Among them, when SMP is 0, it will
be sampled once, and when SMP is 1, it will be sampled three times, and the
sampling time interval must be greater than 1/2 Tscl period, and the final result
is determined by a majority of three values.
Finally, according to the above calculations, the values of the three sets of Bit
Timing registers are as below.
The value of Bit Timing 1 register is 0x30
The value of Bit Timing 2 register is 0x04
The value of Bit Timing 3 register is 0x7E
In addition, after the user fills these parameters into the CAN Converter Utility,
please click the "Calculate" button to calculate the baud rate, and then click the
"Setting" button, the baud rate will be written to the CAN converter.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 99
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.5 CAN ID filter setting
The CAN converter can be set to filter the CAN messages of some CAN IDs, so
that these CAN messages will not be transmitted to the RS -232/485/422/USB port. If
the user want to enable this function need to adjust parameters such as acceptance
code (ACC) and acceptance mask (ACM).
ACC: CAN ID bits to be received.
ACM: CAN ID bits to be filtered.
In the ACC, when the bit is set to 1, it represents the CAN ID bit to be received. In
addition, in the ACM, when the bit is set to 1, it represents the CAN ID bit to be filtered.
The example as below:
(1) If want to receive all CAN messages can set to:
In CAN 2.0A:Acceptance Code:Ignorable
Acceptance Mask:000
(2) If only receiving CAN ID bits of "123" (hexadecimal) and filtering all other
messages can set to:
In CAN 2.0A:Acceptance Code:123 (001 0010 0011 bit)
Acceptance Mask:7FF (111 1111 1111 bit)
(3) If only get the CAN ID range from "100" to "13F" (hexadecimal), and filter out other
CAN messages can set to:
In CAN 2.0A:Acceptance Code:1XX (001 00XX XXXX bit) (X: Ignorable)
Acceptance Mask:7C0 (111 1100 0000 bit)
(4) The settings of CAN 2.0A and CAN 2.0B are the same, and the difference between
CAN 2.0A and CAN 2.0B is the bit length of CAN ID.
In CAN 2.0A: The CAN ID bit length is 11.
In CAN 2.0B: The CAN ID bit length is 29.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 100
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.6 Application of Pair Connection mode
The pair connection mode usually requires two identical sets of CAN converter
modules. For example, when two sets of I-7530s are set to pair connection mode, one
set of I-7530s will convert RS-232 commands into CAN messages and transmit them,
while the other set of I-7530s will transmit CAN messages to RS-232, and the setting of
each application will be explained as below.
Application 1:
This application is commonly used between two sets of devices with RS-232
interface. Because the distance between the devices is too far to use RS -232 to
connect directly, so the RS-232 interface is first converted into a CAN interface through
a CAN converter, and using the CAN interface to extend the communication distance,
and finally switch from the CAN interface to the RS-232 interface.
Setting:
In this application, the user needs to set up 2 sets of CAN converters, as shown in
the above I-7530 module #1 and module #2, and select "None" for the End Characters
of UART Commands. In addition, the setting of RS-232 parameters is the same as the
RS-232 parameters of the two devices.
Module #1 Module #2
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 101
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Communication description:
For example, if device 1 sends 7 bytes of data ""1234567"" to I-7530 module #1, I-
7530 module #1 then forwards it to I-7530 module #2, and finally I-7530 Module #2 will
send to the COM port of Device 2, and Device 2 will receive the data ""1234567"".
The CAN ID in the above picture needs the user to set a fixed CAN ID, and the
"Fixed CAN ID" parameter in the setting screen. If the CAN specification selected by the
user is CAN 2.0A and the CAN ID is 11-bit ID, the range is 000~7FF. If the CAN
specification selected by the user is CAN 2.0B and the CAN ID is 29 -bit ID, the range is
0000000~1FFFFFFF.
In addition, since a CAN message can only contain 8 bytes of data, if device 1
sends 9 bytes of data "123456789" to I-7530 module #1, I-7530 module #1 will divide
the 9 bytes into 2 CAN messages and forwarded to I-7530#2. Finally, I-7530 module #2
merges the 2 CAN messages back to "123456789" and forwards them to the COM port
of device 2. Therefore, device 2 will receive the data of "123456789".
Note: If the user uses 115200bps in the CAN RS-232 communication port, it is
recommended to configure the baud rate of the CAN side of the CAN converter
to be close to the same baud rate, such as 125Kbps. When you are using the
pair connection mode, the appropriate baud rate should be below 125Kbps.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 102
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
Application 2:
The structure of this application is same with Application 1, as shown below
figure, the difference is that "CR" is selected for the End Characters of UART
Commands.
Setting:
In this application, the user needs to set up 2 sets of CAN converters, as shown in
the above I-7530 module #1 and module #2, and select "CR" as the end character of
the UART command. In addition, the setting of RS-232 parameters RS-232 parameters
of the same 2 devices.
Module #1 Module #2
Communication description:
In this application, when device 1 sends RS-232 data to module #1, module #1 will
confirm whether the end character of the data is "CR", if it is "CR", it will transfer the
data to the module #2, and then Module #2 will send the data to Device 2. If it is not
"CR", this data will be ignored and not forwarded to Module #2.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 103
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]
5.7 COM port software
Users can use the common communication port (COM port) software to transmit
and receive the data of the CAN converter on the UART side, or use VxComm Utility of
ICP DAS to test. The information of VxComm Utility as below.
I-7530, I-7530A, I-7565, I-7530-FT, tM-7530, tM-7530A, tM-7565 User Manual Version 1.7 Page: 104
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved E-mail: [email protected]