8devices Korlan USB2CAN Руководство пользователя - Страница 9
Просмотреть онлайн или скачать pdf Руководство пользователя для Интерфейсы USB 8devices Korlan USB2CAN. 8devices Korlan USB2CAN 17 страниц. High quality isolated usb to can interface
Также для 8devices Korlan USB2CAN: Руководство пользователя (15 страниц)
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