Skip to main content

A Python library for decoding FastNet protocol data streams.

Project description

pyfastnet

Fastnet is the propriatory protocol used by B&G on some older instruments, tested on Hydra/H2000. It might work on other systems. I developed this for personal use and publishing for general interest only.

Purpose

This library can be fed a stream of fastnet data, it will decode and return structured instrument data for further processing

Example input/output

Byte string from Fastnet including "ff010a01f541910000420a00000000e2ff050c01ef4e0a02750222520a1a4f1a4fdf"

The decoded values from the frame look like this:

' Boatspeed (Knots): channel_id: '0x41', format_byte: '0x91', data_bytes: '0000', divisor: 100, digits: 2, format_bits: 1, raw: 0, interpreted: 0.0 '

Important library calls

  • 'fastnetframebuffer.add_to_buffer(raw_input_data)'
  • 'fastnetframebuffer.get_complete_frames()'
  • 'set_log_level(DEBUG)'

Companion App

Installation

pip3 install pyfastnet

On a raspberry pi this is done from with a virtual env python -m venv --system-site-packages ~/python_environment source ~/python_environment/bin/activate pip3 install pyfastnet deactivate

~/python_environment/bin/python3 myapp.py

Acknowledgments / References

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

pyfastnet-1.0.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyfastnet-1.0.2-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file pyfastnet-1.0.2.tar.gz.

File metadata

  • Download URL: pyfastnet-1.0.2.tar.gz
  • Upload date:
  • Size: 10.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for pyfastnet-1.0.2.tar.gz
Algorithm Hash digest
SHA256 1a66981969433422aaf848451d0702729162c686d5ec5b91d8f280dba876bd33
MD5 a9f162f228ce5efde0886fd0550bcfda
BLAKE2b-256 c7dbaee0268ae121679c934c302809a42a893c0bb8fc2750da6a110addf53148

See more details on using hashes here.

File details

Details for the file pyfastnet-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyfastnet-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.6

File hashes

Hashes for pyfastnet-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 142029aa0d1a7c35c5cc84f133ad9a3421832dcc7d92b667a0e9b44c41ceaf05
MD5 e5e934f39f3617a297f5e578916c013c
BLAKE2b-256 c1627c4e343df7e3f7d799d262d81739e0358717c1bb783fbca265a21d5cdfc6

See more details on using hashes here.

Supported by

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