1. Introduction I-7565M-HS is a high speed USB to CAN converter with two CAN channels. It improves the transformation speed of other I-7565 series, and allows receiving max. 15000 standard 2.0A CAN frames per second. I-7565M-HS support CAN2.0A/2.0B protocol and different baud rates from 10 kbps to 1000 kbps. The important feature of I-7565M-HS is to support the user-defined baud rate function no matter what the baud rate is.
2.3. Pin Assignment The pin assignments of 8-pin terminal block connector of I-7565M-HS is shown in the following tables. Table 2-1 Pin Assignment Pin No Name Description CAN_GND CAN ground of CAN1 port CAN_L CAN_Low bus line of CAN1 port.
2.4. LED Indicator There are 6 LEDs on the I-7565M-HS. One for power indication, one for hardware status indication and four for CAN Bus indication. The LED assignment and description are shown as follows. Figure 2-3 LED Assignment of I-7565M-HS...
Figure 2.4 CAN Bus network topology Each I-7565M-HS includes one build-in 120Ω terminal resistor for CAN1/CAN2 ports, users can decide if it is enabled or not. The DIP switch for terminal resistor is under the top side.
3. Network Deployment 3.1. Driving Capability Before introducing the driving capability of the I-7565M-HS, some characteristics of copper cable must be assumed. The AC parameters are 120Ω impedance and ms/line delay, and the DC parameter follows the table show below.
After installing the utility tool, please follow the following steps to set up the communication between the Utility and the I-7565M-HS device. Step 1:Connect the PC available USB port with the USB port of the I-7565M-HS device. Users can find the communication cable (CA-USB15) in the product box.
4.3.1 Connect to the module When executing the Utility, the tool will try to scan all the necessary I-7565M-HS modules and list all scanned module information on “Module Name” location of the Utility “Connect” frame. User can re-connect to re-scan the newer inserted I-7565M-HS module.
4.3.2 Send CAN messages By using the Utiltiy tool, user can send CAN meesages to CAN Bus via I-7565M-HS devices. If the connection to I-7565M-HS is successful, then the screen for CAN Bus communication function will show up like below picture.
4.3.3 Receive CAN messages By using the Utiltiy tool, user review the received CAN meesages on the CAN Bus via I-7565M-HS devices. If the connection to I-7565M-HS is successful, then the screen for CAN Bus communication function will show up like below picture.
4.3.4 Configure CAN ID Filter By using the I-7565M-HS Utiltiy tool, user can configure the CAN ID filter of the module. After clicking the “Module Confiuration” item, user can set accepted CAN IDs on the “Whitelist” frame and unaccepted CAN IDs on the “Blacklist” frame in the “CAN Filter Setting”...
Page 29
<2> “Get CAN Whitelist IDs/Get CAN Blacklist IDs” button: Get all the CAN Whitelist/Blacklist IDs setting from the I-7565M-HS module. <3> “Set CAN Whitelist IDs/Set CAN Blacklist IDs” button: Set the CAN Whitelist/Blacklist IDs setting on Whitelist/Blacklist frame into the I-7565M-HS module.
5. API Library Users can develop own CAN Bus program by I-7565M-HS API library, CAN_HS.dll, quickly and easily. The CAN_HS library and demos can be downloaded from the ICP DAS web site. The library is located at: CD:\can\converter\i-7565m-hs\software\library ftp://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/i-7565m-hs/software/libr The demos are located at: CD:\can\converter\i-7565m-hs\software\demos ftp://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/i-7565m-hs/software/de...
Page 35
These functions are used to send/receive CAN messages through I-7565M-HS [Softeware Function] All the transmitted/received CAN messages will be saved in software buffer provided by CAN_HS library first. These related software functions are used to operate the software buffer of CAN_HS library.
5.4. Init Functions These functions are used to scan and open/close the valid and necessary I-7565M-HS device. 5.4.1 CANHS_ScanDevice This function is used to scan all the valid I-7565M-HS devices on PC side. Syntax: int CANHS_ScanDevice(void); Int32 CANHS_ScanDevice(); Parameter: None.
5.4.2 CANHS_ListDevice The API library maximum support eight I-7565M-HS devices in the same PC. This function is used to list all the scanned I-7565M-HS devices’ PID (product ID) and BID (board ID). Syntax: BYTE CANHS_ListDevice(WORD* o_wPID, DWORD* o_dwBID); Byte CANHS_ListDevice(UInt16[] o_wPID, UInt32[] o_dwBID);...
5.4.3 CANHS_OpenDevice This function is used to open the necessary I-7565M-HS device. After using the pid and bid to open the device, users can get a device ID and can use this ID with “Communication” functions to send/receive CAN messages via device ID.
5.4.4 CANHS_CloseDevice This function is used to close the I-7565M-HS device. After the device closed, all the resoruces the API Library used will be released. Syntax: int CANHS_CloseDevice(WORD i_wDevice_id); Int32 CANHS_CloseDevice(UInt16 i_wDevice_id); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device.
Enable/disable the assigned CAN port of the I-7565M-HS device. 0: disable, 1: enable. i_wMode [in] Set operating mode of the assigned CAN port of the I-7565M-HS device to normal mode or silent mode. 0: normal mode, 1: silent mode. Return Value: Return 0 means success, others means failure.
[in] The assigned CAN port of the I-7565M-HS device. *o_wEnable [out] Enable or disable the assigned CAN port of the I-7565M-HS device. 0: disable, 1: enable. *o_wMode [out] Normal or silent operating mode of the assigned CAN port of the I-7565M-HS device.
[in] The assigned CAN port of the I-7565M-HS device. i_dwBR [in] The CAN Bus baud rate in the assigned CAN port of the I-7565M-HS device. Unit: bps (bit per second), 1000000 means 1000000 bps. i_dwSP [in] The sample point of CAN baud rate bit timing in the assigned CAN port of the I-7565M-HS device.
[in] The assigned CAN port of the I-7565M-HS device. *o_dwBR [out] The CAN Bus baud rate in the assigned CAN port of the I-7565M-HS device. Uint: bps (bit per second), 1000000 means 1000000 bps. *o_dwSP [out] The sample point of CAN baud rate bit timing in the assigned CAN port of the I-7565M-HS device.
[in] The assigned CAN port of the I-7565M-HS device. *o_dwBR [out] The CAN Bus baud rate in the assigned CAN port of the I-7565M-HS device’s EEPROM. Uint: bps (bit per second), 1000000 means 1000000 bps. *o_dwSP [out] The sample point of CAN baud rate bit timing in the assigned CAN port of the I-7565M-HS device’s EEPROM.
The assigned CAN port of the I-7565M-HS device. i_byMode [in] Mode of CAN ID, can be set to 2.0A (11-bit CAN ID), and 2.0B (29-bit CAN ID) in the assigned CAN port of the I-7565M-HS device. 0: 2.0A (11-bit CAN ID) 1: 2.0B (29-bit CAN ID) i_dwMask [in] CAN ID Mask bits.
[in] The assigned CAN port of the I-7565M-HS device. *o_byMode [in] Mode of CAN ID in the assigned CAN port of the I-7565M-HS device. 0: 2.0A (11-bit CAN ID) 1: 2.0B (29-bit CAN ID) *o_dwMask [out] CAN ID Mask bits. Bit value of 0 mean does not care the bit of...
This function is used to enable or disable the whitelist of CAN message ID firmware filter function in the assigned CAN port of the I-7565M-HS device. Enable this function wil let the I-7565M-HS device to accept only the CAN message IDs in the whitelist table. Syntax: int CANHS_SetCANWhiteListMode(WORD i_wDevice_id, BYTE i_byCANPort, BYTE i_byMode);...
This function is used to enable or disable the blacklist of CAN message ID firmware filter function in the assigned CAN port of the I-7565M-HS device. Enable this function will let the I-7565M-HS device to reject all the CAN message IDs in the blacklist table. Syntax: int CANHS_SetCANBlackListMode(WORD i_wDevice_id, BYTE i_byCANPort, BYTE i_byMode);...
This function is used to set CAN IDs to whitelist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device. Setting the CAN message ID to the whitelist talbe means these IDs can be accepted by the firmware CAN ID filter of the I-7565M-HS device if the whitelist of CAN ID filter mode is enabled.
[out] The amount of the CAN message IDs in the whitelist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device. *o_dwCID [in/out] This point to an user defined CAN ID array buffer for saving the CAN message IDs that are in the whitelist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device.
This function is used to set CAN IDs to blacklist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device. Setting the CAN message ID to the blacklist talbe means these IDs will be rejected by the firmware CAN ID filter of the I-7565M-HS device if the blacklist of CAN ID filter mode is enabled.
[out] The amount of the CAN message IDs in the blacklist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device. *o_dwCID [in/out] This point to an user defined CAN ID array buffer for saving the CAN message IDs that are in the blacklist table of CAN message ID firmware filter in the assigned CAN port of the I-7565M-HS device.
5.5.16 CANHS_GetCANStatus This function is used to get CAN status, CAN Bus transmitted/received error counter and software buffer status in the assigned CAN port of the I-7565M-HS device. Syntax: int CANHS_GetCANStatus(WORD i_wDevice_id, BYTE i_byCANPort, DWORD *o_dwCANStatus, DWORD *o_dwErrCnt, DWORD *o_dwBufStatus);...
5.6. Communication Functions These functions are used to send/receive CAN messages through I-7565M-HS 5.6.1 CANHS_SetCANTxMsg This function is used to send a CAN message to the software transmitted buffer of the assigned CAN port of the I-7565M-HS device. Syntax: int CANHS_SetCANTxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE i_byMode, DWORD i_dwID, BYTE i_byRTR, BYTE i_byDlen, BYTE *i_byData);...
CAN_HS library 5.7.1 CANHS_GetCANRxMsgCount This function is used to get the count of received CAN messages in the software received buffer in the assigned CAN port of the I-7565M-HS device. Syntax: int CANHS_GetCANRxMsgCount(WORD i_wDevice_id, BYTE i_byCANPort, DWORD *o_dwCount);...
5.7.2 CANHS_ClearCANRxBuf This function is used to clear all the CAN messages in the software received buffer in the assigned CAN port of the I-7565M-HS device. Syntax: int CANHS_ClearCANRxBuf(WORD i_wDevice_id, BYTE i_byCANPort); Int32 CANHS_ClearCANRxBuf(UInt16 i_wDevice_id, Byte i_byCANPort); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device.
5.7.3 CANHS_ClearCANTxBuf This function is used to clear all the CAN messages in the software transmitted buffer in the assigned CAN port of the I-7565M-HS device. Syntax: int CANHS_ClearCANTxBuf(WORD i_wDevice_id, BYTE i_byCANPort); Int32 CANHS_ClearCANTxBuf(UInt16 i_wDevice_id, Byte i_byCANPort); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device.
5.8.2 CANHS_GetFwVer This function is used to get the firmware version of the I-7565M-HS device Syntax: Int CANHS_GetFwVer(WORD i_wDevice_id, WORD* o_wFwVer); Int32 CANHS_GetFwVer(UInt16 i_wDevice_id, out UInt16 o_wFwVer); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device. *o_wFwVer [out] The firmware version of the I-7565M-HS device.
5.8.3 CANHS_GetModuleStatus This function is used to get the hardware status of the I-7565M-HS device Syntax: Int CANHS_GetModuleStatus(WORD i_wDevice_id, DWORD* o_dwStatus); Int32 CANHS_GetModuleStatus(UInt16 i_wDevice_id, out UInt32 o_dwStatus); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device. * o_dwStatus [out] The hardware status of the I-7565M-HS device.
Please refer to the following steps to upgrade the firmware of module Step 1: Set the ‘Init.’ dip switch of the I-7565M-HS to ‘ON’ and connect the PC available USB port with the USB port of the module. Users can find the communication cable (CA-USB15) in the product box.
Page 79
Power, MS, CAN1_ST, CAN2_ST, CAN2, CAN1 LEDs of the module will scroll to flash per 200 milliseconds and users can upgrade the firmware of the I-7565M-HS module via USB and the module will become a “USB Mass Storage Device” and also shows a folder like following picture automatically.
Need help?
Do you have a question about the I-7565M-HS and is the answer not in the manual?
Questions and answers