NINA-B31 series - Getting Started
UBX-18022394 - R02
Configuration
Page 7 of 26
2
Configuration
You can configure the NINA-B31 module according to your specific requirements by means of 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 enables 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 as listed
below.
•
Connection Mode - AT+UBTCM: Configures the module for incoming connections.
•
Discover Mode - AT+UBTDM: Configures the visibility for remote devices making inquiries.
•
Pairing Mode - AT+UBTPM: Configures the ability to pair (authenticate) to remote devices.
•
Bluetooth name - AT+UBTLN: Sets the name presented to remote devices making inquiries or
name requests.
Once pairing has been done with a remote device, it is recommended to disable both discover and
pairing 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 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, see
http://www.rfc-base.org/txt/rfc-
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:
This tells the browser to use the HTTP protocol and connect to the node at address
. A similar addressing scheme is used by NINA-B31 to pinpoint the remote
peer. The scheme is not "http", but the node addressing is identical.
Available schemes:
•
sps, which is for the Bluetooth low energy u-blox Serial Port Service
Syntax:
•
sps://bluetooth_address/