ToughRunners / ScanWear – Communication Protocol v1.2
- 36 -
Data Capture
for Workforce
in Motion
Command
Header
Length
Payload
Answer
Get local BT address
0x43
00 00
-
0x43 00 06 {6 Bytes (BD_address MSB, ..., LSB)}
Command
Header
Length
Payload
Answer
Set Target
Service UUID
0x38
00 02
[UUID (2 Bytes)]
(default 0x1101)
0x38 00 01 01 if done
0x38 00 01 00 if not
Try to connect to this remote service.
Here are some service UUID:
SPP
0x1101
DUN
0x1103
FAX
0x1102
You can get more UUIDs by reading the Bluetooth spec.
Command
Header
Length
Payload
Answer
Get Target
Service UUID
0x39
00 00
-
0x39 00 02 [UUID]
Command
Header
Length
Payload
Answer
Set Encryption Mode 0x41
00 01
[Encryption (1 Byte)]
0x41 00 01 01 if done
0x41 00 01 00 if not
Argument is: 0x01 to enable encryption, 0x00 to disable.
Command
Header
Length
Payload
Answer
Get Encryption mode
0x40
00 00
-
0x40 00 01 [encryption]