BlueMod+S AT Command Reference Table of contents Introduction ......................5 1.1 AT Command Mode ..................5 1.2 Escape Sequence ..................5 1.3 Multiplexing Mode (MUX) ................6 1.4 Hangup ......................7 Commands ......................8 2.1 General ......................8 Baud Rate ..................8 &F...
Page 4
BlueMod+S AT Command Reference RFMAXTXPWR Maximum Output Power ............16 AT S Register ................17 UICP Set UART Interface Control Protocol ........... 17 Result Message Format .............. 18 Extended Result Codes .............. 18 2.2 Bluetooth Low Energy ................. 18 LEADINTMAX Maximum Advertising Interval ..........18 LEADINTMIN Minimum Advertising Interval ..........
BlueMod+S AT Command Reference 1 Introduction This documentation specifies the command interface for the BlueMod+S. The BlueMod+S supports AT command mode. 1.1 AT Command Mode Each command line consists of a prefix, a body and a terminator. All command lines begin with the prefix AT (ASCII 065, 084) or at (ASCII 097, 116).
AT command interface via MUX protocol Result messages like RING, CONNECT and NO CARRIER may be sent in multiple frames by the BlueMod+S module. The host controller application needs to collect the data until the closed “<CR><LF>” is received. If the multiplexing mode is enabled the commands ATH and the result messages RING, CONNECT and NO CARRIER includes the additional parameter “channel...
(message NO CARRIER). For customer defined GATT services, the “channel ID” is assigned while service definition for each defined characteristic separately and is valid until the BlueMod+S is resetted. 1.4 Hangup An active data connection can be disconnected by setting the HANGUP pin (GPIO4) to high level.
BlueMod+S AT Command Reference 2 Commands The description of the commands is structured into the following parts: General commands Bluetooth Low Energy (BLE) specific commands The factory-default values of the commands are marked using the bold letter format.
Set baud rate to 230,400 bps AT%B250000 Set baud rate to 250,000 bps Note: Information regarding the deviation of the real baud rate to the value set can be found in the BlueMod+S Hardware Reference [1]. &F Load Factory Defaults AT syntax: AT&F<value>...
BlueMod+S AT Command Reference &W Store Active Configuration AT syntax: AT&W The active configuration is stored in non-volatile memory. Accept Incoming Call AT syntax (normal mode): AT syntax (MUX mode): ATA <channel ID> This command is supported for compatibility reasons only. A Bluetooth low energy device has to answer every connection automatically.
In case the user choose a scenario where MITM protection is not possible but one of the communication devices is configured to BMITM=1 (MITM protection enabled), the pairing is refused. Possible combinations of I/O capabilities and the possibility of MITM protection are described in the BlueMod+S User Guide [2]. BMUX Activate Multiplexing Mode AT syntax: AT+BMUX=<value>...
Delete all bonded devices from bndlist BNDLIST Show Bonded Device List AT syntax: AT+BNDLIST This command shows information about the devices bonded with the BlueMod+S. Each entry in the BNDLIST contains the Bluetooth address and the linktype (see chapter 3.1). Example: AT+BNDLIST...
BPAIRMODE Configure Pairable Mode AT syntax: AT+BPAIRMODE=<mode> This command controls the pairable mode of the BlueMod+S. When set to “0” the module is only connectable for clients stored in the local bondlist. New pairing requests will be rejected. Mode Description No pairing allowed, BlueMod+S advertises TIO as “functional”...
BlueMod+S AT Command Reference “AT+LEATTRIB=charval,uuid=2A19,perm=0022,len=1” with “perm” for read with authentication permitted and write with authentication permitted). BSSPPIN SSP Passkey Response AT syntax: AT+BSSPPIN <Bluetooth address>,<SSP passkey> If a SSP is initiated and MITM is active (BMITM=1), depending on the I/O capabilities (BIOCAP) the AT interface generates an event SSPPIN and asks the user for the SSP passkey.
This command loads all parameters stored in non-volatile RAM. Return to Online State AT syntax: If the BlueMod+S is in command mode after issuing an escape sequence while a connection is active, ATO returns the BlueMod+S to data mode. Suppress Results AT syntax: ATQ<value>...
BlueMod+S AT Command Reference All other values in the range of -127 to 127 could be set with this command as well, but the equal or next lower value from the power table will be set internally. Furthermore the value will be set to a value amongst minimum and maximum output power value of the device.
BlueMod+S AT Command Reference AT+UICP=1 AT&W AT+RESET Result Message Format AT syntax: ATV<value> This command determines the format of the result messages. Value Description 0 or empty Result message is presented numerically (followed by <CR>) Result message is presented as text...
AT Command Reference LEADINTMIN Minimum Advertising Interval AT syntax: AT+LEADINTMIN=<value> This command is not used in the BlueMod+S. It is just provided for compatibility reasons. The used advertising interval is set by AT+LEADINTMAX parameter. LECONINTMAX Maximum Connection Interval AT syntax: AT+LECONINTMAX=<value>...
BlueMod+S AT Command Reference LEROLE Bluetooth Low Energy Device Role AT syntax: AT+LEROLE=<value> This command configures the Bluetooth Low Energy role of the device. Value Description Set device role to “Peripheral” When set to “Peripheral” (default), the device advertises and accepts incoming BLE connections.
BlueMod+S AT Command Reference LEADDATA Setup Advertise Data for Customized Advertising AT syntax: AT+LEADDATA=<value > .. <value > This command is used to setup the advertise data for a customized advertising. Value represents an octet in hexadecimal format, k <= 31.
BlueMod+S AT Command Reference LEADPAR Setup Parameters for Customized Advertising AT syntax: AT+LEADPAR=par =<value >[, .. [,par =<value >]] This command is used to setup parameters for a customized advertising. value advtype Type of advertising: 0: undirected (default) Optional 2: scannable Coding: decimal.
If the space is completely used the command “AT+LEATTRIB=charval,…” returns “ERROR”. The GAP and GATT services that each GATT server must expose are built-in services in the BlueMod+Stollmann E+V GmbH and thus shall not be defined by the application! Release r02 www.stollmann.de...
Page 24
BlueMod+S AT Command Reference The presence of parameters par ,..,par depends on the value of <type>: type pserv uuid=<16/128bit UUID> Mandatory Mandatory Coding: hexadecimal. char prop=<properties> Mandatory Mandatory Coding: hexadecimal. properties may have the bitmask values Read, Write Without Response, Write, Notify and Indicate set.
Page 25
BlueMod+S AT Command Reference type chardcccd perm=<permissions> Optional Mandatory Coding: hexadecimal. This command is needed only if a CCCD shall be generated with permissions other than „readable and writable without authentication or authorization“. See note in type=char description. chardusrd usrd=<user description >...
Page 26
BlueMod+S AT Command Reference The characteristic properties are coded as a hexadecimal bitmask as defined in Bluetooth Core Spec 4.0 Volume3 Part G Chapter 3.3.1.1 [3]. Value Properties Read Write without response Write Notify Indicate The values can be combined, for example read & notify result in 12.
Page 27
BlueMod+S AT Command Reference The LEATTRIB commands must be submitted in a specific order: Definition of first service: AT+LEATTRIB=pserv, … Definition of first characteristic of first service: AT+LEATTRIB=char, … … optional characteristic descriptors (AT+LEATTRIB=chardxxx) … AT+LEATTRIB=charval, … Definition of second characteristic of first service: AT+LEATTRIB=char, …...
Page 28
BlueMod+S AT Command Reference Example: The example below shows the Battery Service. Battery Service is a simple service which exposes the battery charging level as single characteristic value. Command Response Description CC FF 1C 41 54 2B 4C 45 41 54 54 52 49 42 3D 70...
BlueMod+S AT Command Reference Appendix 3.1 Linktype Linktype Meaning 0x02 Bluetooth low energy using public address 0x03 Bluetooth low energy using random address 0x0A Bluetooth low energy using resolved address 3.2 AT Result Codes Result codes (numerical and verbose): Numeric...
BlueMod+S AT Command Reference Examples: Normal mode Numerical (ATV0) 2 <00802501D11A 0x02> Verbose (ATV1) RING <00802501D11A 0x02> MUX mode Numerical (ATV0) 2 <00802501D11A 0x02 0x01> Verbose (ATV1) RING <00802501D11A 0x02 0x01> 3.3.3 NO CARRIER For the AT result code NO CARRIER the following extended result codes are...
Added note for AT&F More detailed description for returned channel format Correct characteristic default value description Remove note from LEATTRIB table Revised description of LEADPAR Stollmann Entwicklungs- und Vertriebs-GmbH Phone: +49 (0)40 890 88-0 Mendelssohnstraße 15 D Fax: +49 (0)40 890 88-444 22761 Hamburg E-mail: info@stollmann.de...
Need help?
Do you have a question about the BlueMod+S and is the answer not in the manual?
Questions and answers