User's Guide

© Copyright LM Technologies Ltd Page 27 of 70
www.lm-technologies.com
LM074 SPP with GAP Central Application v1.1
3.8.2 “AT*INDESPr\n
i. Execution only command.
ii. This command gives feedback to server/peripheral for notification
indication from server/peripheral.
iii. This command is used to acknowledge the sever that client(BLE-
Central) has received characteristic value Indication, and
server(BLE-Peripheral) may send another indication.
iv. Command format is “at*INDRESP=Conn-ID”.
v. e.g. “AT*INDRESP=1” gives indication response for 1
st
connected
BLE device for receiving notification indication.
vi. OK/ERR response is given by LM074 after checking the Connection
ID and Connection status.
vii. After OK response is given Response is forwarded to remote
device by BLE-Stack.
viii. No feedback form BLE-Stack is provided to this command.
3.8.3 “AT*WRWORESP”\r\n
i. Execution only command
ii. This command is used to send data to BLE device for the
characteristic which has properties as “Wr_cmd” i.e. 0x04.
iii. Command format is “AT*WRWORESP=conn-ID, char-Handle,
length, actual-bytes ”.
iv. e.g. “at*wrworesp=1,0019,10,12345abcdef!()12” command is
used to send data to 1
st
connected device, on characteristic 0019.
No of bytes to write are 0x10 i.e. 16 and actual bytes are
1,2,3,4,5,a,b,c,d,e,f,!,(,),1,2.
v. As shown in the example command number of bytes to transmit is
hex value.
vi. As shown in the example command, actual data bytes are not
separated by a comma. When the value 0x31 is sent i.e. ASCII 1
is sent, the data buffer is copied and sent to remote device
transparently.
vii. Note : The actual data bytes to be sent shall not have “\r\n” as
the data itself because it is the terminating string for AT command
parser.
viii. For command “AT*WRWORESP=conn-ID, char-Handle, length,
actual-bytes” module gives OK response if all the following
conditions are true:
a. connection ID is correct (if module is connected to 3 devices
and CID mentions 4, then it is invalid)
b. Characteristic handle has WR_cmd properties
c. Value of “length” field is less than 21 i.e. (0x15).
d. Actual data bytes are same as value of “length” field.