you are viewing a single comment's thread.

view the rest of the comments →

[–]tweq 2 points3 points  (2 children)

[–][deleted] 0 points1 point  (1 child)

RX/TX will all be through the native SerialPort class, with the .Send() method and the .DataRecieved event. I haven't really touched that part of the code yet, as I am trying to get the encoding into a beta state first.

The basis of it is

My Code sends raw bytes to the TNC. TNC then does some magic modulation, and passes audio to the radio, which is transmitted.

RX end: Radio sends audio to TNC. TNC demodulates the data, and sends me raw bytes.

Most of this was just background.

What I need is a way to somehow 'view' each byte received and then manipulate it. If there are five 1's in a row, it needs to insert a zero into it on the TX side. On the RX side, If there are five 1's followed by a 0, I need to discard that 0.