Chengdu Ebyte Ellectronic Technoloogy Co., Ltd E104-BT5032A User Manual E104--BT5032A User U M Manual l nRF552832 BL LE5.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Contents 1. OVERVIEW ............................................................................................................................................ 7 1.1 INTRODUCTION ...............................................................................................................................................7 1.2 FEATURES .....................................................................................................
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 5.2 POWER MODE ...............................................................................................................................................15 5.2.1 Low power mode....................................................................................................................................15 5.2.2 Wake up mode..........................................................................................................
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 6.2 ERROR CODE ................................................................................................................................................20 6.3 STATUS PRINTING ..........................................................................................................................................21 6.4 COMMAND LIST ....................................................................................................
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 6.4.20 AT+IPWR modify ibeacon tx_power ......................................................................................................28 6.4.21 AT+NAME advertise device name .........................................................................................................28 6.4.22 AT+CONPARAMS connection gap configuration ....................................................................................28 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 6.4.42 AT+UUIDCHARA1 SLAVE CHANNEL characteristic UUID ..................................................................36 6.4.43 AT+UUIDCHARA2 MAST CHANNEL characteristic UUID command .....................................................36 6.4.44 AT+VER query software version No.......................................................................................................36 6.4.45 AT+AUTH set authentication password over air .
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 7.2.2 Format transmission ..............................................................................................................................45 8. HARDWARE DESIGN ......................................................................................................................... 47 9. FAQ .....................................................................................................................................
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 1. Overview 1.1 Introduction Small in size and low in power consumption, E104-BT5032A is a serial-to-BLE module based on BLE 5.0 working at 2.4Ghz. It works as both Bluetooth master and slave. Based on nRF52832 from Nordic, the E104-BT5032A module is developed by Chengdu Ebyte. AT commands are available for parameter setting, thus operation is simple and fast. There are Bluetooth master, slave and observer modes.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 1.3 Application Smart home and industrial sensors; Security system, positioning system; Building automation solutions; Wireless remote control, UAV; Wireless game remote control; Healthcare sensor; Wireless voice, wireless headphones; RFID; Automotive applications. 2. Operation Notice 2.1 BLE knowledge This chapter mainly focus on BLE knowledge. 2.1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual In actual applications, the MTU value of different devices will be different. For example, the iPhone's MTU is 185 bytes, and users cannot change it. 2.1.3 Distance response for data rate With ceramic antenna,compared with PCB antenna, ble signal on external antenna has poor TX and RX ability. The longer the distance, the slower the data rate. 2.1.4 Module advertises data in multi-connection The module supports multiple connections.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 2.1.8 Solution to broadcast data problem This method is only for versions below V1.3, excluding V1.3. Problem description: For versions below V1.3, if the user sets the broadcast data to {0x01,0x02,0x03,0x04}, the actual scan result is {0x02,0x01,0x03,0x04} At present, it is compatible with the broadcast data of other models of BLE, which will be modified to {0x01,0x02,0x03,0x04} in V1.3.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual VIL/V IH Random I/O VOL/ VOH GND/0.84 GND/VCC 0.36/VCC GND/1.88 GND/VCC 0.47/VCC Sleep advertising current(default) - 173 - unit:uA, default advertising 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.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 4. Dimension and Pin Definition No. Item Direction Application Remarks 1 GND Input Ground - 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。 1 The internal level of the pin is self-latching. Ground directly or connect to the power supply when driving externally.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Connection pin Internal pull up. Valid in disconnected falling edge 6 DISC Input 7 LINK3 Output Link status 8 DATA 4 Output Data indicator - 9 GND - Ground - 10 P0.02 - NC - 11 P0.03 - NC - 12 P0.04 - NC - 13 P0.05 - NC - 14 P0.06 - NC - 15 P0.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 5.1.1 Master 1. AT+ROLE=1 choose role as master; Restart to take effect; 2. AT+SCAN=1 master scanning started; 3. AT+AUTOCONN 4. Once in manual connection,AT+CONN 5. One master and multiple slave connection is available. Maximum connected slave quantity is 4; 6. Print status information when the master connection status changes. See 6.3 for Status Print. 5.1.1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Format: LEN MAC RSSI Advdata 1 byte 6 bytes 1 byte Within 31 bytes Notes:LEN is sum of MAC, RSSI and advertising data length. 4. Scanning window, gap and parameter should be the same. 5. AT command is valid during this time. 5.1.4 Master and slave as the one 1. Command AT+ROLE=3,select master and slave as the one. Take into effect once restart. 2. Master function configuration is same as master from 6.1.1. 3.
Chengdu Ebyte Electronic Technology Co., Ltd 5.3 E104-BT5032A User Manual Data transmission mode There are two transmission mode:transparent transmission and format transmission. 5.3.1 Transparent transmission It refers to the data received by the serial port is sent to the other device through BLE without any processing, and the data received by the BLE is sent through the serial port without any processing. In slave mode, only data transparent transmission is available.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual For example:020106< Len >FF< Manufa data > Users can configure Manufa data only. 5.5.1.2 Scan response Len Fixed field UUID Len Fixed field Device name 0x03 0x03 FFF0 N 0x09 configurable,max is 22 bytes For example:0303FFF009< Device name > Note: users do not need to configure this data. 5.5.2 iBeacon advertising info. 1. Commands are for UUID, Major, Minor. 2.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 10ms DATA引脚 TXD Data output delay DATA引脚 TXD No delay of data output 5.7.1 Output delay If the output delay is turned on, after receiving the air data, the module first pulls down the DATA pin, and outputs the data through the UART after 10ms. It should be noted: After the output delay is enabled, streaming is not supported.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual below. Pin(P0.xx) IO PWM 2 Available Available 3 Available Available 4 Available Available 5 Available Available 6 Available Available 7 Available Available 25 Available Available 26 Available Available GPIO function pin Note: 1. When IO and PWM are not used, it is recommended to turn off the corresponding function, otherwise it will affect the low power performance of the module. 2. If GPIO is currently set.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 5.10 Multilink 5.10.1 1. Connection handle In the module master role, multiple masters and multiple slaves coexist, and the connection handle is the number of the specified link. 2. Normally, the link number range of the module connected in the role of master: 0 ~ 3; the link number range of the module connected in the role of slave: 4 ~ 7. 3. In principle, the handle of each module connection is not necessarily the same. 4.
Chengdu Ebyte Electronic Technology Co.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual System wake up \r\nSTA:wakeup\r\n Sleep mode \r\nSTA:sleep\r\n Status printing list 6.4 Command list 6.4.1 AT test command command respond AT +OK Remark:None 6.4.2 AT+RESET Reset command command respond AT+RESET +OK Remark:take into effect immediately 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Parameter para(ASCII) Baud rate(bps) 0 1200 1 2400 2 4800 3 9600 4 14400 5 19200 6 28800 7 38400 8 57600 9 76800 10 115200(default) 11 230400 12 250000 13 460800 14 921600 Remark take into effect after reset AT+BAUD=10, baud rate is 115200 For example 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd Parameter E104-BT5032A User Manual para(ASCII) Description 0 No flow control(default) 1 Flow control Remark take into effect after reset and save when power off For example AT+HWFC=0 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 3 Remark 6.4.8 Multiple masters and multiple slaves coexist take into effect after reset and save when power off AT+DEVMANUF modify manufacture name command Inquire Set AT+DEVMANUF? AT+DEVMANUF =[para] respond +OK=[para] +OK:success +ERR=[NUM]:error para(string): manufacture name Parameter Remark 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 2、 string is up to 32 bytes 6.4.11 AT+DEVHWER modify hardware version Command Inquire Set respond AT+DEVHWVER? +OK=[para] +OK:success AT+ DEVHWVER =[para] +ERR=[NUM]:error para(string): device hardware version Parameter Remark 6.4.12 Default: V1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual +ERR=[NUM]:error para(ASCII) Description 0 Close advertising 1 Normal advertising(default) 2 iBeacon Parameter 1、 Take into effect immediately(if advertising is not enabled, or it is connected, then take into effect Remark next time),save when power off; 2、 Available for slave only. 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd Inquire Set AT+IPWR? AT+ IPWR =[para] Parameter E104-BT5032A User Manual +OK=[para] +OK:success +ERR=[NUM]:error para(ACSII): -128~127 Default: 0 1. Take into effect immediately(if advertising is not enabled, or it is connected, then take into effect next Remark time),save when power off; 2. Advertising available for slave only, other role can configurate; 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual connection time to be too long, and during the connection process, all data received by the serial port is discarded. For example 6.4.23 AT+CONPARAMS=16,0,400 Connection gap 16*1.25ms,slave will delay:0,16*1.25ms, connection timeout 400*1.
Chengdu Ebyte Electronic Technology Co., Ltd Disconnect all E104-BT5032A User Manual +OK:success AT+DISCON +ERR=[NUM]:error handle(ASCII) description 0~7 Disconnect specified connection Parameter 1 Take into effect immediately. 2 As slave, only disconnect all is available; Remark 3 Disconnect all is available for master and slave mode; 4 If handle specified connection is not connected, the module will return error; 5 For Handle please refer to 错误!未找到引用源。 multilink. 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Set +OK=[para]:success (only for slave AT+PEERMAC? +ERR=[NUM]: error ROLE=0) Query specified connected MAC AT+PEERMAC=[handle] address Parameter MAC(HEX):MAC address; handle(string):specify connection handle. Refer to 错误!未找到引用源。 multilink; Command:AT+PEERMAC? For example Return:2B 4F 4B 3D FE 30 EE 50 35 DA Description:connected device MAC is FE 30 EE 50 35 DA 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd Set +OK AT+BONDDEL=[mac] Parameter Remarks 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd Parameter E104-BT5032A User Manual para(ASCII): 4~65535 Default: 80; 1、Take into effect immediately, save when power off Remarks 2、Scanning interval is more than scanning window 3、Unavailable for slave, but configuration is ok For example 6.4.34 AT+SCANWND=20 Interval:20*0.625 = 12.
Chengdu Ebyte Electronic Technology Co., Ltd 6.4.37 E104-BT5032A User Manual AT+TRANMD master transmission mode command Query respond AT+TRANMD? Set +OK=[para] Remarks +ERR=[NUM]:error para(ASCII) Description 0 Non-transparent transmission(default) 1 Transparent transmission Parameter 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 3. The instruction supports firmware version: V1.1. 4. The number of connections is limited to automatic connections only. 6.4.40 AT+UUIDSVR128 set 128-bit UUID command Query AT+UUIDSVR128? Set AT+ UUIDSVR128=[para] Parameter respond +OK=[para] +OK:success +ERR=[NUM]:error para(HEX):16-bit uuid.
Chengdu Ebyte Electronic Technology Co., Ltd 6.4.43 E104-BT5032A User Manual AT+UUIDCHARA2 MAST CHANNEL characteristic UUID command command Query Set AT+UUIDCHARA2? +OK=[para] AT+UUID CHARA2= +OK:success [para] +ERR=[NUM]:error para(ASCII): 1 ~ 65535; Parameter Default: 65522 1、 Take into effect after reset, save when power off Remarks 6.4.44 respond 2、 The master channel for data sent from the master to the slave. AT+VER query software version No.
Chengdu Ebyte Electronic Technology Co., Ltd 6.4.47 E104-BT5032A User Manual AT+PWR transmitting power command Query respond AT+ PWR? Set +OK=[para] +OK:success AT+ PWR =[para] Parameter Remarks 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual para(ASCII) description 0 Disconnect (default) 1 Disconnect and get into sleep Parameter Remarks 6.4.50 Take into effect immediately, save after power off AT+SLEEP get into sleep mode immediately command Set respond AT+SLEEP +OK Parameter None Remarks Take into effect immediately 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 1. Take into effect immediately, do not save once power off. 2. Only available for firmware:V1.1 Remarks 6.4.53 AT+PINSET Set IOhigh and low level command Set respond AT+ PINSET =[pin],[sta] +OK:Success +ERR=[NUM]:Error 1、PINis command pin. Refer to figure: GPIO function pins 2、staparameter: Parameter Remarks sta(ASCII) description 0 Low level 1 High level 1. Take into effect immediately, do not save once power off 2.
Chengdu Ebyte Electronic Technology Co., Ltd Set AT+ PWMCONF =[pin],[freq],[duty] E104-BT5032A User Manual +OK:Success +ERR=[NUM]:Error 1. PINis command pin. Refer to figure: GPIO function pins. 2. Freqis specified frequency. Range:4HZ ~ 160KHZ.Unit:HZ 3. Dutyis cycle duty. Range:1 ~ 100. 4. All parameter is positive integer. 1. Take into effect immediately, do not save once power off 2. Only available for firmware:V1.1 Parameter Remarks 6.4.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 6.4.58 AT+FILTER Device master filtering conditions command Set respond AT+FILTER =[type], [sta] +OK:Success +ERR=[NUM]:Error [type] Parameter Type description 1 Filter according to name [sta] Sta description 0 Turn off filtering 1 Turn on filtering 1. Take into effect immediately, do not save once power off 2. Only valid for firmware:V1.1 Remarks The master filter with name “E104-BT50”. 1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 7. Quick start Recommended debugging and testing software: Serial tool on PC - SSCOM.exe; Ble debugging APP on phone- nRF connect. 7.1 Guidance for configuration mode 7.1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 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 (+OK\r\n)”, means successful authentication; 44 Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Authentication of configuration over air Refer to 6.4 command list to configure the module; 7.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. 7.2.1 Data transparent transmission 1.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Automatically connect and print once the slave is powered on 4. Data “0123456789” is sent from the master to the slave(refer to master’s transparent transmission below); 5. Data “abcdefghijk” is sent from the slave to the master (refer to master’s transparent transmission below); Master’s transparent transmission 7.2.2 Format transmission 1. R 错误!未找到引用源。 Data transparent transmission, Step 1; 2.
Chengdu Ebyte Electronic Technology Co., Ltd 7. E104-BT5032A User Manual 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 47 Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 8. 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.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 9. FAQ 9.1 Communication range is too short The communication distance will be affected when obstacle exists. Data lose rate will be affected by temperature, humidity and co-channel interference. The ground will absorb and reflect wireless radio wave, so the performance will be poor when testing near ground.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 10. Production Guidance 10.1 10.2 Reflow soldering temperature Profile Feature Sn-Pb Assembly Pb-Free Assembly Solder Paste Sn63/Pb37 Sn96.5/Ag3/Cu0.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 11. Related product Model NO. RF IC Frequency Hz TX POWER Interface dBm Protocol Size BLE mm Antenna Function Hardware module, E72-2G4M05S1B CC2640 2.4G 5 I/O 4.2 17.5*28.7 PCB/IPX requires secondary development Hardware module, E73-2G4M04S1A nRF52810 2.4G 4 I/O 4.2/5.0 17.5*28.7 PCB/IPX requires secondary development Hardware module, E73-2G4M04S1B nRF52832 2.4G 4 I/O 4.2/5.0 17.5*28.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual 12. Package for bulk order 52 Copyright ©2012–2019,Chengdu Ebyte Electronic Technology Co.
Chengdu Ebyte Electronic Technology Co., Ltd E104-BT5032A User Manual Reversion History Version Edit date Description Issued by 1.0 2019-5-9 Initial version huaa 1.1 2019-7-30 Format modification Lyl 1.3 2019-11-20 Product upgrade Ren Content modification 1.4 2020-1-4 (recommended wiring Linson diagram) 1.5 2020-04-09 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.
FCC Statement: This device complies with part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) this device must accept any interference received, including interference that may cause undesired operation. This equipment has been tested and found to comply with the limits for a Class B digital device, pursuant to part 15 of the FCC Rules.
Integration instructions for host product manufacturers according to KDB 996369 D03 OEM Manual v01 2.2 List of applicable FCC rules CFR 47 FCC PART 15 SUBPART C has been investigated. It is applicable to the modular transmitter 2.3 Specific operational use conditions Thismoduleisstand-alonemodular.