background image

Page 11 of 15 pages

EGBT-046S/EGBT-045MS Bluetooth Module

e-Gizmo Mechatronix Central

8. Query/Set 

Device

 Role

COMMAND

RESPONSE

AT+ROLE?

É

+ROLE:<role>

É

OK

É

AT+ROLE=<role>

É

OK

É

where   <role> 
 

0 - Slave (default)

 

1 - Master

 

2 - Slave-Loop

Slave - EGBT-045MS acts as discoverable wireless 

UART device ready for transparent data ex-
change.

Master - Scans for a remote bluetooth (slave) device, 

pairs, and setup connection for a transparent 
data exchange detween devices

Slave-Loop - Data loop-back Rx-Tx. Used mainly for 

testing. 

Example: Set EGBT-045MS in master role

Bluetooth address in NA:UAP:LAP format = 0002:72:0A3C7F

From Host controller:

 

AT+ROLE=1

É

EGBT-045MS response

 

+ROLE:1

É

 

OK

É

 9. Query/Set

 

Class of Device CoD

COMMAND

RESPONSE

AT+CLASS?

É

+CLASS:<class>

É

OK

É

AT+CLASS=<class>

É

OK

É

where   <class> 
 

0 -  (default)

The Class of Device identifier. For more info, see the  
Bluetooth_Code_Definition.pdf file included with the 
product documentation of this kit.

10. Query/Set Inquire Access Code

COMMAND

RESPONSE

AT+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

É

where   <inq1> Inquire Access Mode
 

0 - standard

 

1 - rssi  (default)

 

<inq2> Maximum number of devices response

 

 0 to 32000

 

 1 (default)

 
 

<inq3> Inquire timeout

 

1 to 48 

 

48 (default)

Maximum number of devices response - EGBT-045MS 

will stop inquiring once the number of devices 
that responded reaches this value.

Inquire Timeout - Multiply this number by 1.28 to get the 

maximum time in seconds the EGBT-045MS will 
wait for a respond to an inquiry call. 

Example: Set EGBT-045MS  Inquire Access Mode at 

 

 

Inquire access mode - 1 (rssi)

 

Number of devices - 3

 

Timeout - 10 (10*1.28 = 12.8 seconds)

 

Bluetooth address in NA:UAP:LAP format = 0002:72:0A3C7F

From Host controller:

 

AT+INQM=1,3,10

É

EGBT-045MS response

 

OK

É

12. Query/Set Pairing Passkey

COMMAND

RESPONSE

AT+PSWD?

É

+PSWD:<password>

É

OK

É

AT+PWSD=<password>

É

OK

É

where  

<password> = Alphanumeric password 16 characters max.

 

1234 - (default)

Example: Set EGBT-045MS  Password to “e-Gizmo” 

From Host controller:

 

AT+PSWD=e-Gizmo

É

EGBT-045MS response

 

OK

É

13. Query/Set 

UART parameter

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: