
EGBT-046S/EGBT-045MS Bluetooth Module
Page 12 of 15 pages
e-Gizmo Mechatronix Central
COMMAND
RESPONSE
AT+UART?
É
+UART:<baud>,<stop>,<parity>
É
OK
É
AT+UART=<baud>,<stop>,<
parity>
É
OK
É
where
<baud> =baud rate, any one of the following
4800
9600 (default)
19200
38400
57600
115200
234000
460800
921600
1382400
<stop> = number of stop bits
0 - 1 bit (default)
1 - 2 bits
<parity> = Parity bit
0 - None (default)
1 - Odd parity
2 - Even Parity
Example: Set EGBT-045MS UART parameter to
115200bps, 2 stop bits, even parity
From Host controller:
AT+UART=115200,1,2
É
EGBT-045MS response
OK
É
14. Query/Set
Connection Mode
COMMAND
RESPONSE
AT+CMODE?
É
+CMODE:<mode>
É
OK
É
AT+CMODE=<mode>
É
OK
É
where
<mode>
0 - Connect to a specified Bluetooth device only (default).
See related command Command 15.
1 - Can connect with any other Bluetooth device.
2 - Test mode
15. Query/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:72:0A:3C:7F
Bluetooth address in NA,UAP,LAP format = 0002,72,0A3C7F
From Host controller:
AT+BIND=0002,72,0A3C7F
É
EGBT-045MS response
OK
É
16. Query/Set LED Output Polarity
COMMAND
RESPONSE
AT+POLAR?
É
+POLAR:<led1>,<led2>
É
OK
É
AT+POLAR=<led1>,<led2>
É
OK
É
where <led1> = LED1 (pin 31) Polarity
0 - LED1 output active low
1 - LED1 output active high (default)
<led2> = LED2 (pin 32) Polarity
0 - LED2 output active low
1 - LED2 output active high (default)
LED 1
Flashes once each seconds to indicate EGBT-045MS is
in Command Mode. Flashes two times per second when
EGBT-045MS is in data mode.
LED2
Turns ON when EGBT-045MS remote connection is suc-
cessfuly opened.
17. Set/Reset a User I/O pin
COMMAND
RESPONSE
AT+PIO=<pn>,<value>
É
OK
É
where
<pn> = port number. Available port are as follows
2 - PIO2
3 - PIO3
4 - PIO4
5 - PIO5
6 - PIO6
7 - PIO7
10 - PIO10