-9-
v7.1
Hardware
The API provides a function called
ON()
in order to switch the XBee module on. This function supports a parameter
which permits to select the SOCKET. It is possible to choose between SOCKET0 and SOCKET1.
Selecting SOCKET0 (both are valid):
xbee868LP.ON();
xbee868LP.ON(SOCKET0);
Selecting SOCKET1:
xbee868LP.ON(SOCKET1);
In the case two XBee 868LP modules are needed (each one in each socket), it will be necessary to create a new
object from WaspXBee868LP class. By default, there is already an object called xbee868LP normally used for
regular SOCKET0.
In order to create a new object it is necessary to put the following declaration in your Waspmote code:
WaspXBee868LP xbee868LP_2 = WaspXBee868LP();
Finally, it is necessary to initialize both modules. For example, xbee868LP is initialized in SOCKET0 and xbee868LP_2
in SOCKET1 as follows:
xbee868LP.ON(SOCKET0);
xbee868LP_2.ON(SOCKET1);
The rest of functions are used the same way as they are used with older API versions. In order to understand them
we recommend to read this guide.
Warnings:
•
Avoid to use DIGITAL7 pin when working with Expansion Board. This pin is used for setting the XBee into sleep.
•
Avoid to use DIGITAL6 pin when working with Expansion Board. This pin is used as power supply for the
Expansion Board.
•
Incompatibility with Sensor Boards:
-
Agriculture v30 and Agriculture PRO v30: Incompatible with Watermark and solar radiation sensors
-
Events v30: Incompatible with interruption shift register
-
Gases v30: DIGITAL6 is incompatible with CO2 (SOCKET_2) and DIGITAL7 is incompatible with NO2
(SOCKET_3)
-
Smart Water v30: DIGITAL7 incompatible with conductivity sensor
-
Smart Water Ions v30: Incompatible with ADC conversion (sensors cannot be read if the Expansion Board
is in use)
-
Gases PRO v30: Incompatible with SOCKET_2 and SOCKET_3
-
Cities PRO v30: Incompatible with SOCKET_3. I2C bus can be used. No gas sensor can be used.