When in the Micro position, the DOUT pin of the wireless module is
connected to the RX pin of the microcontroller; and DIN is connected to TX.
The wireless module will then commu nicate with the microcontroller. Not e
that the RX and TX pins of the microcontroller are still connect ed to the TX
and RX pins (respectively) of the USB-to-serial converter. Data sent from
the microcontroller will be transmitted to the computer via USB as well as
being sent wirelessly by the wireless module. The microcontroller will not be
programmable via USB in this mode.
With the switch in the USB position, the DOUT pin the wireless module is
connected to the RX pin of the USB-to-serial converter, and DIN on the
wireless module is connected to the TX pin of the USB-to-serial converter.
This means that the module can communicate directly with the computer.
The microcont roller on the board will be bypassed. To use the shield in
this mode, you must program the microcontroller with an empty
sketch (shown below), or remove it from the board.
Empty sketch:
void setup() { }
void loop() { }
[Get Code]
Networking
The Wireless SD shield can be used with different modules with the same footprint as the XBee modules.
The instructions below are for the XBee 80 2.15.4 modules (sometimes called "Series 1" t o distinguish
them from the Series 2 modules, although "Series 1" doesn't appear in the official name or product
description) and also for the XBee ZNet 2.5 or XBee ZB modules, both known as "Series 2" modules. All
the modules, basically have the same type of configuration parameters, but differ by the function that
they implement and the topologies of networks that they can create. Can communicate with each other
only modules of the same family.
Addressing
There are multiple parameters that need to be configured correctly for two modules to talk to each other
(although with the default settings, all modules should be able to talk to each other). They need to be on
the same network, as set by the ID parameter (see "Configuration" below for more details on the
parameters). The modules need to be on the same channel, as set by the CH parameter. Finally, a
module's destination address (DH and DL parameters) determine which modules on its network and
channel will receive the data it transmits. This can happen in a few ways:
If a module's DH is 0 and its DL is less than 0xFFFF (i.e. 16 bits), data transmitted by that module
will be received by any module whose 16-bit address MY parameter equals DL.
If DH is 0 and DL equals 0xFFFF, the module's transmissions will be received by all modules.
If DH is non-zero or DL is greater than 0xFFFF, the transmission will only be received by the
module whose serial number equals the transmitting module's destination address (i.e. whose SH
equals the transmitting module's DH and whose SL equals its DL).
Again, this address match ing will only happen between modules on the sa me network and channel. If two
modules are on different networks or channels, they can't communicate regardless of their addresses.
For the "Series 2" modules you must chose which firmware put on the module to give it Coordinator,
Router or End Device fun ct ion ality. Series 2 use on ly serial low (SL) and serial high (SH) for addressi ng.
Configuration