GG działa z esp 32, 8266 i 8255 mega2560 ma mikrokontroler amtegaZibi_007 wrote: Mon Dec 30, 2024 2:15 pm Na próbę wygeneruj soft z GG (z tego co widzę powinno dać się wyklikać wszystkie funkcjonalności) i sprawdź czy działa.
Mega 2560 + SUplaDEvice = sterowanie oświetleniem w salonie
-
[email protected]
- Posts: 23
- Joined: Thu Feb 03, 2022 9:36 pm
-
YoMan
- Posts: 3522
- Joined: Thu Apr 30, 2020 5:18 pm
- Location: Częstochowa
- Has thanked: 3 times
- Been thanked: 3 times
mnie to wygląda na resety - jakiś bug w sofcie[email protected] wrote: Mon Dec 30, 2024 2:00 pmklew wrote: Mon Dec 30, 2024 1:51 pmPokaż logi z urządzenia[email protected] wrote: Mon Dec 30, 2024 1:03 pm Mega działa lokalnie bez LANU. Mogę sterować z przycisków. Nie ma samo załączeń.
Po podpięciu do lanu i wykryciu w Cloudzie zaczyna się, wszystkie przekaźniki załączają się i wyłączają tak w pętli. (nawet jak w cloudzie nie ma wybranej żadnej funkcji)![]()
Code: Select all
Connecting to network... DHCP connection result: 1 localIP: 10.0.0.127 subnetMask: 255.255.255.0 gatewayIP: 10.0.0.1 dnsServerIP: 10.0.0.1 Establishing NOT encrypted connection with: svrx.supla.org (port: 2015) Connected to Supla Server Initializing SRPC (proto: 23) Current status: [10] Register in progress CH[0], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [00 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[1], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [01 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[2], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [02 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[3], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [03 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[4], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [04 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[5], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [05 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[6], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [06 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[7], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [07 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] Send: [53 55 50 4C 41 ] Recv: [53 55 50 4C 41 17 01 00 00 00 46 00 00 00 07 00 00 00 03 00 00 00 78 1A 01 53 55 50 4C 41 ] Device registered (activity timeout 120 s, server version: 26, server min version: 1) Current status: [17] Registered and ready Changing activity timeout to 30 s Send: [53 55 50 4C 41 17 02 00 00 00 D2 00 00 00 01 00 00 00 1E ] Send: [53 55 50 4C 41 ] Relay[0]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 0 Send: [53 55 50 4C 41 ] Relay[1]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 1 Send: [53 55 50 4C 41 ] Relay[2]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 2 Send: [53 55 50 4C 41 ] Relay[3]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 3 Send: [53 55 50 4C 41 ] Relay[4]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 4 Send: [53 55 50 4C 41 ] Relay[5]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 5 Send: [53 55 50 4C 41 ] Relay[6]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 6 Send: [53 55 50 4C 41 ] Relay[7]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 7 Send: [53 55 50 4C 41 ] Recv: [53 55 50 4C 41 17 02 00 00 00 AD 02 00 00 1B 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ] Recv: [00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 53 55 50 4C 41 17 03 00 00 00 AA 02 00 00 ] Receiv�Button[8]::setMulticlickTime: 200 Supla - starting initialization (pButton[0] pressed Relay[0] toggle (duration 0 ms) Relay[0] turn ON (duration 0 ms) **** Digital write[0], gpio: 26; value 0 Channel(0) value changed to 1 Button[1] pressed Relay[1] toggle (duration 0 ms) Relay[1] turn ON (duration 0 ms) **** Digital write[1], gpio: 27; value 0 Channel(1) value changed to 1 Button[2] pressed Relay[2] toggle (duration 0 ms) Relay[2] turn ON (duration 0 ms) **** Digital write[2], gpio: 28; value 0 Channel(2) value changed to 1 Button[3] pressed Relay[3] toggle (duration 0 ms) Relay[3] turn ON (duration 0 ms) **** Digital write[3], gpio: 29; value 0 Channel(3) value changed to 1 Button[4] pressed **** Digital write[6], gpio: 32; value 0 Channel(6) value changed to 1 Button[7] pressed Relay[7] toggle (duration 0 ms) Relay[7] turn ON (duration 0 ms) **** Digital write[7], gpio: 33; value 0 Channel(7) value changed to 1 Button[8] pressed Button[9] pressed Relay[0] turn ON (duration 0 ms) **** Digital write[0], gpio: 26; value 0 Relay[1] turn ON (duration 0 ms) **** Digital write[1], gpio: 27; value 0 Relay[2] turn ON (duration 0 ms) **** Digital write[2], gpio: 28; value 0 Relay[3] turn ON (duration 0 ms) **** Digital write[3], gpio: 29; value 0 Relay[4] turn ON (duration 0 ms) **** Digital write[4], gpio: 30; value 0 Relay[5] turn ON (durationatform 0) 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 28 0 14 5 14 5 ] Section type: 3; size: 40 storedCRC 1300, CRC calc 1300 Config stRelay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Channel(0) value changed to 0 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Channel(1) value changed to 0 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Channel(2) value changed to 0 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Channel(3) value changed to 0 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Channel(4) value changed to 0 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Channel(5) value changed to 0 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Channel(6) value changed to 0 Relay[7] turn OFF (duration 0 ms) **** Digital write[7], gpio: 33; vrage not configured Validating storage state section with current device configuration Storage state section validation successful readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] Relay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Relay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Relay[7] turn OFF (duration 0 ms) **** Digital write[7], gpio: 33; value 1 Relay[7] turn OFF (duration 0 ms) **** Digital write[7], gpio: 33; value 1 GUID: xxxxxxxxxxxxxxxxxxxxxxxxx Device name: Salon [NA] Network AP/hostname: SALON-000000000000 Using Supla protocol version 23 Current status: [5] SuplaDevice initialized Enter normal mode Connecting to network... DHCP connection result: 1 localIP: 10.0.0.127 subnetMask: 255.255.255.0 gatewayIP: 10.0.0.1 dnsServerIP: 10.0.0.1 Establishing NOT encrypted connection with: svrx.supla.org (port: 2015) Connected to Supla Server Initializing SRPC (proto: 23) Current status: [10] Register in progress CH[0], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [00 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[1], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [01 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[2], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [02 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[3], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [03 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[4], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [04 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[5], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [05 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[6], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [06 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[7], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [07 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] Send: [53 55 50 4C 41 ] Send: [53 55 50 4C 41 ] Relay[0]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 0 Send: [53 55 50 4C 41 ] Relay[1]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 1 Send: [53 55 50 4C 41 ] Relay[2]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 2 Send: [53 55 50 4C 41 ] Relay[3]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 3 Send: [53 55 50 4C 41 ] Relay[4]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 4 Send: [53 55 50 4C 41 ] Relay[5]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 5 Send: [53 55 50 4C 41 ] Relay[6]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 6 Send: [53 55 50 4C 41 ] Relay[7]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 7 Send: [53 55 50 4C 41 ] Recv: [53 55 50 4C 41 17 02 00 00 00 AD 02 00 00 1B 00 00 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00 ] Recv: [00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 53 55 50 4C 41 17 03 00 00 00 AA 02 00 00 ] Receiv�Button[8]::setMulticlickTime: 200 Supla - starting initialization (pButton[0] pressed Relay[0] toggle (duration 0 ms) Relay[0] turn ON (duration 0 ms) **** Digital write[0], gpio: 26; value 0 Channel(0) value changed to 1 Button[1] pressed Relay[3] toggle (duration 0 ms) Relay[3] turn ON (duration 0 ms) **** Digital write[3], gpio: 29; value 0 Channel(3) value changed to 1 Button[4] pressed Relay[4] toggle (duration 0 ms) Relay[4] turn ON (duration 0 ms) **** Digital write[4], gpio: 30; value 0 Channel(4) value changed to 1 Button[5] pressed Relay[5] toggle (duration 0 ms) Relay[5] turn ON (duration 0 ms) **** Digital write[5], gpio: 31; value 0 Channel(5) value changed to 1 Button[6] pressed Relay[6] toggle (duration 0 ms) Relay[6] turn ON (duration 0 ms) **** Digital write[6], gpio: 32; value 0 Channel(6) value changed to 1 Button[7] pressed Relay[7] toggle (duration 0 ms) Relay[7] turn ON (duration 0 ms) **** Digital write[7], gpio: 33; value 0 Channel(7) value changed to 1 Button[8] pressed Button[9] pressed Relay[0] turn ON (duration 0 ms) **** Digital write[0], gpio: 26; value 0 Relay[1] turn ON (duration 0 ms) **** Digital write[3], gpio: 29; value 0 Relay[4] turn ON (duration 0 ms) **** Digital write[4], gpio: 30; value 0 Relay[5] turn ON (durationatform 0) 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 28 0 14 5 14 5 ] Section type: 3; size: 40 storedCRC 1300, CRC calc 1300 Config stRelay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Channel(0) value changed to 0 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Channel(1) value changed to 0 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Channel(2) value changed to 0 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Channel(3) value changed to 0 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Channel(4) value changed to 0 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Channel(5) value changed to 0 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 readStorage: 1; Read: [0 ] readStorage: 4; Read: [0 0 0 0 ] readStorage: 1; Read: [0 ] Relay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Relay[0] turn OFF (duration 0 ms) **** Digital write[0], gpio: 26; value 1 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Relay[1] turn OFF (duration 0 ms) **** Digital write[1], gpio: 27; value 1 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Relay[2] turn OFF (duration 0 ms) **** Digital write[2], gpio: 28; value 1 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Relay[3] turn OFF (duration 0 ms) **** Digital write[3], gpio: 29; value 1 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Relay[4] turn OFF (duration 0 ms) **** Digital write[4], gpio: 30; value 1 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Relay[5] turn OFF (duration 0 ms) **** Digital write[5], gpio: 31; value 1 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Relay[6] turn OFF (duration 0 ms) Send: [05 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[6], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [06 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] CH[7], type: 2900, FuncList: 0x0, function: 239, flags: 0x Send: [07 54 0B 00 00 EF 00 00 00 00 00 00 00 00 00 01 09 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ] Send: [53 55 50 4C 41 ] Recv: [53 55 50 4C 41 17 01 00 00 00 46 00 00 00 07 00 00 00 03 00 00 00 78 1A 01 53 55 50 4C 41 ] Device registered (activity timeout 120 s, server version: 26, server min version: 1) Current status: [17] Registered and ready Changing activity timeout to 30 s Send: [53 55 50 4C 41 17 02 00 00 00 D2 00 00 00 01 00 00 00 1E ] Send: [53 55 50 4C 41 ] Relay[0]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 0 Send: [53 55 50 4C 41 ] Relay[1]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 1 Send: [53 55 50 4C 41 ] Relay[2]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 2 Send: [53 55 50 4C 41 ] Relay[3]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 3 Send: [53 55 50 4C 41 ] Relay[4]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 4 Send: [53 55 50 4C 41 ] Relay[5]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 5 Send: [53 55 50 4C 41 ] Relay[6]: updating timer value: remainingTime=0 state=0 SRPC sending: remaining time 0, channel 0, state 6 Send: [53 55 50 4C 41 ] Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Relay[6] turn OFF (duration 0 ms) **** Digital write[6], gpio: 32; value 1 Relay[7] turn OFF (duration 0 ms) **** Digital write[7], gpio: 33; value 1 Relay[7] turn OFF (duration 0 ms) **** Digital write[7], gpio: 33; value 1 GUID: xxxxxxxxxxxxxxxxxxxxxxxxxx Device name: Salon Device software version: SDK 24.11.04-dev Initializing network layer [NA] Network AP/hostname: SALON-000000000000 Using Supla protocol version 23 Current status: [5] SuplaDevice initialized Enter normal mode Connecting to network... DHCP connection result: 1 localIP: 10.0.0.127 subnetMask: 255.255.255.0 gatewayIP: 10.0.0.1 dnsServerIP: 10.0.0.1 Establishing NOT encrypted connection with: svrx.supla.org (port: 2015) Connected to Supla Server Initializing SRPC (proto: 23) Current status: [10] Register in progress Connection fail (0). Server: svr10.supla.org Establishing NOT encrypted connection with: svrx.supla.org (port: 2015) Connection fail (0). Server: svrx.supla.org
P.S. stosuj tagi proszę "[/code]"
YoMan
________________________________________
Wziąłem udział w SOP2023 & SOP2024
________________________________________
Wziąłem udział w SOP2023 & SOP2024
-
[email protected]
- Posts: 23
- Joined: Thu Feb 03, 2022 9:36 pm
Udało mi się to naprawić.
Zamiast najnowszej biblioteki 24.11.4 użyłem najstarszej dostępnej 2.3.4.
Działa resetów brak.
Dziękuję za chęć pomocy. Wszystkiego dobrego w Nowym Roku!
Zamiast najnowszej biblioteki 24.11.4 użyłem najstarszej dostępnej 2.3.4.
Działa resetów brak.
Dziękuję za chęć pomocy. Wszystkiego dobrego w Nowym Roku!
