https://github.com/20yyq/can-debugger
golang network can bus
https://github.com/20yyq/can-debugger
can can-bus can-fd can-utils socket-can
Last synced: 10 months ago
JSON representation
golang network can bus
- Host: GitHub
- URL: https://github.com/20yyq/can-debugger
- Owner: 20yyq
- License: bsd-2-clause
- Created: 2023-09-07T06:06:00.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-09T08:35:00.000Z (about 2 years ago)
- Last Synced: 2025-01-22T10:30:39.205Z (12 months ago)
- Topics: can, can-bus, can-fd, can-utils, socket-can
- Language: Go
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# can-debugger
golang network can bus
### Install Candebugger
git clone https://github.com/20yyq/can-debugger.git
cd can-debugger
make install
### Examples Candebugger
./candebugber help
./candebugber can0 read
./candebugber vcan0 read
./candebugber can0 write -id 12345 -data string -ext=true
./candebugber can0 write -id 12345 -data string -ext=1
./candebugber can0 write -id 12345 -data string -ext=True
./candebugber vcan0 write -id 2047 -data string
./candebugber vcan0 write -id 2047 -data string
./candebugber vcan0 write -id 2047 -data string
# fd
./candebugber vcan0 write -id 123 -data string -flags 16 -fd=true -ext=0
./candebugber vcan0 write -id 12345 -data string -flags 16 -fd=0 -ext=1
# iface 设备开启关闭
./candebugber can0 iface -bitrate 125000 -up=true
./candebugber can0 iface -up=F
# 直接关闭设备
./candebugber can0 iface
# iface 虚拟CAN设备开启
./candebugber vcan0 iface -type vcan -bitrate 125000 -up=true