Shop OBEX P1 Docs P2 Docs Learn Events
2 Way Serial Communciation-HELP! — Parallax Forums

2 Way Serial Communciation-HELP!

timmytimtimmytim Posts: 2
edited 2013-12-10 10:28 in General Discussion
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!

Comments

  • timmytimtimmytim Posts: 2
    edited 2013-12-08 22:32
    Fellow Parallax PWNers,

    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.
  • WarumaWaruma Posts: 21
    edited 2013-12-10 09:21
    timmytim,

    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.
  • stamptrolstamptrol Posts: 1,731
    edited 2013-12-10 10:28
    In TEST1, you have a Pause and a DEBUG right after the SEROUT. That gets received by TEST2 and it immediately does its SEROUT. But, because of the DEBUG and PAUSE, TEST1 is not ready to receive.

    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,
Sign In or Register to comment.