8devices Korlan USB2CAN 사용자 설명서 - 페이지 9
{카테고리_이름} 8devices Korlan USB2CAN에 대한 사용자 설명서을 온라인으로 검색하거나 PDF를 다운로드하세요. 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