HM-10 BLE gateway problem - no devices reported

Hi, I’m having a hard time make it to work - no BLE device is being detected on the serial or MQTT interfaces.

I use some ESP8266 nodeMCU board with HM-10 module. I’ve just upgraded it to 710v firmware and did all is written in HM10 + ESP8266 Unable to get OMG Working

The output from the serial monitor is:

23:39:53.253 -> rld⸮⸮|⸮l⸮|⸮l⸮c|⸮⸮⸮⸮;⸮c⸮c⸮⸮gn⸮dog⸮⸮⸮c8⸮⸮lrd;lx⸮o⸮⸮$⸮⸮#'⸮|⸮l⸮⸮b⸮⸮og⸮l⸮⸮l`⸮eg'l`aorǛ⸮ncd`{⸮⸮ocl ⸮c⸮⸮$r⸮`⸮⸮'⸮N: ⸮{"mqtt_server":"10.0.0.59","mqtt_port":"1883","mqtt_user":"","mqtt_pass":"","mqtt_topic":"home/","gateway_name":"OpenMQTTGateway"}*WM: [3] allocating params bytes: 20
23:39:53.362 -> *WM: [2] Added Parameter: server
23:39:53.362 -> *WM: [2] Added Parameter: port
23:39:53.400 -> *WM: [2] Added Parameter: user
23:39:53.400 -> *WM: [2] Added Parameter: pass
23:39:53.400 -> *WM: [2] Added Parameter: name
23:39:53.400 -> *WM: [3] Updated _max_params: 10
23:39:53.400 -> *WM: [3] re-allocating params bytes: 40
23:39:53.400 -> *WM: [2] Added Parameter: topic
23:39:55.367 -> {"mqtt_server":"10.0.0.59","mqtt_port":"1883","mqtt_user":"","mqtt_pass":"","mqtt_topic":"home/","gateway_name":"OpenMQTTGateway"}N: BLE interval: 55555
23:39:56.857 -> N: BLE scans number before connect: 10
23:39:56.857 -> N: Publishing only BLE sensors: false
23:39:56.893 -> N: minrssi: 100
23:39:57.283 -> N: Setup OpenMQTTGateway end
23:39:57.283 -> W: MQTT connection...
23:39:57.387 -> N: Connected to broker
23:39:57.387 -> N: Subject: /SYStoMQTT
23:39:57.387 -> N: Received json : {"uptime":4,"version":"v0.9.5","freemem":38104,"rssi":-43,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}

The output from the HM-10 on the given commands is:

OK
HMSoft V710
OK+Get:0
OK+Set:1
OK+Set:1
OK+CONN
OK+LOST
OK+DISAS
OK+DISA:bJ'⸮ ⸮⸮e⸮ե⸮⸮⸮*⸮⸮	⸮%	⸮
OK+DISA:L⸮a⸮/p⸮

⸮L
⸮;Sg
OK+DISA:c⸮烤⸮
⸮LF⸮\
OK+DISA:y⸮⸮ A⸮⸮	 J⸮{⸮8⸮i⸮wv⸮⸮~⸮⸮⸮X⸮=⸮
OK+DISA:⸮9⸮8⸮⸮⸮⸮⸮P0[⸮⸮9⸮8⸮⸮
⸮⸮
OK+DISA:⸮9⸮8⸮⸮⸮	ATC_F439F8
OK+DISA:rwSV⸮C⸮⸮L⸮⸮j⸮⸮⸮<⸮⸮⸮⸮⸮⸮
OK+DISA:lC⸮⸮⸮P⸮
⸮L
⸮⸮@8
OK+DISA:~⸮⸮8⸮⸮⸮⸮⸮P0[⸮~⸮⸮8⸮⸮
⸮⸮
OK+DISA:~⸮⸮8⸮⸮⸮	ATC_9A927E
OK+DISA:⸮⸮⸮
⸮{⸮

⸮L⸮⸮⸮
OK+DISA:⸮e⸮T{⸮
a⸮La2⸮⸮x⸮h
OK+DISA:⸮⸮Nvk⸮⸮L⸮⸮j⸮⸮⸮<⸮⸮⸮⸮⸮⸮
OK+DISA:⸮H⸮⸮W⸮
⸮LA\⸮
OK+DISA:0(84-X⸮⸮⸮P ⸮⸮0(84-X
⸮⸮
OK+DISA:0(84-X⸮		MJ_HT_V1
	⸮⸮⸮⸮⸮⸮⸮ 
OK+DISA:0|⸮⸮⸮e⸮uB⸮`⸮⸮|0⸮⸮|/
OK+DISCE

What could I do next? :slight_smile:

Hi,

It seems that the HM10 alone see an ATC LYWSD03MMC, did you wait at least 10minutes to see if OMG catch advertisements.
The best way to check that is to use a client like MQTT explorer.

Yes, I waited - I left if even overnight and all I have is :slight_smile:

N: Received json : {"uptime":27244,"version":"v0.9.5","freemem":38872,"rssi":-44,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27364,"version":"v0.9.5","freemem":38944,"rssi":-46,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27484,"version":"v0.9.5","freemem":38944,"rssi":-46,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27604,"version":"v0.9.5","freemem":38944,"rssi":-45,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27724,"version":"v0.9.5","freemem":38944,"rssi":-45,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27844,"version":"v0.9.5","freemem":38944,"rssi":-44,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":27964,"version":"v0.9.5","freemem":38520,"rssi":-44,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"}
N: Subject: /SYStoMQTT
N: Received json : {"uptime":28084,"version":"v0.9.5","freemem":38944,"rssi":-43,"SSID":"ABW-51n","ip":"10.0.0.174","mac":"FC:F5:C4:AB:6E:0A","wifiprt":0,"interval":55555,"scanbcnct":10,"modules":"BT"} 

I don’t see anything besides

switch.erase_omg
sensor.gatewaybt OpenMQTTGateway_ESP8266_BLE
binary_sensor.openmqttgateway_esp8266_ble
switch.restart_omg

in Home Assistant

and nothing else from that client while subscribing to # topic.

I’ve just noticed the page https://docs.openmqttgateway.com/setitup/ble.html#pinout has two conflicting descriptions of how to connect TX and RX pins to the board. One says TX-D6, RX-D7 but on the picture below in “ESP8266 Hardware setup,” you can see it’s reverse TX-D7, RX-D6. Once I reversed the cables I’ve started to receive some BT data:

Wiadomość 248 otrzymana w home/OpenMQTTGateway/BTtoMQTT/4ED207588AE4 o godzinie 9:56:
{
    "id": "4E:D2:07:58:8A:E4",
    "rssi": -45,
    "distance": 0.06662,
    "servicedata": "ff4c0010050f1838ac06"
}

Now, I just need to figure out why there is no temperature in the and there are not entities for the 4ED207588AE4 device in HA…

Thanks for pointing this, if you want you can edit it there

You have the ATC version of the LYWSD03MMC I suppose, and it is disconnected from your smartphone?