-8-
v7.0
Dual radio with the Expansion Board
This API provides a function in order to initialize the RFID/NFC module called
RFID13.ON(socket)
. This function supports a
new parameter which permits to select the socket. It is possible to choose between socket0 or socket1.
An example of use the initialization function is the following:
•
Selecting socket0:
RFID13.ON(SOCKET0);
•
Selecting socket1:
RFID13.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:
•
Warnings:
•
Avoid to use DIGITAL7 pin when working with the Expansion Board. This pin is used for setting the XBee into sleep mode.
•
Avoid to use DIGITAL6 pin when working with the 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.
3.2. Setting on
With the function
ON()
module is powered and the UART is opened to communicate with the module. It also enters in command
mode and sets some default configurations.
// switches ON the RFID/NFC module using expansion board
RFID13.ON(SOCKET1);
3.3. Setting off
The RFID/NFC API function
OFF()
exits from the radio RFID/NFC command-mode securely, closes the UART and switches the
module off.
// closes the UART and powers off the module
RFID13.OFF();