background image

Chengdu Ebyte Electronic Technology Co., Ltd.

E104-BT20 User Manual

E104-BT20 User Manual

EDR2.1 Bluetooth Serial Communication Module

Summary of Contents for E104-BT20

Page 1: ...Chengdu Ebyte Electronic Technology Co Ltd E104 BT20 User Manual E104 BT20 User Manual EDR2 1 Bluetooth Serial Communication Module ...

Page 2: ... 6 AT COMMAND 7 6 1 DEFAULT PARAMETERS 7 6 2 AT COMMAND DETAILS 8 6 2 1 TEST COMMAND 8 6 2 2 MODULE RESETTING 8 6 2 3 RESTORE DEFAULT STATE 9 6 2 4 OBTAIN SOFTWARE VERSION NUMBERS 9 6 2 5OBTAIN BLUETOOTH ADDRESS 9 6 2 6 INQUIRY SETTINGS DEVICE NAME 9 6 2 7 INQUIRY SETTING BLUETOOTH ROLE 10 6 2 8 INQUIRY SET SERIAL PORT PARAMETERS 10 6 2 9 INQUIRY SETTINGS CONNECTION MODE 11 6 2 10 INQUIRY SETTING ...

Page 3: ...le and convenient to use It also supports point to point connection from master to slave module to achieve fast data transmission and the data transmission is stable and efficient In slave mode it supports a maximum baud rate of 921600bps It is a simple and efficient data transmission module that minimizes the developer s work and project development time 1 2 Features Bluetooth Specification V2 1 ...

Page 4: ...3 6V Blocking Power dBm 10 Low chance to be damaged for short distance transceiving Working Temp 0 C 85 2 2 Working Parameters Main Parameters Value Remarks Min Typical Max Working Voltage V 3 0 3 3 3 6 Voltage above 3 3V can guaranty Max TX power Tx Electrical Level V 3 3 5V TTL could cause permanent damage Working Temp 0 70 Working Frequency MHz 2402 2480 Support ISM Chanel Power Consumption TX ...

Page 5: ...h protocol Bluetooth Specification V2 1 EDR Communication Interface UART Packaging type SMD Interface method 1 27mm Dimensions 13 25mm product weight 1 2 0 1g Antenna interface PCB Antenna Equivalent impedance about 50Ω 3 Size and pin definition No Name Direction Function Remark 1 GND Power Supply Ground Ground connected to the power reference ground 2 SWDIO Input Output Inputting and outputting d...

Page 6: ...rence ground 19 GND Power Supply Ground Power Supply Input 20 GPIO7 Suspension Universal IO Ground connected to the power reference ground 21 CTS Input Hardware flow control Pin for User configuration 22 STATUS Output LED indicator UART clear transmit input pin 23 TXD Output TX Power Ground Module status indicator Output pin 24 RTS Output Hardware flow control Module external output serial data 25...

Page 7: ...to enter the power on configuration mode and reset the baud rate NOTE Some instructions are only available under certain mode such as CONNECTED mode or MASTER mode Details will be given in Chapter 6 Power on configuration mode Setting the MOD pin high and the module will immediately enter the AT command mode after power on The status light will keep flashing slowly In this mode the module will not...

Page 8: ... the serial port as shown in the following table Status Printed Information Connection On CONNECTED SUCCESS OK Connection off DISC SUCCESS OK Disconnection 5 5 IO Pins In order to facilitate users to expand the IO port pin functions of the module and diversify the module functions this module has a total of 8 IOs Users can configure IO as universal input or output The output pin can be configured ...

Page 9: ...tion param n parameter list of setting operations all separated by commas CR LF terminator which means carriage return and line feed ASCII codes are 0x0a and 0x0d 3 Response message Query operation CMD param1 param2 param3 CR LF OK CR LF Response message prefix CMD command string NOTE The interval symbol between the parameters does not change according to the instruction The returned Bluetooth add...

Page 10: ...Obtain Software Version Numbers Command Answer Parameter AT VERSION VERSION param OK param software version number For Example Command AT VERSION Answer VERSION ebyte comV1 0 OK 6 2 5Obtain Bluetooth Address Command Answer Parameter AT ADDR ADDR param param Bluetooth Address For Example Command AT ADDR Answer ADDR 00 00 00 00 00 00 OK 6 2 6 Inquiry Settings Device Name Command Answer Parameter AT ...

Page 11: ...n receiving data from the peer Bluetooth master device and returning the data to the peer Bluetooth master device as is Master role Master In the specified Bluetooth address connection mode the Bluetooth address that is bound is automatically connected the Bluetooth address in the pairing list is automatically connected to realize the transparent transmission of data between the master and slave B...

Page 12: ...ress connection mode The specified Bluetooth address is set by the binding instruction 1 Any Bluetooth address connection mode 2 Slave Loop Default connection mode 0 AT CMODE param CMODE param OK The above commands will take effect after restarting 6 2 10 Inquiry Setting Bind Bluetooth Address Command Answer Parameter AT BIND OK param bind Bluetooth address Bluetooth address binding by default 00 ...

Page 13: ...ED param1 The values are as follows 0 LINK PIN output low level light LED 1 LINK PIN output high level light LED Default setting 0 0 AT POLAR param1 param2 POLAR param1 param2 OK The STATUS pin drives the LED to indicate the module s working status the LINK pin indicates the connection status for example Set the STATUS output low to light the LED and the LINK output high to indicate that the conne...

Page 14: ...ber mask 1 GPIO serial number mask 2 Such as GPIO1 mask 1 1 0x02 GPIO5 mask 1 5 0x20 GPIO1 and GPIO5 mask combination 0x010x20 0x22 for example 1 GPIO1 and GPIO5 output high level and the rest output low level Command AT MPIO 21 Answer OK 2 GPIO3 outputs high level and the rest outputs low level Command AT MPIO 08 Answer OK 3 GPIO7 outputs high level and the rest outputs low level Command AT MPIO ...

Page 15: ... high level and the rest outputs low level Command AT MPIO 80 Answer OK 4 All pins output low level Command AT MPIO 00 Answer OK 6 2 17 Querying GPIO Port Status Command Answer Parameter AT MPIO MPIO param OK param GPIO port value 8bits param bit 0 is invalid param bit 1 GPIO1 param bit 7 GPIO7 If GPIOX is output 0 low 1 high If GPIOX is input 0 pull up 1 Drop down The module provides users with I...

Page 16: ...evice from the Bluetooth pairing list Command Answer Parameter AT FSAD param OK Success FAIL Failed param Bluetooth device address For Example Find the Bluetooth device with the address 11 22 33 44 55 66 from the pairing list The input Bluetooth address cannot be zero otherwise the command format is wrong Command AT FSAD 11 22 33 44 55 66 Answer OK A Bluetooth device with the address 11 22 33 44 5...

Page 17: ... for example Command AT RSSI Answer RSSI 26 OK 6 2 24 Disconnect available when connected Command Answer Parameter AT DISC DISC SUCCESS OK Disconnect successfully None 6 2 25 Connect device available as host role Command Answer Parameter AT LINK param OK success FAIL Failure param remote device Bluetooth address Use the AT command to establish a connection with the slave under the master role for ...

Page 18: ...erval cannot be odd otherwise error code 1 is returned paging interval ranges from 18 to 4096 query duration and paging duration ranges from 17 to 4096 and the query interval must be greater than or equal to For query duration the paging interval must also be greater than or equal to the paging duration otherwise an error code 1 is returned for example Take the default value as an example Command ...

Page 19: ...alid 7 Check digit is invalid 8 Invalid connection mode 9 The pairing code is longer than 16 bytes 10 Pairing code length is zero 11 Drive polarity parameter is out of range 12 GPIO port number is out of range 13 Output status or up down parameters are out of range 14 MPI0 MPII parameters exceed one byte length is zero 15 Bluetooth address is longer than 12 bytes 16 Bluetooth address is 0 17 Authe...

Page 20: ...ou only need to set the binding Bluetooth address to the slave s Bluetooth address to automatically connect the slave Send the command AT BIND 11 22 33 44 55 66 If it returns OK the setting is successful Restart the module At this time the module as the master has taken effect After the host is powered on it will automatically establish a connection with the slave 8 Notice for Hardware It is recom...

Page 21: ... sure that the antenna is exposed and preferably vertical When the module is installed inside the casing it is recommended to use a good antenna extension cable to extend the antenna to the outside of the casing The antenna must not be installed inside the metal case which will greatly reduce the transmission distance 9 FAQ 9 1 Communication range is too short The communication distance will be af...

Page 22: ...rence on the SPI line or the SPI bus line should not be too long 10 Soldering Guidance 10 1 Reflow Soldering Temperature Profile Feature Curve characteristics Sn Pb Assembly Pb Free Assembly Solder Paste Solder paste Sn63 Pb37 Sn96 5 Ag3 Cu0 5 Preheat Temperature min Tsmin Min preheating temp 100 150 Preheat temperature max Tsmax Mx preheating temp 150 200 Preheat Time Tsmin to Tsmax ts Preheating...

Page 23: ...td E104 BT20 User Manual _________________________________________________________________________________________________ Copyright 2012 2020 Chengdu Ebyte Electronic Technology Co Ltd 22 10 2 Reflow soldering curve 11 Package for Buck Order ...

Page 24: ...ued by 1 0 2019 7 29 Initial version 1 1 2019 8 14 AT command name modification 1 2 2019 8 23 Format revision Lyl 1 3 2019 8 23 Content modification YXD 1 4 2019 11 14 Content modification Ren 1 5 2019 12 11 Content modification Ren 1 6 2020 04 22 Ren About us Website www ebyte com Sales info cdebyte com Support support cdebyte com Tel 86 28 61399028 Ext 812 Fax 86 28 64146160 Address Innovation C...

Reviews: