Software - ICP DAS USA BLE-USB User Manual

Usb to bluetooth low energy converter
Hide thumbs Also See for BLE-USB:
Table of Contents

Advertisement

3. Software

3.1 The AT Command
3.1.1 The AT Command syntax
The AT commands help users to control or get the information of BLE-USB. The prefix "AT+"
must be included at the beginning of each command line (except +++, AT and ATE), and
the character <CR> is used to finish a command line. When the application would like to send a
series of AT commands, leave a pause between the preceding and the following command until
information responses (e.g. "OK"). In the present document, AT commands can divide into
four types: Write Command, Read Command, Test Command and Execution Command. If the
AT command isn't exist or syntax error, and the BLE-USB would be reply error code. All of
AT commands will valid when the module was entering to the AT command mode (except
+++). The correct flow of AT command was shown in
Type "+++<CR>"to
enter AT command
mode
1. Write Command
The write command can write configure to the BLE-USB. The format of write command is
"AT+XXX=YYY<CR>".The "AT+" is a beginning in the command, and the "XXX" is
command name, and the "YYY" is a parameter, and the<CR> is end of the command. The
syntax or parameter was incorrect and the BLE-USB would be reply error code. The user didn't
reset configure again because all of configure will be save in the local memory after receive
write command.
2. Read Command
The read command can read configure from the BLE USB. The format of read command is
"AT+XXX?<CR>".The "AT+" is a beginning in the command, and the "XXX" is command
Type AT command
AT+XXX=YYY<CR>
(Write command)
Figure 3-1. The flow of AT command
BLE-USB, USB to Bluetooth Low Energy Converter (Ver. 1.0, Oct/6/2016) 15
Figure
3-1.
Type "ATE<CR> to leave AT
command mode
Auto
without any command after
50 second
leave
AT
command

Advertisement

Table of Contents
loading

Table of Contents