Shop OBEX P1 Docs P2 Docs Learn Events
3 912 MHz transmitter problem — Parallax Forums

3 912 MHz transmitter problem

roverxroverx Posts: 24
edited 2008-08-01 15:56 in BASIC Stamp
Short story...
I have 2 912 MHz t/r receivers (parallax) in operation one attached to a bs2 on a prop2 (call it A), another attached to my PC (call it B)

I also have a 3rd that I am working on to do some other monitoring ( attached to bs2px)· (called it C)

I've just discovered that·C interrupts the routine on A (I actually need·A and C·receive and transmit)

"A"·uses the serin feature with a 30 second timeout to receive data matching a format. What I did not know ist that the serin timeout will reset upon receiving any data (byte), even though it is qualified , and the help also mentions that if it matches any character , it will wait for subsequent matches , not necessarily in order.

I also use the serin timeout on A for program looping timeout.. since I want it to respond to commands from B
And I wanted to use the new one C -- for Data Logging at 30-60sec intervals (but if I interrupt A, it doesn't do normal program execution), I also want it to respond to commands from·B

Any ideas?

Attached is my code for A, the serial routines should show the approach

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2008-08-01 15:56
    Roverx,

    When you need to have more than two transceiver stations to work on the same frequency the best thing to do usually is to designate one as the master and have it control all communications. For example, the master could send out a general transmission with an ID of the target station it wants a response from. Both stations will get the message but only the one with the correct ID would respond. It basically means that only one station will ever be transmitting at any one time. Depending on your application this could work for you. Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
Sign In or Register to comment.