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