background image

Chengdu Ebyte Electronic Technology Co.,Ltd.

E104-BT40 User Manual

Copyright ©2012–2019

Chengdu Ebyte Electronic Technology Co.,Ltd.

4-27

2.Slave channel. Used to send data from the slave and the master to receive the data.

Example AT+UUIDCHARA1=65521, that is, the slave channel characteristic UUID value is set to 0xFFF1

6.4.33 AT+ UUIDCHARA2 MASTER CHANNEL Characteristic UUID

Command

Response

Setting

AT+ UUIDCHARA2=[para]

+OK:Success

+ERR=[NUM]

Error

Parameter

Para(ASCII):UUID value. The value ranges from 1 to 65535, and each ASCII code ranges from 1 to 9.

Description

1.Restart takes effect, save when power off
2.Master channel. Used to send data from the master and the slave to receive data.

Example AT+UUIDCHARA2=65522, that is, the master channel characteristic UUID is set to 0xFFF2

7. Hardware design

It is recommended to use a DC stabilized power supply. The power supply ripple factor is as small as possible, and
the module needs to be reliably grounded;

Please pay attention to the correct connection of the positive and negative poles of the power supply. Reverse
connection may cause permanent damage to the module;

Please check the power supply to ensure it is within the recommended voltage otherwise when it exceeds the
maximum value the module will be permanently damaged;

Please check the stability of the power supply, the voltage can not be fluctuated frequently;

When designing current supply circuit, 30% margin is recommended to be remained so as to ensure long-term
stable operation of the whole module;

The module should be as far away as possible from the power supply, transformers, high-frequency wiring and other
parts with large electromagnetic interference;

High-frequency digital routing, high-frequency analog routing, and power routing must be avoided under the
module. If it is necessary to pass through the module, assume that the module is soldered to the Top Layer, and the
copper is spread on the Top Layer of the module contact part(well grounded), it must be close to the digital part of
the module and routed in the Bottom Layer;

Assuming the module is soldered or placed over the Top Layer, it is wrong to randomly route over the Bottom Layer
or other layers, which will affect the module's spurs and receiving sensitivity to varying degrees;

It is assumed that there are devices with large electromagnetic interference around the module that will greatly
affect the performance. It is recommended to keep them away from the module according to the strength of the
interference. If necessary, appropriate isolation and shielding can be done;

Assume that there are traces with large electromagnetic interference (high-frequency digital, high-frequency analog,
power traces) around the module that will greatly affect the performance of the module. It is recommended to stay
away from the module according to the strength of the interference. If necessary, appropriate isolation and shielding
can be done;

If the communication line uses level, 1k-5.1k resistor must be connected in series(not recommended, there is a risk
of damage)

Try to stay from some physical layers such as TTL protocol at 2.4GHz , for example: USB3.0;

Summary of Contents for E104-BT40

Page 1: ...E104 BT40 User Manuel Dual mode Bluetooth Module V4 2 Protocol...

Page 2: ...NT PRINTING 13 5 4 CLASSIC BLUETOOTH PAIRING 13 5 5 UUID DESCRIPTION 14 5 6 PACKAGE MECHANISM 14 6 AT COMMAND 15 6 1 DEFAULT PARAMETERS 15 6 2 COMMAND DESCRIPTION 15 6 3 AT COMMAND ERROR CODE DESCRIPT...

Page 3: ...SSKEY Enter pairing key 25 6 4 27 AT CONFIRM Classic Bluetooth password verification 25 6 4 28 AT AUTH Air configuration password verification 25 6 4 29 AT UPDAUTH Reset authentication password 26 6 4...

Page 4: ...itional low end serial devices or MCU controlled devices can perform wireless data transmission It is a low cost simple and reliable data transmission module 1 2 Features Bluetooth Specification V4 2...

Page 5: ...n Typ Max Operating voltage V 2 5 3 3 3 6 3 3 V ensures output power Communication level V 3 3 For 5V TTL it may be at risk of burning down Operating temperature 40 85 Frequency MHz 2400 2480 Power co...

Page 6: ...nition Direction Function Description 1 GND Power supply Power supply reference 2 TXD Output Serial data transmission Module outputs serial data to external 3 RXD Input Serial data reception Module re...

Page 7: ...are wave Bluetooth is connected Low level 25 MODE Input Mode selection High level configuration mode Low level transparent transmission mode 26 DISC Input Disconnection Internal pull up valid on falli...

Page 8: ...ommand mode can be entered by pulling the MODE pin low and return to transparent transmission mode by pulling the MODE pin high Set related configuration of the serial tool default configuration 11520...

Page 9: ...logy Co Ltd 4 8 4 2 Configuration over air Configuration over air can be used only when BLE role is connected Open the APP nRF connect start scanning the device find the device CDEBYTE_BLE and connect...

Page 10: ...onnect and open channel write Send authentication command AT AUTH 123456 the module returns 0x2B 4F 4B 0D 0A to indicate that the authentication is successful Diagram 4 4 RF connect Aerial configurati...

Page 11: ...s case please limit the set value to a reasonable length 4 3 Data transmission Module powered on classic Bluetooth and BLE are both discoverable Please refer to section 5 2 for data transmission preca...

Page 12: ...LINK pin is low 4 Mobile phone app or open serial port to start data transparent transmission 4 3 2 BLE Data transparent transmission 1 Power on the module and enable serial port printing AT LOGMSG 1...

Page 13: ...Co Ltd E104 BT40 User Manual Copyright 2012 2019 Chengdu Ebyte Electronic Technology Co Ltd 4 12 Diagram 4 7 nRF connect Open notifications and receive data 4 nRF connect sends asdfghjkl Diagram 4 8...

Page 14: ...module is always in configuration mode The MODE pin is invalid at this time After connected successfully determine whether the module is currently in configuration mode or data transmission mode base...

Page 15: ...ASCII code and sends it to the module The module prints 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 COM...

Page 16: ...ff Any baud rate setting of serial port Off SPP name CDEBYTE_SPP BLE name CDEBYTE_BLE Pairing code 1234 Pairing mode 1 no input output Two way output IO Low level Two way PWM Off Enable MAC binding Of...

Page 17: ...rect example AT BAUD Compare command and determine operation 4 Unconnected Module is not connected 5 Turn off any baud rate setting is not allowed Turn off the baud rate arbitrarily before setting the...

Page 18: ...Restart to take effect After setting successfully restart immediately 2 In the process of restoring the factory settings any kind of reset is prohibited and the power off is prohibited before the oper...

Page 19: ...9600 2 14400 3 19200 4 28800 5 38400 6 57600 7 76800 8 115200 Default Turn on any baud rate setting default is off para ASCII Any integer value between 4800 and 115200 including 4800 and 115200 Descri...

Page 20: ...t V1 0 6 4 8 AT SPPNAME SPP Name Command Response Query AT SPPNAME OK para Setting AT SPPNAME para ERR NUM Error Parameter para ASCII code SPP name Factory default CDEBYTE_SPP Description 1 It takes e...

Page 21: ...30 EE 51 35 DA 6 4 11 AT PAIRMODE Classic Bluetooth pairing mode Command Response Query AT PAIRMODE OK para Setting AT PAIRMODE para OK Success ERR NUM Error Parameter para ASCII Description 0 Pin cod...

Page 22: ...ower off 2 After the next power on the IO remains at this level Example Command AT P02 1 Response OK 6 4 14 AT P03 P03 Output Command Response Setting AT P03 para OK Success ERR NUM Error Parameter pa...

Page 23: ...OK Success ERR NUM Error Parameter para 0 100 ASCII 0 turn off PWM Default Description Takes effect immediately save when power off The parameter output PWM will maintain at the next power on Example...

Page 24: ...20 AT LOGMSG Running status output Command Response Query AT LOGMSG OK para Setting AT LOGMSG para OK Success ERR NUM Error Parameter para ASCII Description 0 Off Default 1 On Description Takes effec...

Page 25: ...ng enable Command Response Query AT BOND OK para Setting AT BOND para OK Success ERR NUM Error Parameter para ASCII Description 0 Binding off Default 1 Binding on Description Takes effect immediately...

Page 26: ...Example Command AT PASSKEY 123456 Response OK 6 4 27 AT CONFIRM Classic Bluetooth password verification Command Response Setting AT CONFIRM para OK Success ERR NUM Error Parameter Para ASCII code YES...

Page 27: ...haracteristic UUID para3 MASTER CHANNEL Characteristic UUID para3 Air configuration channel Characteristic UUID 6 4 31 AT UUIDSVR Bluetooth service UUID Command Response Setting AT UUIDSVR para OK Suc...

Page 28: ...long term stable operation of the whole module The module should be as far away as possible from the power supply transformers high frequency wiring and other parts with large electromagnetic interfer...

Page 29: ...ectly air data rate is set as too high the higher the air data rate the shorter the distance When the power supply at room temperature is lower than the recommended low voltage the lower the voltage i...

Page 30: ...temperature max Tsmax Maximum preheating temperature 150 200 Preheat Time Tsmin to Tsmax ts Preheating time 60 120 sec 60 120 sec Average ramp up rate Tsmax to Tp Average rising rate 3 second max 3 s...

Page 31: ...ch packaging Revision history Version Date Description Issued by 1 0 2019 11 28 Initial version Li Kai 1 1 2019 11 29 Format adjustment Ren About us Sales hotline 4000 330 990 Tel 028 61399028 Support...

Reviews: