background image

NINA-B1 series - Getting Started 

UBX-16009942 - R04 

  

Use case examples 

 

 

Page 15 of 19

 

4.4

 

Setup Eddystone on NINA-B1 

Setup NINA-B1 to advertise Google Eddystone packets: 

 

This example will  show how to send an URL inside the advertisement  packet;  by nature,  the 

advertisement packet is limited in size and the information is also limited. 

The payload contains a short version of an URL, for example 

https://goo.gl/Aq18zF.

The link is encoded to 

save space, but most smartphones can use this information to navigate to the advertised URL. See 

[6]

 for more 

information about Eddystone. 

 

To change advertise packet on NINA-B1 to include the Eddystone URL: 

o

 

AT+UBTAD=0303AAFE0D16AAFE10F801752D626C6F7807 
 

 

To change Local Name to “Bluetooth Device”: 

o

 

AT+UBTSD=1109426C7565746F6F746820446576696365

 

4.5

 

Change the NINA-B1 name 

NINA-B1 (Device A) is a Peripheral 

 

Set Local Name on NINA-B1 to  

o

 

AT+UBTLN="u-blox NINA-B1" 

NINA-B1 (Device B) as a Central 

 

Set Central Role on NINA-B1 

o

 

AT+UBTLE=1 

 

Store configuration 

o

 

AT&W

 

 

Restart NINA-B1 

o

 

AT+CPWROFF 

 

Make a Device Discover to find Device A 

o

 

AT+UBTD 

o

 

+UBTD:

112233445566p

,-70,"u-blox NINA-B1",1,0F09752D626C6F78204E494E412D... 

4.6

 

Configure NINA-B1 over air 

Set up NINA-B1 (Device A) that should be configured over air 

 

Enable remote configuration through the SPS server 

o

 

AT+UDSF=0,1 

 

Enter data mode 

o

 

ATO1 

Set up NINA-B1 (Device B) 

 

Enable Central Role 

o

 

AT+UBTLE=1 

 

Store configuration 

o

 

AT&W 

 

Restart 

o

 

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 

o

 

ATS2=45 

 

Find the other device (Device A) 

o

 

AT+UBTD=4,1 
+UBTD:112233445566p,-59,"NINA-B1 Device A",1,1109426C756574... 

 

Create an SPS connection to Device A 

o

 

AT+UDCP="sps://112233445566” 

 

Enter data mode 

o

 

ATO1 

Summary of Contents for NINA-B1 Series

Page 1: ...les Getting Started Abstract This document describes how to set up and use the NINA B1 series Bluetooth low energy module with the u blox connectivity software It also provides a technical overview of...

Page 2: ...third parties of this document or any part thereof without the express permission of u blox is strictly prohibited The information contained herein is provided as is and u blox assumes no liability f...

Page 3: ...7 Bluetooth security 10 2 8 Low power modes 10 3 Evaluation board 11 3 1 LED indications and buttons 11 3 2 Restore default serial settings 11 3 3 Restore factory settings 12 3 4 Enter the bootloader...

Page 4: ...A B1 series can operate in the following three different modes Command mode Data mode Extended Data mode In command mode the module is configured using AT commands For information regarding the availa...

Page 5: ...dits to the client using the credit indication and the client writes the number of credits to the server The credits correspond to the number of packets the remote side may write before receiving new...

Page 6: ...eer classes in the serial port adapter Local peer Remote peer The local peer is synonymous with the UART In contrast to the local peer the remote peer is another device Several remote peers can be def...

Page 7: ...d server For more information about GATT see 8 The GATT server stores data received from the GATT client The GATT server sends responses to requests and sends indications and notifications to the GATT...

Page 8: ...t from which remote device the data is received This multipoint strategy is called as Wireless Multidrop It is suitable mainly for master slave polled protocols such as Modbus and point to point commu...

Page 9: ...tipoint It is possible to configure a module to support up to 8 parallel Bluetooth connections These connections can be to 1 central and 7 peripherals in a multirole configuration The AT UBTCFG comman...

Page 10: ...Bluetooth 2 1 auto accept security AT UBTSM 1 to start with It is highly recommended to analyze the security and if appropriate use a more secured solution for example security mode 2 Bluetooth 2 1 J...

Page 11: ...n progress Orange The current mode is command mode Purple A connection attempt is in progress Blue A connection is currently active Blue Blinking A connection is active and data is transmitted or rece...

Page 12: ...er To enter the bootloader press the SW1 and SW2 buttons during a reset this will start the module in the u blox bootloader You can also enter the bootloader using the AT UFWUPD command The bootloader...

Page 13: ...ort Service enabled by default Startup in data mode o AT UMSM 1 Store configuration o AT W Restart o AT CPWROFF 4 2 Set up GATT Server Client on NINA B1 The following example shows how to set up a GAT...

Page 14: ...CD and subscribe to notifications of Heart Rate measurement value changes o AT UBTGWC 0 33 1 OK Update and notify new value of Heart Rate measurement Device A We can now set a new value 50 and send a...

Page 15: ...name NINA B1 Device A is a Peripheral Set Local Name on NINA B1 to o AT UBTLN u blox NINA B1 NINA B1 Device B as a Central Set Central Role on NINA B1 o AT UBTLE 1 Store configuration o AT W Restart...

Page 16: ...nter configuration mode by sending escape sequence of Device A By default the NINA B1 escape sequence is 1 Silence 1 second 2 3 Silence 1 second Device B can now send AT commands to Device A for examp...

Page 17: ...iation Term Explanation Definition ACL Asynchronous Connection Less BR Basic Rate DSR Data Set Ready DTR Data Terminal Ready EDM Extended Data Mode EDR Enhanced Data Rate GATT Generic Attributes HTTP...

Page 18: ...blox Low Energy Serial Port Service Protocol Specification Document No UBX 16011192 11 NINA B1 System Integration Manual Document No UBX 15026175 Revision history Revision Date Name Comments R01 17 Ju...

Page 19: ...Regional Office China Beijing Phone 86 10 68 133 545 E mail info_cn u blox com Support support_cn u blox com Regional Office China Chongqing Phone 86 23 6815 1588 E mail info_cn u blox com Support sup...

Reviews: