background image

NINA-B1 series - Getting Started 

UBX-16009942 - R04 

  

Configuration 

 

 

Page 6 of 19

 

2

 

Configuration 

You can configure the NINA-B1 module according to your  specific requirements by using AT commands (see  

u-blox Short Range Modules AT Commands Manual [1]

). The easiest way to get started is to use the  u-blox  

s-center, which is a graphical user interface for sending the AT-commands (see 

s-center Product Summary [4]

). 

The u-blox s-center allows an easy configuration for the most common AT commands. 

2.1

 

Basic settings 

There are some basic commands for controlling the general Bluetooth behavior of the module. 

 

Connectable - 

AT+UBTCM

:

 Configures the connectability for incoming connections. 

 

Discoverable - 

AT+UBTDM

:

 Configures the visibility for remote devices making inquiries. 

 

Pairable - 

AT+UBTPM

:

 Configures the ability to pair (authenticate) for the remote devices. 

 

Bluetooth name - 

AT+UBTLN

:

 The name presented to the remote devices making inquiries  or name 

requests. 

Once a pairing has been done with a remote device, it is recommended to disable both discoverable and pairable 
mode for security reasons and performance.  

2.2

 

Peers 

A connection consists of a sender and a receiver of data. Every sender and receiver in a setup is referred to as a 
peer. Thus, a peer is capable of either receiving and/or sending data. 
There are two kinds of peer 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 defined if a multidrop scenario is needed. 
A remote peer is addressed using a Uniform Resource Locator, URL. These locators are strings representing the 
nodes on internet or on a local net. This is the same addressing technology used in case of a web browser. For 
more information about URLs, check out http://www.rfc-base.org/txt/rfc-1738.txt. 
In general, URLs are written as follows: 

<scheme>:<scheme-specific-part> 

Where <scheme> is the scheme or protocol used when communicating and <scheme-specific-part> is normally 
the address and port number of the remote node.  For example,  a web server on the internet can have the 
following address: 
http://www.u-blox.com/

 

This tells the browser to use the HTTP protocol and connect to the node at address http://www.u-blox.com/. A 
similar addressing scheme is used by NINA-B1 to pinpoint the remote peer. The scheme is not "http", but the 
node addressing is identical. 
Available schemes: 

 

sps: Bluetooth low energy u-blox Serial Port Service 

Syntax: 

 

sps: <scheme>://bluetooth_address/ 

Example 

 

sps://0012f3000001 

A peer can be set up using either the default remote peer command 

AT+UDDRP

 or dynamically created using 

the connect peer command 

AT+UDCP

. A connection is closed using 

AT+UDCPC

 

The  Bluetooth  low  energy SPS service  is enabled by default in NINA-B1 and it  accepts incoming 

connections by default. 

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: