2 Way Serial Communciation-HELP!
timmytim
Posts: 2
Friends,
Im trying to use parallax transmitters for 2 way serial communication for a school project. Having trouble getting the communication to work. The signal is able to be sent from the first transmitter to the first receiver with no problem. The signal is then sent from the 2nd transmitter however the 2nd receiver does not pick up the transmission. The RF communication is an important part of the project but i cant even get this test code to work. Dear lord, please help!
Im trying to use parallax transmitters for 2 way serial communication for a school project. Having trouble getting the communication to work. The signal is able to be sent from the first transmitter to the first receiver with no problem. The signal is then sent from the 2nd transmitter however the 2nd receiver does not pick up the transmission. The RF communication is an important part of the project but i cant even get this test code to work. Dear lord, please help!
Comments
By removing the security code "fart" on the SERIN I was able to communicate both ways however that leaves me susceptible to receiving any data instead of the specific line i want received. Is there a fix? Any help is appreciated.
I've only used these transceivers very briefly, but when you transmit back from the 2nd transmitter wouldn't you also need to send that security code? You'd need to set up your 1st transceiver to wait for that security code before it will actually receive any data. Hope this helps.
To remedy, in TEST1, put the SERIN closer to the SEROUT, so TEST1 will immediately be ready to receive whatever comes back. You could also put a PAUSE in TEST2 to delay the turnaround.
Its just like ballroom dancing, you can't concentrate on the current step because the upcoming step is just as important.
Cheers,