NINA-B31 series - Getting Started
UBX-18022394 - R02
Use case examples
Page 19 of 26
AT+CPWROFF
•
Change escape character from default ‘+’ (ASCII 43) to ‘-‘ (ASCII 45) to make the escape sequence
pass through Device A without getting detected as an escape sequence at Device B
ATS2=45
•
Find the other device (Device A)
AT+UBTD=4,1
+UBTD:112233445566p,-59,"NINA-B3 Device A",1,1109426C756574...
•
Create an SPS connection to Device A
AT+UDCP="sps://112233445566”
•
Enter data mode
ATO1
•
Enter configuration mode by sending escape sequence of Device A. By default, the NINA-B3
escape sequence is:
1.
Silence 1 second
2.
+++
3.
Silence 1 second
•
Device B can now send AT-commands to Device A, for example, reading the local Bluetooth
address of Device A:
AT+UMLA=1
+UMLA:112233445566
4.9
NFC web link
Store a web link to the NFC tag; this web link will be opened in the browser of your NFC enabled smart
phone when you touch the NFC antenna of NINA-B31 with your smart phone.
•
Set URI to NFC tag
AT+UNFCURI=1,https://www.u-blox.com
•
Enable NFC URI
AT+UNFCEN=2
•
Touch the NFC antenna of NINA-B31 with the smart phone to go to the u-blox website.
4.10
NFC launch app
Store an Android application’s package name to the NFC tag; this application will be opened on your
NFC enabled smart phone when you touch the NFC antenna of NINA-B31 with your smart phone.
The Android package name is the unique identifier of an application. It can be found by searching for
the app and finding the Google Play web page for the app. For example, the web page for Google
Calendar is:
https://play.google.com/store/apps/details?id=
•
Set URI to NFC tag
AT+UNFCURI=2,com.google.android.calendar
•
Enable NFC URI
AT+UNFCEN=2
•
Touch the NFC antenna of NINA-B31 with the smart phone to open the Google Calendar app
4.11
Pair NINA-B31 to a smart phone using NFC
Use NFC to initiate the pairing between NINA-B31 and an NFC enabled smart phone.