Ebyte E104-BT02 User manual

E104-BT02 User Manual
DA14580 BLE4.2 Low Power Bluetooth to Serial Module

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 1
Contents
1 Product Overview ......................................................................................................................................................1
1.1 Brief Introduction .........................................................................................................................................................1
1.2 Features ........................................................................................................................................................................ 1
1.3 Application ................................................................................................................................................................... 1
2 Specification and parameter .................................................................................................................................... 2
2.1 Limit parameter ............................................................................................................................................................ 2
2.2 Operating parameter .....................................................................................................................................................2
3 Size and pin definition .............................................................................................................................................. 3
4 Circuit diagram ......................................................................................................................................................... 4
5 Operating mode ......................................................................................................................................................... 4
5.1 Low power mode ..........................................................................................................................................................4
5.2 Wake-up mode ..............................................................................................................................................................5
5.3 Configuration mode ..................................................................................................................................................... 5
5.4 Data validity ................................................................................................................................................................. 5
5.5 Role selection ............................................................................................................................................................... 5
5.6 MAC address bonding ..................................................................................................................................................6
5.7 Transparent continuous transmission ........................................................................................................................... 6
5.8 Bluetooth packet length configuration ......................................................................................................................... 6
5.9 UUID configuration ..................................................................................................................................................... 6
5.10 Bluetooth sniffing .......................................................................................................................................................7
5.11 Beacon data switchable .............................................................................................................................................. 7
5.12 Air configuration ........................................................................................................................................................ 8
6 Operating Instruction ............................................................................................................................................... 8
6.1 Module reset instruction ...............................................................................................................................................9
6.2 Restore factory mode ................................................................................................................................................... 9
6.3 Configuration instruction for baud rate of serial port .................................................................................................. 9
6.4 Read instruction for baud rate of serial port ...............................................................................................................10
6.5 Serial port stop bit configuration ................................................................................................................................10
6.6 Read instruction for stop bit of serial port ................................................................................................................. 10
6.7 Configuration instruction for parity bit of serial port .................................................................................................10
6.8 Read instruction for parity bit of serial port ...............................................................................................................10
6.9 Instruction for starting broadcast ................................................................................................................................11
6.10 Instruction for stopping broadcast ............................................................................................................................11
6.11 Broadcast state inquiry ............................................................................................................................................. 11
6.12 Set general broadcasting data ................................................................................................................................... 11
6.13 Set IBeacon broadcasting data ................................................................................................................................. 11
6.14 Set fixed broadcast data ........................................................................................................................................... 12
6.15 Set device name ........................................................................................................................................................12
6.16 Read device name .................................................................................................................................................... 12
6.17 Set manufacturer name .............................................................................................................................................12
6.18 Read manufacturer name ..........................................................................................................................................12
6.19 Set software version number ....................................................................................................................................13

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 2
6.20 Read software version number .................................................................................................................................13
6.21 Set hardware version number ...................................................................................................................................13
6.22 Read hardware version number ................................................................................................................................13
6.23 Set module SN ..........................................................................................................................................................13
6.24 Read module SN ...................................................................................................................................................... 14
6.25 Set System ID ...........................................................................................................................................................14
6.26 Inquire System ID .................................................................................................................................................... 14
6.27 Set module SN ..........................................................................................................................................................14
6.28 Inquire module number ............................................................................................................................................ 14
6.29 Set broadcasting gap ................................................................................................................................................ 15
6.30 Read broadcasting gap ............................................................................................................................................. 15
6.31 Set max connecting gap ........................................................................................................................................... 15
6.32 Read max connecting gap ........................................................................................................................................ 15
6.33 Set min connecting gap ............................................................................................................................................ 15
6.34 Read min connecting gap .........................................................................................................................................16
6.35 Set connecting timeout .............................................................................................................................................16
6.36 Read connecting timeout ..........................................................................................................................................16
6.37 Disconnect present connection .................................................................................................................................16
6.38 Inquire Bluetooth connecting state ...........................................................................................................................16
6.39 Inquire local MAC address ...................................................................................................................................... 17
6.40 Inquire MAC address of connected devices .............................................................................................................17
6.41 Set bonded MAC address .........................................................................................................................................17
6.42 Read set bonded MAC address ................................................................................................................................ 17
6.43 Turn off MAC address filtering ................................................................................................................................17
6.44 Start mode feedback ................................................................................................................................................. 18
6.45 Turn off mode feedback ........................................................................................................................................... 18
6.46 Start scanning ........................................................................................................................................................... 18
6.47 Stop scanning ........................................................................................................................................................... 18
6.48 Read scanning state .................................................................................................................................................. 19
6.49 Set scan gap time ......................................................................................................................................................19
6.50 Inquiry scan gap ....................................................................................................................................................... 19
6.51 Set scan gap time ......................................................................................................................................................19
6.52 Inquiry scan gap time ............................................................................................................................................... 19
6.53 Turn on sniffing ........................................................................................................................................................20
6.54 Turn off sniffing ....................................................................................................................................................... 20
6.55 Read current RSSI value .......................................................................................................................................... 20
6.56 Turn on 128bit UUID display .................................................................................................................................. 20
6.57 Turn off 128bit UUID display ..................................................................................................................................20
6.58 Set service name UUID ............................................................................................................................................21
6.59 Set RXUUID ............................................................................................................................................................ 21
6.60 Set TXUUID ............................................................................................................................................................ 21
6.61 Set MTU length ........................................................................................................................................................21
6.62 Inquiry MTU length ................................................................................................................................................. 21
6.63 Inquiry device roles ...............................................................................................................................................22

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 3
6.64 Serial Wake-up open ................................................................................................................................................ 22
6.65 Serial Wake-up off ....................................................................................................................................................22
6.66 Indication for turning on data output ....................................................................................................................... 22
6.67 Indication for turning off data output .......................................................................................................................22
6.68 Turn off Bluetooth connection after entering hibernation ........................................................................................23
6.69 Keep Bluetooth connection after entering hibernation ............................................................................................ 23
6.70 Air configuration password authentication .............................................................................................................. 23
6.71 Air configuration password update .......................................................................................................................... 23
7 UUID description .....................................................................................................................................................24
8 Quick usage ..............................................................................................................................................................24
9 Hardware design ......................................................................................................................................................28
10 FAQ ......................................................................................................................................................................... 28
10.1 Communication range is too short ........................................................................................................................... 29
10.2 Module is easy to damage ........................................................................................................................................ 29
10.3 BER(Bit Error Rate) is high ..................................................................................................................................... 29
11 Production guidance ..............................................................................................................................................30
11.1 Reflow soldering temperature .................................................................................................................................. 30
11.2 Reflow soldering curve ............................................................................................................................................ 31
12 E104 series ..............................................................................................................................................................31
13 Package ...................................................................................................................................................................33
Revision history .......................................................................................................................................................... 33
About us .......................................................................................................................................................................34

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 1
1 Product Overview
1.1 Brief Introduction
E104-BT02 is a SMD 1mW (0dBm) wireless UART to BLE module
with high cost performance, small size and embedded PCB antenna and
operates at 2.4 GHz frequency band. Serial port (UART) can be used to receive
and transmit Bluetooth data, which lowers the threshold to apply Bluetooth.
Based on IC DA14580 imported from Dialog, E104-BT02 is researched
and developed by Chengdu Ebyte Electronic Technology Co., Ltd., integrated
with transparent transmission, master and slave integration and ready-to-use
function. Parameters and functions are configurable according to instructions of
serial port. The module is widely applied in wearable devices, home
automation, family security and protection, individual healthcare, smart household appliances, accessory and remote control,
automobile, illumination and Industrial Internet. The module has a stable sleep function with ultra-low power consumption and a
minimum operating current below 2uA in slave mode (with broadcasting function on). Power supply with button monocell is available.
Data transmission is stable and highly efficient. In slave mode, it supports the data transmission with the baud rate of 19200bps in
maximum as the veritable module for transparent data transmission.
E104-BT02 is compliant with Bluetooth V4.2 protocol. It can connect with any masters that are compliant with Bluetooth V4.2
protocol after a simple configuration to achieve transparent data transmission of serial port. The module supports configuration of
master and slave to achieve quick transparent data transmission and point-to-point connection between the master and the slave, and to
reduce user’s time for operation and project development to a maximum limit.
1.2 Features
Support BLE Bluetooth V4.2 protocol
Maximum transmission power of 1mW,software multi-level adjustable;
Support the global license-free ISM 2.4GHz band;
Support 250k~2Mbps air data rate;
Support BLE sniffing, ibeacon and beacon synchronized broadcast
Enable serial port wake-up
Industrial grade standard design, support -40 ~ 85 °C for working over a long time;
Support 2.5V~3.6VVpower supply, power supply over 3.3Vcan guarantee the best performance;
Support 250k~2Mbps air data rate
Support 16-bit UUID and 128-bit UUID customization;
Onboard PCB antenna,no antenna is required for the built-in antenna.
1.3 Application
Wireless meter reading; wireless sensing;
Smart home;
Industrial tele-control and tele-metering
Intelligent building

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 2
Automatic data collection
Health sensor
Smart wearable device
Intelligent robot
2 Specification and parameter
2.1 Limit parameter
Main parameter
Performance
Remark
Min
Max
Power supply (V)
0
3.6
Voltage over 3.6V will cause
permanent damage to module
Blocking power (dBm)
-
10
Chances of burn is slim when modules
are used in short distance
Operating temperature (℃)
-40
+85
Industrial grade
2.2 Operating parameter
Main parameter
Performance
Remark
Min
Type
Max
Operating voltage (V)
2.5
3.3
3.6
≥3.3V ensures output power
Communication level (V)
3.3
For 5V TTL, it may be at risk of
burning down
Operating temperature (℃)
-40
-
+85
Industrial grade
Operating frequency (MHz)
2379
-
2496
Support ISM band
Power
Consumption
TX current (mA)
3.4
RX current (mA)
3.7
Shout-down by software
Sleep current (μA)
3
Max TX power (dBm)
-
0
-
Receiving sensitivity (dBm)
-93.5
-94
-94.5
Arbitrary I/O
VIL/VIH
GND/0.84
GND/VCC
0.36/VCC
VOL/VOH
GND/1.88
GND/VCC
0.47/VCC
Sleep disconnect current (default)
1.7
13
614
uA
Sleep connection current (default)
365
418
511
uA
Wake-up connection current (default)
763
804
821
uA
Wake-up disconnect current (default)
739
746
1143
uA
No broadcasting
1.4
2.8
155
Sleep(default)
738
738
738
Wake-up(default)
Main parameter
Description
Remark

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 3
Reference range
70m
clear and open area, antenna gain: 5dBi, antenna height:
2.5m
Launch length
128Byte
BLE protocol
BLE4.2
Communication interface
UART
Leads out MCU IO,See details in data sheet
Package
SMD
Interface
1.27 mm
Size
14.6*21.9 mm
Antenna
PCB onboard antenna
50 ohm impedance
3 Size and pin definition
Pin
Name
Direction
I/O
说明
1
GND
-
Ground 地
Referenced ground
2
NC
-
Reserved
-
3
P00
Input
Mode
configuration
(MOD)
When low level is inputted, module enters configuration
mode; when high level is inputted, module enters
transparent transmission mode (it contains internal pull-up
resistance and operates in transparent transmission mode
by default)
4
P01
-
Reserved
-
5
P02
-
Reserved
-
6
P03
Output
Valid data
output (APP)
To indicate data outputted via serial port is valid, and the
low level indicates that data is in transmission and the high
level indicates that data transmission has completed (see
more details on <2.5 Data validity >)
7
P04
Output
UART transmit
data
Module outputs serial port data
8
P05
Input
UART receive
Module receives external serial port data

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 4
data
9
P06
Output
Wake-up
(WKP)
In any case, module enters wake-up mode when a low level
is inputted and module enters sleep mode when a high level
is inputted(it contains internal pull-up resistance and
operates in sleep mode by default)
10
P07
-
Reserved
-
11
GND
-
Ground
Referenced ground
12
VCC
-
3.3V
Input power
13
RESET_H
Input
Reset
(RST)
Module inputted a high level enters hardware reset state
and module inputted a low level come back to normal
operating state, which is used for restoration in emergency
14
P10
-
Reserved
-
15
P11
Output
Connection
state
(STA)
To indicate connection state of Bluetooth, when connected
the pin output a low level; when interrupted the pin output a
high level.
16
P15
-
Reserved
-
17
P14
Input
Role selection
To configure the role of the module and it is a slave when a
high level is inputted and it is a master when a low level is
inputted. (It contains internal pull-up resistance and
operates as a slave by default. See more on 5.5 Role
selection)
18
P12
-
Reserved
-
19
P13
-
Reserved
-
20
GND
-
Ground
Referenced ground
4 Circuit diagram
5 Operating mode
5.1 Low power mode
In any case, Pin P06 input high enters sleep mode and reduces the whole power consumption. Now the serial port stops receiving
any data while the transparent transmission of the Bluetooth remains unaffected. In this mode the output function of the serial port is
still valid and data received in Bluetooth port can output via serial port.
Description:
1) If Bluetooth is connected, after entering the low power mode, you can command <BKTOSLPON>/<BKTOSLPOFF > to select
whether to disconnect the current connection. This function can be used to quickly disconnect the Bluetooth connection and enter the
low power mode after the external MCU is sent and received.

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 5
2) When masters and slaves enter this mode, its scanning and broadcasting function remain unaffected.
5.2 Wake-up mode
In any case, WKP (P06) or serial RX pin (selectable command <COMWKPON> configuration to enable serial port wake-up)
input falling edge, the module wakes up from low power mode, if the command <WSMON> turns on mode feedback, wake up The
serial port will automatically output WAKEUP to notify the user that the wake-up operation is successful. From the detection of the
falling edge to the completion of the module wake-up for about 7 ms, the transparent transmission function is temporarily disabled
until the system wakes up successfully and the system returns to normal.
5.3 Configuration mode
In wake-up mode, the module enters configuration mode via pulling down Pin P00 and now any data received by the module is
regarded as configuration instructions rather than for transparent data transmission, that is, the transparent transmission function is
invalid.
Description:
1) Any data transmitted by the master via Bluetooth channel “CENTER DATA BUFF” is not for transparent transmission if
Bluetooth is connected now, and channel “BLE DATA BUFF” will receive feedback information “<CONFIG MODE BUSY>”to
indicate that the slave is in configuration mode and doesn’t receive data via transparent transmission.
2) In configuration mode, all configured information for the module will be saved after powering down and it will operate
according to the new configuration when powering up next time.
5.4 Data validity
Bluetooth outputs transparent transmission via serial port when receiving data. To ensure correct receiving of external MCU, at
10 ms before UART outputs the first start bit, P03 (APP) pulls down and wakes up external MCU till data transmission is completed
and P03 recovers a high level.. As shown in the figure:
Description: 1) The data output valid function can be commanded to turn on or off with <APPON>/<APPOFF>.
5.5 Role selection
The module can be configured as a master or a slave. In 160ms after powering up it starts to read the level signal of Pin P14. If a
low level signal is detected the module will be configured as the master; if a high level signal is detected it will be the slave; if the pin
floats, module with internal pull-up resistance will act as a slave. Role configuration is only valid when the module is powered up and

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 6
initialized and the role is fixed after powering up is completed till next restart to redetect role configuration.
Description:
1) When operating as a master and with scanning started, the module will automatically scan surrounding slaves until valid
slaves are detected (If MAC address bonding is set, it is likely to connect to slaves with assigned MAC address) and the Bluetooth
connection is completed automatically.
2) When operating as a slave and with broadcasting started, the module will transmit broadcasting data packet to
surrounding areas via configured broadcasting gap and wait the Bluetooth master to initialize connection.
5.6 MAC address bonding
The module supports bonding of MAC address connected via Bluetooth, which bond connected MAC address via instruction
“ <BONDMAC> ” . When master sets bonded address, before a connection is completed, the master will firstly search that if address
of devices is compliant with bonded address, and only bonded devices can complete connection. Likewise, when slave sets bonded
address, before receiving request for connection from master it will search if MAC address of the master is the bonded address, and
when address is successfully matched the connection can be enabled or the salve will continue to broadcast. Carrying out instruction
“<DISBOND>” will stop MAC bonding. The slave can receive any request for connection from master when being stopped and the
master will connect to any slave devices in a valid area.
Description:
MAC address bonding can help to realize directional connection in complex conditions. For example, there are several slaves in a
valid scanning area for a master device. The master can filter requests for connection from salve devices to realize directional
connection.
5.7 Transparent continuous transmission
Slave supports transparent continuous transmission in which mode configured UART baud rate can be as high as 19200bps, i.e.,
no matter how large the data packet UART received is, or it is continuous data flow, transparent transmission remains unaffected.
Abnormal packet loss will not happen. This function realizes transparent transmission in a real sense.
Description:
After receiving the Bluetooth data, the slave module transmits the serial port transparently. Due to the “data valid indication”
function, the serial port delays the data output. Turning off the “data valid indication” can improve the data throughput speed.
5.8 Bluetooth packet length configuration
The module supports the long-packet standard of Bluetooth 4.2, and can command <MTU> to configure the length of the
Bluetooth single-packet packet. The default is 20 bytes, and the optional 20~128 bytes. The packet length can be increased to realize
the big-band data transmission of Bluetooth.
Description:
After the packet length is configured, it takes effect on the next Bluetooth connection.
5.9 UUID configuration
The module supports UUID flexible configuration, and can command <UUID128EN> to enable the 128-bit UUID function. The
command <SVRUUID>, <RXUUID>, <TXUUID> can be used to customize the transparent transmission service UUID, the reception
feature field UUID, and the transmission feature field UUID. This function can solve the problem that the UUID does not match the

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 7
APP communication, meet more customization requirements, and is more practical.
5.10 Bluetooth sniffing
The module supports the Bluetooth sniffing function in the host state. In the host configuration mode, the command
<STARTSNIF> turns on the Bluetooth sniffing. The module automatically sniffs the surrounding Bluetooth broadcast data packet and
outputs the acquired Bluetooth information through the serial port. The output format is MAC (6 bytes) +RSSI (1 byte) a total of 7
bytes of hexadecimal data. (Special note: This function is valid in both master and slave modes, and it has nothing to do with whether
Bluetooth is connected or not. That is to say, the sniffing function is enabled in the Bluetooth connection state.)
Description:
1) The sniffing function is valid only in the Bluetooth host role and the configuration mode.
2) The broadcast packet sniffing speed can be configured by the command <SCANGAP>/<SCANWN>. The shorter the gap, the
larger the window and the faster the sniffing response.
5.11 Beacon data switchable
The slave module can be configured with "<ADVDATA>" and "<IBACON>" respectively, and the normal broadcast data and
Ibeacon broadcast data. After the broadcast is enabled, the module uses the configured broadcast gap as a fixed interval and broadcasts
3 ordinary broadcast data packets each time, switch broadcast 3 Ibeacon broadcast packets, and loop. This function realizes
synchronous transmission of ordinary broadcast and Ibeacon broadcast, which can achieve seamless connection effect.
In addition, the command <ADVSUST> can be configured as a broadcast non-switching function, that is, the ibeacon and the
normal beacon switch broadcast mechanism are turned off, and the broadcast mode is set to a fixed broadcast mode.
The default factory configuration enables Beacon data switching mode.
Description:
1)、Ibeacon data format is as follows:
Ibeacon Data
0-8
9-24
25、26
27、28
29
Ibeacon Prefix
9bytes
UUID
16bytes
Major Number
2bytes
Minor Number
2bytes
Tx Power
1bytes
Ibeacon Prefix:Specific byte
UUID:Used to distinguish the ID numbers of the same Beacon device. The same group device uses the same ID number.
Major:Used to mark related Beacons as a group
Minor:ID number of each device
Tx Power:The measured signal strength value of 1 meter can be used for ranging.
2)、Normal broadcast packet format:
0-3
4-N
03 03 FFF0
Manufacture DATA
3)、Fixed broadcast packet format:
N
Manufacture DATA

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 8
5.12 Air configuration
The module supports the air configuration function. After the Bluetooth connection is established in the slave state, the host can
access the "BLE DATA CONFIG" feature value under the transparent transmission service (FFF0). The configuration steps are as
follows:
1)、In the air configuration login authentication, send the command <PWDXXXXXX>, where XXXXXX is the login password,
the default is 123456, and return <OK> after success.
2)、The parameter configuration is executed, and the command is consistent with the serial port configuration command.
3)、Disconnect the Bluetooth connection.
Description:
1)、After the <PWDXXXXXX> command fails, the current login status will be exited immediately. That is, the configuration
operation needs to be resumed after the login is successful.。
2)、After the <RESTORE> command is executed, the login password is restored to the default settings.
6 Operating Instruction
Warning: Make sure the module is in wake-up mode and enters configuration mode before sending operating instruction or it is
unable to receive any configuration instruction.
Description:
1、Instruction format: the format for all operation instruction uses prefix sign ‘<’and suffix sign ‘>’, instruction format is
<instruction>
For example, for transmitting and receiving baud rate of serial port the format is <COMBAUD>
2、Instruction returning
Returning value
Description
INVALID_ERR
Unrecognized instruction
HT_ERR
Unrecognized instruction or lack of prefix/suffix sign of instruction
LEN_ERR
Parameter length out of range
OK
Correct execution
3、Factory parameter setting
Others
Baud rate
19200bps
Calibration
NONE
Stop bit
1
Air configuration password
123456
Serial wakeup
Shut Down
Data output indication
Open
Bluetooth packet length
20
Bluetooth binding
Shut Down
Transparent Transmission
service
UUID
16 bits
Transparent Transmission UUID
0xFFF0
BLE DATA BUFF UUID
0xFFF1
CENTER UUID BUFF
0xFFF2

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 9
6.1 Module reset instruction
Instruction
Description
<RESET>
Restart BLE protocol stack (different from pin reset, it only resets protocol stack
and buffered data will be remained)
No returning
6.2 Restore factory mode
Instruction
Description
<RESTORE>
All parameters are restored to factory settings.
When succeed return to<OK>
6.3 Configuration instruction for baud rate of serial port
Instruction
Description
<BAUDxxx>
To configure baud rate assigned by xxx (ASCII code) and optional baud rate includes 4800,
9600, 19200, 38400, 57600, 115200, 256000
BLE DATA CONFIG
0xFFF3
Slave
Broadcast function
Open
Module name
E104-BT02
Broadcasting gap
1s
Min connecting gap
10ms
Max connecting gap
10ms
Connecting timeout
5s
General broadcasting data
02 01 06
03 03 58 69
05 FF 01 02 03 05
Ibeacon broadcasting data
02 01 06
1A FF 4C 00 02 15 52 41 44 49 55 00 4E 45 54 57
4F 52 4B 53 43 4F 00 01 00 02 D2
Eddystone broadcasting data
02 01 06
03 03 AA FE
0C 16 AA FE
00 63 64 65 62 79 74 65 07
Manufacturer name
CDEBYTE
Serial number (SN)
160705000004
SYSTEM ID
Same as MAC address
Master
Scanning gap
12.5ms
Scanning time
10ms
Min connecting gap
10ms

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 10
When parameter is out of range return to<RANGE_ERR>; when succeed return to<OK> Special note: The configuration is
stored at once but it only takes effect after exiting configuration mode. Uninterrupted continuous transmission below 19200bps
from the slave to the master is available.
6.4 Read instruction for baud rate of serial port
Instruction
Description
<COMBAUD>
Read the current baud rate configuration.
For example, the baud rate is 19200bps, return <19200>
6.5 Serial port stop bit configuration
Instruction
Description
<xSB>
Configure the number of serial port stop bits specified by x (ASCII code), optional
1 and 2 stop bits.
When succeed return to<OK>
Special note: This configuration is saved immediately, but only takes effect after exiting configuration mode.
6.6 Read instruction for stop bit of serial port
Instruction
Description
<STOPBIT>
Read present stop bit configuration
For example, for one stop bit return to <STOPBIT1>
6.7 Configuration instruction for parity bit of serial port
Instruction
Description
<PEVEN>
Even parity check of serial port
<PODD>
Odd parity check of serial port
<PNO>
No parity
When succeed, return to<OK>
Special note: The configuration is stored at once but it only takes effect after exiting configuration mode.
6.8 Read instruction for parity bit of serial port
Instruction
Description
<PARITY>
Read parity bit configuration
For example,for no parity return to<NOP>, for even parity check return to <EVENP>, for odd parity check return to
<ODDP>

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 11
6.9 Instruction for starting broadcast
Instruction
Description
<STARTADV>
Start broadcasting
When succeed return to <OK>
6.10 Instruction for stopping broadcast
Instruction
Description
<STOPADV>
Stop broadcasting
When succeed return to <OK>
6.11 Broadcast state inquiry
Instruction
Description
<ADVSTATE>
Read present broadcast state
For example, when broadcast is started, return to <ADVON>, when closed, return to <ADVOFF>
Special note: When broadcast is started in any case (including sleep mode), module will carry out periodic broadcasting according
to configured gap. This instruction only supports master. Slave sends instruction and returns to <INVALID_ERR>.
6.12 Set general broadcasting data
Instruction
Description
<ADVDATAxxx>
Set broadcasting data of max 22 bytes (hex) assigned by xxx, update data in the
next broadcasting period, and clear data if it is not assigned by xxx.
Length of broadcasting data is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.
Special note: General broadcasting and IBeacon broadcasting can be started at the same time, i.e., every two general broadcasting
data is broadcasted, two IBeacon broadcasting data is switched. Special note: General broadcasting and IBeacon broadcasting can
be started at the same time, i.e., every two general broadcasting data is broadcasted, two IBeacon broadcasting data is switched.
6.13 Set IBeacon broadcasting data
Instruction
Description
<IBACONxxx>
Set broadcasting data of max 25 bytes (hex) assigned by xxx, update data in the
next broadcasting period, and clear data if it is not assigned by xxx.
Length of broadcasting data is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.
Special note: General broadcasting and IBeacon broadcasting can be started at the same time, i.e., when every two general
broadcasting data is broadcasted, two IBeacon broadcasting data is switched.

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 12
6.14 Set fixed broadcast data
Instruction
Description
<ADVCUSTxxx>
Configure up to 26 bytes (hexadecimal) of broadcast data specified by xxx (ASCII code)
and update the data in the next broadcast cycle. If xxx is not specified, the broadcast data
will be cleared.
When succeed return to <OK>
6.15 Set device name
Instruction
Description
<NAMExxx>
Set device name of max 18 bytes (ASCII code) assigned by xxx, update broadcasting data
in the next broadcasting period when disconnected, and update after interruption when
connected.
Length of device name is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.
6.16 Read device name
Instruction
Description
<MNAME>
Read device name
For example, device name is E104-BT02, return to <E104-BT02>
6.17 Set manufacturer name
Instruction
Description
<FACxxx>
Set manufacturer name of max 18 bytes (ASCII code) assigned by xxx, and update at once.
Length of manufacturer name is out of range, return to<RANGE_ERR>, when succeed, return to<OK>
6.18 Read manufacturer name
Instruction
Description
<FNAME>
Read manufacturer name
For example, manufacturer name is CDEBYTE, return to <CDEBYTE>

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 13
6.19 Set software version number
Instruction
Description
<SOFTxxx>
Set software version number of max 18 bytes (ASCII code) assigned by xxx, and update at
once
Length of software version number is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.
6.20 Read software version number
Instruction
Description
<SVER>
Read software version number
For example, if software version number is VER1.0, return to<SVER1.0>
6.21 Set hardware version number
Instruction
Description
<HARDxxx>
Set hardware version number of max 18 bytes (ASCII code) assigned by xxx, and update at
once.
Length of hardware version number is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.
6.22 Read hardware version number
Instruction
Description
<HVER>
Read hardware version number
For example, if the hardware version number is VER1.0 return to <HVER1.0>.
6.23 Set module SN
Instruction
Description
<SNxxx>
Set module SN of max 18 bytes (ASCII code) assigned by xxx, and update at once.
SN length is out of range, return to<RANGE_ERR>, when succeed, return to<OK>.

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 14
6.24 Read module SN
Instruction
Description
<MSN>
Read module SN
For example, if SN is 160705000004, return to<N160705000004>
6.25 Set System ID
Instruction
Description
< SYSIDx>
Configure 8-byte (hexadecimal) data specified by x (ASCII code), which is the same as the
MAC address by default.
When the data length is out of range, it returns <RANGE_ERR>.,when succeed, return to<OK>.
For example,<SYSID0102030405060708> <OK>
6.26 Inquire System ID
Instruction
Description
< MSYSID>
Inquire System ID
When the data length is out of range, it returns <RANGE_ERR>,when succeed, return to<OK>
For example, <SYSID0102030405060708> <OK>
6.27 Set module SN
Instruction
Description
< MODNB>
Set module SN
when succeed, return to<OK>
6.28 Inquire module number
Instruction
Description
< MMODNB>
Inquire module number
when succeed, return to<OK>

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 15
6.29 Set broadcasting gap
Instruction
Description
<ADVGAPxxx>
Set broadcasting gap assigned by xxx (ASCII code) ranging from 32 to 16000, i.e., from
20ms to 10s correspondingly.
If parameter is out of range return to <RANGE_ERR>, when succeed return to <OK>.
6.30 Read broadcasting gap
Instruction
Description
<AGAP>
Read broadcasting gap configuration,ranging from 6 to 3200, i.e., from 7ms to 4s
correspondingly.
For example, if the gap is 1s, return to<A1600>.
6.31 Set max connecting gap
Instruction
Description
<CONMAXxxx>
Set max connecting gap assigned by xxx (ASCII code) ranging from 6 to 3200, i.e., from
7.5ms to 4s correspondingly.
If parameter is out of range return to <RANGE_ERR>, when succeed return to <OK>.
Special note: The max connecting gap must be larger than or equal to the min connecting gap.
6.32 Read max connecting gap
Instruction
Description
<MAXCGAP>
Read max connecting gap
For example, if the gap is 10ms return to <CX8>.
6.33 Set min connecting gap
Instruction
Description
<CONMINxxx>
Set min connecting gap assigned by xxx (ASCII code) ranging from 6 to 3200, i.e.,
from 7.5ms to 4s correspondingly.
If parameter is out of range return to <RANGE_ERR>, when succeed return to <OK>.
Special note: The min connecting gap must be less than or equal to the max connecting gap.

Chengdu Ebyte Electronic Technology Co.,Ltd. E104-BT02 User Manual
Copyright ©2012–2019, Chengdu Ebyte Electronic Technology Co.,Ltd. 16
6.34 Read min connecting gap
Instruction
Description
<MINCGAP>
Read min connecting gap
For example if connecting gap is 10ms return to <CN8>.
6.35 Set connecting timeout
Instruction
Description
<TIMEOUTxxx>
Set connecting timeout assigned by xxx (ASCII code) ranging from 10 to 3200,
i.e., from 100ms to 32s correspondingly.
If parameter is out of range return to <RANGE_ERR>, when succeed return to <OK>.
6.36 Read connecting timeout
Instruction
Description
<CTIMEOUT>
Set connecting timeout configuration
For example, if the connecting timeout is 5s return to < T500 >
6.37 Disconnect present connection
Instruction
Description
<DISCONNECT>
Disconnect presently connected devices
If it is connected return to <OK>, if not return to <DISCONNECTED>
6.38 Inquire Bluetooth connecting state
Instruction
Description
<STATE>
Inquire Bluetooth connecting state
In connected state return to<CONNECTED>, in disconnected state return to<DISCONNECTED>.
Table of contents
Other Ebyte Control Unit manuals

Ebyte
Ebyte E22-900M22S User manual

Ebyte
Ebyte E22-400M33S User manual

Ebyte
Ebyte E-840-TTL-4G02 User manual

Ebyte
Ebyte E43-900T13S3 User manual

Ebyte
Ebyte AM22-12W2405V User manual

Ebyte
Ebyte E103-W02 User manual

Ebyte
Ebyte E34-2G4H27D User manual

Ebyte
Ebyte E32-400T20S User manual

Ebyte
Ebyte E52-400/900NW22S User manual

Ebyte
Ebyte E72-2G4M20S1C User manual

Ebyte
Ebyte ESP32-WROVER-IE User manual

Ebyte
Ebyte E70-433TBL-NW01 User manual

Ebyte
Ebyte E22-400M22S User manual

Ebyte
Ebyte E32-DTU-V8 User manual

Ebyte
Ebyte E30-433T20S3 User manual

Ebyte
Ebyte E19-433M20S2 User manual

Ebyte
Ebyte E103-W03 User manual

Ebyte
Ebyte E104-BT40 User manual

Ebyte
Ebyte E21-400G37S User manual

Ebyte
Ebyte E108-GN Series User manual