Running the Wireless UART application using NXP IoT Toolbox mobile application
To run the Wireless UART application using NXP IoT Toolbox mobile application, follow the steps as listed below:
Note: Before working on these steps, ensure to install the latest version of the NXP IoT Toolbox mobile application from the application store.
Flash the board with the Wireless UART application as previously described.
Open Tera Term (or any other Serial Communication software) and choose Serial. Then choose the port of your board and click OK.
Setting up a new Tera Term connection for Wireless UART application
Stop running the code on the board. Go to Setup >Serial Port.
Setting the serial port
Choose the required Speed (baud rate) and Flow Control values. Here, the baud rate should be 115200 and the Flow control mode should be set to Xon/Xoff.
Setting the baud rate
Ensure that the Bluetooth device of your phone is enabled.
Open the IoT Toolbox application and select the Wireless UART icon.
NXP IoT Toolbox application
Now run the application on the board. On this step, the RGB LED blinks white quickly. Press the button SW3 to switch to Peripheral (Central) mode, then press SW2 to start Advertising (scanning). The Tera Term terminal shows the message shown in the figure below.
Tera Term console
The device should become visible for the Wireless UART mobile application.
NXP Wireless UART scanned by IoT toolbox app
Select the device that appears in the Wireless UART tab to connect to it. After connecting, the mobile application shows the console, as shown below. Users can choose between the Wireless Console and Wireless UART tabs.
The device should become visible for the Wireless UART mobile application.
Wireless UART working in Connected mode
On the IoT Toolbox Wireless application console, the message is introduced in one line and sent to the peer. If Wireless UART mode is used, communication is done character by character. On Tera Term, the message received is displayed. One character at a time can be sent from Tera Term to the peer. When the mobile application receives the character, it displays it.
The next figure shows the board acting as a peripheral, connected to a phone using IoT Toolbox in Wireless Console and Wireless UART modes.
Exchanging messages between the phone and Wireless UART Console