Library to easily communicate with XBee modules.

Dependencies:   DigiLogger

Dependents:   WaterLogger XbeeGateway XBee_Cooker ProjetReceiver ... more

You are viewing an older revision! See the latest version

Serial hardware flow control

The XBee constructor 'rts' and 'cts' parameters determine the hardware flow control in the serial connection between the mbed processor and the XBee module. Each of the parameters can be set to 'NC' meaning not connected or to an actual mbed module pin, leading in following 4 combinations:

rtsctsFlow Control
NCNCNo flow control
configuredconfiguredRTS and CTS
configuredNCRTS only
NCconfiguredCTS only


  • If rts pin is configured, then that pin has to be wired from the mbed module to the RTS# pin of the XBee module (pin 16 on THT modules, pin 29 on SMT modules); and the XBee module DIO6 has to be configured accordingly ("D6" at command set to 1).
  • If cts pin is configured, then that pin has to be wired from the mbed module to the CTS# pin of the XBee module (pin 12 on THT modules, pin 25 on SMT modules); and the XBee module DIO7 has to be configured accordingly ("D7" at command set to 1).

Information

The XBee constructor checks that the XBee module DIO7 and DIO6 are configured accordingly. If not you will see errors like:
'Bad CTS configuration. Radio 'D7' param is x and should be 1'

Information

From the XBee module point of view, CTS# is is an output and RTS# is an input.

Warning

Our latest test indicate that mbed platforms are not correctly handling the RTS signal. If you experience problems we recommend not using it and just usr CTS.


All wikipages