slimplynth
Senior Member
After many hours bashin' my head, i found your thread from above. Exactly the same problem but it was more like 9 out of 10 lost packets !!!Now the simple solution (simple after I stumbled across while daydreaming and sweating for an hour on the treadmill :
- do the preamble as usual, which gets the receiver conditioned
- then, SEND NOTHING for a little more than one data byte (1 start bit, 8 data bits, 1 stop bit, i.e. 10 bits in total or e.g. 4.2ms at 2400 baud). This will make sure that wherever the receiver was at the end of the preamble, it is now idle and eagerly waiting for the next start bit. Just don't wait much longer than one byte, otherwise the receiver will lose lock again.
- now send qualifier and data
End result: just sent over 10000 data packets across the room without losing a single one.
In Picaxe language, sender side:
serout 0, T2400_4, (0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55,)
pause 5
serout 0, T2400_4, ("data", b0)
In Picaxe language, receiver side:
serin 0, T2400_4, ("data"), b0
Wolfgang
Using the cheap 433Mhz Rx/Tx from sparkfun.
now 100% gettin through , thanks again..
Last edited: