background image

NINA-B1 series - Getting Started 

UBX-16009942 - R04 

  

Configuration 

 

 

Page 7 of 19

 

2.3

 

Client and server 

A client will initiate a connection and the server will accept an incoming connection. 

 

Figure 2: NINA-B1 as a client connecting to the NINA-B1 server 

To configure a client to automatically set up a connection to a server, configure the correct Bluetooth service and 
the remote peer. The Bluetooth service controls the type of connection that is requested (see section 2.4) and 
the preferred server to connect is defined by the remote peer. 

 

Default Remote Peer 

AT+UDDRP

  Configures server (profile and address) to connect and when to 

initiate the connection. Peer is enumerated starting with id 0.  

 

Server Configuration 

AT+UDSC

:

  Will only accept incoming connection attempts for the configured 

server profile. NINA-B1 will have the SPS enabled by default.  

2.4

 

Bluetooth services 

The Generic Attributes (GATT) is used when Bluetooth LE devices exchanges data. There are two roles defined in 
GATT - the client and 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 client when specified events occur on the GATT server. 
Official as well as user defined GATT Services can be set up with AT commands. The Serial Port Service (SPS) is a 
u-blox proprietary serial cable emulation service, which is enabled by default. 

2.5

 

Command mode, Data mode, and Extended data mode 

By default, NINA-B1 will enter command mode and has to be reconfigured to start up in data mode or extended 
data mode. From the  data mode or extended data mode, it is possible to enter the command mode by 
transmitting escape sequence to the module. By default, the escape sequence is: 

1.

 

Silence 1 second 

2.

 

+++ 

3.

 

Silence 1 second 

 

The +++ must be sent within 200 ms, which means that it is difficult or impossible to enter the 

escape sequence manually using a terminal window though the characters can also  be typically pasted 
instead. The module leaves the command mode and enters data mode using the 

ATO1/ATO2

 command. It 

is also possible to toggle the UART DTR pin from High to Low to enter the command mode. 

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: