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
95
CONN-GUIDE-BT740_v0.2
This length may still be too big to send to the host in one packet. Therefore the name sends in a similar
fashion to ‘get friendly name’ described above. However, in this case, the event EVT_LCL_FNAME gets
the name to the host.
Command Packet
Offset
Field
Value
Comments
0
LENGTH
6
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_GET_LCL_FNAME]
3
FLOW_IN
??
Runtime value
4
START
n
Offset into the friendly name
string
5
MAXBYTES
m
Maximum number of characters
to read
Response Packet
Offset
Field
Value
Comments
0
LENGTH
Fixed
1
CHANNEL
0
Fixed
2
COMMAND
[CMD_GET_LCL_FNAME]
3
FLOW_OUT
??
Runtime value
4
STATUS
As appropriate
5
NAMELEN
0..31
Actual size of the friendly name
6
START
n
Echoed from the command
7
SENTLEN
S
Total number of bytes sent in
preceding events.
The name string sends to the host in EVT_LCL_FNAME packets. See description of Get Remote Friendly
name
Note: SENTLEN could be less than MAXBYTES. It can happen if there is no space in the module’s
TX buffer to send events.
8.16.4 Set Local Friendly Name
This command sets the local friendly name in non-volatile memory so that it is used after a power up/reset
cycle.
Since the module can cope with large packets, the name sent to the module in a single command packet
as a null terminated string.
Command Packet
Offset
Field
Value
Comments