e-Gizmo EGBT-045MS Скачать руководство пользователя страница 9

Page 9 of 15 pages

EGBT-046S/EGBT-045MS Bluetooth Module

e-Gizmo Mechatronix Central

AT COMMAND LISTING

COMMAND

FUNCTION

1

AT

Test UART Connection

2

AT+RESET

Reset Device

3

AT+VERSION

Querry firmware version

4

AT+ORGL

Restore settings to Factory Defaults

5

AT+ADDR

Query Device Bluetooth Address

6

AT+NAME

Query/Set Device Name

7

AT+RNAME

Query Remote Bluetooth Device’s 
Name

8

AT+ROLE

Query/Set Device Role

9

AT+CLASS

Query/Set Class of Device CoD

10

AT+IAC

Query/Set Inquire Access Code

11

AT+INQM

Query/Set  Inquire Access Mode

12

AT+PSWD

Query/Set Pairing Passkey

13

AT+UART

Query/Set UART parameter

14

AT+CMODE

Query/Set Connection Mode

15

AT+BIND

Query/Set Binding Bluetooth Address

16

AT+POLAR

Query/Set LED Output Polarity

17

AT+PIO

Set/Reset a User I/O pin

18

AT+MPIO

Set/Reset multiple User I/O pin

19

AT+MPIO?

Query User I/O pin

20

AT+IPSCAN

Query/Set Scanning Parameters

21

AT+SNIFF

Query/Set SNIFF Energy Savings 
Parameters

22

AT+SENM

Query/Set Security & Encryption Modes

23

AT+RMSAD

Delete Authenticated Device from List

24

AT+FSAD

Find Device from Authenticated Device 
List

25

AT+ADCN

Query Total Number of Device from 
Authenticated Device List

26

AT+MRAD

Query 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 Discoverable 
Devices

31

AT+PAIR

Device Pairing

32

AT+LINK

Connect to a Remote Device

33

AT+DISC

Disconnect from a Remote Device

34

AT+ENSNIFF

Enter Energy Saving mode

35

AT+EXSNIFF

Exit Energy Saving mode

ERROR CODES

ERROR 
CODE

VERBOSE

0

Command Error/Invalid Command

1

Results in default value

2

PSKEY write error

3

Device name is too long (>32 characters)

4

No device name specified (0 lenght)

5

Bluetooth address NAP is too long

6

Bluetooth address UAP is too long

7

Bluetooth address LAP is too long

8

PIO map not specified (0 lenght)

9

Invalid PIO port Number entered

A

Device Class not specified (0 lenght)

B

Device Class too long

C

Inquire Access Code not Specified (0 lenght)

D

Inquire Access Code too long

E

Invalid Iquire Access Code entered

F

Pairing Password not specified (0 lenght)

10

Pairing Password too long (> 16 characters)

11

Invalid Role entered

12

Invalid Baud Rate entered

13

Invalid Stop Bit entered

14

Invalid Parity Bit entered

15

No device in the Pairing List

16

SPP not initialized

17

SPP already initialized

18

Invalid Inquiry Mode

19

Inquiry Timeout occured

1A

Invalid/zero lenght address entered

1B

Invalid Security Mode entered

1C

Invalid Encryption Mode entered

Содержание EGBT-045MS

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Отзывы: