arnegue / nmea-seatalk-multiplexer Goto Github PK
View Code? Open in Web Editor NEWMultiplexer for NMEA and Seatalk-Devices (via Serial, TCP, File...)
Multiplexer for NMEA and Seatalk-Devices (via Serial, TCP, File...)
Create a Wheel-File and maybe put it on PiPy
NMEADatagram
(not NMEADevice
) have own-class NMEA-Parsing (see parse_nmea_sentence
)
SeatalkDevice
(not SeatalkDatagram
) has a method (parse_datagram
).
Same with a map about IDs (SeatalkDevice
: _seatalk_datagram_map
, NMEADatagram
: nmea_tag_datagram_map
).
Maybe put that into Device
-Base-Class?
The file seatalk_datagram.py
has currently 1533 lines and contains 89 classes. Time to refactor and bring them into an own file each.
The file nmea_datagram.py
has currently 503 lines and contains 41 classes. Time to refactor and bring them into an own file each.
Currently this program's focus is on NMEA-messages: Receiving NMEA-Messages on one device and forwarding it to another (without parsing whatsoever).
Only Seatalk-Mesages are getting parsed so that they may get put into another NMEA-Message and getting send to a NMEA-device. And then only if there is a one-to-one-datagram on each side. This is done throught inheritance. (Seatalk-datagram derives from nmea-datagram).
But there are some limitations.
E.g:
NMEA's datagram (RMC) needs more than one Seatalk-Datagram for its message: There are two seatalk-datagrams for one position: LatitudePosition (0x50) and LongitudePosition (0x51). One for time, one for date, one for speed....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.