XBee RawDeviceThe XBee RawDevice exposes all the terminals of an XBee module. Usually, you create this Device when the XBee is a module with all of its I/O exposed. However, any XBee based device can be added as a RawDevice. In this case, all the terminals on the device will be exposed. This may be what you want if you are dealing with a new design or want to get into the innards of an existing device. XBee RawDevice TerminalsThe terminals on a RawDevice fall into two groups. The first group, DIN and DOUT, are the serial port pins of the XBee. Anything on the DOUT terminal will be sent out the XBee's DOUT serial port pin. Anything the XBee receives from its serial port DIN pin will show up on its DIN terminal. Terminals DIO0 - DIO12 are general purpose I/O pins. These are configured using AT commands. XBee RawDevice InstallationTo install a RawDevice, the XBee device must be joined into an existing XBee network (which the Virtual Wiring system is a part of), or the device must be wired to a USB port on the Virtual Wiring system. Once joined or wired, create a RawDevice by running the RawDevice Script. The parameters for the RawDevice Script are:
ExampleTo add a RawDevice with ID "raw_device" and network address 0013a200406b0263 to a system which is wired to a Coordinator Device at port_location "/dev/ttyUSB0", run the RawDevice Script with the following parameters:
Note: the port_location parameter can be set to nil, if the system owns only one XBee network. |