-
Notifications
You must be signed in to change notification settings - Fork 197
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Not Responding to MQTT #162
Comments
While looking around I suppose you found the Wiki (at the top of this page). The serial interface should be set to 115200 baud (unless it's a dual which needs 19200 baud). |
Okay, now that I have the serial interface set right, I can see what's going on. It appears the Sonoff is connecting to WiFi fine, but as soon as it connects to the MQTT Server, it crashes. Example:
|
Try enabling more logging with command seriallog 3 as soon as the first messages come up. Could you show your user_config.h until line 120 |
I didn't see a difference when I ran cmnd/sonoff/SerialLog 3, but here is my user_config
|
user_config.h looks OK. I think I can reproduce. Let me investigate |
Fixed two exceptions in version 3.1.4 just released. Please retry and let me know the results. |
So better. A lot better. I got it to boot up, I was able to change the topic, and control it over MQTT.
|
Please turn off telemetry with command TelePeriod 0 and see if it still crashes. If no regular crashes what''s your Topic? |
Still crashing - topic is "sonoffA2" All kinds of crashes from a brief look at the serial log - highlights include exception 9, exception 28, and even some kind of panic. |
Okay - as it continues to crash I'm getting every exception known to man - 2, 3, 0 |
Try to catch the output of command status 0. So many exception more look like a power problem. What kind of sonoff is this? Are you running it from AC or FTDI power? |
Here's exception 0:
I'm running from FTDI power still, so there's a decent chance I have a loss header or something somewhere. |
I'm using the basic sonoff |
I looked around as best as I could... I hope this isn't too obvious of a fix. But my sonoff isn't responding to cmnd/sonoff/power on, and is flashing it's green LED every 2-3 seconds. The serial output in the Arduino IDE shows a bunch of gibberish everytime it blinks, mostly question marks.
Sample:
G����F_��N������������FG��ECG�������_��Z�������������������V�����������������C������B�����F���F�����_�������Z���������Z����Z������S���������W������C��F_CZ��FF�������F�������������Z����c_�rS�fj�����gg����g�Oc�
The text was updated successfully, but these errors were encountered: