1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.5k stars 775 forks source link

BLE Problem #66

Closed aferraz closed 7 years ago

aferraz commented 7 years ago

Hi all, I have a little problem. I'm using a NodeMCU and when connect the HM 10 the board don;t boot with the following error: ets Jan 8 2013,rst cause:2, boot mode:(7,6)

waiting for host

If I disconnect the HM 10 the board boot again.

Any suggestion ?

Thanks Alessandro

1technophile commented 7 years ago

Hi @aferraz,

Ciuld yiu give the following details: -is the hm10 a keyes one -what is your nodemcu and esp version/model -is the nodemcu rebooting when you connect the hm10 only when openmqttgateway is loaded or do you have the same behaviour with other programs? -is the hm10 connected to the pins given in the wiki? -did you checked the wiring tx/rx

aferraz commented 7 years ago

Hi,

Thanks

1technophile commented 7 years ago

Hello,

Could you try with I2C_Wiring in user_config.h ? Uncomment l36 #define I2C_Wiring Comment l37 //#define Classic_Wiring

And change the physical wiring corresponding to the end of user_config.h file

aferraz commented 7 years ago

Hello @1technophile, same error with HM10 connected

Regards Alessandro

1technophile commented 7 years ago

In Arduino IDE --> board manager could point me out which version of ESP8266 you are using.

Could you check also your HM10 firmware version

aferraz commented 7 years ago

Hi, on Arduino the ESP8266 version is 2.3.0 I don't know how to check HM10 firmware, can you help me ?

Thanks

aferraz commented 7 years ago

@1technophile found it, firmware version HMSoft V540

1technophile commented 7 years ago

ok just for others, to check your hm10 firmware version upload a serial sketch to the nodemcu (this will enable to talk directly to the hm10) and launch the command: AT+VERR?

Mine is returning: HMSoft V545

Could you try to update to V545?

aferraz commented 7 years ago

Do you have this firmware version? I find 5.47 but it have the same problem

1technophile commented 7 years ago

and with v549?

aferraz commented 7 years ago

I can't flash with 5.49, after flashing the module stay in flashing mode

aferraz commented 7 years ago

@1technophile I don't know if is a problem but on the same MCU I have also RF and IR

1technophile commented 7 years ago

Could you try with another sketch , not openmqttgateway and check if you uve the sme issue

aferraz commented 7 years ago

I try this http://www.instructables.com/id/ESP8266-HM-10-IBeacon-Proximity/

Same problem, at this point could be my HM10

1technophile commented 7 years ago

I have a second HM10 i will test with it

1technophile commented 7 years ago

Tested with a second one hm10 with firmware v545 and it works. Do you have a second nodeMCU to test with?

aferraz commented 7 years ago

Hi @1technophile with another nodemcu it work. So is the MCU the problem. Thank you

1technophile commented 7 years ago

Glad to hear that