Skip to main content

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 for capture 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mavsniff-0.0.3.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

mavsniff-0.0.3-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mavsniff-0.0.3.tar.gz.

File metadata

  • Download URL: mavsniff-0.0.3.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for mavsniff-0.0.3.tar.gz
Algorithm Hash digest
SHA256 15ce0f9e8ac08896b76ee7012d11c95ff2f438f20366c0ba4958cd328d3da42f
MD5 a9be3796184da2dc92da6858f33120a1
BLAKE2b-256 37a19569542b539a786aff6a2b5c7eef3776de28bb7b09c31c9d88b6a1f2ec71

See more details on using hashes here.

File details

Details for the file mavsniff-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: mavsniff-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.11

File hashes

Hashes for mavsniff-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ee9333f207a4539785e5db75dd8637a8f177d0f0a1dfd074653741e9d9030019
MD5 35623cc02250ee56bb22ca15ada21808
BLAKE2b-256 58198210321f859d5832878dd55281c7b0826407077d154c2fb038a596a69406

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page