PUART protocol
NoticeChoose one of A2DP sink and IAP2.
Firmware version
Description
1281.2.13
1.Update model num to PLDBEITO-02
2. add specification:
Check status of P26 at startup time.
P26 is high, As usual.
P26 is low, Always transparent transmission ofSPP/IAP2.
1283.1.7
Update model num to PLDBEITO-01
1281.2.12
Delete command
1283.1.5
1. Set ADV TX Power
Add command
1. transport to SPP (without response)
1281.2.11
Add command
1283.1.4
1. query name of BLE
2. query BD address
3. query name of BR EDR

Protocol parametertransport parameter byteorder
name0header
11index1234567

conn_id
Producttypecommand
lengthpayload
check

All rights reserved

21description
fixed value. 0xa5
index of each product's command. when thecommand doesn’t care this param, you canuse any.
id of BLE's connection, or SPP's handle.

22
length of payload
0~1024 data to transport
1
param order 0~6, XOR calculate
Suzhou Pairlink Network Technology Ltd.

Transport method
Big-EndianCommandMIDI
1. transport data of MIDI to device
MIDI Data I/O Characteristic (UUID:772E5DB-3868-4112-A1A9-F2669D106BF3)
notification
header index
0xa5

User
set

conn_id

product command length payload checkWith
typeresponse
id of BLE's
0x01
0x0000
data oftrue
connection
MIDI

2. response of transport data of MIDI to device
header index
0xa5

User
set

All rights reserved

conn_id

product command length
type
id of BLE's
0x01
0x8000connection

payload

check

0x00:
success;
0x01:
failed;0x02:
failed,notification
is disable;
0x03: queueof command isout of range
or command
format iserror,
0x04: checkvalue iserrorSuzhou Pairlink Network Technology Ltd.

Withresponsefalse

3. transport data of MIDI to module
MIDI Data I/O Characteristic(UUID:7772E5DB-3868-4112-A1A9-F2669D106BF3) write
header index
conn_id
product command length payload check
Withtyperesponse
0xa5
User id of BLE's
0x01
0x0001
Sendfalse
set connection
Data toPUART
TX

BLE
1. transport data of BLE to device
transport data by
UUID_BLE_AT_NOTIFY_DATA(UUID:5a87b4ef-3bfa-76a8-e642-92933c31434f)
notification
header index
conn_id
product command length payload checkWithtyperesponse
0xa5
User id of BLE's
0x020x0000
datatrueset connection
2. response of transport data of BLE to device
header index
0xa5

UsersetAll rights reserved

conn_id

product command length
type
id of BLE's
0x020x8000connection

payload

check

0x00:
success;
0x01:
failed;0x02:
failed,notification
is disable;

Suzhou Pairlink Network Technology Ltd.

Withresponse
false

0x03: queueof command isout of range
or command
format iserror,
0x04: checkvalue iserror
3. transport data to PUART TX from UUID_BLE_AT_WRITE_DATA(UUID:
2d86686a-53dc-25b3-0c4a-f0e10c8dee20)

header index
0xa5

User
set

conn_id

product command length payload check
With
type
response
id of BLE's
0x020x0001
data
false
connection

4. modify name of BLE
max 20 bytes
header index conn_id product command length payload
type0xa5
User
Not
0x020x0002
namesetcarecheckWith
response
truecheckWith
response
false

5. response of modify name of BLE
header index conn_id product command length payload
type0xa5
User
Not
0x020x8002
0x00:
setcaresuccess;0x01:
failed;All rights reserved

Suzhou Pairlink Network Technology Ltd.

0x03:
queue ofcommandis out ofrange orcommandformat
iserror,0x04:
check
value iserror
0x00:
success;
6. notification of the status of BLE's connection
get id of BLE's connection.
header index
0xa5

User
set

conn_id

product command length
payload
check
With
type
response
id of BLE's
0x02
0x00030x00:
false
connection
connection
up;
0x01:
connection
down;

7. Set ADV Interval
header index conn_id product command length
type0xa5
User
Not
0x020x0004
setcareAll rights reserved

payloadcheck

Length=2, range[32,16384]
ie. Interval =[32,16384]*0.625ms

Suzhou Pairlink Network Technology Ltd.

Withresponsetrue8. Response of Set ADV Interval
header index conn_id product command length
type0xa5
User
Not
0x020x8004
setcarepayloadcheck

0x00: successWithresponse
false0x03: length ofpayload < 29. Set ADV User Data
header index conn_id product command length
payloadcheck
Withtyperesponse
0xa5
User
Not
0x020x0005
Max length 26 bytes
true
setcare10.Response of Set ADV User Data

header index conn_id product command length
payload
check
With
type
response
0xa5
User
Not
0x020x8005
0x00: successfalse
setcare0x01: fail to write
to the flash
0x03: length of
payload is out ofrange
11. query name of BLE
header index conn_id product command length
type0xa5
User
Not
0x020x0006 0x0000
setcareAll rights reserved

payloadcheck

Suzhou Pairlink Network Technology Ltd.

With
responsetrue12. response name of BLE
header index conn_id product command length
type0xa5
UserNot0x020x8006
set
care

payload

check

With
response
false

check

With
response
truecheckWith
response
falsecheckWith
response
false

name of BLE

SPP/IAP2
1. transport to SPP
header index conn_id product command length
type0xa5
User
SPP's
0x03
0x0000set
handlepayloaddata

2. response of transport to SPP
header index conn_id product command length
type0xa5
User
SPP's
0x03
0x8000set
handlepayload0x00: success;0x01: failed;
0x03: queue ofcommand is out ofrange or command
format is error,
0x04: check value
is error

3. transport to PUART TX
header index conn_id product command length
type0xa5
User
SPP's
0x03
0x0001sethandle

All rights reserved

payloaddataSuzhou Pairlink Network Technology Ltd.

4. status of SPP's connection
get SPP's handle.

header index conn_id product command length
type0xa5
User
SPP's
0x03
0x0002sethandle

payload

check

With
response
false

check

With
response
False

check

With
response
truecheckWith
response
false

0x00: connectionup;
0x01: connection
down;

5. transport to SPP (without response)header index conn_id product command length
type0xa5
User
SPP's
0x030x0003
set
handlepayloaddataBR EDR
1. modify name of BR EDR
max 20 bytes
header index conn_id product command length
type0xa5
User
Not
0x04
0x0000set
care

payloadname

2. response of modify name of BR EDR
header index conn_id product command length
type0xa5
User
Not
0x04
0x8000setcare

All rights reserved

payload0x00: success;0x01: failed;
0x03: queue ofcommand is out ofrange or command
format is error,
0x04: check value
is errorSuzhou Pairlink Network Technology Ltd.

3. query name of BR EDR
header index conn_id product command length
type0xa5
User
Not0x040x0001 0x0000
set
care

payloadcheck

Withresponse
TruecheckWithresponse
Falsecheck

Withresponse
false

name

4. response name of BR EDR
header index conn_id product command length
type0xa5
User
Not0x040x8001
set
care

payloadname of BR EDR

A2DP sink

1. status of A2DP sinkheader index conn_id product command length
type0xa5
User
Not0x050x0000
set
care

payload0x00: connection
success;
0x01: connection
failed;0x02:
disconnected;
0x03: streaming
started;0x04: streaming
suspended

System
1. Change the baud rate of PUART
e.g. current baud rate is 115200, send command to change baud rate to9600, then you will receive the response in 115200 baud rate. The module
All rights reserved

Suzhou Pairlink Network Technology Ltd.

will delay about 150ms to change the baud rate after it receives thiscommand.
header index conn_id product command length
payloadcheck
Withtyperesponse
0xa5
UserNot
0x06
0x0000
3 bytes (range 9600
trueto 3000000, include
set
care
9600, 3000000 )2. Response of Change the baud rate of PUART
header index conn_id product command length
type0xa5
User
Not
0x06
0x8000set
care

payload

check

With
response
false

check

With
responsetrue

0x00: success;0x01: failed;
0x03: queue ofcommand is out ofrange or command
format is error,0x04: check value
is error

3. Auto reconnect to the bond device (A2DP) when the module starts.
header index conn_id product command length
type0xa5
User
Not
0x06
0x0001setcare

payload0x01: enable;
0x00: disable.

4. Response of Auto reconnect to the bond device (A2DP) when the module
starts.
header index conn_id product command length
type0xa5
User
Not0x060x8001
setcareAll rights reserved

payloadcheck

0x00: success;0x01: failed;
0x03: queue ofcommand is out ofrange or command
format is error,
0x04: check value
is errorSuzhou Pairlink Network Technology Ltd.

Withresponse
False5. The initialization response of the module.
header index conn_id product command length
type0xa5
User
Not
0x06
0x0002
setcarepayload

check

With
response
False

check

With
responsetrue

0x00: success;0x01: failed;

6. Change the model to the transparent transmission of SPP/IAP2
header index conn_id product command length
type0xa5
User
Not
0x06
0x0003setcare

payloadTimeout (unit 1s)

7. Response of Change the model to the transparent transmission ofSPP/IAP2

header index conn_id product command length
type0xa5
User
Not
0x06
0x8003setcare

payload

check

With
response
Falsecheck

Withresponse
FalsecheckWith
response
true0x00: success;0x01: failed;

8. Shut Down Sleep（HID OFF)header index conn_id product command length
type0xa5
User
Not
0x060x0004
setcarepayload
No payload

Wake’s pin is P30. Wake up on rising edge and then the module will restart.

9. Query BD address
header index conn_id product command length
type0xa5
User
Not
0x06
0x0006 0x0000
set
care

All rights reserved

payloadSuzhou Pairlink Network Technology Ltd.

10. Response of BD address
header index conn_id product command length
type0xa5
User
Not
0x060x8006 0x0006
set
care

payloadcheck

BD addressUse of param index
order product type command index
00x04
0x00 00 0x01
10x04
0x80 00 0x01
when you send command order 0, you will get the response order 1.
When you get the response, it can find the corresponding request.

Example of Check calculate
header index conn_id product type command length payload
0xa5
0x01 0x00 00 0x04
0x00 00 0x00 02 0x59 59
0xa5 ^ 0x01 ^ 0x00 ^ 0x00 ^ 0x04 ^ 0x00 ^ 0x00 ^ 0x00 ^ 0x02 ^ 0x59 ^ 0x59 = 0xa2
check is 0xa2

Examples
1. MIDIheader index conn_id

command length

payloadcheck

0xa50x01

product
type0x00 01 0x01

0x00 00 0x00
05

0x32

0xa5

0x01

0x00 01 0x01

0x80 00 0x00
01

0x80 0x80
0x90 0x3c
0x3f
0x00

0x25

send command 0 , receive response command 1.
2. BLE notification

header index conn_id

command length

payload

check

0xa5

0x00 00 0x00
05

0x80 0x80
0x90 0x3c
0x3f

0x31

0x01

All rights reserved

product
type0x00 01 0x02

Suzhou Pairlink Network Technology Ltd.

Withresponse
false

0xa50x01

0x00 01 0x02

0x80 00 0x00
01

0x00

0x26

send command 0 , receive response command 1.
3. change name of BR EDR

header index conn_id product type command length payload check
0xa5
0x01 0x00 00 0x04
0x00 00 0x00 02 0x59 59 0xa2
0xa5
0x01 0x00 00 0x04
0x80 00 0x00 01 0x00
0x21
send command 0 , receive response command 1.
4. Change baud rate

header index conn_id product type command length payload check
0xa5
0x01 0x00 00 0x06
0x00 00 0x00 03 0x00 25 0x04
80
0xa5
0x01 0x00 00 0x06
0x80 00 0x00 01 0x00
0x23
Change to 9600

All rights reserved

Suzhou Pairlink Network Technology Ltd.