ESP RGBWW Wifi Led Controller - Firmware vbs

Begonnen von vbs, 18 April 2017, 09:26:13

Vorheriges Thema - Nächstes Thema

vbs

Also das Problem ist, dass der Modus, den er benutzt, wenn er das OTA-Update durchführt? Aber wenn du es händisch per seriell flasht, dann geht es?

Die einzige Stelle, die ich gefunden habe, wo man den Modus umstellen kann ist in diesem Makefile:
https://github.com/verybadsoldier/Sming/blob/develop/Sming/Makefile-rboot.mk#L58

Ich fürchte jedoch, dass sich der Parameter nur auf den "make flash"-Aufruf bezieht und nicht auf das OTA-Update. Kann man einfach mal ausprobieren. Zum OTA-Update habe ich so erstmal nix finden können.

Shojo

#256
Nein auch "Seriel" geflasht geht das dann nicht,
Da die Firmware mit QIO kompiliert wurde, die leider nicht von allen ESP´s unterstützt wird.
DIO hingegen kann wohl jeder (wie ich es bis jetzt erlesen habe). 

Denke das hier https://github.com/verybadsoldier/Sming/blob/develop/Sming/Makefile-rboot.mk#L58 die Änderung ausreichen würde
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

vbs

#257
Also als Compile-Switch habe ich da beim besten Willen nichts finden können. Glaube auch eigentlich nicht, dass man das mit einkompilieren muss/kann. Aber im Anhang mal eine Version mit dem o.g. Flag.

Kann es daran liegen das ich den Wemos Di mini mit den SPI Mode DIO flashen muss?

Edit:
Japp das ist es, das ist nun natürlich blöd  QIO ist nicht kompatible zu DIO.

Bin ziemlich überrascht, dass du es dann hier doch schon am Laufen hattest? (zumindest hatte ich das so interpretiert)

Shojo

#258
Ja ich kann die FW mit dem DIO Flag (also beim Flashvorgang) so auf dem Wemos flashen aber halt nicht speichern über ein Reboot hinweg.

Und das soll daran liegen das (soweit ich das erlesen habe) das er dann nicht auf den SPIFF zugreifen kann da das rboot den FLAG QIO gesetzt hat was der Wemos nicht kann.
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

Shojo

Zitat von: vbs am 12 Dezember 2017, 21:17:54
Aber im Anhang mal eine Version mit dem o.g. Flag.

Hat leider nicht gewünschten Effekt gehabt :(
Dann habe ich auch keine Idee mehr er nicht speichern kann.

Danke für deine Mühe!
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

vbs

Hm, zu schade.  :( Kannst du irgendwie verifizieren, ob das Flag da jetzt wirklich gesetzt ist?

Probier nochmal die Version im Anhang, ich hab eine noch "richtigere" Stelle gefunden, um es zu setzen. Ich fürchte aber, dass es aufs gleiche rauskommt, wie beim ersten Versuch :(

Hab dann leider auch keine weitere Idee, sorry.


Shojo

Nein leider auch nicht.
Sobald er rebooten will ist schluß.

FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

Shojo

#262
Sag mal hast Du irgend ein Link für eine brauchbare Einführung ins Sming Framework?
Welche IDE nutzt man dafür?

Ich bin ja eigentlich in Visual Studio zuhause....


Edit:
Uiuiui grade gefunden https://github.com/brunnels/ESP8266-VisualStudio :)
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

vbs

Nee, ich kenne da leider auch keine gute Doku. Quellcode lesen war bisher der Weg   :o

Bin auch großer Freund von Visual Studio, aber hauptsächlich wegen dem Debugger. Für die ESP-Sachen benutze ich Eclipse in einer VM. Ich hatte schonmal etwas RemoteDebugging auf dem ESP am Laufen mit Eclipse, aber leider auch nicht hinreichend stabil um nützlich zu sein. Außerdem debuggen sich Schleifen >10 Hz so schlecht  :P

Shojo

Für Arduino und ESP Zeugs hatte ich bisher erfolgreich http://www.visualmicro.com/ eingesetzt.
Kann es nur empfehlen !
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

Shojo

So nachdem ja nun die Firmware auf den Wemos D1 Mini läuft  ::) ;D

Habe ich mal eine relativ einfach zu lötende und auch zu fräsende Platine auf ein Layer gebaut.
Die config-general-pin_config wäre hier 2,4,5,14,12
FHEM auf: Shuttle PC (x64) (Docker)
Bridge: SignalESP 433mHz, ConBee (deCONZ in Docker)
Rest: ESP8266, SONOFF, Sonos, Echo Dot, Xiaomi Vacuum (root), ESP RGBWW Wifi Led Controller, Node-RED, LEDMatrix, Pixel It

hanswerner1

Hallo,
ich habe vor ein paar Tagen die Version vbs12 geflasht, seit dem habe ich alle 2min folgendes im log:

2017.12.14 16:13:38 3: Bel_Wohnwand: info response data {"deviceid":"1364530","current_rom":"1","firmware":"0.3.1-vbs12","git_version":"vbs8-6-g1632-dirty","git_date":"2017-12-07","sming":"3.1.2","rgbww":{"version":"0.8.1-vbs4","queuesize":100},"connection":{"connected":true,"ssid":"xxxxxxxx1","dhcp":true,"ip":"192.168.0.67","netmask":"255.255.255.0","gateway":"192.168.0.10","mac":"xxxxxxxxxxxxx"}}

Hab jetzt erstmal auf verbose 0 gesetzt.

vbs

Du musst vermutlich mal das FHEM-Modul updaten.

Markus.

#268
Hallo Zusammen,

mit einem Controller habe ich ein komisches Problem und zwar lässst er sich einwandfrei flashen, macht aber dann nach dem reset keinen AP auf. Bevor ich den geflasht habe, habe ich ihn wie die anderen gelöscht.
das Log sieht wie folgt aus.

ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - richardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

Booting rom 0.
rf_cal[0] !=0x05,is 0xFF

================================================================
3ffffaa0:  00000001 00000004 4023f816 00000000 
3ffffab0:  4023f816 00000004 00000000 00000000 
3ffffac0:  3ffec110 60000e00 3fff36b0 402029d0 
3ffffad0:  3fff3688 00001000 3ffec132 4010076e 
3ffffae0:  000003fd 60000200 000000ee 40001100 
3ffffaf0:  00000001 3fff3730 00000001 401006af 
3ffffb00:  ffffffff ffffffff ffff0001 00000000 
3ffffb10:  00000000 00000000 00000000 00000000 
3ffffb20:  00000000 00000000 00000000 00000000 
3ffffb30:  ffffffff 00ffffff 00000000 00000000 
3ffffb40:  00000000 00000000 00000000 00000000 
3ffffb50:  00000000 00000000 00000000 00000000 
3ffffb60:  00000000 00000000 00000000 00000000 
3ffffb70:  00000000 ff000000 ffffffff ffffffff 
3ffffb80:  ffffffff ffffffff ffffffff ffffffff 
3ffffb90:  ffffffff ffffffff ffffffff ffffffff 
3ffffba0:  ffffffff ffffffff ffff00ff ffffffff 
3ffffbb0:  0000000a 5f505345 37343638 00004341 
3ffffbc0:  00000000 00000000 00000000 00000000 
3ffffbd0:  00000000 00000000 00000000 00000000 
3ffffbe0:  00000000 00000000 00000000 00000000 
3ffffbf0:  00000000 00000000 00000000 00000000 
3ffffc00:  00000000 00000000 00000000 00000000 
3ffffc10:  00000000 ffffffff ffffffff ffffffff 
3ffffc20:  ffffffff ffffffff ffffffff ffffffff 
3ffffc30:  ffffffff 000001ff ffffff04 ffffff01 
3ffffc40:  ffffffff ffffffff ffffffff ffffffff 
3ffffc50:  ffffffff ffffffff ffffffff ffffffff 
3ffffc60:  ffffffff ffffffff ffffffff ffffffff 
3ffffc70:  ffffffff ffffffff ffffffff ffffffff 
3ffffc80:  ffffffff ffffffff ffffffff ffffffff 
3ffffc90:  ffffffff ffffffff ffffffff ffffffff 
3ffffca0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcc0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcd0:  ffffffff ffffffff ffffffff ffffffff 
3ffffce0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcf0:  ffffffff ffffffff ffffffff ffffffff 
3ffffd00:  ffffffff ffffffff ffffffff ffffffff 
3ffffd10:  ffffffff ffffffff ffffffff ffffffff 
3ffffd20:  ffffffff ffffffff ffffffff ffffffff 
3ffffd30:  ffffffff ffffffff ffffffff ffffffff 
3ffffd40:  ffffffff ffffffff ffffffff ffffffff 
3ffffd50:  ffffffff ffffffff ffffffff ffffffff 
3ffffd60:  ffffffff ffffffff ffffffff ffffffff 
3ffffd70:  ffffffff ffffffff ffffffff ffffffff 
3ffffd80:  ffffffff ffffffff ffffffff ffffffff 
3ffffd90:  ffffffff ffffffff ffffffff ffffffff 
3ffffda0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdc0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdd0:  ffffffff ffffffff ffffffff ffffffff 
3ffffde0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdf0:  ffffffff ffffffff ffffffff ffffffff 
3ffffe00:  ffffffff ffffffff ffffffff ffffffff 
3ffffe10:  ffffffff ffffffff ffffffff ffffffff 
3ffffe20:  ffffffff ffffffff ffffffff ffffffff 
3ffffe30:  ffffffff ffffffff ffffffff ffffffff 
3ffffe40:  ffffffff 00000003 ffffffff ffffffff 
3ffffe50:  ffffffff ffffffff ffffffff ffffffff 
3ffffe60:  ffffffff ffffffff ffffffff ffff0064 
3ffffe70:  00000000 00000000 ffffffff ffffffff 
3ffffe80:  ffffffff ffffffff ffffffff ffffffff 
3ffffe90:  ffffffff ffffffff ffffffff ffffffff 
3ffffea0:  ffffffff ffffffff ffffffff ffffffff 
3ffffeb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffec0:  ffffffff ffffffff ffffffff ffffffff 
3ffffed0:  ffffffff ffffffff ffffffff ffffffff 
3ffffee0:  ffffffff ffffffff ffffffff ffffffff 
3ffffef0:  ffffffff ffffffff ffffffff ffffffff 
3fffff00:  ffffffff ffffffff ffffffff ffffffff 
3fffff10:  ffffffff ffffffff ffffffff ffffffff 
3fffff20:  ffffffff ffffffff ffffffff ffffffff 
3fffff30:  ffffffff ffffffff ffffffff ffffffff 
3fffff40:  ffffffff ffffffff ffffffff ffffffff 
3fffff50:  ffffffff ffffffff ffffffff ffffffff 
3fffff60:  ffffffff ffffffff ffffffff ffffffff 
3fffff70:  ffffffff ffffffff ffffffff ffffffff 
3fffff80:  ffffffff 00000000 00000000 00000000 
3fffff90:  ffff0000 40234e80 40235b28 4023a498 
3fffffa0:  400002e9 4023b0b4 ffffff00 55aa55aa 
================================================================

ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - richardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

Booting rom 0.
rf_cal[0] !=0x05,is 0xFF
rf cal sector: 1019
rf[112] úXÖ`ÓRGBWW Controller v 0.3.1-vbs10

Application::init - normal boot
Application::mountfs rom slot: 0
Application::mountfs trying to mount spiffs at 100000, length 786432
ApplicationOTA::checkAtBoot
ApplicationOTA::loadStatus
APPLedCtrl::init
APPLedCtrl::setup
H: 0 | s: 0 | v: 0 | ct: 2700
AppWIFI::init no AP to connect to - start own AP
AppWIFI::startAp
Enabling AP and DNS server
AppWIFI:: WifiAP enable
AppWIFI:: DNS enable

ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - ri#hardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

BoOting rom 0.
rf_cal[0] !=0x05,is 0xFF
ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - richardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

Booting rom 0.
rf_cal[0] !=0x05,is 0xFF

================================================================
3ffffaa0:  00000001 00000004 4023f816 00000000 
3ffffab0:  4023f816 00000004 00000000 00000000 
3ffffac0:  3ffec110 60000e00 3fff36b0 402029d0 
3ffffad0:  3fff3688 00001000 3ffec132 4010076e 
3ffffae0:  000003fd 60000200 000000ee 40001100 
3ffffaf0:  00000001 3fff3730 00000001 401006af 
3ffffb00:  ffffffff ffffffff ffff0001 00000000 
3ffffb10:  00000000 00000000 00000000 00000000 
3ffffb20:  00000000 00000000 00000000 00000000 
3ffffb30:  ffffffff 00ffffff 00000000 00000000 
3ffffb40:  00000000 00000000 00000000 00000000 
3ffffb50:  00000000 00000000 00000000 00000000 
3ffffb60:  00000000 00000000 00000000 00000000 
3ffffb70:  00000000 ff000000 ffffffff ffffffff 
3ffffb80:  ffffffff ffffffff ffffffff ffffffff 
3ffffb90:  ffffffff ffffffff ffffffff ffffffff 
3ffffba0:  ffffffff ffffffff ffff00ff ffffffff 
3ffffbb0:  0000000a 5f505345 37343638 00004341 
3ffffbc0:  00000000 00000000 00000000 00000000 
3ffffbd0:  00000000 00000000 00000000 00000000 
3ffffbe0:  00000000 00000000 00000000 00000000 
3ffffbf0:  00000000 00000000 00000000 00000000 
3ffffc00:  00000000 00000000 00000000 00000000 
3ffffc10:  00000000 ffffffff ffffffff ffffffff 
3ffffc20:  ffffffff ffffffff ffffffff ffffffff 
3ffffc30:  ffffffff 000001ff ffffff04 ffffff01 
3ffffc40:  ffffffff ffffffff ffffffff ffffffff 
3ffffc50:  ffffffff ffffffff ffffffff ffffffff 
3ffffc60:  ffffffff ffffffff ffffffff ffffffff 
3ffffc70:  ffffffff ffffffff ffffffff ffffffff 
3ffffc80:  ffffffff ffffffff ffffffff ffffffff 
3ffffc90:  ffffffff ffffffff ffffffff ffffffff 
3ffffca0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcc0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcd0:  ffffffff ffffffff ffffffff ffffffff 
3ffffce0:  ffffffff ffffffff ffffffff ffffffff 
3ffffcf0:  ffffffff ffffffff ffffffff ffffffff 
3ffffd00:  ffffffff ffffffff ffffffff ffffffff 
3ffffd10:  ffffffff ffffffff ffffffff ffffffff 
3ffffd20:  ffffffff ffffffff ffffffff ffffffff 
3ffffd30:  ffffffff ffffffff ffffffff ffffffff 
3ffffd40:  ffffffff ffffffff ffffffff ffffffff 
3ffffd50:  ffffffff ffffffff ffffffff ffffffff 
3ffffd60:  ffffffff ffffffff ffffffff ffffffff 
3ffffd70:  ffffffff ffffffff ffffffff ffffffff 
3ffffd80:  ffffffff ffffffff ffffffff ffffffff 
3ffffd90:  ffffffff ffffffff ffffffff ffffffff 
3ffffda0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdc0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdd0:  ffffffff ffffffff ffffffff ffffffff 
3ffffde0:  ffffffff ffffffff ffffffff ffffffff 
3ffffdf0:  ffffffff ffffffff ffffffff ffffffff 
3ffffe00:  ffffffff ffffffff ffffffff ffffffff 
3ffffe10:  ffffffff ffffffff ffffffff ffffffff 
3ffffe20:  ffffffff ffffffff ffffffff ffffffff 
3ffffe30:  ffffffff ffffffff ffffffff ffffffff 
3ffffe40:  ffffffff 00000003 ffffffff ffffffff 
3ffffe50:  ffffffff ffffffff ffffffff ffffffff 
3ffffe60:  ffffffff ffffffff ffffffff ffff0064 
3ffffe70:  00000000 00000000 ffffffff ffffffff 
3ffffe80:  ffffffff ffffffff ffffffff ffffffff 
3ffffe90:  ffffffff ffffffff ffffffff ffffffff 
3ffffea0:  ffffffff ffffffff ffffffff ffffffff 
3ffffeb0:  ffffffff ffffffff ffffffff ffffffff 
3ffffec0:  ffffffff ffffffff ffffffff ffffffff 
3ffffed0:  ffffffff ffffffff ffffffff ffffffff 
3ffffee0:  ffffffff ffffffff ffffffff ffffffff 
3ffffef0:  ffffffff ffffffff ffffffff ffffffff 
3fffff00:  ffffffff ffffffff ffffffff ffffffff 
3fffff10:  ffffffff ffffffff ffffffff ffffffff 
3fffff20:  ffffffff ffffffff ffffffff ffffffff 
3fffff30:  ffffffff ffffffff ffffffff ffffffff 
3fffff40:  ffffffff ffffffff ffffffff ffffffff 
3fffff50:  ffffffff ffffffff ffffffff ffffffff 
3fffff60:  ffffffff ffffffff ffffffff ffffffff 
3fffff70:  ffffffff ffffffff ffffffff ffffffff 
3fffff80:  ffffffff 00000000 00000000 00000000 
3fffff90:  ffff0000 40234e80 40235b28 4023a498 
3fffffa0:  400002e9 4023b0b4 ffffff00 55aa55aa 
================================================================

ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - richardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

Booting rom 0.
rf_cal[0] !=0x05,is 0xFF
rf cal sector: 1019
rf[112] úXÖ`ÓRGBWW Controller v 0.3.1-vbs10

Application::init - normal boot
Application::mountfs rom slot: 0
Application::mountfs trying to mount spiffs at 100000, length 786432
ApplicationOTA::checkAtBoot
ApplicationOTA::loadStatus
APPLedCtrl::init
APPLedCtrl::setup
H: 0 | s: 0 | v: 0 | ct: 2700
AppWIFI::init no AP to connect to - start own AP
AppWIFI::startAp
Enabling AP and DNS server
AppWIFI:: WifiAP enable
AppWIFI:: DNS enable

ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x40100000, len 2544, room 16
tail 0
chksum 0xb1
load 0x3ffe8000, len 888, room 8
tail 0
chksum 0x9c
csum 0x9c

rBoot v1.4.2 - ri#hardaburton@gmail.com
Flash Size:   32 Mbit
Flash Mode:   QIO
Flash Speed:  40 MHz
rBoot Option: Big flash
rBoot Option: GPIO skip mode (16)
rBoot Option: RTC data

BoOting rom 0.
rf_cal[0] !=0x05,is 0xFF


Kann es sein das der ESP einen "weg" hat? was kann ich denn da noch versuchen ?

Gruß

Markus

hanswerner1

Zitat von: vbs am 14 Dezember 2017, 18:01:06
Du musst vermutlich mal das FHEM-Modul updaten.

letztes Update: 2017-12-09_21:05:00 61047 FHEM/32_EspLedController.pm

Hab "update add https://raw.githubusercontent.com/verybadsoldier/esp_rgbww_fhemmodule/develop/controls_espledcontroller.txt"
eingetragen und aktuell wird mir kein Update angeboten.