-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
POW v 2.0 #222
Comments
On Fri, 17 Mar 2017, seugenes wrote:
After flashing, on power-on the let blinks once. Then only a few seconds
button press switches the relay and the led On. Then the led is always on. It
is blinking once after each short button press and returns to ON state. if you
don't touch the button then periodically (once in 30 seconds or so) you can
hear the relay switches on and of by itself.
what shows up in the log? (either the web log or syslog)
David Lang
|
Don't have any. No web access and since it's POW unable to attach to serial. |
I don't know that we have any information about a new version of POW can you configure a syslog server and configure the pow to log to it? It sounds as if it's rebooting, but without diagnostics, it's going to be hard to tell |
It has no wifi and network. |
Without wifi it's looping to find wifi and almost of no use I guess... What you can do is remove AC power and connect serial cable again. Then execute serial command |
:) What does the quick led blink on power on mean? |
Honesty I don't know. It all depends where the code is at that time. I suggest connecting the serial interface and enable debug logging option 3 to see what's happening at that time. Again Without AC power or use my suggested opto-coupler solution which works for me. Oh. the led blink might also be sending an mqtt message. Just look at command |
Did anyone manage to run it on POW v 2.0? |
I thought the only thing different was increased solder on the tracks? that shouldn't impact the firmware.... If you can flash the device you should also have enough power from your FTDI to run the device (again not connected to AC) direct from the FTDI and get the serial output - if you can get that we should be able to help |
You are providing power to it to be able to flash it, that may not be enough
power to trip the relay, but it's enough to operate the CPU and wifi.
what is serial logging set to? (and do you wait long enough to get the 5 min
log)
what happens if you try to send something to the device (say the string "power"
followed by a newline)?
|
Just on David's point the serial logging is disabled after 5mins from boot. However you should get a ton of logs on startup. What serial monitor are you using? Arduino IDE? |
Yes. Managed to get the logs. Compiled and uploaded with LOG_LEVEL_ALL for #define SERIAL_LOG_LEVEL but there is not much useful info.. |
And then, indeed it restarts 00:03:55 APP: Restarting ets Jan 8 2013,rst cause:1, boot mode:(3,7) load 0x4010f000, len 1384, room 16 |
well, that tells us that it booted successflly, but that you aren't connecting
to the network. check the wifi credentials in your build
|
correction, I do see that it did connect. but it doesn't have a valid hostname
(also visible in the tele/ line)
check what name it's set to (the hostname and topic commands)
|
Is it in user_config.h? what are those setting names? The thing is that I just flashed sonoff touch and then sonoff basic with the exactly same code, and all was good. |
Also, when I press the button it restarts and I get this: Exception (28): ctx: cont
|
what do you get from the hostname and topic commands?
00:00:39 RSLT: ????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????!
????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? = {"idx":-1,"nvalue":0,"svalue":""}
00:00:39 RSLT: stat/?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????? = {"????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????
This is showing that there is something very wrong with the hostname/topic.
you can try holding the button down for 4 seconds to force it to reload the
config from what was set in user_config.h or issue the command 'reset 2' or
change the value of cfg_version in user_config.h and rebuild/reflash.
David Lang
|
I changed Cannot find any cfg_version in user_config.h.. |
Ok, I wasn't quite right in the name, it's CFG_HOLDER
k
|
It did the trick! Thank you very much. |
3.2.0 20170111 * Add I2C BH1750 sensor (arendst#222) * Sensor rewrite preparing for online selection
3.2.1 20170113 * Fix some failed command decoding (arendst#228) * Removed passwords from status messages (arendst#216) * Add I2C BH1750 sensor (arendst#222) * Sensor rewrite preparing for online selection
3.2.1 20170113 * Fix some failed command decoding (arendst#228) * Removed passwords from status messages (arendst#216) * Add I2C BH1750 sensor (arendst#222) * Sensor rewrite preparing for online selection
3.2.1 20170113 * Fix some failed command decoding (arendst#228) * Removed passwords from status messages (arendst#216) * Add I2C BH1750 sensor (arendst#222) * Sensor rewrite preparing for online selection
* Add rule Http#Initialized * Add command WebColor to change non-persistent GUI colors on the fly Use a rule like: rule3 on http#initialized do webcolor {"webcolor":["#eeeeee","#181818","#4f4f4f","#000000","#dddddd","#8000","#222222","#ff0000","#8000","#ffffff","#1fa3ec","#0e70a4","#d43535","#931f1f","#47c266","#5aaf6f","#ffffff","#999999","#000000"]} endon or rule3 on http#initialized do webcolor {"webcolor":["#eee","#181818","#4f4f4f","#000","#ddd","#8000","#222"]} endon to make color changes persistent)
After flashing, on power-on the led blinks once. Then only a few seconds button press switches the relay and the led On. Then the led is always on. It is blinking once after each short button press and returns to ON state. if you don't touch the button then periodically (once in 30 seconds or so) you can hear the relay switches on and of by itself.
The text was updated successfully, but these errors were encountered: