xoseperez / sonoffsc

Itead Studio SonoffSC custom firmware with MQTT and Domoticz support
GNU General Public License v3.0
104 stars 35 forks source link

webpage blank, websocket failed? #21

Closed asterix555 closed 6 years ago

asterix555 commented 6 years ago

Hi,

I just flashed the ESP8266 and Atmega on my SC, but after connecting to the integrated AP I just see an empty website at 192.168.4.1. Also tried with SC in STA-mode connected to an Router.

Showing the source clearly shows a complete HTML including JS, the websocket connection seems to be initiated ("Upgrade:websocket") but there are no frames transmitted nor received and almost immediately after logging "connected" in the console the message "disconnected" appears,...

I tried 1.1.1 and latest branch, using platformio.

Telnet-LOG:

[TELNET] Client #0 connected
[INIT] SONOFFSC 1.1.1
[INIT] xose.perez@gmail.com
[INIT] http://tinkerman.cat
[INIT] CPU chip ID: 0xF8AF43
[INIT] CPU frequency: 80 MHz
[INIT] SDK version: 1.5.3(aec24ac9)
[INIT] Core version: 2_3_0
[INIT] Flash chip ID: 0x1440E0
[INIT] Flash speed: 40000000 Hz
[INIT] Flash mode: QIO
[INIT] Flash sector size:     4096 bytes
[INIT] Flash size (CHIP):  1048576 bytes
[INIT] Flash size (SDK):   1048576 bytes /  256 sectors
[INIT] Firmware size:       448128 bytes /  110 sectors
[INIT] OTA size:            512000 bytes /  125 sectors
[INIT] SPIFFS size:              0 bytes /    0 sectors
[INIT] EEPROM size:           4096 bytes /    1 sectors
[INIT] Empty space:          16384 bytes /    4 sectors
[INIT] MANUFACTURER: ITEAD STUDIO
[INIT] DEVICE: SONOFFSC
[INIT] SUPPORT: DOMOTICZ MDNS NTP
[INIT] Last reset reason: Hardware Watchdog
[INIT] Free heap: 26176 bytes
[DEBUG] No crash info
[LIGHTS] Color to 0
[WEBSERVER] Request: GET /index.html
[WEBSERVER] Request: GET /auth
[WEBSERVER] Request: GET /index.html
[WEBSOCKET] #1 connected, ip: 192.168.8.113, url: /ws
[WEBSOCKET] #1 disconnected
[WEBSERVER] Request: GET /auth
[WEBSOCKET] #2 connected, ip: 192.168.8.113, url: /ws
[WEBSOCKET] #2 disconnected

kind regards

asterix555 commented 6 years ago

ok, seems to be an issue related to an application firewall,.. tested with another PC and works fine,..