readme
来自「can4linux-3.5.3.gz can4 linux」· 代码 · 共 49 行
TXT
49 行
This are some simple examples to test the communication between twoCAN channels.1) receive: polling mode receiving end2) transmit polling mode transmitter3) baud simple driver test: change the bit rate registers with ioctl() the change itself stays after program is finished. you can check it by read cat /proc/sys/Can/Baud before and after using this command4) acceptance simple driver test: change the message filter with ioctl() the change itself stays after program is finished. you can check it by read cat /proc/sys/Can/AccCode /proc/sys/Can/AccMask before and after using this command5) noiser a simple noise transmitter, generates messages with random CAN IDs and telegram content useful for filter testing 6) can_send simple command line tool for sending single or cyclic CAN messages can_send -h tells you all some special test-sequences are build-in7) ctest very simple and basic driver test I use it to see what the driver issues in /var/log/messages when open and close the device. If full debug is enabled and all register access is logged8) receive-select simple receiving using the select() call to wait for CAN messages Support and examples for Scripting Languages==============================================canLtwo.c simple CAN Layer-2 interface, C-SourcecanLtwo.i simple CAN Layer-2 interface, SWIG-Interface file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?