- Tue Jan 23, 2007 10:01 am
#25336
Hey!
i'm trying to send a data packet using tlp/rlp. i'm using a pic12f629 to send the message and a pic18f2550 to receive it. it works perfectly with wires, but replacing the cable with the modules doesn't work as i expected.
the line encoding used is RS232-like encoding (1 start bit - 8 data bit - 1 stop bit, using mark/spaces). i've read a couple of threads with some information about these modules, suggesting to use a preamble to make the receive recognize the start of a packet, avoiding noise.
i implemented the preamble as a 6 ms mark of ones (also found somewhere that rx turn-on time is 5 ms), but some people say that these modules need frequent bit transitions to avoid losing sync, which can be obtained using manchester encoding.
i'm not sure if i should implement such encoding, because the wireless link is actually working, but no longer than 20 cm (great, uh?), and it starts to receive garbage with longer distances (crc check allways fails). I think maybe it is a bad antenna design or something (i even though my project board might be "attenuating" signal and mounted it on pcb, and couple of days ago saw pictures with these modules on protoboard).
please, i need tips for using these devices:
- what antenna should i use, how should i connect it, and how can i design it on pcb (at least tx).
- do i really need manchester or other encoding (lots of people claim to make it work without it, just connecting hardware usart).
- is it ok to use a preamble of only 1's?... should i change preamble with a different code, instead of a bunch of ones?
- can i test these modules on common project boards, or do i need a "high frequency capable" project board or something?...
Thanks A Lot!!!!
i'm trying to send a data packet using tlp/rlp. i'm using a pic12f629 to send the message and a pic18f2550 to receive it. it works perfectly with wires, but replacing the cable with the modules doesn't work as i expected.
the line encoding used is RS232-like encoding (1 start bit - 8 data bit - 1 stop bit, using mark/spaces). i've read a couple of threads with some information about these modules, suggesting to use a preamble to make the receive recognize the start of a packet, avoiding noise.
i implemented the preamble as a 6 ms mark of ones (also found somewhere that rx turn-on time is 5 ms), but some people say that these modules need frequent bit transitions to avoid losing sync, which can be obtained using manchester encoding.
i'm not sure if i should implement such encoding, because the wireless link is actually working, but no longer than 20 cm (great, uh?), and it starts to receive garbage with longer distances (crc check allways fails). I think maybe it is a bad antenna design or something (i even though my project board might be "attenuating" signal and mounted it on pcb, and couple of days ago saw pictures with these modules on protoboard).
please, i need tips for using these devices:
- what antenna should i use, how should i connect it, and how can i design it on pcb (at least tx).
- do i really need manchester or other encoding (lots of people claim to make it work without it, just connecting hardware usart).
- is it ok to use a preamble of only 1's?... should i change preamble with a different code, instead of a bunch of ones?
- can i test these modules on common project boards, or do i need a "high frequency capable" project board or something?...
Thanks A Lot!!!!
Whatever!