ostatnio napotkałem dwa problemy związane z obsługą RGBW w GUI Genericu.
1. Jeśli moduł nie jest zarejestrowany w Supli, to - w przypadku taśmy RGBW - LED-y zapalają się na kolor biały. Po 3 sekundach od wyłączenia LED-ów przyciskiem, taśma sama się włącza. Po próbie zmiany jasności świecenia lampek (poprzez przytrzymanie przypisanego przycisku), LED-y się wyłączają, a po upływie 3 sekund włączają. Po zarejestrowaniu modułu opisane sytuacje nie występują.
Poniżej kopia wiadomości, jakie moduł wysyła po serialu:
Code: Select all
Channel(0) value changed to RGB(0, 255, 0), colBr(0), bright(0) <-- kliknięcie przycisku
▒@*r▒▒P▒▒▒K▒t▒dr▒-@▒▒.▒Ѫ▒Ko8a ▒▒*▒T▒▒▒▒▒▒P▒/▒▒▒*▒▒▒▒nzAn )▒m~▒rZ!▒(P▒+tX@j|▒▒▒▒*▒▒▒r▒(▒8x▒vA,r▒8r▒(▒ڢ▒,▒▒lP /Ѣ▒[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
File system (SPIFFS):
Total KB: 51.72 KB
Used KB: 3.68 KB
Size file: 3433
Size conf: 3433
Config read
Key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Key: 1 Value: y▒:▒]▒hr▒▒▒
Key: 2 Value:
Key: 3 Value:
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: GUI Generic
Key: 7 Value: svrX.supla.org
Key: 8 Value: [email protected]
Key: 9 Value:
Key: 10 Value: 1
Key: 11 Value:
Key: 12 Value:
Key: 13 Value:
Key: 14 Value:
Key: 15 Value:
Key: 16 Value:
Key: 17 Value:
Key: 18 Value:
Key: 19 Value:
Key: 20 Value:
Key: 21 Value:
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Key: 25 Value:
Key: 26 Value:
Key: 27 Value:
Key: 28 Value:
Key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 39 Value:
Key: 40 Value:
Key: 41 Value:
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value: 1
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value:
Key: 50 Value:
Key: 51 Value:
Key: 52 Value:
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value:
Key: 59 Value: 1
Key: 60 Value: 0
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value:
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Save key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Save key: 1 Value: y▒:▒]▒hr▒▒▒
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 10 Value: 1
Save key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Save key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 45 Value: 1
Save key: 59 Value: 1
Save key: 60 Value: 0
Config Mode started
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 7 0 0 0 0 0 ]
Section type: 3; size: 7
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [FF ]
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
readStorage: 1; Read: [5 ]
Initializing network layer
WiFi: establishing connection with SSID: ""
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
AP started IP: 192.168.4.1
Current status: [8] No connection to network
Channel(0) value changed to RGB(0, 255, 0), colBr(5), bright(5)
Wrote 1 bytes to storage at 18
Wrote 1 bytes to storage at 19
Wrote 1 bytes to storage at 20
Wrote 1 bytes to storage at 21
Commit
Channel(0) value changed to RGB(0, 255, 0), colBr(65), bright(65) <-- przytrzymanie przycisku
▒@*r▒▒P▒▒▒K▒t▒dr▒-@▒▒.▒Ѫ▒Ko8a ▒▒*▒T▒▒▒▒▒▒P▒/▒▒▒*▒▒▒▒nzAn )▒m~▒rZ!▒(P▒+tX@j|▒▒▒▒*▒▒▒r▒(▒8x▒vA,r▒8r▒(▒ڢ▒,▒▒lP /Ѣ▒[SETUP] WAIT 4...
[SETUP] WAIT 3...
[SETUP] WAIT 2...
[SETUP] WAIT 1...
File system (SPIFFS):
Total KB: 51.72 KB
Used KB: 3.68 KB
Size file: 3433
Size conf: 3433
Config read
Key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Key: 1 Value: y▒:▒]▒hr▒▒▒
Key: 2 Value:
Key: 3 Value:
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: GUI Generic
Key: 7 Value: svrX.supla.org
Key: 8 Value: [email protected]
Key: 9 Value:
Key: 10 Value: 1
Key: 11 Value:
Key: 12 Value:
Key: 13 Value:
Key: 14 Value:
Key: 15 Value:
Key: 16 Value:
Key: 17 Value:
Key: 18 Value:
Key: 19 Value:
Key: 20 Value:
Key: 21 Value:
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Key: 25 Value:
Key: 26 Value:
Key: 27 Value:
Key: 28 Value:
Key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 39 Value:
Key: 40 Value:
Key: 41 Value:
Key: 42 Value:
Key: 43 Value:
Key: 44 Value:
Key: 45 Value: 1
Key: 46 Value:
Key: 47 Value:
Key: 48 Value:
Key: 49 Value:
Key: 50 Value:
Key: 51 Value:
Key: 52 Value:
Key: 53 Value:
Key: 54 Value:
Key: 55 Value:
Key: 56 Value:
Key: 57 Value:
Key: 58 Value:
Key: 59 Value: 1
Key: 60 Value: 0
Key: 61 Value:
Key: 62 Value:
Key: 63 Value:
Key: 64 Value:
Key: 65 Value:
Key: 66 Value:
Key: 67 Value:
Key: 68 Value:
Key: 69 Value:
Key: 70 Value:
Key: 71 Value:
Key: 72 Value:
Key: 73 Value:
Key: 74 Value:
Key: 75 Value:
Key: 76 Value:
Key: 77 Value:
Key: 78 Value:
Key: 79 Value:
Save key: 0 Value: ▒▒W▒O▒id▒▒H▒:▒
Save key: 1 Value: y▒:▒]▒hr▒▒▒
Save key: 4 Value: admin
Save key: 5 Value: pass
Save key: 6 Value: GUI Generic
Save key: 7 Value: svrX.supla.org
Save key: 8 Value: [email protected]
Save key: 10 Value: 1
Save key: 24 Value: 1,2,,1,,2,0,1,,,,,,,,,1,,,,,,,,,,,,,
Save key: 29 Value: 1,25,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 36 Value: 1,23,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 37 Value: 1,24,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 38 Value: 1,22,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 45 Value: 1
Save key: 59 Value: 1
Save key: 60 Value: 0
Config Mode started
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
Storage: Number of sections 1
Reading section: 0
readStorage: 7; Read: [3 7 0 0 0 0 0 ]
Section type: 3; size: 7
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [FF ]
readStorage: 1; Read: [0 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
readStorage: 1; Read: [23 ]
Initializing network layer
WiFi: establishing connection with SSID: ""
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
AP started IP: 192.168.4.1
Current status: [8] No connection to network
Channel(0) value changed to RGB(0, 255, 0), colBr(35), bright(35)
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Connection fail counter overflow. Trying to setup network interface again
Czy byłaby możliwość wyboru czy przycisk ma włączać LED-y kolorowe zgodnie z ich ostatnim stanem czy LED-y białe?
