52
Under Linux connect two CAN devices, installed as /dev/ttyUSB0 and /dev/ttyUSB1.
Open two terminal windows and change to the directory where examples were
extracted to and execute
export LD_LIBRARY_PATH=.
./TestMasterSlave -s “/dev/ttyUSB0” -S 125K -M none -l ./libcanfestival_can_titan.so
in the first terminal window and
export LD_LIBRARY_PATH=.
./TestMasterSlave -m “/dev/ttyUSB1” -M 125K -S none- ./libcanfestival_can_titan.so
in the second.
Following pictures shows the output messages of both nodes.
Master:
Slave:
Содержание USB-2CAN-M
Страница 1: ...Titan Electronics Inc Web www titan tw USB 2CAN M USB CAN SI M USER S MANUAL 2019 Edition ...
Страница 5: ...4 9 6 13 Using the API in Python 70 9 6 14 Using the API in LabVIEW 71 ...
Страница 36: ...35 Connected to XXX kbits s firmware version VXXXX and operation mode at the bottom of the main panel ...
Страница 43: ...42 ...
Страница 62: ...61 Sample Command CAN_Status 2508 Checks the status bits of device connected to channel with the handle 2508 ...
Страница 66: ...65 break Status CAN_Close Handle printf Test finish n return 0 ...