EY-08 AT
- When connection not established, you can control by AT commands.
- When connected, you can send data via 0x..FFE1 UUID, or send commands/control via 0xFFE2 UUID.
- No need \r\n at end of commands.
Header text | Header text |
---|---|
|
|
AT instructions
Basic Commands
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
Soft reset | AT + RST | OK | |
Set the baud rate | Instruction: AT + BOUD0 | means the baud rate is 115200, 1 means the baud rate is 57600, 2 means the baud rate is 38400, 3 means the baud rate is 19200, 4 means the baud rate is 9600, default baud rate is 115200 | OK |
Set the module operating mode | AT + HOSTEN0 |
|
OK |
Disconnect | AT + DISC | Disconnect | OK |
Open the radio | Command: AT + ADVEN0 |
|
OK |
Broadcast interval | AT + ADVIN0 |
|
OK |
Connection Interval | AT + NEIN0 |
|
OK |
Transmission power | AT + POWR0; AT + POWR (read) |
|
OK |
Set the broadcast name | AT + NAMEEB-08; AT + NAME | set the broadcast name: EB-08 | OK |
Reads the MAC address | AT + MAC | Returns: MAC: 001830EA0662 Indicates that the MAC address is: 001830EA0662 | MAC: 001830EA0662 |
iBeacon commands
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
Set the iBeacon UUID | AT + STRUUIDFDA50693A4E24FB1AFCFC6EB07647825; read AT + STRUUID | string type UUID is set, UUID is: FDA50693A4E24FB1AFCFC6EB07647825 | OK |
Set as UUID in hexadecimal | 41542b48455855554944FDA50693A4E24FB1AFCFC6EB07647825 | UUID is: FDA50693A4E24FB1AFCFC6EB07647825 | OK |
Reads the UUID in hexadecimal | Command: AT + HEXUUID | Return: 555549443AFDA50693A4E24FB1AFCFC6EB07647825 | |
Set iBeacon Major | AT + MAJOR000A; read AT + MAJOR | Indicates that Major is set to 10 |
|
Set iBeacon Minor | AT + MINOR0007; read AT + MINOR | means to set Minor to 7 |
|
Read the module version number | AT + VER | EB-08-V2.1 | |
Set the factory identification code | AT + VID1122; read AT + VID | means to set the factory identification code to 1122 |
|
Set the sensor temperature value | AT + TEMP32 | set temperature to 32 degrees | Returns: OK |
Set the sensor humidity value | AT + HUMID11 | means that the relative humidity is set to 11% | Returns: OK |
Set the sensor charge value | AT + BATT90 | means that the sensor power is 90% | Returns: OK |
Set whether to open the password connection | AT + ISCEN0 |
|
OK
|
Set the connection password | AT + PASS123456; read AT + PASS | means to set the connection password: 123456 password length can only be 6 |
Returns: OK; Returns: PSS: 123456
|
Change the service UUID | AT + SVRUUFFFF0; read AT + SVRUUID | means set service UUID is: 0xFFF0 | Returns: OK; Returns: SRUUID: FFF0 |
Change the feature UUID | AT + CHRUUIDFFF1; read AT + CHRUUID | means setting the feature UUID to be: 0XFFF0 | Returns: OK; Returns: SRUUID: FFF1 |
PWM, RTC, wechat H5
- Setup for normal DC small motor - AT+PWMOPEN1; AT+PWMFRE100; AT+PWM1PUS40; Pulse speed should at 30~50
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
Turn on the PWM function | AT + PWMOPEN1; read AT + PWMOPEN |
Indicates that the PWM is turned on
|
OK |
PWM frequency setting | AT + PWMFRE260; read AT + PWMFRE | means to set the PWM frequency to 260HZ | Returns: OK |
Set the PWM1 pulse width |
|
|
Returns: OK
|
Micro-H5 or server selection | AT + WXSVR0; read AT + WXSVR |
|
Returns: OK |
RTC
- AT+RTCFLASH; 1~9 to set RTC Flash time
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
Set the RTC time | AT + RTCDATE2014-12-05,12: 07: 08; AT + RTCDATE Read RTC time | Indicates that the RTC time is set to December 5, 2014, 12: 7: 8 |
|
RTC function switch | AT + RTCOPEN |
|
Returns: OK |
The rest commands
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
Host scan | AT + SCAN1 |
|
OK |
The host reads the number of slaves scanned | Command: AT + GETDCD | Returns: DEV: 1 indicates that the host has scanned a device and can scan up to 8 devices | |
The master reads the scanned slave MAC address | AT + RSLV0 | means the host reads the MAC address of list 0, and can read up to 8 lists of addresses | Returns: MAC: 001830EA0662 |
connect to target in scanned list | AT + CONNET0 | Indicates the MAC address of host connection list 0 | Returns: OK; Returns: MAC: 001830EA0662 |
bind MAC address | AT + BAND0; read AT + BAND | Indicates the MAC address of Host Binding List 0; Reads the bound MAC address | Returns: OK |
bind MAC address | AT + BAND001830EA0662 | Indicates that the host binds the specified MAC address: 001830EA0662 | Returns: OK |
Read the working status of the module | Command: AT + GETSTAT |
Param:(00 - 11)
|
New Commands
Commands | e.g. (write/read) | Description | return |
---|---|---|---|
restore to factory setting | AT+RESTORE | - | OK |
wake up on boot | AT+STARTEN | - |
|
enter into sleep mode | AT+SLEEP |
|
|
set transmission speed, default 1K bytes/s | AT+KBYTE | 1~3: 1-3KB | |
P16 pin reserve TTL or delay wake up | AT+REVERSE |
0~6
|
|
set device type | AT+CLSS | - |