ICP DAS USA I-7565-H1 User Manual

ICP DAS USA I-7565-H1 User Manual

High performance usb/can converter
Table of Contents

Advertisement

High Performance USB/CAN Converter
Warranty
All products manufactured by ICP DAS are under warranty regarding
defective materials for a period of one year from the date of delivery to the
original purchaser.
Warning
ICP DAS assumes no liability for damages 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, or for any infringements of patents or other rights of third
parties resulting from its use.
Copyright
Copyright 2009 by ICP DAS. All rights are reserved.
Trademark
The names used for identification only may be registered trademarks
of their respective companies.
I-7565-H1/H2 High Performance USB/CAN Converter User's Manual (Ver 1.7, Aug/2011) ------------- 1
I-7565-H1 / I-7565-H2
User's Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Subscribe to Our Youtube Channel

Summary of Contents for ICP DAS USA I-7565-H1

  • Page 1 Copyright Copyright 2009 by ICP DAS. All rights are reserved. Trademark The names used for identification only may be registered trademarks of their respective companies. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 1...
  • Page 2: Table Of Contents

    API Library Function Table ............... 44 Flow Chart for Users’ Program Development by Using API ..... 46 Init Function ..................47 5.4.1 VCI_OpenCAN................47 5.4.2 VCI_CloseCAN ................49 Module Config Function ..............50 I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 2...
  • Page 3 The PC Rebooting Issue ..............87 The Max Data Transfer Rate (fps) Issue .......... 87 The Data Loss Issue ................ 87 The Module Number Applied to One PC Issue ........ 88 I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 3...
  • Page 4 The Supported CAN Filter-ID Number Issue........89 7.10 Other Issue ..................90 7.11 Windows 7 Issues ................90 7.12 “Could not set comm state“ Error Message Issue ......92 8. History of Version ................94 I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 4...
  • Page 5: Introduction

    CAN bus communication performance than I-7565. Both I-7565-H1 and I-7565-H2 support CAN2.0A/2.0B protocol and different baud rates from 5 Kbps to 1 Mbps. The important feature of I-7565-H1/H2 is to support the user-defined baud rate function no matter what the baud rate is.
  • Page 6: Features

    • Max data flow for CAN channel: 3000 fps ( depends on users’ PC hardware performance ) • The CAN buffer is 256 data frames for I-7565-H1 and 128 data frames in each CAN port for I-7565-H2. • Watchdog inside •...
  • Page 7 • Users can develop own program by API library quickly and easily. [ Application: ] • Factory Automation; • Building Automation; • Home Automation; • Control system; • Monitor system; • Vehicle Automation; I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 7...
  • Page 8: Hardware

    Figure 2-2 is a block diagram illustrating the functions on the I-7565- H1/H2 module. It provides the 3000Vrms Isolation in the CAN interface site. Figure 2-2: Block diagram of I-7565-H1 / I-7565-H2 I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 8...
  • Page 9: Pin Assignment Of Can Port

    Figure 2-3: Pin Assignment on I-7565-H2 Hardware Connection The pin assignment of the CAN port on the I-7565-H1 (DB9 male) defined in both the CANopen DS102 profile and in appendix C of the DeviceNet specifications. It is the standard pin assignment for CAN. The hardware connection between device and I-7565-H1/H2 is like Figure 2-4.
  • Page 10 Figure 2-4: CAN Hardware Wire Connection I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 10...
  • Page 11: Terminator Resistor Settings

    Therefore, the I-7565-H1/H2 module supplies a jumper for users to active the terminal resistor or not. If users want to use this terminal resistor, please open the I-7565-H1/H2 cover and use the JP3 for I-7565-H1 / JP3, JP4 for I-7565-H2 to activate the 120 terminal resistor built in the module, Ω...
  • Page 12: Init / Normal Dip-Switch

    Init / Normal Dip-switch On the back of the I-7565-H1/H2 module, there is a dip-switch used for firmware operation or firmware updating of the module. The following steps show how to use this dip-switch. 2.5.1 Firmware Update Mode Please set the dip-switch to the “Init” (Initial) position like Figure 2-9.
  • Page 13: Firmware Operation Mode

    Figure 2-12 and turn the power off then on again so that the I- 7565-H1/H2 can run in the operation mode. In this mode, users can send / receive CAN messages via PC USB port. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 13...
  • Page 14 Figure 2-12: Normal Position of Dip-Switch I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 14...
  • Page 15: Led Indication

    LEDs shows as Figure 2-12. (1) PWR LED : It is used to help users to check whether the I-7565-H1/H2 is standby. If the module is working in “firmware operation” mode, the PWR LED is always turned on.
  • Page 16: Cable Selection

    How to decide a cable type, cable length, and terminator depends on the baud rate in the CAN bus network, please refer to the following table 3. Figure 2-14: Un-shielded Twisted Pair (UTP) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 16...
  • Page 17 (heavier) the wire, the lower the number. For example: a 24AWG wire is thicker/heavier than a 26AWG wire. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 17...
  • Page 18: Driver Installation

    3.1 Install I-7565-H1/H2 Driver by Auto [ Step - 1 ] Plug in the I-7565-H1 or I-7565-H2 to PC first and Windows will detect the new device and shows the “Found New Hardware Wizard” screen prompting you to install the driver for the detected USB Device. Please click “Cancel”...
  • Page 19: Install I-7565-H1/H2 Driver By Manual

    3.2 Install I-7565-H1/H2 Driver by Manual [ Step - 1 ] Please execute “ICPUsbConverter_DrvInst.exe“ (the driver file name for v1.2 or newer) file first to install necessary driver files of I-7565-H1/H2 to system. [ Step - 2 ] Plug in the I-7565-H1 or I-7565-H2 to PC and Windows will detect the new device and shows the “Found New Hardware Wizard”...
  • Page 20 “include this location in the search:” checkbox and click “Browser” button to assign the I-7565-H1/H2 driver location - C:\WINDOWS\inf\ and then click “Next” button like Figure 3-6. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 20...
  • Page 21 Figure 3-7: New Hardware Wizard (4) [ Step - 6 ] Please click “Finish” button to complete I-7565-H1/H2 device driver installation like Figure 3-8. Figure 3-8: New Hardware Wizard (5) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 21...
  • Page 22: Verify Driver Installation

    3.3 Verify Driver Installation This section will show how to verify whether the driver of I-7565-H1/H2 was properly installed. If the driver is installed successfully, then there will be a “Virtual COM Port” assigned by Windows. Please follow the below steps to check it.
  • Page 23: Uninstall I-7565-H1/H2 Driver

    Figure 3-11. After that, the “ICPDAS I-7565-H1 USB2CAN” or “ICPDAS I-7565-H2 USB2CAN” device listing will disappear on Ports (COM & LPT) item. Figure 3-11: Uninstall I-7565-H1/H2 Driver (2) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 23...
  • Page 24: Software Utility

    4. Software Utility I-7565-H1/H2 Utility is provided by ICP DAS to transmit / receive CAN messages for CAN bus communication testing easily and quickly. In the meanwhile, it can also display the time-stamp of each received CAN message for data analyzing conveniently. I-7565-H1/H2 Utility can be downloaded from the ICP DAS web site : http://ftp.icpdas.com/pub/cd/fieldbus_cd/can/converter/i-7565-...
  • Page 25 1. “Listen Only Mode” (LOM) function is supported by I-7565-H1/H2 Utility v1.09 and FW v1.05 or newer. The LOM screen is like Figure 4-2-1. (In LOM, CAN message sending function is disabled.) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 25...
  • Page 26 H1/H2” function to connect to I-7565-H1/H2 like Figure 4-3 or “Disconnect” function to disconnect to I-7565-H1/H2 like Figure 4-4. Figure 4-3: “Connect To I-7565-H1/H2” function Figure 4-4: “Disconnect” function I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 26...
  • Page 27: Communication Function

    CAN port function. One is “SendMsg” block and the other is “RecvMsg” block. Besides, “Port 1” / “Port 2” tab is used to switch CAN1 / CAN2 communication screen. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 27...
  • Page 28 It will send the CAN message of the assigned green row in “CAN Message Send Area”. If the value in the “Timer” field is zero, it will just send once. If not, it will send continuously by I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 28...
  • Page 29 Dec : Used to show the ID and Data with “Decimal“ format in “CAN Message Receive Area”. Sym : Used to show the ID with “Symbolic Name“ in “CAN I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 29...
  • Page 30 CANMsg with CANID=0x100 in “CAN1 RecvMsg” table, it will show the symbolic name in ID field to replace the original 100 value like Figure 4-6-3 and Figure 4-6-4. Figure 4-6-3: “Hex” type in OverWrite mode I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 30...
  • Page 31 <6> “Scroll / OverWrite Mode” option : (Supported in Utility v1.09) “Scroll Mode” option : The received CAN message data will be shown in RecvTable by sequence. “OverWrite Mode” option : I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 31...
  • Page 32: Config Function

    The following is the illustration for “Module Config” screen. It can be divided to two blocks. One is “CAN Filter Setting” block and the other is “Config / Info Option” block like Figure 4-8. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 32...
  • Page 33 If users don’t set the CAN Filter function, then all CAN messages will be able to be received in default. In “CAN Filter Setting” block, users can set which CAN ID able to be received by I-7565-H1/H2 module. <1> “Single ID” frame : By clicking “Add”...
  • Page 34 <1> “Get_ModInfo” option : It is used to get the related module info including “Module Name”, “Firmware Version” and “Hardware Serial Number” like Figure 4-9. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 34...
  • Page 35 CAN port register status like Figure 4-11. If the corresponding bit is 1, it means that the corresponding state happened. Figure 4-11: CAN Register Detailed Information I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 35...
  • Page 36: Advanced Config Function

    It is used to reset I-7565-H1/H2 remotely. 4.4.2 Advanced Config Function The following is the illustration for “Advanced Config” screen like Figure 4-13 and Figure 4-14. Figure 4-13: Configuration Function of I-7565-H1/H2 Utility I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 36...
  • Page 37 If the “Trend” option is checked, then it will open the CAN bus flow trend screen like Figure 4-14-1. This function is supported in Utility v1.09 or newer. Figure 4-14-1: CAN bus Flow Trend I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 37...
  • Page 38: Extra Config Function

    CAN1 and CAN2 message in module hardware. 4.4.3 Extra Config Function The following is the illustration for “Extra Config” screen like Figure 4- 15 and Figure 4-16. Figure 4-15: Configuration Function of I-7565-H1/H2 Utility I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 38...
  • Page 39: Data Log Function

    => Show the Filter-ID Flash data of CAN2. Data Log Function By clicking “File” item in the menu bar to execute the related data log function. The following is the illustration like Figure 4-15. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 39...
  • Page 40 <2> “Save Configuration” function : It is used to save the current “CAN Send Message Configuration” in the “CAN Message Send Area” to the assigned “TXT” file like Figure 4-17. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 40...
  • Page 41 <4> “Load Symbol File” function : It is used to load the Symbolic CANID Name Data from the assigned symbol file (*.ini) to utility like Figure 4-18-1. Figure 4-18-1: Load Symbol File I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 41...
  • Page 42: Status Bar Function

    => Indicate the CAN port enabled or not. (3) Baud Rate => Indicate the CAN port baud rate. (4) Company => ICP DAS Co., LTD Figure 4-20: Status Bar of I-7565-H1/H2 Utility for disconnection I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 42...
  • Page 43: Api Library -- Vci_Can.dll

    These functions are used to enable / disable CAN port function of I-7565-H1/H2. [ Module Config Function ] These functions are used to set / get the parameters or information of I-7565-H1/H2. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 43...
  • Page 44: Api Library Function Table

    Get CAN Filter-ID in the assigned CAN port VCI_Get_CANStatus Get the assigned CAN port status Clear buffer overflow ERR LED state in the VCI_Clr_BufOverflowLED assigned CAN port VCI_Get_MODInfo Get the module information VCI_Rst_MOD Reset module I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 44...
  • Page 45 Clear the software buffer in the assigned CAN VCI_Clr_RxMsgBuf port Table 5-5: “Other” Function Table Function Name Description VCI_Get_DllVer Get the version of VCI_CAN library. VCI_DoEvents Release CPU resource temporarily I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 45...
  • Page 46: Flow Chart For Users' Program Development By Using Api

    The following is the basic control flow chart of users’ CAN bus program development by using API Library – VCI_CAN.dll shown in Figure 5-2. Figure 5-2: Flow Chart of API Library – VCI_CAN.dll I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 46...
  • Page 47: Init Function

    Others: Enable CAN2 port) Return Values : Return 0 means success, others means failure. Examples : Int Ret; _VCI_CAN_PARAM pCANPARAM; pCANPARAM.DevPort = 1; // Virtual com port = 1 I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 47...
  • Page 48 = 1; // I-7565-H1 pCANPARAM.CAN1_Baud = 250000; // 250 Kbps pCANPARAM.CAN2_Baud = 1000000; // 1000K bps Ret = VCI_OpenCAN(&pCANPARAM); // Enable CAN port I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 48...
  • Page 49: Vci_Closecan

    5.4.2 VCI_CloseCAN This function is used to disable all CAN port function of I-7565-H1/H2. After the CAN port function is disabled, it will not interfere the communication of CAN bus network even if I-7565-H1/H2 is power on. Syntax : VCI_CloseCAN (...
  • Page 50: Module Config Function

    : Single 11-bit CAN Filter-ID data array GSFF_FID[512] : Group 11-bit CAN Filter-ID data array SEFF_FID[512] : Single 29-bit CAN Filter-ID data array GEFF_FID[512] : Group 29-bit CAN Filter-ID data array I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 50...
  • Page 51 = sizeof(GSFID)/sizeof(DWORD); pCANFID1.SEFF_Num = sizeof(SEFID)/sizeof(DWORD); pCANFID1.GEFF_Num = sizeof(GEFID)/sizeof(DWORD); memcpy(pCANFID1.SSFF_FID, SSFID, pCANFID1.SSFF_Num*2); memcpy(pCANFID1.GSFF_FID, GSFID, pCANFID1.GSFF_Num*4); memcpy(pCANFID1.SEFF_FID, SEFID, pCANFID1.SEFF_Num*4); memcpy(pCANFID1.GEFF_FID, GEFID, pCANFID1.GEFF_Num*4); Ret = VCI_Set_CANFID(CAN_No, &pCANFID1); // Set CAN Filter-ID I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 51...
  • Page 52: Vci_Get_Canfid

    : Group 11-bit CAN Filter-ID data array SEFF_FID[512] : Single 29-bit CAN Filter-ID data array GEFF_FID[512] : Group 29-bit CAN Filter-ID data array Return Values : Return 0 means success, others means failure. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 52...
  • Page 53 _VCI_CAN_FilterID pCANFID; WORD SID11_EndNum=0, GID11_EndNum=0; WORD SID29_EndNum=0, GID29_EndNum=0; CAN_No=1; Ret = VCI_Get_CANFID(CAN_No, &pCANFID); // Get CAN Filter-ID SID11_EndNum = CANFID.SSFF_Num; GID11_EndNum = CANFID.GSFF_Num; SID29_EndNum = CANFID.SEFF_Num; GID29_EndNum = CANFID.GEFF_Num; I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 53...
  • Page 54: Vci_Get_Canstatus

    Return 0 means success, others means failure. Examples : Int Ret; BYTE CAN_No, Module_State; _VCI_CAN_STATUS CANSTA; CAN_No=1; Ret = VCI_Get_CANStatus(CAN_No, &CANSTA); // Get CAN port status Module_State = CANSTA.MODState; I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 54...
  • Page 55: Vci_Clr_Bufoverflowled

    [in] The assigned CAN port number. Return Values : Return 0 means success, others means failure. Examples : Int Ret; BYTE CAN_No; CAN_No=1; Ret = VCI_Clr_BufOverflowLED(CAN_No); // Clear Buffer Overflow LED I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 55...
  • Page 56: Vci_Get_Modinfo

    Return 0 means success, others means failure. Examples : Int Ret; char Module_ID[12], Firmware_Ver[12], Hardware_SN[16]; _VCI_MODULE_INFO CAN_ModInfo; Ret = VCI_Get_MODInfo(&CAN_ModInfo); // Get module information sprintf(Module_ID, “%s”, CAN_ModInfo.Mod_ID); sprintf(Firmware_Ver, “%s”, CAN_ModInfo.FW_Ver); sprintf(Hardware_SN, “%s”, CAN_ModInfo.HW_SN); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 56...
  • Page 57: Vci_Rst_Mod

    Syntax : VCI_Rst_MOD ( void Parameter : None Return Values : Return 0 means success, others means failure. Examples : Int Ret; Ret = VCI_Rst_MOD(); // Reset Module I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 57...
  • Page 58: Communication Function

    : CAN message Data Length (0~8) : CAN message ID TimeL : CAN message Time-Stamp (Lo-DWORD) TimeH : CAN message Time-Stamp (Hi-DWORD) Data[8] : CAN message Data Array Return Values : I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 58...
  • Page 59 = 0x1; CAN_SendMsg.DLC = 8; CAN_SendMsg.Data[0]= 0x12; CAN_SendMsg.Data[1]= 0x34; CAN_SendMsg.Data[2]= 0x56; CAN_SendMsg.Data[3]= 0x78; CAN_SendMsg.Data[4]= 0x90; CAN_SendMsg.Data[5]= 0xAB; CAN_SendMsg.Data[6]= 0xCD; CAN_SendMsg.Data[7]= 0xEF; Ret = VCI_SendCANMsg(CAN_No, &CAN_SendMsg); // Send CAN Msg I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 59...
  • Page 60: Vci_Recvcanmsg

    TimeL : CAN message Time-Stamp (Lo-DWORD) TimeH : CAN message Time-Stamp (Hi-DWORD) Data[8] : CAN message Data Array Return Values : Return 0 means success, others means failure. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 60...
  • Page 61 Ret = VCI_RecvCANMsg(CAN_No, &CAN_RecvMsg); // Recv CAN Msg CANMsg_Mode = CAN_RecvMsg.Mode; CANMsg_RTR = CAN_RecvMsg.RTR; CANMsg_ID = CAN_RecvMsg.ID; CANMsg_DLC = CAN_RecvMsg.DLC; CANMsg_Time = (double)(CAN_RecvMsg.TimeH*pow(2.0,32.0))+(double)((double)CAN_R ecvMsg.TimeL/10000)); For(i=0; i< CANMsg_DLC; i++){ CANMsg_Data[i] = CAN_RecvMsg.Data[i] I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 61...
  • Page 62: Vci_Enablehwcyclictxmsg

    : CAN message Data Length (0~8) : CAN message ID TimeL : CAN message Time-Stamp (Lo-DWORD) TimeH : CAN message Time-Stamp (Hi-DWORD) Data[8] : CAN message Data Array I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 62...
  • Page 63 CAN_SendMsg.Data[7]= 0xEF; //Send 200 CANMsg with 10ms period and then stop Ret = VCI_EnableHWCyclicTxMsg(CAN_No, &CAN_SendMsg, 10, 200); //Send CANMsg with 10ms period permanently //Ret = VCI_EnableHWCyclicTxMsg(CAN_No, &CAN_SendMsg, 10, 0); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 63...
  • Page 64: Vci_Disablehwcyclictxmsg

    VCI_DisableHWCyclicTxMsg ( void Parameter : None Return Values : Return 0 means success, others means failure. Examples : Int Ret; Ret = VCI_DisableHWCyclicTxMsg(); // Disable module hardware timer I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 64...
  • Page 65: Vci_Enablehwcyclictxmsgno

    [in] The count for sending CAN message. If the value is zero, it means that CAN message will be sent periodically and permanently. HW_TimerNo: [in] The assigned HWSendTimer No. (0~4) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 65...
  • Page 66 Data[6]= 0xCD; Data[7]= 0xEF; //Send 200 CANMsg with 10ms period and Stop by using HWSendTimer-1 HW_TimerNo = 1; Ret = VCI_EnableHWCyclicTxMsgNo(CAN_No, Mode, RTR, DLC, ID, Data, 10, 200, HW_TimerNo); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 66...
  • Page 67: Vci_Enablehwcyclictxmsgno_Ex

    If the value is zero, this function doesn’t work. TransmitTimes: [in] The count for sending CAN message. If the value is zero, it means that CAN message will be sent periodically and permanently. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 67...
  • Page 68 //CANL_Data Value will be added by 1 every time //CANH_Data Value will be added by 2 every time HW_TimerNo = 1; Ret = VCI_EnableHWCyclicTxMsgNo_Ex(CAN_No, Mode, RTR, DLC, ID, Data, 10, 200, HW_TimerNo, ADDITION_MODE, 1, 2); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 68...
  • Page 69: Vci_Disablehwcyclictxmsgno

    [in] The assigned HWSendTimer No. (0~4) Return Values : Return 0 means success, others means failure. Examples : Int Ret; BYTE HW_TimerNo; //Stop HWSendTimer-01 HW_TimerNo = 1; Ret = VCI_DisableHWCyclicTxMsgNo(HW_TimerNo); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 69...
  • Page 70: Software Buffer Function

    Return Values : Return 0 means success, others means failure. Examples : Int Ret; BYTE CAN_No; DWORD RxMsgCnt; CAN_No=1; Ret = VCI_Get_RxMsgCnt(CAN_No, &RxMsgCnt); // Recv RxMsg count I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 70...
  • Page 71: Vci_Get_Rxmsgbufisfull

    Return Values : Return 0 means success, others means failure. Examples : Int Ret; BYTE CAN_No; BYTE RxSoftBufFull_Flag; CAN_No=1; Ret = VCI_Get_RxMsgBufIsFull(CAN_No, &RxSoftBufFull_Flag); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 71...
  • Page 72: Vci_Clr_Rxmsgbuf

    Parameter : CAN_No: [in] The assigned CAN port number. Return Values : Return 0 means success, others means failure. Examples : Int Ret; BYTE CAN_No; CAN_No=1; Ret = VCI_Clr_RxMsgBuf(CAN_No); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 72...
  • Page 73: User Defined Isr Function

    [in] The assigned CAN message Mode (2: for all CAN Mode). CANID: [in] The assigned CAN message ID. (0: for all CAN-ID) *UserDefISR: [in] The assigned user-defined function pointer. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 73...
  • Page 74 (means the execution time the shorter the better) and the frequency of the matched CAN message should be the slower the better. Or it could cause the execution lost of user-defined function. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 74...
  • Page 75: Vci_Clr_Userdefisr

    [in] The assigned ISR No. (Valid: 0 ~ 7) Return Values : Return 0 means success, others means failure. Examples : /* Disable UserDefFunction of ISRNO_0 and ISRNO_1 */ VCI_Clr_UserDefISR(ISRNO_0); VCI_Clr_UserDefISR(ISRNO_1); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 75...
  • Page 76: Vci_Get_Isrcandata

    [out] The data buffer is used to receive the CAN message data. Return Values : Return 0 means success, others means failure. Examples : BYTE ISR1_CANDataLen; BYTE ISR1_CANData[8]={0}; VCI_Get_ISRCANData(ISRNO_1, &ISR1_CANDataLen, ISR1_CANData); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 76...
  • Page 77: Other Function

    Return the VCI_CAN library version. Hi-byte is the major version and lo-byte is the minor version. Examples : DWORD DllVer; char VCI_DllVer[10]; DllVer = VCI_Get_DllVer(); sprintf(VCI_DllVer, “v%lu.%02lu", (DllVer>>8)&0xFF, DllVer&0xFF); I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 77...
  • Page 78: Vci_Doevents

    5.9.2 VCI_DoEvents This function is used to release CPU resource temporarily. Syntax : void VCI_DoEvents ( void Parameter : None Return Values : None Examples : VCI_DoEvents() ; I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 78...
  • Page 79: Return Code

    The ConfigCmd is timeout CAN_TimeOut_Err The ConfigCmd doesn't support CAN_ConfigCmd_Err The ConfigCmd is busy CAN_ConfigBusy_Err The CAN receive buffer is empty CAN_RxBufEmpty The CAN send buffer is full CAN_TxBufFull I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 79...
  • Page 80: Api Library -- Mvci_Can.dll

    I-7565-H1/H2 module. The following are basic steps for usage of mVCI_CAN library to control multi-modules of I-7565- H1/H2. 6.1 For VC Project (1) Necessary Files for VC project : I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 80...
  • Page 81: For Vb Project

    [1] Add "mVCI_CAN_vb" reference to VB project by following below steps : (1) Click "Project/References..." option. (2) Click "Browser..." button and choose "mVCI_CAN_vb.dll" file. Then "mVCI_CAN_vb" reference will be added to VB I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 81...
  • Page 82 "Project/References..." option "mVCI_CAN_vb" reference [2] Declare two global variable of "CMVCI_CAN" class. (Like: Private I7565H1H2_Mod(1) As CMVCI_CAN) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 82...
  • Page 83: For .Net Project

    [5] After InitDLL() function executes successfully, every object will be one I-7565-H1 or I-7565-H2 module. Then users can use object to operate I-7565-H1/H2 module. (Like: I7565H1H2_Mod[0].mVCI_OpenCAN_NoStruct();) [6] Please refer to the .Net demo2 of I-7565-H1/H2 for details. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 83...
  • Page 84: Troubleshooting

    VxComm Utility. Please “UnMap” the same com port used in VxComm Utility and then click “Restart Driver” function like Figure 6-1-3. After that, reset I-7565-H1/H2 and try to connect to I-7565-H1/H2 again. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 84...
  • Page 85: The Can Baud Rate Issue

    7.2The CAN Baud Rate Issue (1) The CAN baud rate mismatch: If the I-7565-H1/H2 CAN baud rate is not the same as the CAN baud rate on the CAN bus network, the RUN LED on the I-7565- H1/H2 will flash per 100ms because the I-7565-H1/H2 cannot send any CAN message to the CAN bus network.
  • Page 86 83.333 Kbps, according to the above rules, users should choose BTR0=05 and BTR1=1C for the CAN parameter of SJA1000 CAN devices like Figure 6-3. Figure 6-3: User-defined CAN Baud Rate for SJA1000 Device I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 86...
  • Page 87: The Same Can-Id Conflict Issue

    SP3 or newer version to solve this problem. 7.5 The Max Data Transfer Rate (fps) Issue The max CAN bus data transfer rate in I-7565-H1/H2 is up to 3000 fps and it can be adjusted by I-7565-H1/H2 Utility. If users’ PC performance is not good enough, the data loss condition may happen.
  • Page 88: The Module Number Applied To One Pc Issue

    7.7 The Module Number Applied to One PC Issue In theory, there is no the limitation. It supports synchronous operation in a PC with more than one I-7565-H1/H2 modules but the total communication efficiency depends on the PC hardware performance.
  • Page 89: The Supported Can Filter-Id Number Issue

    According to the Table 6-1, the following table describes the supported CAN Filter-ID number of I-7565-H1/H2. I-7565-H1 I-7565-H2 ( CAN Port ) ( Each CAN Port ) 440/1 = 11-bit Single ID 440/2 = 11-bit Group ID I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 89...
  • Page 90: Other Issue

    3.2 to install driver by manual. (2) After driver installation successfully, if without driver signature certificate, there will be an “!” icon on I-7565-H1/H2 Virtual COM driver like Fig 7.11-1. If users install I-7565-H1/H2 driver version older than v1.2, then this problem will happen.
  • Page 91 ( Fig 7.11-1 Error Without Driver Signature Certificate ) ( Fig 7.11-2 With Driver Signature Certificate ) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 91...
  • Page 92: Could Not Set Comm State" Error Message Issue

    Please execute the ”Reset CANFID Flash” function in ”Extra Config” function screen (refer to section 4.4.3) to clear the Filter-ID Flash data of CAN1/2. Then the problem will be resolved. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 92...
  • Page 93 ( Fig 7.12-1 “Could not set comm state” Error Message ) I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 93...
  • Page 94: History Of Version

    3. Add “AddMode” and ”AddVal” parameter for HWSendTimer. 4. Provide “CAN bus Flow Trend” function in Utility. 5. Provide “Scroll” and “OverWrite” mode for CAN RecvMsg Table in Utility. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 94...
  • Page 95 2. Add “Extra Config” function page in Edward 19-Aug-2011 Utility. 3. Add “Load SymbolFile” function in Utility. 4. Add “Sym” mode of Display Type for CAN RecvMsg Table in Utility. I-7565-H1/H2 High Performance USB/CAN Converter User’s Manual (Ver 1.7, Aug/2011) ------------- 95...

This manual is also suitable for:

I-7565-h2

Table of Contents