ICP DAS USA I-7565M-HS User Manual

ICP DAS USA I-7565M-HS User Manual

Usb to can
Hide thumbs Also See for I-7565M-HS:

Advertisement

Quick Links

I-7565M-HS
User Manual
Version 1.0.0, Jun. 2018
Service and usage information for
I-7565M-HS
I-7565M-HS USB to CAN converter User Manual (version 1.0.0)
Page: 1
Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the I-7565M-HS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ICP DAS USA I-7565M-HS

  • Page 1 I-7565M-HS User Manual Version 1.0.0, Jun. 2018 Service and usage information for I-7565M-HS I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 1 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 2 If you have any problem, please feel free to contact us. You can count on us for quick response. Email: service@icpdas.com I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 2 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 3: Table Of Contents

    5.4. Init Functions .................... 39 5.4.1 CANHS_ScanDevice ................39 5.4.2 CANHS_ListDevice ................40 5.4.3 CANHS_OpenDevice ................41 I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 3 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 4 5.7.1 CANHS_GetCANRxMsgCount ............71 5.7.2 CANHS_ClearCANRxBuf ..............72 5.7.3 CANHS_ClearCANTxBuf ..............73 5.8. Other Functions ..................74 I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 4 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 5 7.2. Dimension ....................83 7.3. CAN Status Register ................. 84 7.4. CAN Error Counter Register ..............85 I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 5 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 6: Introduction

    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.
  • Page 7: Specifications

    -25 ~ 75 ℃ Operating Temp. -30 ~ 80 ℃ Storage Temp. Humidity 10 ~ 90% RH, non-condensing I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 7 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 8: Features

     Provide utility tool for users module setting and CAN Bus communication testing conveniently  Provide API library for user program development I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 8 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 9: Technical Data

    The following figure is the block diagram illustrating the functions of the I-7565M-HS. Figure 2-1 Block Diagram of I-7565M-HS 2.2. Appearance Figure 2-2 Appearance of I-7565M-HS I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 9 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 10: Pin Assignment

    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.
  • Page 11: Led Indicator

    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...
  • Page 12: Terminal Resistor Setup

    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.
  • Page 13 If your application is like the structure as follows, the terminal resistor is not needed. Figure 2-7 Application 2 I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 13 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 14: Wire Connection

    2.6. Wire Connection The wire connection of the I-7565M-HS is displayed below. Figure 2-8 Wire Connection for I-7565M-HS I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 14 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 15: Network Deployment

    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.
  • Page 16: Software Utility

    After installing the .Net Framework components, the software will continue to install the Utility tool. 1. Click the “Next” button to continue. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 16 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 17 2. Select the installation path of the I-7565-HS Utility and click the “Next” button. 3. Confirm the installation. Click the “Next” button to start the installation I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 17 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 18 4. Installation complete. Click the “Close” button to exit I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 18 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 19: Setting Up The I-7565M-Hs

    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.
  • Page 20: Start To Use I-7565-Hs Utility Tool

    Open the “Module Configuration” frame to set the CAN ID filter and configure the module parameters. [Help] About Utility tool information. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 20 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 21 C Status bar. After connecting with module, user can get the CAN port setting information on this field. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 21 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 22: Connect To The Module

    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.
  • Page 23 “Sample Point”: Sample point of CAN baud rate bit timing. Step4: Press the “Connect” buttom to start to use the above setting to send/receice CAN messages. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 23 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 24: Send Can Messages

    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.
  • Page 25 Whenever the CAN message is sent out once, the “SendCnt” value will be added by 1 except “HWSend” function. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 25 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 26: Receive Can Messages

    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.
  • Page 27 [2] 0.6536 (Sec) => The Maximum time interval of CAN message. [3] 0.4972 (Sec) => The Minimum time interval of CAN message. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 27 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 28: Configure Can Id Filter

    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.
  • Page 30 Delete a selected row CAN ID from Whitelist/Blacklist frame. <7> “Clear Table” button: Delete all CAN IDs from Whitelist/Blacklist frame. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 30 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 31: Configure Other Parameters

    Besides, “CAN1” / “CAN 2” tab is used to switch CAN1 / CAN2 command setting options.. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 31 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 32 Receive software buffer overrun CAN1/CAN2 transmit software buffer status Transmit software buffer underrun Transmit software buffer overrun 31:2 Reserved I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 32 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 33 [Reset Module] command: Reset the module. After sending the command, the “Module Configuration” frame will be closed. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 33 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 34: Api Library

    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.
  • Page 36: Api Library Function Table

    Get the firmware CAN whitelist ID filter value CANHS_GetCANWhiteListCANID in the assigned CAN port CANHS_SetCANBlackListCANID Set the firmware CAN blacklist ID filter value I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 36 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 37 Get the firmware version of the module CANHS_GetModuleStatus Get the hardware status of the module CANHS_ResetModule Reset module I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 37 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 38: Api Library Flow Diagram

    The following is the basic control flow chart of user’s CAN Bus program development by using CAN_HS API Library shown in following picture. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 38 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 39: Init Functions

    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.
  • Page 40: Canhs_Listdevice

    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);...
  • Page 41: Canhs_Opendevice

    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.
  • Page 42: Canhs_Closedevice

    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.
  • Page 43: Module Configuration Functions

    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.
  • Page 44: Canhs_Getcanopmode

    [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.
  • Page 45: Canhs_Setcanbaudsp

    [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.
  • Page 46: Canhs_Getcanbaudsp

    [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.
  • Page 47: Canhs_Getcanbaudspeep

    [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.
  • Page 48: Canhs_Setcanfilter

    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.
  • Page 49 [i_byMode] = 0 [i_dwMask] = 0x7F0 [i_dwArbitration] = 0x100 Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 49 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 50: Canhs_Getcanfilter

    [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...
  • Page 51: Canhs_Setcanwhitelistmode

    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);...
  • Page 52: Canhs_Getcanwhitelistmode

    1: enable whitelist of CAN message ID firmware filter function Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 52 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 53: Canhs_Setcanblacklistmode

    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);...
  • Page 54: Canhs_Getcanblacklistmode

    1: enable blacklist of CAN message ID firmware filter function Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 54 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 55: Canhs_Setcanwhitelistcanid

    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.
  • Page 56: Canhs_Getcanwhitelistcanid

    [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.
  • Page 57: Canhs_Setcanblacklistcanid

    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.
  • Page 58: Canhs_Getcanblacklistcanid

    [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.
  • Page 59: Canhs_Getcanstatus

    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);...
  • Page 60 Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 60 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 61: Canhs_Resetmodule

    5.5.17 CANHS_ResetModule This function is used to reset the I-7565M-HS device Syntax: Int CANHS_ResetModule(WORD i_wDevice_id); Int32 CANHS_ResetModule(UInt16 i_wDevice_id); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-HS device. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 61 Copyright ©...
  • Page 62: Communication Functions

    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);...
  • Page 63 [in/out] This point to an user defined eight bytes array buffer for CAN message data parameter Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 63 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 64: Canhs_Getcanrxmsg

    D4~D7  CAN Bus error counter in little-endian format (Please refer to appendix 7.4 for “CAN Error Counter” definition.) I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 64 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 65 The timestamp of the received/event message. Unit: micro second. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 65 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 66: Canhs_Setcanhwsendmode

    1: enable CAN message sending by using module hardware timer. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 66 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 67: Canhs_Getcanhwsendmode

    0: disable. 1: enable. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 67 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 68: Canhs_Setcanhwsendmsg

    2.0B mode  0x00000000 ~ 0x1FFFFFFF i_byRTR [in] CAN message RTR (Remote Transmission Request) parameter. 0: no RTR 1: RTR I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 68 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 69 Number of transmissions of the module hardware timer to send this CAN message. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 69 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 70: Canhs_Getcanrxframepersec

    The assigned CAN port of the I-7565M-HS device. *o_wRxFPS [out] The CAN Bus data flow in the assigned CAN port of the I-7565M-HS device. Return Value: Return 0 means success, others means failure. I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 70 Copyright ©...
  • Page 71: Software Buffer Functions

    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);...
  • Page 72: Canhs_Clearcanrxbuf

    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.
  • Page 73: Canhs_Clearcantxbuf

    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.
  • Page 74: Other Functions

    Value 1000000 (in decimal)  CAN_HS library version: v1.0.0.0 Value 1000113 (in decimal)  CAN_HS library version: v1.0.1.13 I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 74 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 75: Canhs_Getfwver

    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.
  • Page 76: Canhs_Getmodulestatus

    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.
  • Page 77: Return Codes

    No data in CAN received buffer 0x10103 CAN transmitted buffer overflow 0x10104 Exceed maximum supported CAN filter IDs I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 77 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 78: Firmware Upgrade

    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.
  • Page 80 Step 5: Select USB port and the necessary USB Disk of PC. Step 6: Press the the “Browser…” button and select the firmware file (*.fw). I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 80 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 81 Step 9: Replug the USB cable to reboot the module and press the “Exit” button to exit the “Firmware Update Tool” I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 81 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 82: Appendix

    This chapter provides revision history information to this document. The table below shows the revision history. Revision Date Description 1.0.0 Jun. 2018 Initial issue I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 82 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 83: Dimension

    7.2. Dimension I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 83 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 84: Can Status Register

    The CAN module is not in busoff state. The CAN controller is in busoff state. 31:8 Reserved I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 84 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...
  • Page 85: Can Error Counter Register

    The receive counter has reached the error passive level as defined in the CAN2.0 specification. 31:16 Reserved I-7565M-HS USB to CAN converter User Manual (version 1.0.0) Page: 85 Copyright © 2018 ICP DAS Co., Ltd. All Rights Reserved. E-mail: service@icpdas.com...

Table of Contents