background image

Chengdu Ebyte Electronic Technology Co., Ltd

E104-BT5032A User Manual

Copyright ©2012–2019

Chengdu Ebyte Electronic Technology Co., Ltd

33

Authentication of configuration over air

Refer to 6.4 command list to configure the module

6.2 Data transmission

Please refer to 5.3 data transmission mode for details.

Test condition

Refer to 7.1, set one module as the master and the other one as the slave

Test software

SSCOM;

Other parameters are as default.

6.2.1

Data transparent transmission

1.

Once powered on, the master and the slave enable logmsg to print

at+logmsg=1

);

2.

Set module as transparent transmission mode

AT+TRANMD=1

;

3.

Once connected , the master prints “STA:connect,0,619AA43CBAF3”

the slave prints “STA:connected”

LINK pin is low.

Please refer to figure below. From master’s printing info, the value before the MAC address is sentences from the slave, where the first
byte of format transmission comes.

Automatically connect and print once the master is powered on

Содержание E104-BT5032A

Страница 1: ...E104 BT5032A User Manual nRF52832 BLE5 0 Low Power BLE to Serial Module ...

Страница 2: ...n 10 4 3 2 Format transmission 10 4 4 MAC ADDRESS BONDING 11 4 5 ADVERTISING 11 4 5 1 Normal advertising info 11 4 5 2 iBeacon advertising info 11 4 6 CONFIGURATION 12 4 7 DATA INDICATION 12 4 8 UUID SPECIFICATION 13 4 9 STATUS AND EVENT PRINTING 13 5 AT COMMAND 14 5 1 COMMAND INSTRUCTION 14 5 2 ERROR CODE 14 5 3 STATUS PRINTING 15 5 4 COMMAND LIST 15 5 4 1 AT test command 15 5 4 2 AT RESET Reset ...

Страница 3: ... BONDDEL delete bond MAC address 24 5 4 30 AT SCAN advertising scan 24 5 4 31 AT SCANINTV scan interval 24 5 4 32 AT SCANWND scan window 25 5 4 33 AT AUTOCONN connect automatically 25 5 4 34 AT CONN specify connection 25 5 4 35 AT LINKNUM query link 25 5 4 36 AT TRANMD master transmission mode 26 5 4 37 AT LINKMAX Master max link data 26 5 4 38 AT UUIDSVR128 set 128 bit UUID 26 5 4 39 AT UUIDSVR B...

Страница 4: ... transmission 33 6 2 2 Format transmission 34 7 HARDWARE DESIGN 36 8 FAQ 37 8 1 COMMUNICATION RANGE IS TOO SHORT 37 8 2 MODULE IS EASY TO DAMAGE 37 8 3 BIT ERROR RATE IS TOO HIGH 37 9 PRODUCTION GUIDANCE 38 9 1 REFLOW SOLDERING TEMPERATURE 38 9 2 REFLOW SOLDERING CURVE 38 10 RELATED PRODUCT 39 11 PACKAGE FOR BULK ORDER 40 REVERSION HISTORY 41 ABOUT US 41 ...

Страница 5: ...intelligent control etc The maximum continuous transmission baud rate is 921600bps 1 2 Features BLE 5 0 Bluetooth packet length is adjustable Working mode configuration and transparent transmission mode Automatic advertising and connection after power on Switch between IBeacon and common broadcast available Serial wake up available MAC bonding connection Serial transparent transmission and format ...

Страница 6: ...ce Note Min Max Voltage 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 2 2 Operating parameter Main parameter Performance Remarks Min Typ Max Voltage supply V 1 7 3 3 3 6 3 3 V ensures output power Communication level V 3 3 For 5V TTL it may be at risk of burnin...

Страница 7: ...g gap is 1s Wake up advertising current default 8 70 unit mA default advertising gap is 1s Wake up no advertising current default 8 68 unit mA default connection gap is 500ms wake up connection current default 8 78 unit mA Main parameter Description Remarks Distance 60m Test condition clear and open area antenna gain 5dBi 4dBm antenna height 2m BLE protocol BLE 5 0 Communication interface UART Pac...

Страница 8: ...d 2 P0 25 NC 3 P0 26 NC 4 MOD1 Input Mode selection Low level configuration mode High level transparent mode 5 WKP2 Input Wake up pin Wake up falling edge Sleep rising edge 6 DISC Input Connection pin Internal pull up Valid in 1 The internal level of the pin is self latching Ground directly or connect to the power supply when driving externally When it is driven by external MCU use the push output...

Страница 9: ...e and observer The master module connects to other Ebyte Bluetooth models Up to 4 slaves can be connected to it Transparent advertising and format transmission are available Both manual and automatic connection are allowed The slave module connects to other Ebyte Bluetooth models only one connection is allowed Only transparent transmission is available for slave The observer is only used to print ...

Страница 10: ... connect automatically the slave is automatically connected after the condition filter is met If configured to connect manually turn on scanning The master will scan the device with the service UUID matched and output through the UART the data format is as shown in Figure below the master outputs the scan result data format The user connects to the specified slave device using AT CONN RSSI Signal ...

Страница 11: ...ll not output status data 4 2 2 Wake up mode In this mode the peripherals of ble modules works normally Once it waked up it outputs STA wakeup Wake up mode 1 Via pin WKP falling edge keep low level for 200ms and enter wake up mode 2 Pin RX wakes up via falling edge of pin RX keep low level for at least 50us and wake up immediately 4 3Data transmission mode There are two transmission mode transpare...

Страница 12: ...es with MAC added 4 5Advertising 4 5 1 Normal advertising info It includes advertising and scan respone advertising is actively sent report scan respone is responsed report after receiving scan request from the master 4 5 1 1 Advertising Fixed field Len Manufa field Manufa data 020106 N 0xFF configurable max is 26 bytes For example 020106 Len FF Manufa data Users can configure Manufa data only 4 5...

Страница 13: ...he connection is successful it is determined whether the module is currently in the configuration mode or the data transmission mode according to the mod pin level When mod is high it is the data transfer mode and when it is low it is the configuration mode The Mod pin latches the current state when a valid change is detected Each state change hold time is valid for at least 200ms The Mod pin has ...

Страница 14: ...up and sleep in format below Status Printing info Connect r n STA connect r n Disconnect r n STA disconnect r n System wake up r n STA wakeup r n Sleep mode r n STA sleep r n Service UUID FFF0 configurable Characteristic value UUID Property Description SLAVE CHANNEL FFF1 configurable read notify Slave sends data master receives data MAST CHANNEL FFF2 configurable read write Maser sends data slave ...

Страница 15: ...s not meet range Check parameter 3 Invalid parameter 1 Parameter exceeds value range Refer to command to check right parameter 4 Air wakeup authentication failed Incorrect password 1 Use correct configuration password 2 Reset password via UART 5 Current device role this command is not supported This command is forbidden in current role 6 Unknown mistake 7 Save parameter error 8 AT command exists b...

Страница 16: ... n Sleep mode r nSTA sleep r n Status printing list 5 4 Command list 5 4 1 AT test command command respond AT OK Remark None 5 4 2 AT RESET Reset command command respond AT RESET OK Remark take into effect immediately 5 4 3 AT RESTORE restore factory setting command respond AT RESTORE OK Remark 1 after the reset automatically restart 2 During the process of restoring the factory settings any form ...

Страница 17: ...2 250000 13 460800 14 921600 Remark take into effect after reset For example AT BAUD 10 baud rate is 115200 HEX 41 54 2B 42 41 55 44 3D 31 30 5 4 5 AT PARI parity Command respond Inquire AT PARI OK para Set AT PARI para OK success ERR NUM error Parameter para ASCII Description 0 None default 1 Even Remark take into effect after reset and save when power off For example AT PARI 0 5 4 6 AT HWFC flow...

Страница 18: ...scription 0 Slave default 1 Master 2 Observer Remark take into effect after reset and save when power off 5 4 8 AT DEVMANUF modify manufacture name command respond Inquire AT DEVMANUF OK para Set AT DEVMANUF para OK success ERR NUM error Parameter para string manufacture name Default CDEBYTE Remark 1 take into effect after reset and save when power off 2 string is up to 32bytes 5 4 9 AT DEVSERIAL ...

Страница 19: ...HWER modify hardware version Command respond Inquire AT DEVHWVER OK para Set AT DEVHWVER para OK success ERR NUM error Parameter para string device hardware version Default V1 0 Remark 1 take into effect after reset and save when power off 2 string is up to 32bytes 5 4 12 AT DEVSWVER modify software version command respond Inquire AT DEVSWVER OK para Set AT DEVSWVER para OK success ERR NUM error P...

Страница 20: ...t is connected then take into effect next time save when power off 2 Available for slave only 5 4 15 AT ADVDAT advertising data command respond Inquire AT ADVDAT OK para Set AT ADVDAT para OK success ERR NUM error Set do not save AT ADVDAT1 para Parameter para HEX 1 Available for ASCII HEX 2 Length is within 26 bytes Remark 1 Take into effect immediately if advertising is not enabled or it is conn...

Страница 21: ...rk 1 Take into effect immediately if advertising is not enabled or it is connected then take into effect next time save when power off 2 Advertising available for slave only other role can configurate For example Set iBeacon UUID FDA50693A4E24FB1AFCFC6EB07647825 AT IBCNUUID FDA50693A4E24FB1AFCFC6EB07647 825 5 4 18 AT MAJOR iBeacon Major Command command respond Inquire AT MAJOR OK para Set AT MAJOR...

Страница 22: ...save when power off 2 Advertising available for slave only other role can configurate 5 4 21 AT NAME advertise device name command respond Inquire AT NAME OK para Set AT NAME para OK success ERR NUM error Set Do not save AT NAME1 para Parameter para HEX advertise device name device name is within 22 bytes Default E104 BT5032A Remark 1 Take into effect immediately save when power off 2 Advertising ...

Страница 23: ...r master AT DISCON para OK success ERR NUM error Disconnect all AT DISCON OK success ERR NUM error Parameter Para ASCII description 0 3 Disconnect all Remark 1 take into effect immediately 2 as slave only disconnect all is available 3 Disconnect all is available for master and slave mode 4 if para specified connection but does not connect the module will return OK 5 4 24 AT DATDLY Data output dela...

Страница 24: ...mple Command AT PEERMAC Return 2B 4F 4B 3D FE 30 EE 50 35 DA Description local MAC is FE 30 EE 50 35 DA 5 4 27 AT BOND enable bonding command respond Query AT BOND OK para Set AT BOND para OK success ERR NUM error Parameter para ASCII description 0 Bonding disabled default 1 Enable bonding Remarks Take into effect immediately save when power off 5 4 28 AT BONDMAC add more bond MAC address command ...

Страница 25: ...an command respond Query AT SCAN OK para Set AT SCAN para OK success ERR NUM error Parameter para ASCII Description 0 Scan closed 1 Scan enabled default Remarks 1 Take into effect immediately save when power off 2 If current connected masters are the maximum no scanning will be enabled 3 Scanning is only available for master and observer 5 4 31 AT SCANINTV scan interval command Respond Query AT SC...

Страница 26: ...ok For example AT SCANWND 20 Interval 20 0 625 12 5ms 5 4 33 AT AUTOCONN connect automatically command respond Query AT AUTOCONN OK para Set AT AUTOCONN para OK success ERR NUM error Parameter para ASCII Description 0 Manual connection 1 Automatic connection default Remarks 1 Take into effect immediately save when power off 5 4 34 AT CONN specify connection command respond Set AT CONN mac OK succe...

Страница 27: ...and respond Query AT LINKMAX OK para Set AT LINKMAX para OK success ERR NUM error Parameter para ASCCII max link number Value range 1 4 Default 4 Remarks 1 Take into effect immediately save when power off 2 When 4 devices are linked can 2 devices are configured the master will not disconnect from linked devices 5 4 38 AT UUIDSVR128 set 128 bit UUID command respond Query AT UUIDSVR128 OK para Set A...

Страница 28: ...or connection filtering thus master UUID shall be same as that of the slave 5 4 40 AT UUIDCHARA1 SLAVE CHANNEL characteristic UUID command respond Query AT UUIDCHARA1 OK para Set AT UUID CHARA1 para OK success ERR NUM error Parameter para ASCII 1 65535 Default 65521 Remarks 1 Take into effect after reset save when power off 2 The slave channel for data sent from the salve to the master 5 4 41 AT U...

Страница 29: ...espond Set AT AUTH para OK success ERR NUM error Parameter para HEX 6 byte password Remarks 1 This command is for set over air 2 Default password 123456 For example AT AUTH 123456 5 4 44 AT UPAUTH change authentication password over air command respond Query AT UPAUTH OK para Set AT UPAUTH para OK success ERR NUM error Parameter para HEX 6 byte password Remarks Take into effect immediately save af...

Страница 30: ...SLEEP sleep once power on command respond Query AT ONSLEEP OK para Set AT ONSLEEP para OK success ERR NUM error Parameter para ASCII Description 0 Disenable default 1 Enable Remarks Take into effect immediately save after power off 5 4 47 AT DISCSLEEP disconnect and get into sleep command respond Query AT DISCSLEEP OK para Set AT DISCSLEEP para OK success ERR NUM error Parameter para ASCII descrip...

Страница 31: ...to sleep mode immediately command respond Set AT SLEEP OK Parameter None Remarks Take into effect immediately 5 4 49 AT LOGMSG operating condition output command respond Query AT LOGMSG OK para Set AT LOGMSG para OK success ERR NUM error Parameter para ASCII description 0 Disenable default 1 Enable Remarks Take into effect immediately save after power off ...

Страница 32: ...uration mode 6 1 1 UART configuration Check if the module is in configuration mode When not connected it can be configured otherwise set pin mod as low level Set SSCOM string related parameter default 115200 8 1 none no flow control SSCOM parameter setting figure Refer to 6 4 command list to configure the module 6 1 2 Configuration over air When module works as the slave configuration over air is ...

Страница 33: ...2 2019 Chengdu Ebyte Electronic Technology Co Ltd 32 nRF connect scanning figure Open service fff0 of uuid enable configuration channel notify nRF connect connect and enable notify Send authentication command at auth 12345 when it returns 0x2befeb0d0a means successful authentication ...

Страница 34: ... as the slave Test software SSCOM Other parameters are as default 6 2 1 Data transparent transmission 1 Once powered on the master and the slave enable logmsg to print at logmsg 1 2 Set module as transparent transmission mode AT TRANMD 1 3 Once connected the master prints STA connect 0 619AA43CBAF3 the slave prints STA connected LINK pin is low Please refer to figure below From master s printing i...

Страница 35: ...e master refer to master s transparent transmission below Master s transparent transmission 6 2 2 Format transmission 1 Refer to 6 2 1 Data transparent transmission Step 1 2 Set the master as format transmission default set command AT TRANMD 0 3 Refer to 6 2 1 Data transparent transmission Step 3 6 Valid data 123456789 ASCII sent from the master to the slave Format transmission pack 00 30 31 32 33...

Страница 36: ...Electronic Technology Co Ltd 35 7 Data 0123456789 ASCII is sent from the master to the slave the master receives 00 30 31 32 33 34 35 36 37 38 39 HEX the first byte received by the master indicates where the data is sent from Please refer to the figure below Format transmission data from slave to master ...

Страница 37: ... 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 ele...

Страница 38: ...oom temperature is lower than 2 5V the lower the voltage the lower the transmitting power Due to antenna quality or poor matching between antenna and module 8 2 Module is easy to damage Please check the power supply source ensure it is 2 0V 3 6V voltage higher than 3 6V will damage the module Please check the stability of power source the voltage cannot fluctuate too much Please make sure antistat...

Страница 39: ...n96 5 Ag3 Cu0 5 Preheat Temperature min Tsmin 100 150 Preheat temperature max Tsmax 150 200 Preheat Time Tsmin to Tsmax ts 60 120 sec 60 120 sec Average ramp up rate Tsmax to Tp 3 second max 3 second max Liquidous Temperature TL 183 217 Time tL Maintained Above TL 60 90 sec 30 90 sec Peak temperature Tp 220 235 230 250 Aveage ramp down rate Tp to Tsmax 6 second max 6 second max Time 25 to peak tem...

Страница 40: ...0 17 5 28 7 PCB IPX Hardware module requires secondary development E73 2G4M08S1C nRF52840 2 4G 8 I O 4 2 5 0 13 18 PCB IPX Hardware module requires secondary development E73 2G4M04S1D nRF51822 2 4G 4 I O 4 2 17 5 28 7 PCB IPX Hardware module requires secondary development E104 BT01 CC2541 2 4G 0 I O 4 0 14 22 PCB Hardware module requires secondary development E104 BT02 DA14580 2 4G 0 TTL 4 2 14 22...

Страница 41: ...Chengdu Ebyte Electronic Technology Co Ltd E104 BT5032A User Manual Copyright 2012 2019 Chengdu Ebyte Electronic Technology Co Ltd 40 11 Package for bulk order ...

Страница 42: ...it date Description Issued by 1 0 2019 5 9 Initial version huaa 1 1 2019 7 30 Format modification Lyl 1 2 2019 10 18 Revision error Ren About Us Technical support support cdebyte com Documents and RF Setting download link www ebyte com Tel 86 28 61399028 Ext 812 Fax 028 64146160 Web www ebyte com Address Innovation Center B333 D347 4 XI XIN Road Chengdu Sichuan ...

Отзывы: