EDBT1

From ElectroDragon Wiki

Hardware Pin Definition

  • OUTPUT_IND - Output LOW before send out data
  • CONN_IND - Output LOW when connected
  • WAKEUP - Pull LOW before communication when on Low power mode
  • MUST USE 3V3 for low power mode

AT Commands

Commands Params Note
AT+MODE=<para><CR> 0--command mode 1--send data mode Example
AT+SCAN=<para><CR> broadcasting 0--disable 1--enable Example
AT+LINKINV=<para><CR> Linking interval Multiples of 10ms Example
AT+UART=<para><CR> 为 9600,19200,38400,57600,115200。 Example
AT+RFPW=<para><CR> 为 0~9。 Example
AT+NAME=<para><CR> module new name Example
AT+ADVT =<para><CR> para 为 100,200,500,1000,2000。 Example
AT+GMAC<CR> check mac address Example
AT+STBY=<para><CR> 0--normal mode 1--low power consumption mode mode 2 is deep sleep mode (the module automatically resets after wake-up and the mode returns to the original 0 or 1) Example
AT+TEST=P, C <CR> Among them, P is the RF transmission power (value: 0 ~ 9), C is the transmission frequency, and the conversion relationship between C and the transmission frequency is: transmission frequency = 2402 + C * 2MHz Example

BLE APP Protocol

General enguiry

  • 发送‘=’查询当前配置。结果由状态回复通道返回结果。
  • 发送‘?’查询当前支持的配置值。结果由状态回复通道返回结果。

EN

  • Send '=' to query the current configuration. The result is returned by the status reply channel.
  • Send '?' To query the currently supported configuration values. The result is returned by the status reply channel.

Data UUID:0xFF10

  • 蓝牙数据通道(服务 UUID:0xFF11) : 写入的数据将会从串口输出
  • 串口数据通道(服务 UUID:0xFF12): 从串口写入的数据会发送给移动设备

EN

  • Bluetooth data channel (service UUID: 0xFF11): the written data will be output from the serial port
  • Serial data channel (service UUID: 0xFF12): the data written from the serial port will be sent to the mobile device

Config UUID:0xFF20

  • 配置连接间隔通道(服务 UUID:0xFF21): 直接写入相应的数据即可配置。配置成功由状态回复通道返回 OK,否则返回 ERROR。支持以 10ms 整数倍的连接间隔配置。
  • 重命名模块名称通道(服务 UUID:0xFF22): 支持最大 18 个字符的模块名称修改。
  • 配置串口波特率通道(服务 UUID:0xFF23): 9600,19200,38400,57600,115200。
  • 配置发射功率通道(服务 UUID:0xFF24): 0 级-19.5dbm、1 级-16dbm、2 级-13.3dbm、3 级-9.6dbm、4 级-5dbm、5 级-3.1dbm、6 级 0dbm、7 级 3.3dbm、8 级 6.3dbm、9 级 7.9dbm。发射功率默认为 9 级 7.9dbm。
  • 低功耗模式使能通道(服务 UUID:0xFF25): 0 为正常模式,1 为低功耗模式。
  • 配置广播间隔通道(服务 UUID:0xFF26): 支持 10ms 整数倍的所有连接间隔配置。
  • 状态回复服务通道(服务 UUID:0xFF2F): OK 为操作成功,ERROR 为操作失败或不支持该配置值。

EN

  • Configure the connection interval channel (service UUID: 0xFF21): directly write the corresponding data to configure. If the configuration is successful, the status response channel returns OK, otherwise it returns ERROR. Supports connection interval configuration at integer multiples of 10ms.
  • Rename module name channel (service UUID: 0xFF22): support module name modification with a maximum of 18 characters.
  • Configure serial baud rate channel (service UUID: 0xFF23): 9600, 19200, 38400, 57600, 115200.
  • Configure transmit power channel (service UUID: 0xFF24): level 0-19.5dbm, level 1-16dbm, level 2-13.3dbm, level 3 -9.6dbm, level 4-5dbm, level 5 -3.1dbm, level 6 0dbm, Level 7 is 3.3dbm, Level 8 is 6.3dbm, and Level 9 is 7.9dbm. The transmission power defaults to 9 levels of 7.9dbm.
  • Low power mode enable channel (service UUID: 0xFF25): 0 is normal mode, 1 is low power mode.
  • Configure broadcast interval channel (service UUID: 0xFF26): support all connection interval configurations with integer multiples of 10ms.
  • Status Reply Service Channel (Service UUID: 0xFF2F): OK means the operation succeeded, ERROR means the operation failed or the configuration value is not supported.

GPIO UUID:0xFF50

  • GPIO0 输出控制通道(服务 UUID:0xFF51)
  • GPIO0 模式控制通道(服务 UUID:0xFF52): 0 为输入模式,1 为输出模式
  • GPIO0 状态通道(服务 UUID:0xFF53)
  • GPIO1 输出控制通道(服务 UUID:0xFF54)
  • GPIO1 模式控制通道(服务 UUID:0xFF55)
  • GPIO1 状态通道(服务 UUID:0xFF56)
  • 数据存储通道(服务 UUID:0xFF58)配置操作:可写入任意数据,同时可读取之前写入的数据 / 功能:存储数据,模块掉电数据保持,长度 18 个字节

EN

  • GPIO0 output control channel (service UUID: 0xFF51)
  • GPIO0 mode control channel (service UUID: 0xFF52): 0 is input mode, 1 is output mode
  • GPIO0 status channel (service UUID: 0xFF53)
  • GPIO1 output control channel (service UUID: 0xFF54)
  • GPIO1 mode control channel (service UUID: 0xFF55)
  • GPIO1 status channel (service UUID: 0xFF56)
  • Data storage channel (service UUID: 0xFF58) configuration operation: can write any data, and at the same time can read the previously written data / function: storage data, module power-down data retention, length 18 bytes

Enquiry UUID:0x180A

  • Module MAC address (service UUID: 0x2A23)
  • Software version (Service UUID: 0x2A28)