
TABLE 17. Packet Type Identification
ID
Direction
Description
0x52
'R'
0x43
'C'
0x69
'i'
0x72
'r'
REQUEST
(REQ)
Confirm
(CFM)
Indication
(IND)
Response
(RES)
A request sent to the Bluetooth module.
All requests are answered by exactly one confirm.
The Bluetooth modules confirm to a request.
All requests are answered by exactly one confirm.
Information sent from the Bluetooth module that is not a direct confirm to a request.
Indicating status changes, incoming links, or unrequested events.
An optional response to an indication.
This is used to respond to some type of indication message.
15.2 COMMAND SET OVERVIEW
The LMX9838 has a well defined command set to:
Configure the device:
—
Hardware settings
—
Local Bluetooth parameters
—
Service database
Table 18
through
Table 28
show the actual command set and
the events coming back from the device. A full documented
description of the commands can be found in the “LMX9838
Software User’s Guide”.
Note:
For standard Bluetooth operation only commands from
Table 18
through
Table 20
will be used. Most of the remaining commands are
for configuration purposes only.
Set up and handle links
TABLE 18. Device Discovery
Command
Event
Description
Inquiry
Inquiry Complete
Device Found
Remote Device Name Confirm
Search for devices
Lists BDADDR and class of device
Get name of remote device
Remote Device Name
TABLE 19. SDAP Client Commands
Command
Event
Description
SDAP Connect
SDAP Disconnect
SDAP Connect Confirm
SDAP Disconnect Confirm
Connection Lost
Service Browse Confirm
SDAP Service Search Confirm
SDAP Attribute Request Confirm
Create an SDP connection to remote device
Disconnect an active SDAP link
Notification for lost SDAP link
Get the services of the remote device
Search a specific service on a remote device
Searches for services with specific attributes
SDAP Service Browse
SDAP Service Search
SDAP Attribute Request
TABLE 20. SPP Link Establishment
Command
Event
Description
Establish SPP Link
Establishing SPP Link Confirm
Link Established
Incoming Link
Set Link Timeout Confirm
Get Link Timeout Confirm
Release SPP Link Confirm
SPP Send Data Confirm
Incoming Data
Transparent Mode Confirm
Initiates link establishment to a remote device
Link successfully established
A remote device established a link to the local device
Confirms the Supervision Timeout for the existing Link
Get the Supervision Timeout for the existing Link
Initiate release of SPP link
Send data to specific SPP port
Incoming data from remote device
Switch to Transparent mode on the UART
Set Link Timeout
Get Link Timeout
Release SPP Link
SPP Send Data
Transparent Mode
TABLE 21. Storing Default Connections
Command
Event
Description
Connect Default Connection
Store Default Connection
Get list of Default Connections
Delete Default Connections
Connect Default Connection Confirm
Store Default Connection Confirm
List of Default Devices
Delete Default Connections Confirm
Connects to either one or all stored default connections
Store device as default connection
www.national.com
16
L