Skip to content
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

Sonoff POW - wifi password #833

Closed
piotrpz opened this issue May 1, 2018 · 13 comments
Closed

Sonoff POW - wifi password #833

piotrpz opened this issue May 1, 2018 · 13 comments

Comments

@piotrpz
Copy link

piotrpz commented May 1, 2018

Wifi password is changing after reboot to the admin password. When I set my wifi network pass, I can backup settings, and "pass0" is correct. After reboot sonoff cant connect to network, and is going to AP mode. I can connect to esp wifi, but "pass0" has different value - the same as "adminPass".
I've checked on FW 1.25.4 and 1.25.5.

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

I can add some info:

  1. pass0 is changes permanently and overwriting in every "save" configuration.
  2. Reboot is asking about saving changes even no changes where made in "Wifi" page
    workaround: always change password just before saving changes..

@xoseperez
Copy link
Owner

What device do you have. Have you selected the right flash size for your device?
Can you copy-paste here the debug log when the devices boots?

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

device: sonoff POW (v 2.0)
FW: espurna-1.12.5-itead-sonoff-pow.bin
debug log from boots - I have to reaad wiki again to find how to do it..

@xoseperez
Copy link
Owner

You can get the debug log connecting you USB2UART programmer to the POW headers and opening a serial monitor at 115200 bauds.

Don't do it while the POW is connected to MAINS!!

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

I dont understand... If I connect only to serial, sonoff will not boot..?.
.. or I have to connect power and part of serial ( GND, RX, TX and no 3.3V) ?

@xoseperez
Copy link
Owner

Yes, you have to connect the 4 wires. Just please, do not connect it to mains while it is connected to your computer. In the POW, the logic ground of the board is connected to neutral line, bad things can happen to your computer and to you...

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

OK, so I'll connect only serial connection and no power (230V). I'll try to add log asap. Thank you Xose.
BTW I've installed espurna via sonota on three POWs and the same situation on all of them.

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

got it. This one is 1.12.4, but the same on 1.12.5.

`[000121] [INIT] ESPURNA 1.12.4
[000121] [INIT] [email protected]
[000121] [INIT] http://tinkerman.cat

[000122] [re version: 2_3_0
[000134] [INIT] Core revision:
[000137]
[000138] [INIT] Flash chip ID: 0x1640EF
[000141] [INIT] Flash speedsize (CHIP): 4194304 bytes
[000157] [INIT] Flash size (SDK): 1048576 bytes / 256 sectors
[000163] [INIT] Firmware size: 0 bytes / 0 sectors
[000180] [INIT] EEPROM size: 4096 bytes / 1 sectors
[000185] [INIT] Empty space: ld -DITEAD_SONOFF_POW
[000201] [INIT] BOARD: ITEAD_SONOFF_POW
[000204] [INIT] SUPPORT: ALEXA BROKER DEBUG_SERIAL DEBUG_TELNET D[INIT] Last reset reason: Power on
[000224] [INIT] Settings size: 1344 bytes
[000228] [INIT] Free heap: 31736 bytes
[000232] [I[000254] [TELNET] Listening on port 23
[000255] [WEBSERVER] Webserver running on port 80
[000258] [RELAY] Retrieving mask: 0
[0of buttons: 1
[000266] [LED] Number of leds: 1
[000269] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000285] [THING[000478] [WIFI] Scanning
[001260] [RELAY] Saving mask: 0
[002601] [WIFI] --> BSSID: 64:70:02:CB:A4:84 CH: 7 RSSI: -33 SEC: WPA2 SSID: Szmorek
[002601] [WIFI] BSSID: 66:70:02:CB:A4NETWLAN
[002614] [WIFI] Connecting to BSSID: 64:70:02:CB:A4:84 CH: 07, RSSI: -33, SEC: WPA2, SSID: Szmorek
[060004] [MAIN] System OK
[062630] [WIFI] Could not connect to Szmorek
[062631] [WIFI] Creating access point
[063520] [WIFI] MODE AP --------------------------------------
[063521] [WIFI] SSID ESPURNA_EA6756
[063521] [WIFI] PASS passw[096012] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[134068] [WEBSOCKET] Parsing configuration data
[134187] [NTP] Time:
[142261] [WEBSOCKET] Requested action: reboot
[000295] [TELNET] Listening on port 23
[000296] [WEBSERVER] Webserver running on port 80
[000299] [RELAY] Retrieving mask: 0
[0[002643] [WIFI] --> BSSID: 64:70:02:CB:A4:84 CH: 7 RSSI: -32 SEC: WPA2 SSID: Szmorek
[060004] [MAIN] System OK
[062630] [WIFI] Could not connect to Szmorek
[062631] [WIFI] Creating access point
[063520] [WIFI] MODE AP --------------------------------------
[063521] [WIFI] SSID ESPURNA_EA6756
[063521] [WIFI] PASS passw[096012] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[134068] [WEBSOCKET] Parsing configuration data
[134187] [NTP] Time:
[142261] [WEBSOCKET] Requested action: reboot
[000295] [TELNET] Listening on port 23
[000296] [WEBSERVER] Webserver running on port 80
[000299] [RELAY] Retrieving mask: 0
[0[002643] [WIFI] --> BSSID: 64:70:02:CB:A4:84 CH: 7 RSSI: -32 SEC: WPA2 SSID: Szmorek
[002644] [WIFI] BSSID: 66:70:02:CB:A4NETWLAN
[002657] [WIFI] Connecting to BSSID: 64:70:02:CB:A4:84 CH: 07, RSSI: -32, SEC: WPA2, SSID: Szmorek
ASK 255.255.255.0
[003719] [WIFI] HOST ESPURNA_EA6756
[003723] [WIFI] BSSID 64:70:02:CB:A4:84
[003726] [WIFI] CH 7
[003728[004738] [MQTT] MQTT brokers found: 0
[040528] [WEBSERVER] Request: GET /index.html
[050160] [WEBSERVER] Request: GET /index.html
[050781] [WEBSOCKET] #1 connected, ip: 192.168.15.66, url: /ws
[063672] [WEBSOCKET] Parsing configuration data
[065102] [WEBSOCKET] Requested action: reboot

Exception (28):
epc1=0x4000df2f epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000033 depc=0x00000000

ctx: cont
sp: 3fff100000 4022c0a1
3fff1790: 00000033 00000010 402420b5 3ffef37c
3fff17a0: 3fff45ec 00000000 3ffef37c 3fff2894
340242001 fff17c0: 3fff5a2e 00000000 3ffe980a
33ffef3a8 40243c13 3ffefb28 0000010f
3fff1800: 00000001 4022c5ae 00000000 00000000
3402438c4 00000000 fff1820: 402438c4 00000000 00000000
[060004] [MAIN] System OK
[062630] [WIFI] Could not connect to Szmorek
[062631] [WIFI] Creating access point
[063520] [WIFI] MODE AP --------------------------------------
[063521] [WIFI] SSID ESPURNA_EA6756
[063521] [WIFI] PASS passw[096012] [WEBSOCKET] #1 connected, ip: 192.168.4.2, url: /ws
[134068] [WEBSOCKET] Parsing configuration data
[134187] [NTP] Time:
[142261] [WEBSOCKET] Requested action: reboot
[000295] [TELNET] Listening on port 23
[000296] [WEBSERVER] Webserver running on port 80
[000299] [RELAY] Retrieving mask: 0
[0[002643] [WIFI] --> BSSID: 64:70:02:CB:A4:84 CH: 7 RSSI: -32 SEC: WPA2 SSID: Szmorek
[002644] [WIFI] BSSID: 66:70:02:CB:A4NETWLAN
[002657] [WIFI] Connecting to BSSID: 64:70:02:CB:A4:84 CH: 07, RSSI: -32, SEC: WPA2, SSID: Szmorek
ASK 255.255.255.0
[003719] [WIFI] HOST ESPURNA_EA6756
[003723] [WIFI] BSSID 64:70:02:CB:A4:84
[003726] [WIFI] CH 7
[003728[004738] [MQTT] MQTT brokers found: 0
[040528] [WEBSERVER] Request: GET /index.html
[050160] [WEBSERVER] Request: GET /index.html
[050781] [WEBSOCKET] #1 connected, ip: 192.168.15.66, url: /ws
[063672] [WEBSOCKET] Parsing configuration data
[065102] [WEBSOCKET] Requested action: reboot

Exception (28):
epc1=0x4000df2f epc2=0x00000000 epc3=0x00000000 excvaddr=0x00000033 depc=0x00000000

ctx: cont
sp: 3fff100000 4022c0a1
3fff1790: 00000033 00000010 402420b5 3ffef37c
3fff17a0: 3fff45ec 00000000 3ffef37c 3fff2894
340242001 fff17c0: 3fff5a2e 00000000 3ffe980a
33ffef3a8 40243c13 3ffefb28 0000010f
3fff1800: 00000001 4022c5ae 00000000 00000000
3402438c4 00000000 fff1820: 402438c4 00000000 00000000
340245658 00000001 00000002
340243821 00000003 fff1850: 40243861 00000001 00000002 0000010f
340243d54 00000001 3ffefa50 0000010f
3fffffffe
340205398 fff1890: 40205398 0000010f
340231ab5 00000000 3fff2080 40202f44 3fff25ec 3fff0100 fff18e0: 3fff2080 00000001 00000001
33fff2080 fff1900: fff1910: 3fff217c fff1920: 3fffdad0 4021bf5b
33fff0820 00000003 3fff0941 fff1960: feefeffe load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
[000129]

[000129] [INIT] ESPURNA 1.12.4
[000130] [INIT] [email protected]
[000130] [INIT] http://tinkerman.cat

[000130] [re version: 2_3_0
[000142] [INIT] Core revision:
[000145]
[000146] [INIT] Flash chip ID: 0x1640EF
[000149] [INIT] Flash speedsize (CHIP): 4194304 bytes
[000165] [INIT] Flash size (SDK): 1048576 bytes / 256 sectors
[000171] [INIT] Firmware size: ld -DITEAD_SONOFF_POW
[000210] [INIT] BOARD: ITEAD_SONOFF_POW
[000213] [INIT] SUPPORT: ALEXA BROKER DEBUG_SERIAL DEBUG_TELNET D[000271] [INIT] Last reset reason: Reboot from web interface
[000271] [INIT] Settings size: 1370 bytes
[000272] [INIT] Free hea[000295] [TELNET] Listening on port 23
[000296] [WEBSERVER] Webserver running on port 80
[000299] [RELAY] Retrieving mask: 0
[0] [SENSOR] -> voltage:0
[000330] [SENSOR] -> power:0
[000333] [SENSOR] -> reactive:0
[000336] [SENSOR] -> apparent:0
[00033[000372] [MAIN] Uptime: 0 seconds
[000372] [MAIN] Free heap: 23096 bytes
[000373] [MAIN] Power: 3112 mV
[000518] [WIFI] Scanning
NETWLAN
340245658 00000001 00000002
340243821 00000003 fff1850: 40243861 00000001 00000002 0000010f
340243d54 00000001 3ffefa50 0000010f
3fffffffe
340205398 fff1890: 40205398 0000010f
340231ab5 00000000 3fff2080 40202f44 3fff25ec 3fff0100 fff18e0: 3fff2080 00000001 00000001
33fff2080 fff1900: fff1910: 3fff217c fff1920: 3fffdad0 4021bf5b
33fff0820 00000003 3fff0941 fff1960: feefeffe load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v09826c6d
[000129]

[000129] [INIT] ESPURNA 1.12.4
[000130] [INIT] [email protected]
[000130] [INIT] http://tinkerman.cat

[000130] [re version: 2_3_0
[000142] [INIT] Core revision:
[000145]
[000146] [INIT] Flash chip ID: 0x1640EF
[000149] [INIT] Flash speedsize (CHIP): 4194304 bytes
[000165] [INIT] Flash size (SDK): 1048576 bytes / 256 sectors
[000171] [INIT] Firmware size: ld -DITEAD_SONOFF_POW
[000210] [INIT] BOARD: ITEAD_SONOFF_POW
[000213] [INIT] SUPPORT: ALEXA BROKER DEBUG_SERIAL DEBUG_TELNET D[000271] [INIT] Last reset reason: Reboot from web interface
[000271] [INIT] Settings size: 1370 bytes
[000272] [INIT] Free hea[000295] [TELNET] Listening on port 23
[000296] [WEBSERVER] Webserver running on port 80
[000299] [RELAY] Retrieving mask: 0
[0] [SENSOR] -> voltage:0
[000330] [SENSOR] -> power:0
[000333] [SENSOR] -> reactive:0
[000336] [SENSOR] -> apparent:0
[00033[000372] [MAIN] Uptime: 0 seconds
[000372] [MAIN] Free heap: 23096 bytes
[000373] [MAIN] Power: 3112 mV
[000518] [WIFI] Scanning
NETWLAN
[002655] [WIFI] Connecting to BSSID: 64:70:02:CB:A4:84 CH: 07, RSSI: -30, SEC: WPA2, SSID: Szmorek
[060011] [MAIN] System OK
[062667] [WIFI] Could not connect to Szmorek
[062668] [WIFI] Creating access point`

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

and different POW fw 1.12.5. Logged via my ssid, opened "wifi", no changes, reboot, and :
[000166] [INIT] Flash size (SDK): 1048576 bytes / 256 sectors
[000171] [INIT] Firmware size: of buttons: 1
[000261] [LED] Number of leds: 1
[000263] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000279] [THING[000326] [MAIN] Uptime: 0 seconds
[000326] [MAIN] Free heap: 22496 bytes
[000327] [MAIN] Power: 3104 mV
[001254] [RELAY] Saving mask: 0
[003452] [WIFI] MODE STA -------------------------------------
[003453] [WIFI] SSID Szmorek
[003453] [WIFI] IP 192.168.15.3[005564] [NTP] Time: 2018-05-02 13:15:46
[038296] [WEBSERVER] Request: GET /index.html
[039031] [WEBSOCKET] #1 connected, ip: 192.168.15.66, url: /ws
[053257] [WEBSOCKET] Parsing configuration data
[060008] [MAIN] System OK
[069889] [WEBSOCKET] Requested action: reboot

ets Jan 8 2013,rst cause:1, boot mode:(3,6)

load 0x4010f000, len 1384, room 16
size (CHIP): 4194304 bytes
[000171] [INIT] Flash size (SDK): 1048576 bytes / 256 sectors
[000177] [INIT] Firmware size: 4096 bytes / 1 sectors
[000194] [INIT] Empty space: 16384 bytes / 4 sectors
[000199]
[000201] [INIT] BOARDHEDULER SENSOR TELNET TERMINAL THINGSPEAK WEB
[000217] [INIT] SENSORS: HLW8012

[000265] [INIT] Last reset reason: Reboot from web interface
[000265] [INIT] Settings size: 1240 bytes
[000266] [INIT] Free heaof buttons: 1
[000301] [LED] Number of leds: 1
[000303] [MQTT] Async ENABLED, SSL DISABLED, Autoconnect ENABLED
[000319] [THING] [SENSOR] -> voltage:0
[000324] [SENSOR] -> power:0
[000326] [SENSOR] -> reactive:0
[000329] [SENSOR] -> apparent:0
[00033[000433] [WIFI] Connecting to BSSID: FF:3F:BD:03:00:00 CH: 00, RSSI: 0, SEC: OPEN, SSID: Szmorek
[061329] [WIFI] MODE AP --------------------------------------
[061329] [WIFI] SSID ESPURNA_375767

@xoseperez
Copy link
Owner

Those logs are a bit messy. Are you sure this is what you got? Looks like there are lots of things missing and some of the settings it says are just wrong (firmware size 4096 bytes?)

@piotrpz
Copy link
Author

piotrpz commented May 2, 2018

Yes. I saw that. As I wrote, it was flashed by sonota, mayby this is the problem..? I'd like to flash by esptool, but I cant start bootloader mode by switch. I've flashed few sonoff basic with no problem.

@piotrpz
Copy link
Author

piotrpz commented May 18, 2018

Xose, I've flashed POW to tasmota - there was no problem with wifi. Flashed again to espurna(serial connection, esptool, realese 1.12.6) and on every saveing settings, wifi password for network0 is changing. The workaround is to create first fake network,and add second wifi with correct configuration. Best.

@piotrpz
Copy link
Author

piotrpz commented Jun 30, 2018

Release 1.13 0 is working correctly. No problem with wifi.

@piotrpz piotrpz closed this as completed Jun 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants