EY-08 AT

From ElectroDragon Wiki
Revision as of 14:14, 28 April 2020 by Chao (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
  • 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
  1. 1 AT + RST reset M / S -
  2. 2 AT + BOUD serial port baud rate setting M / S - 115200
  3. 3 AT + HOSTEN Master / Slave Setup M / S - Slave
  4. 4 AT + HOST Read Host Status M -
  5. 5 AT + DISC Disconnect M -
  6. 6 AT + ADVEN Open Broadcast S - On
  7. 7 AT + ADVIN Broadcast interval S - 100ms
  8. 8 AT + NEIN Connection Interval S - 10ms
  9. 9 AT + POWR Transmit power S - 0db
  10. 10 AT + NAME broadcast name S - EB - 08
  11. 11 AT + MAC Read MAC Address M / S -
  12. 12 AT + STRUUID Set iBeacon UUID (string type UUID) S iBeacon UUID
  13. 13 AT + HEXUUID setting iBeacon UUID (hexadecimal type UUID) S iBeacon micro letter UUID
  14. 14 AT + MAJOR Sets iBeacon Major (string type Major)
  15. 15 AT + MINOR Set iBeacon Minor (string type Minor) S iBeacon 7
  16. 16 AT + VER Read version number M / S - JDY-08-2.1
  17. 17 AT + VID Manufacturer's identification number (not for factory identification) S iBeacon Sensor 8899
  18. 18 AT + TEMP Temperature Value Sets the Sipacon sensor
  19. 19 AT + HUMID Temperature setting S iBeacon sensor 0
  1. 20 AT + ISCEN Set whether to open the password connection S - Off
  2. 21 AT + PASS connection password S - 123456
  3. 22 AT + SVRUUID Change service UUID M / S - FFE0
  4. 23 AT + CHRUUID Change feature UUID M / S - FFE1
  5. 24 AT + SCAN Host Scan Slave M Host transparently transmitted
  6. 25 AT + RSLV Reads the MAC-to-MAC transparent transmission from the master
  7. 26 AT + CONNET CONNECTIONS SCAN TO MAC MOST TRANSMISSION FROM SLAVE
  8. 27 AT + BAND Bind slave MAC M -
  9. 28 AT + GETDCD Number of slaves scanned by the master M -
  10. 29 AT + GETSTAT Find the working status of the module M / S -
  11. 30 AT + PWMFRE Set the PWM frequency M / S - 500HZ
  12. 31 AT + PWMOPEN Turns PWM M / S - off
  13. 32 AT + PWM1PUS Sets the pulse width of PWM1 M / S - 50%
  14. 33 AT + PWM2PUS Sets the PWM2 pulse width M / S - 50%
  15. 34 AT + PWM3PUS Sets the pulse width of PWM3 M / S - 50%
  16. 35 AT + PWM4PUS Sets the pulse width of PWM4 M / S - 50%
  17. 36 AT + RTCDATE Setting the RTC time M / S -
  18. 37 AT + RTCOPEN Turn on the RTC function M / S - Off
  19. 38 AT + WXSVR Micro-H5 communicates with the server settings S-micro-H5


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
  • 0 slave - transmission mode.
  • 1 master - transmission mode
  • 2 master - obseration (indoor positioning, sensor) mode
  • 3 slave (ibeacon, sensor) mode
  • 4 WeChat - transmission mode
OK
Disconnect AT + DISC Disconnect OK
Open the radio Command: AT + ADVEN0
  • 0 = Stop broadcasting
  • 1 means to turn on the broadcast, do not turn on the radio after power on
OK
Broadcast interval AT + ADVIN0
  • 0 means to set the broadcast interval to: 100ms
  • 1 means to set the broadcast interval to: 500ms
  • 2 means to set the broadcast interval to: 750ms
  • 3 means to set the broadcast interval to: 1000ms
  • 4 means to set the broadcast interval: 2000ms
  • 5 means to set the broadcast interval to: 4000ms
  • 6 means to set the broadcast interval to: 8000ms
OK
Connection Interval AT + NEIN0
  • 0 connection is 10ms
  • 1 connection is 100ms
  • 2 connection is 500ms
OK
Transmission power AT + POWR0; AT + POWR (read)
  • 0 that set the transmit power to 4db CC2541 module this is 0db
  • 1 means to set the transmit power to 0db
  • 2 that set the transmit power -6db
  • 3 means to set the transmit power to -23db
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
  • OK;
  • Returns: 4D414A4F523A000A Returns the data in hexadecimal format Major: 0x000a
Set iBeacon Minor AT + MINOR0007; read AT + MINOR means to set Minor to 7
  • OK;
  • Returns: 4D494E4F523A0007 Returns the data in hexadecimal format Minor: 0x0007
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
  • Returns: OK
  • Returns: VID: 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
  • 0 = means close the password connection
  • 1 means open the password connection but not binding
  • 2 means open the password connection and bind
  • 3 to turn on the password encrpytion
OK
  • Note: The factory default is to disable the password connection
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

  • Note: The factory default password: 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

  • 0 means to turn off PWM
OK
PWM frequency setting AT + PWMFRE260; read AT + PWMFRE means to set the PWM frequency to 260HZ Returns: OK
Set the PWM1 pulse width
  • AT + PWM1PUS50
  • AT + PWM2PUS10
  • AT + PWM3PUS90
  • AT + PWM4PUS80
  • means to set the pulse width of PWM1 to 50%
  • means to set the pulse width of PWM2 to 10%
  • means to set the pulse width of PWM3 to 90%
  • means setting pulse width of PWM4 to 80%
Returns: OK


Micro-H5 or server selection AT + WXSVR0; read AT + WXSVR
  • 0 Indicates communication with micro-H5
  • 1 indicates communication with the factory server via micro-communication
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
  • Returns: OK
  • Return: AT + RTCDATE14-12-05, 12: 07: 09, Indicates that the read RTC time is December 5, 2014, 12:7:9


RTC function switch AT + RTCOPEN
  • 0 means to turn off the RTC
  • 1 Indicates that the RTC is on
  • 2 Indicates that the RTC will be turned on on next boot
Returns: OK

The rest commands

Commands e.g. (write/read) Description return
Host scan AT + SCAN1
  • 1 = Indicates that the master starts scanning the slave
  • 0 indicates that the master stops scanning the slave
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)

  • 0 - connection status
  • 1 - slave mode broardcasting status

New Commands

Commands e.g. (write/read) Description return
restore to factory setting AT+RESTORE - OK
wake up on boot AT+STARTEN -
  • 0 = power up and keep wake up
  • 1 = power up and sleep
enter into sleep mode AT+SLEEP
  • For JDY-16, 0 is light sleep, 1 is deep 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

  • 0 or 1 to reverse TTL
  • 2~6 to delay to wake up
  • when APP send data to BLE, BLE delay XXX ms then send data to MCU
  • make sure MCU wake up first, then can also receive data
set device type AT+CLSS -