A place for simple tasks with automotive scapy.
Automotive scapy and python-can are really great! Many kudos to the authors of these great packages. Thanks to them we can interact with vehicle networks in a platform independent way.
We hope you find this repo useful as a starting point for learning how to use these packages. For more advanced applications, use those packages directly.
For a few 'easy'1 tasks:
- logging some CAN traffic:
easy_log.ipynb
- sending CAN messages and logging:
easy_send.ipynb
- sending and receive a ISO-TP message and response:
easy_isotp_send.ipynb
How to use:
- clone this
- cd to the cloned directory
- install all the python dependencies
python -m pip install -r requirements.txt
- launch jupyter-notebook (this should open a browser automatically)
python -m jupyter notebook
(or trypython -m notebook
if that doesn't work)
For more complex tasks there is an example script in example.py
where scapy is setup along with a couple CAN logging options (both candump style and wireshark).
Footnotes
-
'easy' is very subjective and these tasks will seem much easier once you have done them a few times. Hopefully these notebooks make the first, second and third time easy. ↩