8devices Korlan USB2CAN Manuale d'uso - Pagina 9

Sfoglia online o scarica il pdf Manuale d'uso per Interfacce USB 8devices Korlan USB2CAN. 8devices Korlan USB2CAN 17. High quality isolated usb to can interface
Anche per 8devices Korlan USB2CAN: Manuale d'uso (15 pagine)

8devices Korlan USB2CAN Manuale d'uso

3.4 Test code example

Code example is available to download from a WEB (USB2CAN_TEST.py)
Two CAN bus interfaces need to 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 to can1 at a 125 Kbps baudrate:
python USB2CAN_TEST.py can0 can1 100 125000
Testing was done using Ubuntu Linux distribution. Other distributions may require additional configuration.

3.5 Firmware upgrade

Instal dfu-util (>= 0.9)
sudo apt-get install dfu-util
Switch to internal bootloader using the set_dfu utility provided with the firmware:
sudo ./set_dfu
Flash new firmware as root:
sudo dfu-util -a 0 -s 0x8008000 -D USB2CAN-v2.0.bin
USB2CAN
User Guide
9