April 19, 2024, 11:42:06 PM

News:

IonicWind Snippit Manager 2.xx Released!  Install it on a memory stick and take it with you!  With or without IWBasic!


Manchester encoding software modem

Started by sapero, August 09, 2009, 09:19:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sapero

August 09, 2009, 09:19:45 AM Last Edit: August 09, 2009, 12:48:12 PM by sapero
In telecommunication, Manchester code is a line code in which the encoding of each data bit has at least one transition and occupies the same time. It is, therefore, self-clocking, which means that a clock signal can be recovered from the encoded data [...]
Manchester code always has a transition at the middle of each bit period. In the normal encoding, transition direction indicates the data bit (0 or 1). In Differential encoding, A '1' bit is indicated by making the first half of the signal equal to the last half of the previous bit's signal.

I have included both methods in this small modem. The standard method uses "m_polarization" bit to automatically detect signal polarisation, and the differential method uses the same bit variable to remember the previously received bit.

You can use this modem as the last communication medium (via sound card) with external hardware - like a microcontroller. With my build-in soundcard I was able to demodulate manchester data at 3675bits/second without any errors (with 44100 sampling rate). Attached source code is configured to simultaneously transmit and receive.

Emergence version

ZeroDog

hmmm.  This looks really interesting.  I dont use aurora at all, but if I did, this would be a really neat project.  Thanks for sharing  ;D