ST UM1990 User Manual

December 2015
DocID028662 Rev 2
1/27
www.st.com
UM1990
User manual
Wireless Bridge 868 MHz
Introduction
This user manual explains the functionality of the STM32-based Wireless Bridge (STEVAL-IDI004V2), which can be used for various home building automation, Smart city, IoT and industrial applications.
Figure 1: Wireless Bridge 868 MHz
Figure 2: Wireless Bridge
The STEVAL-IDI004V2 board supports the following communication protocols, Wi-Fi module:
1. Wi-Fi communication @ 2.4 GHz IEEE 802.11 b/g/n using SPWF01SA module
2. Sub-GHz communication @ 868 MHz Low Power RF using SP1ML-868
3. Bluetooth communication @ 2.4 GHz,v3.0 compliant using STBT2632C2A module
4. NFC communication @ 13.56 MHz using CR95HF
Contents
UM1990
2/27
DocID028662 Rev 2
Contents
1 System overview ............................................................................ 3
2 Getting started ................................................................................ 5
2.1 Power up sequence ......................................................................... 5
2.2 Application testing ............................................................................ 5
3 Android application ........................................................................ 6
3.1 Installing Android application............................................................ 6
3.2 Communication over Bluetooth ........................................................ 6
4 Configuration utility ..................................................................... 14
4.1 Wireless Bridge configuration utility installation.............................. 14
4.2 Features supported ........................................................................ 16
4.3 Utility usage.................................................................................... 16
4.3.1 Home page ...................................................................................... 16
4.3.2 Wireless bridge settings .................................................................. 18
4.3.3 Node registration ............................................................................. 18
4.3.4 Debug trace mode: .......................................................................... 20
5 Firmware Updating and Flashing ................................................ 22
5.1 STM32 MICROCONTROLLER (U4) .............................................. 22
5.1.1 Using SWD: ..................................................................................... 22
5.1.2 Using DFU through USB: ................................................................ 22
5.2 SPIRIT1 Module (U5) ................................ ................................ ..... 24
6 Reference documents .................................................................. 25
7 Revision history ........................................................................... 26
UM1990
System overview
DocID028662 Rev 2
3/27
1 System overview
The system STM32F103 microcontroller functions as the bridge between various communications modules. The Wi-Fi, Bluetooth and Sub GHz modules are connected via UART to the STM32, while the NFC transceiver module is connected via SPI.
The board requires a 5 V, 1 A wall adapter for power, and a USB Micro B-Type connector can interface the board to the PC.
Figure 3: Wireless Bridge WiFi/NFC/BT/RFSubGHz scenario
When the board is connected to a PC via USB, Wi-Fi configuration parameters and the mesh node configuration can be programmed through a PC GUI application and debug log messages can be collected through the same GUI.
The sensor data from any node in the mesh network (6LoWPAN) is accessible through the android application as well as through a Cloud based application at the website (http://cloudbridge.azurewebsites.net/) using the Wi-Fi interface.
The board is powered through a 5 V, 1 A wall adapter, and the status of various communication interfaces is indicated by five LEDs on the board.
The RF nodes that can be connected by RF SubGHz 6LoWPAN in the Wireless Bridge are STEVAL-IDI003V2+STEVAL-IDI002V2.
The Wireless Bridge board are embedding the following RF modules:
Sub-GHz RF module: SP1ML-868
868 MHz ETSI-certified module  Based on sub-GHz SPIRIT1 transceiver, STM32L1 ULP MCU and balun (BALF-
SPI-01D3)
Chip antenna  Simple AT command
Wi-Fi module: SPWF01SA.11
2.4 GHz IEEE 802.11 b/g/n Wi-Fi  Pre-certified RF module (FCC, IC, CE)  Integrated TCP/IP  AT commands  TLS/SSL for end-to-end security  Over-the-air firmware updates
System overview
UM1990
4/27
DocID028662 Rev 2
BT Classic module: SPBT2632
Bluetooth® Classic 3.0 version  Embedded firmware, including Bluetooth stack and profile, SPP and iAP profiles  AT commands  CE, FCC, IC, TELEC certified  Low-power mode supported
UM1990
Getting started
DocID028662 Rev 2
5/27
2 Getting started
2.1 Power up sequence
Short pins 2 and 3 of jumper J13 (BOOT0 pin of STM32F103REx U4) using a 2 pin
header.
Connect a 5 V adapter to the Power Jack (J3).  LED D4 (PWR/ERR) glows red for a second and then flashes red and orange every
second. Also, LED D3 (Wi-Fi) starts blinking to indicate Wi-Fi communication.
Figure 4: Wireless Bridge board
2.2 Application testing
During correct initialization, LED D4 remains red for a few seconds and then start
toggling every second between red and orange. If the LED stops toggling, it means the firmware is stuck in a routine, which the independent microcontroller watchdog will eventually reset and the firmware will reboot.
LED D3 (Wi-Fi) indicates Wi-Fi communication and flashes whenever there is some
communication over the Wi-Fi.
LED D5, D7 and D8 remain off.  The SP1ML-868 module regularly seeks sensor nodes in the 6LoWPAN and, when
one is detected, D5 turns on and continues to flash while a valid sensor node remains detected by the Wireless Bridge board. If D5 stays on without flashing, it indicates a stuck routine and the module will be reset by the watchdog routine.
The firmware regularly scans for any NFC tags in range and, as soon as one is
detected, D8 turns on and remains on while the tag remains in the detectable range of the Wireless Bridge board.
Android application
UM1990
6/27
DocID028662 Rev 2
3 Android application
3.1 Installing Android application
1. Save the apk in the phone memory.
2. Download a file explorer from Google Play Store; an example is ES File Explorer (https://play.google.com/store/apps/details?id=com.estrongs.android.pop&hl=en) .
3. Use the file explorer to locate and install the apk on the phone.
The application works best on Nexus S, Nexus 4 and Nexus 7 phones and tablets.
3.2 Communication over Bluetooth
Install the Wireless Bridge Android Application on the Android phone
(WirelessBridge.apk available on st.com)
Once installed, launch the application on the mobile phone as shown in Figure 5:
"Wireless Bridge application"
Figure 5: Wireless Bridge application
If the Bluetooth radio is not switched on, the application asks for permission to switch
on the radio, otherwise the application will exit.
The figure below shows the Wireless Bridge Application. Click on the settings on the
Application or on the icon provided on the mobile (depending on the mobile version) to connect to the BT module of the Wireless Bridge.
UM1990
Android application
DocID028662 Rev 2
7/27
Figure 6: Wireless Bridge application main view
A dialog pops-up, asking the user to scan the BT modules available and select the
Wireless Bridge to connect with. If the BT module is has already been seen, then the user does not need to scan devices.
Figure 7: List of available BT devices
Android application
UM1990
8/27
DocID028662 Rev 2
When the user selects the BT module, the application signals when the module
connects.
As soon as the BT module on Wireless Bridge board is connected to the smart
phone's BT interface, LED D7 turns on and stays on for as long as the connection between the Bluetooth devices remains live.
To proceed, the user needs to click on the center of the application, as shown in
Figure 8: "Click to proceed".
Figure 8: Click to proceed
The Wireless Bridge provides nodes connected via 6LoWPAN and NFC protocols.
The application allows you to select the connectivity protocol and proceed as shown in
Figure 9: "User options". Data exchange takes place over Bluetooth communication.
UM1990
Android application
DocID028662 Rev 2
9/27
Figure 9: User options
The user needs to set the channel ID for the Wireless Bridge board and Sensor Node.
The channel Id should be same for both sets of boards. The channel ID for the Wireless Bridge board can be set by selecting the channel ID and pressing the "Write" button. To set the channel ID for the Sensor Node, the user needs to bring the sensor node near the NFC antenna. The figure below shows the option to set the channel ID for Wireless Bridge board and Sensor Nodes.
Loading...
+ 18 hidden pages