background image

Korlan USB2CAN

 

User Guide

High quality isolated USB to CAN interface

1.0v 2019-04-02

Summary of Contents for Korlan USB2CAN

Page 1: ...Korlan USB2CAN User Guide High quality isolated USB to CAN interface 1 0v 2019 04 02 ...

Page 2: ... on Linux 8 3 1 Driver and configuration 8 3 2 Tools can utils send receive CAN packets 8 3 3 Tools dfu util USB2CAN Firmware upgrade 8 3 4 Test code example 9 3 5 Firmware upgrade 9 4 Work on Windows 10 4 1 Windows XP driver installation 10 4 2 Windows 7 driver installation 11 4 3 Windows 8 driver installation 13 4 4 Windows 10 driver installation 15 4 5 USB2CAN test application bus speed configu...

Page 3: ...3 User Guide USB2CAN Changes history Date Change list 2019 04 02 Initial release ...

Page 4: ... the consequences of your improper actions could cause serious operation malfunction loss of information damage to equipment and physical injury to yourself or others 1 2 Technical specification Connectors Computer USB 2 0 Full speed Type A connector CAN D SUB 9 pins CAN CIA standard interface pin assignment or OBD2 16 pins Standard interface pin assignment CAN Specification ISO 11898 2 High speed...

Page 5: ...nnection 5 CAN_SHLD Connected to CAN GND via 100 Ω 0 1uF 6 CAN GND CAN Ground 7 CANH CANH bus line dominant high 8 No connection 9 No connection Pin number Description 4 GND 5 GND 6 CAN Bus High 14 CAN Bus LOW Note All other pins on OBD2 are not used and not connected Figure 2 1 DB9 connector Figure 2 2 OBD2 connector 2 1 CAN connector pinout ...

Page 6: ...receive or send data Error and Info LED blinking CAN send receive data 2 3 CAN bus termination A High speed CAN bus ISO 11898 2 must be terminated on both ends with 120 Ohms Standard termination example The 120 Ω characteristic impedance twisted pair cable must be terminated with an impedance of the same value to minimized reflected waves that occur from miss matched impedances Bad terminal may ca...

Page 7: ...device is available If Korlan USB2CAN is in loopback mode everything what is sent through the CAN interface is send back to device It is like the CAN interface TX pins are connected to its RX pins means the interface only listens to the CAN bus This means the unit does not even provide an ACK frame when a message is placed on the CAN bus correctly is self test mode which can be used in a working C...

Page 8: ...eady state steady green led sudo ip link set can0 up To bring down interface steady red led sudo ip link set can0 down To get more information about configuration options type sudo ip link set can0 type can help 3 2 Tools can utils send receive CAN packets The programs allow to get CAN communications instantly using two commands cansend and candump Command to install tool sudo apt get install can ...

Page 9: ...o be connected on same computer together Ex connect two USB2CAN usb ports to a computer and connect can ports together The code sends random from one interface to another and checks if the received data is valid To use the code go to terminal and launch command python USB2CAN_TEST can interface 1 can interface 2 number of packets baudrate Example to send 100 random data packets from interface can0...

Page 10: ...nection Info LED should be on Error LED should be off Use Hardware wizard which will start after You plug device to PC It can be started manually by pressing Start Control Panel Add Hardware When Hardware wizard starts choose No not this time and press next Then choose Install from a list or specific location 1 2 Choose Search for the best driver in these locations browse for drivers location and ...

Page 11: ...ke to use and press Open 4 2 Windows 7 driver installation Download drivers files from 8devices WEB page 32 bit USB2CAN Windows 32 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 64 bit USB2CAN Windows 64 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 Plug USB2CAN device to computer USB connection Info LED should be on Error LED should be off Use Hardware wizard which will start after You plug ...

Page 12: ...CAN Choose sub2can device 1 Press Update Driver 2 Choose Browse my computer for driver software 3 Browse for drivers location on Your computer 4 Will pop up Windows Security message Press Install 5 Finish installation 6 ...

Page 13: ...nnectd to PC and their serial numbers Insert the device s serial number you would like to use and press Open 4 3 Windows 8 driver installation Download drivers files from 8devices WEB page 32 bit USB2CAN Windows 32 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 64 bit USB2CAN Windows 64 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 Plug USB2CAN device to computer USB connection Info LED shoul...

Page 14: ... press Close 5 Then mark USB2CAN device and chose Update driver software from top menu 1 Choose Browse my computer for driver software 2 Browse for drivers and click next 3 Will pup up Windows Security message Choose Install 4 ...

Page 15: ...o use and press Open 4 3 Windows 10 driver installation Download drivers files from 8devices WEB page 32 bit USB2CAN Windows 32 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 64 bit USB2CAN Windows 64 bit XP Vista Win7 Win8 Win10 USB driver v1 0 2 1 Plug USB2CAN device to computer USB connection Info LED should be on Error LED should be off Use Hardware wizard which will start after You plug dev...

Page 16: ...16 User Guide USB2CAN Choose USB2CAN device 1 Press Update Driver 2 Finish installation 5 Choose Browse my computer for driver software 3 Browse for driver s location on Your computer 4 ...

Page 17: ...e additional parameters are written directly to internal microcontroller timing register Input format is serial number 0 tseg1 tseg2 sjw brp Example 664E01CF 0 12 34 22 11 More details how to configure customized speed can be found at http www bittiming can wiki info Note on the WEB page drop down menu select ST Microelectronics bxCAN and Clock Rate 32MHz If the driver installation was successful ...

Reviews: