Shop OBEX P1 Docs P2 Docs Learn Events
RF Tranceivers & flow control — Parallax Forums

RF Tranceivers & flow control

TumblerTumbler Posts: 323
edited 2010-01-14 17:39 in General Discussion
Hi,

The parallax RF tranceivers with flowcontrol. Is it possible?

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-14 14:34
    It's possible to do it in software (at both ends of the connection), but not in a way that's compatible with say the flow control options in PBasic. The way you'd have to do it would be to have one program (at one end of the connection) periodically ask the other program (at the other end) whether it's ok to send data and check that status before sending anything. This communication back and forth would have to be hidden from the actual data sent. This is the way Bluetooth and xBee operate. Rather than having it built into the device, you'd have to do it all yourself in your own software.
  • TumblerTumbler Posts: 323
    edited 2010-01-14 14:59
    Interesting Mike,

    Only i see some troubles when using more than 2 devices.
    Nice project to test with.

    ·
  • stamptrolstamptrol Posts: 1,731
    edited 2010-01-14 15:18
    You can implement a multi BS2 system just as Mike has outlined.

    One device has to be master and polls each other (slave) BS2. If the data string includes a correct address byte, that BS2 responds. The master orchestrates the incoming data and acts on it or sends it to another slave as required. These systems can have 4 or 10 or many times that units in the network.

    For further details on this type of communication scheme Google "half-duplex communication" or have a look at Jan Axelson's book Serial Port Complete which covers the topic exhaustively, including Stamp examples.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
  • TumblerTumbler Posts: 323
    edited 2010-01-14 15:30
    I think i have something.
    425 x 426 - 26K
  • stamptrolstamptrol Posts: 1,731
    edited 2010-01-14 17:39
    The only disadvantage with what you've set up is that the slaves are sitting there chattering away all the time. It is much more efficient for all slaves to sit there only listening for their ID to be called. Then, only one slave answers and the master goes on to the next slave.

    Cheers,

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Tom Sisk

    http://www.siskconsult.com
    ·
Sign In or Register to comment.