can-debugger

command module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 9, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

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

Documentation

Overview

@@ @ Author : Eacher @ Date : 2023-09-02 11:02:03 @ LastEditTime : 2024-01-09 16:29:24 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/main.go @@

Directories

Path Synopsis
@@ @ Author : Eacher @ Date : 2023-09-06 13:56:59 @ LastEditTime : 2024-01-09 16:29:37 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/flag/can.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 13:56:59 @ LastEditTime : 2024-01-09 16:29:37 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/flag/can.go @@
@@ @ Author : Eacher @ Date : 2023-09-15 14:37:58 @ LastEditTime : 2023-09-19 08:12:30 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/iface/iface.go @@
@@ @ Author : Eacher @ Date : 2023-09-15 14:37:58 @ LastEditTime : 2023-09-19 08:12:30 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/iface/iface.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 14:47:15 @ LastEditTime : 2024-01-09 16:29:16 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/read/can.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 14:47:15 @ LastEditTime : 2024-01-09 16:29:16 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/read/can.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 14:55:23 @ LastEditTime : 2024-01-02 09:17:49 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/sockcan/sockcan_linux.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 14:55:23 @ LastEditTime : 2024-01-02 09:17:49 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/sockcan/sockcan_linux.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 15:25:10 @ LastEditTime : 2024-01-09 16:29:12 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/write/can.go @@
@@ @ Author : Eacher @ Date : 2023-09-06 15:25:10 @ LastEditTime : 2024-01-09 16:29:12 @ LastEditors : Eacher @ --------------------------------------------------------------------------------< @ Description : @ --------------------------------------------------------------------------------< @ FilePath : /20yyq/can-debugger/write/can.go @@

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL