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. Syncronisation, checksum and decoding is handled by the library.

Example input/output

Byte string from Fastnet including "FF051601E555610030566100185903A86B7F8700BB00016D08CD0DCB"

to_address: Entire System
from_address: Normal CPU (Wind Board in H2000)
command: Broadcast

  • True Wind Speed (Knots):

    • channel_id: 0x55
    • interpreted: 4.8
  • True Wind Speed (m/s):

    • channel_id: 0x56
    • interpreted: 2.4
  • True Wind Angle:

    • channel_id: 0x59
    • interpreted: 107.0
  • Velocity Made Good (Knots):

    • channel_id: 0x7F
    • interpreted: 0.01
  • True Wind Direction:

    • channel_id: 0x6D
    • interpreted: 269.0

Important library calls

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

Companion App

  • A full implementation can be found here, it takes input from a serial port or dummy file and broadcasts NMEA messages via UDP fasnet2ip

Installation

pip3 install pyfastnet

On a raspberry pi and some other systems this is done from with a virtual env

source ~/python_environment/bin/activate
pip3 install pyfastnet
deactivate
~/python_environment/bin/python3 pyfastnet.py -h 

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.3.tar.gz (11.2 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.3-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyfastnet-1.0.3.tar.gz
  • Upload date:
  • Size: 11.2 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.3.tar.gz
Algorithm Hash digest
SHA256 e32a71280d0961e3f4c9b5f472fef766107d847d10ced00c110d96d84ffd5f6c
MD5 b45ac6599a1df0ab664bc26a245adf8c
BLAKE2b-256 b6671a828b341e1543b14e1dd4e12e6324a501f18f0f1b6df23855e56d2575a7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyfastnet-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8f1c400d39ff81b9d67e7e8f9d3488b3cbb09a1b3a7235b6ef2be1deb764b9b0
MD5 99a3ca16287d4c9dfd991576d7173cd6
BLAKE2b-256 8c4da54b4dc0d8851aa56186d93eea584e4b98ef5e7f3d971dbc26a1e16c5f63

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