Github Devices Community Docs Blog

BLE Theory of operation

Hi,

I would like to understand the BLE operation on the gateway.

Looking at the UART lines of the HM-10 <=> ESP and the MQTT output. I see the follwing:

  • ESP requests a scan using AT+DISA?
  • The module start scanning and returns results, each result starting with OK+DISA:
  • First couple of times the module scans after boot, there is nothing on MQTT.
  • After that, single scan results seems to be posted every TimeBtw_Read time.

It seems the TimeBtw_Read is the time between scan results being processed. The actual scan requests with AT+DISA? are a multiple of that time apart.

Can anyone help me understand the BLE process, how a backlog is prevented and how we could increase detection speed?