CAN/CAN FD frame. (10 kbps to 1000 kbps for CAN arbitration phase and 100 kbps to 3000 kbps for CAN FD data phase). When connecting I-7565M-FD to PC, PC will load the relevant device driver automatically (hot plug & play). Therefore, users can make data collection and processing of CAN Bus network easier and quicker by applying I-7565M-FD.
2.3. Pin Assignment The pin assignments of 8-pin terminal block connector of I-7565M-FD 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-FD. 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-FD...
Figure 2.4 CAN Bus network topology Each I-7565M-FD 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-FD, 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-FD device. Step 1:Connect the PC available USB port with the USB port of the I-7565M-FD 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-FD 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-FD module.
4.3.2 Send CAN/CAN FD messages By using the Utiltiy tool, user can send CAN/CAN FD meesages to CAN Bus via I-7565M-FD devices. If the connection to I-7565M-FD is successful, then the screen for CAN Bus communication function will show up like below picture.
4.3.3 Receive CAN/CAN FD messages By using the Utiltiy tool, user review the received CAN meesages on the CAN Bus via I-7565M-FD devices. If the connection to I-7565M-FD 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-FD Utiltiy tool, user can configure the CAN ID filter of the module. After clicking the “Module Confiuration” item, user can set CAN Id filter setting. The “CAN1” / “CAN 2” tab is used to switch CAN1 / CAN2 filter setting screen. The “Reject Remote Frame”...
5. API Library Users can develop own CAN Bus program by I-7565M-FD API library, CAN_FD.dll, quickly and easily. The CAN_FD library and demos can be downloaded from the ICP DAS web site. The library is located at: http://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/I-7565M-FD/software/li brary/windows The demos are located at: http://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/I-7565M-FD/software/d...
Page 35
These functions are used to scan and open/close the valid and necessary I-7565M-FD device. [Module Configuration Function] These functions are used to set/get the parameters or information of I-7565M-FD. [Communication Function] These functions are used to send/receive CAN/CAN FD messages through...
5.4. Init Functions These functions are used to scan and open/close the valid and necessary I-7565M-FD device. 5.4.1 CANFD_ScanDevice This function is used to scan all the valid I-7565M-FD devices on PC side. Syntax: int CANFD_ScanDevice(void); Int32 CANFD_ScanDevice(); Parameter: None.
5.4.2 CANFD_ListDevice The API library maximum support eight I-7565M-FD devices in the same PC. This function is used to list all the scanned I-7565M-FD devices’ PID (product ID) and BID (board ID). Syntax: BYTE CANFD_ListDevice(WORD* o_wPID, DWORD* o_dwBID); Byte CANFD_ListDevice(UInt16[] o_wPID, UInt32[] o_dwBID);...
5.4.3 CANFD_OpenDevice This function is used to open the necessary I-7565M-FD 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 CANFD_CloseDevice This function is used to close the I-7565M-FD device. After the device closed, all the resoruces the API Library used will be released. Syntax: int CANFD_CloseDevice(WORD i_wDevice_id); Int32 CANFD_CloseDevice(UInt16 i_wDevice_id); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-FD device.
These functions are used to set/get the parameters or information of I-7565M-FD. 5.5.1 CANFD_SetCANOPMode This function is used to enable/disable, set normal or bus monitoring mode and CAN FD ISO/Non-ISO mode in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_SetCANOPMode(WORD i_wDevice_id, BYTE i_byCANPort, WORD i_wEnable, WORD i_wBusMode, WORD i_wISOMode);...
5.5.2 CANFD_GetCANOPMode This function is used to get the enable/disable setting, normal or bus monitoring mode and CAN FD ISO/Non-ISO mode in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_GetCANOPMode(WORD i_wDevice_id, BYTE i_byCANPort, WORD* o_wEnable, WORD* o_wBusMode, WORD* o_wISOMode);...
[in] The bit rate configured for the CAN and CAN FD arbitration phase in the assigned CAN port of the I-7565M-FD device. Unit: bps (bit per second). Valid Range: 10000 ~ 1000000 (10 kbps ~ 1000 kbps). i_dwDataBR [in] The bit rate configured for the CAN FD data phase in the assigned CAN port of the I-7565M-FD device.
[out] The sample point of CAN bit rate and CAN FD arbitration phase bit rate in the assigned CAN port of the I-7565M-FD device. Unit: 0.01%, 8750 means I-7565M-FD USB to CAN/CAN FD converter User Manual (version 1.0.0) Page: 47...
5.5.5 CANFD_SetCANGlobalFilter This function is used to set CAN filter function of “reject remote standard or extended CAN ID frame” in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_SetCANGlobalFilter(WORD i_wDevice_id, BYTE i_byCANPort, BYTE i_byRejectRFS, BYTE i_byRejectRFE); Int32 CANFD_SetCANGlobalFilter(UInt16 i_wDevice_id, Byte i_byCANPort, Byte i_byRejectRFS, Byte i_byRejectRFE);...
This function is used to get CAN filter function of “reject remote standard or extended CAN ID frame” and “standard and extended CAN/CAN FD ID lists size” parameters in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_GetCANGlobalFilter(WORD i_wDevice_id, BYTE i_byCANPort, BYTE *o_byRejectRFS, BYTE *o_byRejectRFE, WORD* o_wSTDFIDListSize, WORD* o_wEXTFIDListSize);...
Page 51
[out] The CAN filter function of “standard CAN ID list size” parameter in the assigned CAN port of the I-7565M-FD device. This parameter is used for valid CAN ID filter ranges on CANFD_GetCANSTDIDFilter API function. Valid Range: 0 ~ 128.
*i_wSTDFID1, *i_wSTDFID2 [in/out] This point to arrays of the elements of standard CAN/CAN FD ID filter ranges in the assigned CAN port of the I-7565M-FD device. Valid used size of the arrays are depended by the “i_wSTDFIDListSize” parameter. The contents of each elements are defined as below:...
*o_wSTDFID1, *o_wSTDFID2 [in/out] This point to arrays of the elements of standard CAN ID filter ranges in the assigned CAN port of the I-7565M-FD device. Each array must reserve space for saving maximun 128 elements of CAN/CAN FD standard ID.Valid used size of the arrays are depended by the “o_wSTDFIDListSize”...
5.5.9 CANFD_SetCANEXTIDFilter This function is used to set CAN filter function of “extended CAN ID list size” and “extended CAN ID ranges” parameters in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_SetCANEXTIDFilter(WORD i_wDevice_id, BYTE i_byCANPort, WORD i_wEXTFIDListSize, DWORD* i_dwEXTFID1, DWORD* i_dwEXTFID2);...
*o_wEXTFID1, *o_wEXTFID2 [in/out] This point to arrays of the elements of extended CAN ID filter ranges in the assigned CAN port of the I-7565M-FD device. Each array must reserve space for saving maximun 64 elements of CAN/CAN FD extended ID.Valid used size of the arrays are depended by the “o_wEXTFIDListSize”...
5.5.11 CANFD_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-FD device. Syntax: int CANFD_GetCANStatus(WORD i_wDevice_id, BYTE i_byCANPort, DWORD *o_dwCANStatus, DWORD *o_dwErrCnt, DWORD *o_dwBufStatus);...
I-7565M-FD 5.6.1 CANFD_SetCANTxMsg This function is used to send a CAN/CAN FD message to the software transmitted buffer of the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_SetCANTxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE i_byMode, DWORD i_dwID, BYTE i_byRTR, BYTE i_byFDF, BYTE i_byDlen, BYTE *i_byData);...
5.6.2 CANFD_GetCANRxMsg This function is used to get a CAN/CAN FD message from the software received buffer of the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_GetCANRxMsg(WORD i_wDevice_id, BYTE i_byCANPort, BYTE* o_byType, BYTE* o_byMode, DWORD* o_dwID, BYTE* o_byRTR, BYTE* o_byFDF, BYTE* o_byDlen, BYTE *o_byData, DWORD *o_dw_TimeStamp_s, DWORD *o_dw_TimeStamp_us);...
CAN_FD library. 5.7.1 CANFD_GetCANRxMsgCount This function is used to get the count of received CAN/CAN FD messages in the software received buffer in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_GetCANRxMsgCount(WORD i_wDevice_id, BYTE i_byCANPort, DWORD *o_dwCount);...
5.7.2 CANFD_ClearCANRxBuf This function is used to clear all the CAN/CAN FD messages in the software received buffer in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_ClearCANRxBuf(WORD i_wDevice_id, BYTE i_byCANPort); Int32 CANFD_ClearCANRxBuf(UInt16 i_wDevice_id, Byte i_byCANPort); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-FD device.
5.7.3 CANFD_ClearCANTxBuf This function is used to clear all the CAN/CAN FD messages in the software transmitted buffer in the assigned CAN port of the I-7565M-FD device. Syntax: int CANFD_ClearCANTxBuf(WORD i_wDevice_id, BYTE i_byCANPort); Int32 CANFD_ClearCANTxBuf(UInt16 i_wDevice_id, Byte i_byCANPort); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-FD device.
5.8.2 CANFD_GetFwVer This function is used to get the firmware version of the I-7565M-FD device Syntax: Int CANFD_GetFwVer(WORD i_wDevice_id, WORD* o_wFwVer); Int32 CANFD_GetFwVer(UInt16 i_wDevice_id, out UInt16 o_wFwVer); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-FD device. *o_wFwVer [out] The firmware version of the I-7565M-FD device.
5.8.3 CANFD_SetSN This function is used to set the BID (board ID) of the I-7565M-FD device Syntax: Int CANFD_SetSN(WORD i_wDevice_id, DWORD i_dwSN) Int32 CANFD_SetSN(UInt16 i_wDevice_id, UInt32 i_dwSN); Parameter: i_wDevice_id [in] The assigned device ID of the I-7565M-FD device. i_dwSN [in] The BID (board ID) of the I-7565M-FD device.
Please refer to the following steps to upgrade the firmware of module Step 1: Set the ‘Init.’ dip switch of the I-7565M-FD 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 77
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-FD 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-FD and is the answer not in the manual?
Questions and answers