參數(shù)資料
型號(hào): LMX9820A
廠商: National Semiconductor Corporation
英文描述: Bluetooth Serial Port Module
中文描述: 藍(lán)牙串行端口模塊
文件頁(yè)數(shù): 27/44頁(yè)
文件大小: 579K
代理商: LMX9820A
Revision 1.0
27
www.national.com
L
12.0 Command Interface
(Continued)
12.0 Command Interface
The LMX9820A offers Bluetooth functionality through
either a self-contained slave functionality or a simple com-
mand interface. The interface is carried over the UART
interface.
The following sections describe the protocol on the UART
interface between the LMX9820A and the host in com-
mand mode (see Figure 18). In Transparent mode, no data
framing is necessary and the device does not interpret data
carried over the interface as commands.
12.1 FRAMING
The connection is considered “Error free”. But for packet
recognition and synchronization, some framing is used.
All packets sent in both directions are constructed following
the model shown in Table 28.
12.1.1 Start and End Delimiters
The “STX” character is used as the start delimiter: STX =
0x02. ETX = 0x03 is used as the end delimiter.
12.1.2 Packet Type ID
This byte identifies the type of packet. See Table 29 for
details.
12.1.3 Opcode
The opcode identifies the command to execute. The
opcode values can be found within the “LMX9820A Soft-
ware User’s Guide”
included with the LMX9820A Evalua-
tion Board.
12.1.4 Data Length
Number of bytes in the Packet Data field. The maximum
size is 333 data bytes per packet.
12.1.5 Checksum
This is a simple Block Check Character (BCC) checksum
of the bytes “Packet type”, “Opcode”, and “Data Length”.
The BCC checksum is calculated as low byte of the sum of
all bytes (e.g., if the sum of all bytes is 0x3724, the check-
sum is 0x24).
.
Figure 18. Bluetooth Functionality
LMX9820A
UART
Existing device
without Bluetooth
capabilities
UART
Table 28. Packet Framing
Start
Delimiter
Packet
Type ID
Opcode
Data Length
Checksum
Packet Data
End
Delimiter
1 Byte
1 Byte
1 Byte
2 Bytes
1 Byte
<Data Length> Bytes
1 Byte
- - - - - - - - - - - - - Checksum - - - - - - - - - - - - -
Table 29. 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.
相關(guān)PDF資料
PDF描述
LMX9820ASM Bluetooth Serial Port Module
LMX9820 Bluetooth Serial Port Module
LMX9820SB Bluetooth Serial Port Module
LMX9820SBX Bluetooth Serial Port Module
LP3882ESX-1.2 1.5A Fast-Response Ultra Low Dropout Linear
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
LMX9820ADEV 制造商:Texas Instruments 功能描述:KIT DEV FOR LMX9820
LMX9820ADONGLE/NOPB 制造商:Texas Instruments 功能描述:KIT REF DESIGN FOR LMX9820
LMX9820ASM 制造商:Texas Instruments 功能描述:BLUETOOTH MODULE, SMD, 9820, FR4129
LMX9820ASM/NOPB 制造商:Texas Instruments 功能描述:IC MODULE BLUETOOTH 116-LTCC
LMX9820ASMX 制造商:NSC 制造商全稱(chēng):National Semiconductor 功能描述:Bluetooth Serial Port Module