canlink-cli-0.3.0 is not a library.
Visit the last successful build:
canlink-cli-0.3.3
CANLink CLI
Command-line interface for interacting with CAN hardware through the CANLink HAL.
Features
- List available backends
- Query backend capabilities
- Send CAN messages (single-shot or periodic)
- Receive CAN messages
- Validate configuration files
- Human-readable and JSON output
Installation
From Source
From Crates.io (when published)
Requirements
Real hardware usage requires:
- Windows
- LibTSCAN runtime (TSMaster installation or a standalone LibTSCAN bundle)
Quick Start
# List available backends
# Query backend capabilities
# Send a CAN message
# Receive messages
Commands
List Available Backends
Query Backend Information
Example:
Send a CAN Message
Periodic mode:
Receive CAN Messages
Validate Configuration File
Example:
JSON Output
All commands support JSON output with the --json flag:
Configuration File Format
Create a canlink.toml file:
[]
= "tscan"
= 3
= 1000
Exit Codes
0: Success2: Backend not found3: Backend error4: Configuration error5: Invalid argument6: I/O error7: Parse error8: Timeout9: No messages received
Troubleshooting
Backend Not Found
Solution: Check available backends with canlink list
Invalid Data Format
Solution: Use valid hex bytes (00-FF)
Missing LibTSCAN Runtime
If tscan initialization fails, ensure the LibTSCAN runtime is available and matches the installed DLL/Lib bundle.
Related Documentation
License
MIT OR Apache-2.0