ESP32 vs. ESP8266+HM10

Hi,

I first tried to build a BT GW using an ESP32. Works like a charm.

To increase coverage I tried to recreate the same using an ESP8266 + HM10 (HMSoft V604).

While it seems to work in general I do not get all the details using the ESP8266-HM10 combo.

For instance with a Gigaset G-Tag the ESP32 creates thes topics:

/OpenMQTTGateway/BTtoMQTT/C47C8D666C1A -88
/OpenMQTTGateway/BTtoMQTT/7C2F80AC9C4C/name Gigaset G-tag
/OpenMQTTGateway/BTtoMQTT/7C2F80AC9C4C/ManufacturerData �4���L��

The ESP8266-HM10 combo creates only this topic:

/OpenMQTTGateway/BTtoMQTT/7C2F80AC9C4C -66

With other devices like Mi Flora I get the same. All topics with the ESP32, only the RSSI line with the ESP8266-HM10.

But if I connect the HM10 directly to the PC and enter “AT+DISA?” it shows me the details:

OK+DISASOK+DISA:L⸮⸮⸮/|⸮⸮⸮4⸮⸮⸮L⸮⸮
OK+DISA:L⸮⸮⸮/|⸮ Gigaset G-tag
OK+DISCE

#define ZgatewayBT_v6xx is uncommented.

I tried OMG v7 and v0.8beta, both react the same.

Anything I miss?

Thanks,
Michael

1 Like

Hello,

When the HM10 is connected to the PC are you able to retrieve mif flora service data with AT+DISA?
?
If you receive service data I will investigate on OMG side. Indeed the test with gigaset tag show manufacturer data and I’m not sure manufacturer data is retrieve with HM10.

Hi,

just connected the HM10 to a PC and did some AT+DISA? near a Mi Flora.

This is what I get:

OK+DISASOK+DISA:lf⸮|⸮⸮e⸮⸮⸮⸮q ⸮
OK+DISA:lf⸮|⸮ Flower care
OK+DISCE
OK+DISCEOK+DISASOK+DISA:lf⸮|⸮⸮⸮⸮⸮⸮q ⸮
OK+DISA:lf⸮|⸮ Flower care
OK+DISCEOK+DISASOK+DISA:lf⸮|⸮⸮⸮⸮⸮⸮q ⸮
OK+DISA:lf⸮|⸮ Flower care
OK+DISA:⸮⸮;?⸮a⸮⸮⸮⸮za͒I⸮$4HTIW
OK+DISA:⸮⸮;?⸮ Activite CD

OK+DISCE

Last line is from my Nokia Activite…

Regards,
Michael

Hi,

Thanks for the test
I will try to reproduce in the week.

I tested with:
OMG 0.8beta
HM10 v602
ZgatewayBT enable
ZgatewayRF enable

Here is what I get from serial monitor for a mi flora:

Subscription OK to the subjects
4f4b2b444953413a63XXXXXXXXc400c31c020106030295fe141695fe712098007863b6658d7cc40d09100200000d0a
C47XXXXXXX63
mi flora data reading
5
0.00
0
BTtoMQTT OK

Could you publish an extract of your serial monitor when using OMG with HM10?

Hi,

here is what I get with the mi flora:

f4b2b444953413a1a6c668d7cc400a10d0c09466c6f77657220636172650d0a4f4b2b4449534345
4f4b2b444953413a1a6c668d7cc400a10d0c09466c6f77657220636172650d0a4f4b2b4449534345
C47C8D666C1A
BTtoMQTT OK
4f4b2b444953413a1a6c668d7cc400a11c020106030295fe141695fe71209800441a6c668d7cc40d091002f4000d0a
4f4b2b444953413a1a6c668d7cc400a11c020106030295fe141695fe71209800441a6c668d7cc40d091002f4000d0a
C47C8D666C1A
mi flora data reading
5
244.00
244
BTtoMQTT OK

This looks OK, I am not sure what is different now from my last tries…

A G-Tag on the other hand still only sends the RSSI, no more data:

4f4b2b444953413a4c9cac802f7c00c00f0e094769676173657420472d7461670d0a4f4b2b4449534345
4f4b2b444953413a4c9cac802f7c00c00f0e094769676173657420472d7461670d0a4f4b2b4449534345
7C2F80AC9C4C
BTtoMQTT OK
4f4b2b444953413a4c9cac802f7c00c11e0201060dff80010215123480ac9c4cbbc503020f180000000000000000000d0a
4f4b2b444953413a4c9cac802f7c00c11e0201060dff80010215123480ac9c4cbbc503020f180000000000000000000d0a
7C2F80AC9C4C
BTtoMQTT OK

Regards,
Michael

Yes it looks OK and you should get mi flora values by MQTT isn’t it?

Hi,

yes, the mi flora part now works as expected.

Any chance that other BLE devices are handled the same way on ESP32 and ESP8266+HM10? It would be less confusing if the output is the same no matter what HW OMG runs on.

Regards,
Michael

Hello,

You mean if we could get the same serial output?