background image

EGBT-046S/EGBT-045MS Bluetooth Module

Page 8 of 15 pages

e-Gizmo Mechatronix Central

PREPARATION FOR USE

The EGBT-045MS is pre-configured as a slave 
Bluetooth device. As shipped, it works under the 
following data mode default configuration:

Baud Rate: 38400/9600 bps – see “Entering Com-
mand Mode” section for details
Data  : 8 bits
Stop Bits: 

1 bit

Parity  : None
Handshake: None

Passkey: 1234
Device Name: HC-05

If the default configuration suits your application, 
then you can use EGBT-045MS immediately. Once 
it is paired to a master Bluetooth device, its opera-
tion becomes transparent to the user. No user code 
specific to the Bluetooth module is needed at all in 
the user microcontroller program. 

The EGBT-045MS works in Data Mode when the 
CMD pin (pin 34) is pulled to logic 0 level or is 
left unconnected. Transparent UART data trans-
fer with a connected remote device occurs only 
while in Data Mode. The EGBT-045MS switches to 
Command Mode if CMD pin is set to logic HIGH. 
Command mode must be invoked to setup and 
configure EGBT-045MS. Pairing and connection 
to a remote Bluetooth slave device can be initiated 
only while the EGBT-045MS is in command mode 
(and configured in role as a Master) by entering a 
string of AT style commands. Any changes made to 
system parameters (e.g. password, baud rate, etc) 
will be retained even after power is removed, hence 
device configuration setup must not be repeated 
unless new changes need to be made. 

Entering Command Mode

EGBT-045MS is put in Command Mode by setting 
the CMD pin to logic High. There is one important 
point the user should be aware of when setting the 
device in Command Mode – the baud rate may as-
sume a different value depending on the instance 
the CMD pin is switched to high:

•  If EGBT-045MS is powered ON with CMD pin to 
+Vcc, the UART is set to 38400bps, 8 data bits, 1 
stop bit, no parity, no handshake.

•  If the EGBT-045MS is powered ON with the CMD 

pin at logic low (or open circuit), and then pulled 
High a moment later, the UART parameters as-
sumes a set of values that was previously fixed 
using the AT+UART command, with 9600bps, 8 
data bits, 1 stop bit, no parity, and no handshake as 
default parameter values.

You can do configuration setup using the host con-
troller itself (the microcontroller in your own circuit), 
or a PC running a terminal software using a serial 
to TTL (or USB to Serial TTL) converter. See Figure 
6 for connection details.

EGBT-045MS AT COMMAND REFERENCE

Symbols and Nomenclatures.

<xxxx>

 Descriptive ID of parameters that must be 

entered by the user or reported back by the EGBT-
045MS.

Example:
 

AT+INQM=<inq1>,<inq2>,<inq3>

May in actual use appear as
 

AT+INQM=0,1,15

When <inq1> =0, <inq2>=1, and <inq3>=15

 

É

 

= Carriage Return followed by Line Feed 

character<CR><LF>

Example:

 

OK

É 

OK<CR><LF>

Important note:

 All commands must be terminated 

by <CR><LF>. If the host controller send a <CR> 
only, EGBT-045MS will repeatedly send a respond 
that will stop only when <LF> is issued by the host 
controller

Summary of Contents for EGBT-045MS

Page 1: ...ulted in a huge drop in prices of these specialty Bluetooth modules benefiting us experimenters and hobbyists EGBT 045MS and EGBT 046S are generic Blue tooth Modules loaded with SPP firmware for UART...

Page 2: ...e valid 5V TTL range hence can be connected directly to the UART RXD of the 5V microcontroller host EGBT RXD and inputs however are not 5V tolerant and can be damaged by 5V level logic go ing in Some...

Page 3: ...ing example with a 3v3 host microcontroller The 470R resistor and LED are for status indication and may be omitted if not needed Figure 3 EGBT 046S RX input is not 5V tolerant A schottky diode connect...

Page 4: ...commands Any changes made will be retained even after power is removed from the EGBT 046S hence device con figuration setup must not be repeated unless new changes need to be made You can do configura...

Page 5: ...d rate to these values connection to a PC COM port will no longer be possible Use of USB to Serial converter cable that can work at higher bauds may be necessary to re establish a connection Prolific...

Page 6: ...rammable I O 29 PIO6 User programmable I O 30 PIO7 User programmable I O 33 PIO10 User programmable I O 31 LED1 LED Status Indicator 32 LED2 LED Status Indicator 34 CMD Command Mode EGBT 045MS PIN CON...

Page 7: ...nd may be omitted if not needed The microcontroller can switch the EGBT 045MS between command mode and data mode at any time by setting the CMD pin accordingly Figure 8 EGBT 045MS RX input is not 5V t...

Page 8: ...ion setup must not be repeated unless new changes need to be made Entering Command Mode EGBT 045MS is put in Command Mode by setting the CMD pin to logic High There is one important point the user sho...

Page 9: ...Most Recently Used Authenti cated Device 27 AT STATE Query Current Status of the Device 28 AT INIT Initialize SPP Profile 29 AT INQ Query Nearby Discoverable Devices 30 AT INQC Cancel Search for Disc...

Page 10: ...ontroller AT ADDR EGBT 045MS Response ADDR 11 6 230154 OK Bluetooth Address is 11 06 23 01 54 6 Query Set Device Name COMMAND RESPONSE AT NAME NAME name OK AT NAME name OK where name Device Name 31 ch...

Page 11: ...IAC IAC iac OK AT IAC iac OK FAIL where iac Inquire Access Code 9e8b33 default value 11 Query Set Inquire Access Mode COMMAND RESPONSE AT INQM INQM inq1 inq2 inq3 OK AT INQM inq1 inq2 inq3 OK FAIL whe...

Page 12: ...Set Binding Bluetooth Address COMMAND RESPONSE AT BIND BIND addr OK AT BIND addr OK where addr 48 bit bluetooth address in NAP UAP LAP format Example Bind with Bluetooth device having address 00 02 7...

Page 13: ...01 0100 0100 In this example the PIO are previously set in command 18 with PIO2 and PIO6 set The returned value also shows reserved bits 11 and 8 set by the system 20 Query Set Scanning Parameters COM...

Page 14: ...response if device is not in the authenticated list 25 Query Total Number of Device from Authenti cated Device List COMMAND RESPONSE AT ADCN ADCN total OK where total total number of devices in the au...

Page 15: ...of discovered devices equals the number of specified devices 30 Cancel Search for Discoverable Devices COMMAND RESPONSE AT INQC OK AT INQ can be stopped at anytime by executing this command 31 Device...

Reviews: