trevleyb / DCCPacketAnalyser

A simple processor that takes packets of data (excluding preamble) from a DCC Packet Analyzer (such as the NCE Packet Analyzer) and returns objects that represent the different messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DCCPacketAnalyser

This is a C# project to take a block of bytes which are DCC messages from a DCC bus. This was built to take the output from a NCE Packet Analyser and analyse the bytes to return objects that represent the different messages.

The reason to build this was (a) because it was interesting and (b) I want to use the NCE Packet Analyser (or in fact any packet analyser should work such as a Arduino analyser) and then use that to feed into the Railway Controller I am building so that messages send from other devices will be detected and reported on (NCE does not report through the RS232 port or USB port messages that are put onto the bus through other devices.)

Some credit to the DCCInspector-EX project which assisted in a couple of areas where the MNRA specifications were not clear. https://github.com/DCC-EX/DCCInspector-EX

About

A simple processor that takes packets of data (excluding preamble) from a DCC Packet Analyzer (such as the NCE Packet Analyzer) and returns objects that represent the different messages.

License:GNU General Public License v3.0


Languages

Language:C# 100.0%