Mavsniff enables you to capture and replay MAVLink communication over serial line or network
Project description
mavsniff
Capture and replay MAVLink packets from your drone or GCS.
You can read from a serial line (ttyS0/COMx) or from network (TCP). Mavsniff stores packets in pcapng format so you can analyse them with Wireshark.
Instalation
$ pip install mavsniff
Mavsniff is distributed via PYPI and an entrypoint mavsniff
should be available in your $PATH
after installation.
Usage
$ mavsniff capture --device /dev/ttyS0 --file recording.pcapng
$ mavsniff replay --file recording.pcapng --device socket://localhost:5467
Available device urls:
-d /dev/ttyS0
- standard serial port on UNIX systems-d COMx
- e.g. COM1 or COM4 - standard serial ports on Windows systems-d socket://<host>:<port>
- receive packets via TCP (only forcapture
command)- currently, there is no option how to send MAVLink packets over the network.
Consult more device urls on pyserial documenation page.
Caviats
When using a loop://
device please note that there is a finite buffer size (usually 4096 bytes). Do not
send larger files there withou reading from the buffer in parallel.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mavsniff-0.0.2.tar.gz
.
File metadata
- Download URL: mavsniff-0.0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c24baba67b47ff2e0c6aac32989ccb4b105803d898d129de631f8ef644d416a |
|
MD5 | 2c374609e9df9c25bbb132a8d20c4cf1 |
|
BLAKE2b-256 | 957cc941d8c611b7ad53e424b476a73d8a22a72b9bd63af7d2241dc866c5e958 |
File details
Details for the file mavsniff-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mavsniff-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.11
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e7c6618a0368988ac803fddaac07a3ee4d3d672ae3b6b7b89c20a5bccbb1b73 |
|
MD5 | 0766534469e6c1933050946ccdab00ac |
|
BLAKE2b-256 | a8005bccf42dadb654ad28a10c8915a337156ef417ae12acbbc70e4c15846123 |