Chengdu Ebyte Electronic Technology Co.,Ltd.
E104-BT40 User Manual
Copyright ©2012–2019
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
4-14
0
pin code
Pairing code entered by phone
AT+PIN
1
no input output
Pairing request confirmed by phone
-
2
Passkey
passkey entered by Module
AT+PASSKEY
3
confirm
Users confirms by AT instruction
after the module displays "confirmation code"
AT+CONFIRM
Pin code pairing requires a mobile phone or computer terminal to enter PIN code, that is, the PIN code (AT + PIN
command) set by the module, and the connection can be established only after the input is correct. If the host is a module,
the host and the module can set the same PIN code.
No input output pairing, phone confirmation needed only
Passkey pairing: Mobile phone terminal gives 6-bit ASCII code randomly, the module uses AT + PASSKEY
command to enter the 6-bit ASCII code to establish a connection.
Confirm pairing: Mobile phone generates 6-digit ASCII code and sends it to the module. The module
CONFIRM: [6-digit ASCII code] through the serial port. After confirming they are the same, enter AT + COMFIRM =
YES to establish the connection, or AT + COMFIRM = NO to reject the connection request.
5.5 UUID Description
Service UUID
FFF0
Eigenvalue
UUID
Attribute
Description
SLAVE
CHANNEL
FFF1
read/notify
Slave sends data, master receives
data channel
MASTER
CHANNEL
FFF2
read/write
Master sends data,slave receives
the data channel
CONFIG
CHANNEL
FFF3
read/write
Air configuration channel
128-bit UUID is 00 00 xx xx 00 00 10 00 80 00 00 80 5f 9b 34 fb
xx xx is 16-bit UUID.
5.6 Package mechanism
Regardless of the baud rate of data transmission, it is recommended to do check retransmit processing at the upper
level.
When E104-BT40 module is in BLE mode, serial port can process a maximum of 100 bytes of data packets at a
time, packed into a packet of 20 bytes. The data packets sent by the mobile device (Android 5.0 or lower) to the module
must be sub-packed (1-20 bytes / packet) and sent. After receiving the data packet, it will be forwarded to the serial port
of the module in turn.