433 MHz receiver
The serin command is used as folow:
Transmitter code: SerOut GPIO.1,N1200,["A","work"]
Receiver code: SerIn porta.3,N1200,["A"],B0,B1,B2,B3 received data will be: B0=w, B1=o, B2=r, B3=k
Note the N1200 is the baud rate, that is very important the N can be replaced with a T depending on the polarity of the data you receive, then the ["A"] the program will wait on the pin porta.3 until it receive an "A" then it will read the data that follow into the 4 variables B0-B3, you can use more variables if you want to.
But if your transmitter is using a decoder chip it is impossible to read the data you will always get garbage and not real data.
The data that you receive while the transmitter is off is only garbage or QRM caused by florescent light or other interference.
To sum up, you will need to know at what baud rate and polarity your transmitter is sending the data and you need to know what the [qualifier] is, it can be any character/s.
Last edited by ChrisMicro; - 29th November 2010 at 02:03.
You can't teach an old dog new tricks, but I'm always willing to try.
Bookmarks