10-1
Communication Protocol
10
Section 10 - Communication Protocol
10.1 Introduction
10.1.1 Purpose
The scope of this document is to provide the detailed design on the
communication of UWBT Device with Smartphone and PC application.
10.2 Acronyms & Abbreviations
UWBT
- Universal Bluetooth Wireless Transmitter
EOF
- End of Frame
CR
- Carriage return
NACK
- Negative Acknowledgement
SA
- Source Address
DA
- Destination Address
10.3 Communication Interface
The UWBT Device uses Bluetooth 2.1 Class1 type for Smartphone
communication and it is backwards-compatible with Bluetooth version 2.0, 1.2
and 1.1.
PC communication interface uses generic USB stack for communication with
UWBT Device. The PC communication follows the USB2.0 communication,
checksum and EOF frame will be taken care in the transport layer of the USB
protocol. So in the Data layer no checksum and EOF is available.
The Master to slave communication is a single string of up to 256 characters in
length. String arguments are separated by SPACE character and the last (and
only) character is the CR (Carriage return) character.
Here,
Master - PC / Smartphone
Slave - UWBT Device
The various commands used by master and slave for the communication is
tabulated below.
Sl No
Master
Request
Commands
Slave
Response
Commands
Description
Usage
1
501
0x01F5
Read Device Settings
PC & Smartphone
2
502
0x03E8
Write Device Settings
PC & Smartphone
3
503
0x01F7
Read Live Data
Smartphone Only
4
504
0x01F8
Download Records –
5 Blocks
Smartphone Only
5
505
0x01F9
Download Records
PC & Smartphone
6
506
0x01FA
Restore Factory
Default
PC & Smartphone
Table 10-1. List of Master/Slave Commands