|
|
View previous topic :: View next topic |
Author |
Message |
cxiong
Joined: 09 Sep 2003 Posts: 52
|
Wireless Telemetry HELP |
Posted: Fri Jan 30, 2004 1:10 pm |
|
|
I have used the the LINX LC modules with the PIC16F877 USART (PIN RC6, AND RC7 to send and receive data through wireless, but it won't work.
My problem is that, no data get to the Transmitter module.
Does any body have any experience with this problem before? Any schematic or subroutine to use with the RS232 (PIN rc6 & rc7). |
|
|
Ttelmah Guest
|
Re: Wireless Telemetry HELP |
Posted: Sat Jan 31, 2004 3:40 pm |
|
|
cxiong wrote: | I have used the the LINX LC modules with the PIC16F877 USART (PIN RC6, AND RC7 to send and receive data through wireless, but it won't work.
My problem is that, no data get to the Transmitter module.
Does any body have any experience with this problem before? Any schematic or subroutine to use with the RS232 (PIN rc6 & rc7). |
The problem is probably that the serial data needs inverting to feed the DATA IN pin on these modules. Otherwise there is nothing special at all needed for this type of module. All you need to do, is connect the TXD pin of the PIC (RC6), to the 'data in' pin of the transmitter module, through an inverter. Make sure that you select a relatively low baud rate (the absolute maximum for the modules is 5000bps, and they work better at slower rates - I'd suggest 2400bps, or 1200bps). You must remember, that if using two pairs of modules to allow bi-directional communications, the system is only half-duplex, unless you have the two pairs on different frequencies. Hence your code must be able to handle conflict resolution.
You can test if inversion is the problem, by selecting the 'INVERT' option in the #USE RS232 setup statement, but remember this is not supported using the hardware UART.
If you have two pairs of modules on the same frequencies, and they are both connected, both transmitters will be permanently sending, when the serial lines are idle, and no data will be received.
Best Wishes |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|