User's Manual

Enhanced Class 1 Bluetooth v2.1 Module
User’s Guide
Americas: +1-800-492-2320 Option 2
Europe: +44-1628-858-940
Hong Kong: +852-2923-0610
www.lairdtech.com/wireless
94
CONN-GUIDE-BT740_v0.2
characters to read
Response Packet
Offset
Field
Value
Comments
0
LENGTH
8
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_GET_REM_FNAME]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5
NAMELEN
0..248
Actual size of the friendly
name
6
START
N
Echoed from the command
7
SENTLEN
S
Total number of bytes sent
Note: SENTLEN could be less than MAXBYTES. It can happen if there is no space in the module’s
TX buffer to send events.
HOST MODULE
Req Friendly Name
EVT_REM_FNAME (index=0,len=10,"?????")
CMD_REM_FNAME (bdaddr, timeout, start=0, maxbytes=25)
EVT_REM_FNAME (index=10,len=10,"?????")
EVT_REM_FNAME (index=20,len=5,"?????")
Got Friendly Name (47 bytes)
CMD_REM_FNAME (namelen=47,start=0,sent=25)
CMD_REM_FNAME (bdaddr, timeout, start=25, maxbytes=22)
Req Friendly Name
Got Friendly Name (47 bytes)
EVT_REM_FNAME (index=25,len=10,"?????")
EVT_REM_FNAME (index=35,len=10,"?????")
EVT_REM_FNAME (index=45,len=2,"?????")
CMD_REM_FNAME (namelen=47,start=25,sent=22)
Figure 8-16: Get Remote Friendly Name sequence diagram
8.16.3 Get Local Friendly Name
This command reads the local friendly name which stores in non-volatile memory.
Unlike the remote friendly name where there is no control over the maximum length, the local friendly
name is limited to 31 characters.