EH-MA41 User Guide
20-26
AT+DS=00189600000A<CR><LF>
disconnect with the specified device 00:18:96:00:00:0A.
SS=00<CR><LF>
the SPP channel 0 of Bluetooth module is now disconnected and is connectable.
5.2.3. SS
—Query the state of each SPP channel
5.2.3.1. Description:
This command is used to query the state of each SPP channel.
5.2.3.2. Syntax:
Synopsis:
AT+SS<CR><LF>
5.2.3.3. Examples:
Ex. 5.82. To query the state of each SPP channel:
AT+SS<CR><LF>
query the state of each SPP channel.
SS=01,00189600ABCD<CR><LF>
the SPP channel 0 of Bluetooth module is now connecting to the remote
device which address is 00:18:96:00:AB:CD.
SS=12,00189601ABCD<CR><LF>
the SPP channel 1 of Bluetooth module is now connected with the remote
device which address is 00:18:96:01:AB:CD.
SS=22,00189603ABCD,43<CR><LF>
the SPP channel 2 of Bluetooth module is now connected with the remote
device which address is 00:18:96:02:AB:CD, the name ID is 43.
SS=30<CR><LF>
the SPP channel 3 of Bluetooth module is now connectable
SS=40<CR><LF>
the SPP channel 4 of Bluetooth module is now connectable
SS=50<CR><LF>
the SPP channel 5 of Bluetooth module is now connectable
5.2.4. DT
—Send data packet to remote SPP device
5.2.4.1. Description:
This command is used to send a data packet to the remote SPP device.
5.2 .4.2. Syntax:
Synopsis:
AT+DT{=ChannelOrNameId,DataLen,Data}<CR><LF>
5.2.4.3. Parameter Description:
Parameter
Description
Mandatory
Comments
Channel Or Name ID
The SPP channel ID or Name
ID which will be used to send
the data packet.
Value: 00h
—0xh or 40h—4xh
(x is the maximum SPP
instance count, refer to 5.1.1)
00
—0x: the channel ID of SPP
40
—4x: the name ID of SPP
M
Data Len
The length in bytes of the data
to be sent.
Value: 00h-FFh
M
Data
The raw data.
M
5.2.4.4. Examples:
Ex. 5.83. To send data use SPP channel 0:
AT+DT=00,0A,1234567890<CR><LF>
send a data packet use SPP channel 0, the data length is 10(Dec).
OK<CR><LF>
response from the module to indicate the command is adopted.
Ex. 5.84. To send data use SPP Name ID 13h:
AT+DT=43,0A,1234567890<CR><LF>
send a data packet use SPP Name ID 43h, the data length is 10
OK<CR><LF>
response from the module to indicate the command is adopted.
5.3. HID Commands