A reimplementation of testj1939
using Python APIs
This is mostly intended to:
- illustrate how to use the J1939
socket
APIs - serve as a series of integration tests of the J1939 functionality
These are various examples taken from the J1939 kickstart guide
- receive without source address
- receive with source address
- send
- Multiple source addresses on 1 CAN device
- Use PDU1 PGN
- Use destination address info
- Emit different PGNs using the same socket
- Larger packets
- Change priority of J1939 packets
- Integration tests are flakey (likely due to needing to synchronize between background processes)
- The
-s
argument doesn't work the same way astestj1939
- Add
pyproject.toml
- Create wheels
- Package as a CLI script