Mega 2560 + SUplaDEvice = sterowanie oświetleniem w salonie

[email protected]
Posts: 23
Joined: Thu Feb 03, 2022 9:36 pm

Post

Cześć Suplowicze.
Jakiś czas temu przy pomocy płytki Mega 2560 i poprzedniej wersji biblioteki Supli do Arduino zrobiłem oświetlenie w salonie. Wszystko działało poza tym że czasem jak znikało zasilanie zapalały się niektóre lampy .
Chciałem dodać do kodu przycisk action-tigger żeby dodatkowo sterować choinką. Niestety z braku odpowiedniej wiedzy nie zadziałało to jak trzeba.
Postanowiłem powrócić do wcześniejszej kompilacji
Lokalnie działa jak trzeba. Niestety po podpięciu lanu zapętla się i cały czas włącza i wyłącza wszystkie światła po kolei.
Próbowałem wygenerować nowy Guid i AUth. Niestety to nie pomaga.
W programie zdeklarowane mam 8 przekaźników a w chmurze jest widzianych 12 urządzeń do zdefiniowania, tak jak by część kodu z Action-tiger gdzieś została. (po dodaniu kodu do action-tiger dodało dwa nowe urządzenia do zdefiniowania w chmurze.)
Na pewno gdzieś mam błąd ale nie potrafię go zlokalizować.

Poniżej mój program ten co wcześniej działał przed aktualizacją biblioteki.

Code: Select all

#include <SuplaDevice.h>
#include <supla/control/relay.h>
#include <supla/control/button.h>
#include <supla/control/virtual_relay.h>
#include <supla/sensor/binary.h>

// Choose where Supla should store counter data in persistant memory
// We recommend to use external FRAM memory
#define STORAGE_OFFSET 100
#include <supla/storage/eeprom.h>
Supla::Eeprom eeprom(STORAGE_OFFSET);
// #include <supla/storage/fram_spi.h>
// Supla::FramSpi fram(STORAGE_OFFSET);

// Choose proper network interface for your card:
#ifdef ARDUINO_ARCH_AVR
// Arduino Mega with EthernetShield W5100:
#include <supla/network/ethernet_shield.h>
// Ethernet MAC address
uint8_t mac[6] = {0x00, 0x01, 0x02, 0x03, 0x04, 0x05};
Supla::EthernetShield ethernet(mac);
#endif

void setup() {


Serial.begin(9600);

// Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
char GUID[SUPLA_GUID_SIZE] = {xxxxx,xxxxx,xxxx,xxxx,xxx......};

// Replace the following AUTHKEY with value that you can retrieve from: https://www.supla.org/arduino/get-authkey
char AUTHKEY[SUPLA_AUTHKEY_SIZE] = {xxxxx,xxxxx,xxxx,xxxx,xxx......}};

/*
* Having your device already registered at cloud.supla.org,
* you want to change CHANNEL sequence or remove any of them,
* then you must also remove the device itself from cloud.supla.org.
* Otherwise you will get "Channel conflict!" error.
*/
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// INSTRUKCJA PRZEKAŹNIKÓW (viewtopic.php?f=61&t=7263)
//auto r1 = new Supla::Control::Relay(x); // sterowany stanem wysokim -bez true, false -stan niskim
//r1->setDefaultStateOn(); // po uruchomieniu urządzenia, przekaźnik będzie włączony
//r1->setDefaultStateOff(); // po uruchomieniu urządzenia, przekażnik będzie wyłączony (domyślne ustawienie)
//r1->setDefaultStateRestore(); // po uruchomieniu urządzenia, przekaźnik wróci do stanu sprzed
// wyłączenia zasilania urządzenia (wymaga Storage)
//r1->keepTurnOnDuration(); // przekaźnik zapamięta czas wysłany ostatnio przez serwer i będzie używał go przy
// włączeniu przekaźnika z lokalnego przycisku, lub z kodu. Aby urządzenie
// zapamiętał czas włączenia, wymagany jest Storage. Bez Storage, czas
// będzie zapamiętany tylko do resetu.
//r1->turnOn(); // włącza przekaźnik. Jeśli mamy ustawione "keepTurnOnDuration", to zostanie użyty zapisany wcześniej czas włączenia
//r1->turnOn(czas_w_milisekundach); // włącza przekaźnik na określony czas
//r1->turnOff(); // wyłącza przekaźnik
//r1->toggle(); // przeałącza przekaźnik
//r1->isOn(); // zwraca true/false w zależności od tego czy przekaźnik jest włączony czy nie

// INSTRUKCJA BUTTON (viewtopic.php?f=61&t=7512)

//auto bx = new Supla::Control::Button (x, true ); //true dla pulldown
//bx->setHoldTime(1000); // po 1 s od przytrzymania przycisku zostanie wywołane zdarzenie ON_HOLD
//bx->setMulticlickTime(400 ); // program zlicza kliknięcia i po upływie 400 ms od puszczenia przycisku, wywoła odpowiednią akcję ON_CLICK_1 do ON_CLICK_9

//dla przekaźnika bistabilnego (włącz-wyłącz)
//bx->addAction(Supla::TOGGLE, r1, Supla::ON_PRESS);

//dla wielokliku (klik-włącza relay1,klik-przytrzymanie włącza relay1+realy2 ,kolejne przytrzymanie wyłacza relay1+realy2 )
//bx->addAction(Supla::TOGGLE, r1, Supla::ON_PRESS);
//bx->addAction(Supla::TOGGLE, r2, Supla::ON_HOLD);

//dla wielokliku (klik 1-włącza relay1, klik 2-włącza realy2)
//bx->addAction(Supla::TOGGLE, r1, Supla::ON_CLICK_1);
//bx->addAction(Supla::TOGGLE, r2, Supla::ON_HOLD);

//nie przezuca relay1 oraz ralay2 , po przytrzymaniu przezuca realy2 i relay1
//bx->addAction(Supla::TOGGLE, r1, Supla::ON_HOLD);
//bx->addAction(Supla::TOGGLE, r2, Supla::ON_HOLD);

//INSTRUKCJA OPISU PINÓW MEGA
// D0 i D1 - to uart dla połączenia USB - pojawiają się tam różne stany przy starcie więc lepiej ich nie używać.
// D13 - to niebieska dioda na płytce i sygnalizuje różne stany więc też odpada (chyba taki odpowiednik led config w ESP)
// D10 - pin wykorzystywany przez ethernet scheld (SS)
// D50,D51,D52- interfejs SPI wykorzystywany przec ethernet scheld i pamięć FRAM ( MISO,MOSI,SCK.)
// D53 - pin wykorzystywany standatdowo dla pamięci FRAM z interfejsem SPI (SS) - pozostałe piny magistrali wspólne z etchernet scheld.
///////////////////////////////////////////////////////////////
//SEKCJA PRZEKAŹNIKÓW OŚWIETLENIE SALON
///////////////////////////////////////////////////////////////
auto r0 = new Supla::Control::Relay(26, false); //1
auto r1 = new Supla::Control::Relay(27, false); //2
auto r2 = new Supla::Control::Relay(28, false); //3
auto r3 = new Supla::Control::Relay(29, false); //4
auto r4 = new Supla::Control::Relay(30, false); //5
auto r5 = new Supla::Control::Relay(31, false); //6
auto r6 = new Supla::Control::Relay(32, false); //7
auto r7 = new Supla::Control::Relay(33, false); //8


auto b0 = new Supla::Control::Button(17, true ); //1
b0->addAction(Supla::TOGGLE, r0, Supla::ON_PRESS);

auto b1 = new Supla::Control::Button(18, true ); //2
b1->addAction(Supla::TOGGLE, r1, Supla::ON_PRESS);

auto b2 = new Supla::Control::Button(19, true ); //3
b2->addAction(Supla::TOGGLE, r2, Supla::ON_PRESS);

auto b3 = new Supla::Control::Button(20, true ); //4
b3->addAction(Supla::TOGGLE, r3, Supla::ON_PRESS);

auto b4 = new Supla::Control::Button(21, true ); //5
b4->addAction(Supla::TOGGLE, r4, Supla::ON_PRESS);

auto b5 = new Supla::Control::Button(22, true ); //6
b5->addAction(Supla::TOGGLE, r5, Supla::ON_PRESS);

auto b6 = new Supla::Control::Button(23, true ); //7
b6->addAction(Supla::TOGGLE, r6, Supla::ON_PRESS);

auto b7 = new Supla::Control::Button(24, true ); //8
b7->addAction(Supla::TOGGLE, r7, Supla::ON_PRESS);

auto b8 = new Supla::Control::Button(16, true ); //9
b8->setMulticlickTime(200, true);
b8->addAction(Supla::TURN_OFF, r0, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r1, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r2, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r3, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r4, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r5, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r6, Supla::ON_CLICK_1);
b8->addAction(Supla::TURN_OFF, r7, Supla::ON_CLICK_1);
b8->addAction(Supla::TOGGLE, r6, Supla::ON_CLICK_2);


auto b9 = new Supla::Control::Button(15, true ); //10
b9->addAction(Supla::TURN_ON, r0, Supla::ON_PRESS);
b9->addAction(Supla::TURN_ON, r1, Supla::ON_PRESS);
b9->addAction(Supla::TURN_ON, r2, Supla::ON_PRESS);
b9->addAction(Supla::TURN_ON, r3, Supla::ON_PRESS);
b9->addAction(Supla::TURN_ON, r4, Supla::ON_PRESS);
b9->addAction(Supla::TURN_ON, r5, Supla::ON_PRESS);




/*
* Server address is available at https://cloud.supla.org
* If you do not have an account, you can create it at https://cloud.supla.org/account/create
* SUPLA and SUPLA CLOUD are free of charge
*/
SuplaDevice.setName("Salon");
SuplaDevice.begin(GUID, // Global Unique Identifier
"svrx.supla.org", // SUPLA server address
"[email protected]", // Email address used to login to Supla Cloud
AUTHKEY); // Authorization key

}

void loop() {
SuplaDevice.iterate();
}
Dodałem takie linijki kodu programu

Code: Select all

#include <supla/control/action_trigger.h>
// w setup:
auto relay = new Supla::Control::Relay(33);
auto button = new Supla::Control::Button(15, true, true);
auto at = new Supla::Control::ActionTrigger();

button->setMulticlickTime(800, false); // use true for bistable button
button->addAction(Supla::TOGGLE, relay, Supla::ON_CLICK_3);
at->setRelatedChannel(relay);  // action trigger will show under relay channel in Cloud
at->attach(button);
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Kanały są zapamiętywane na serwerze. Jak wejdziesz na Cloud, to powinieneś widzieć, że na tych dodatkowych (brakujących na urządzeniu), jest wyświetlony konflikt kanałów. Te kanały możesz z poziomu Clouda usunąć.

Ogólnie Arduino Mega ma strasznie mało RAM-u. W bibliotece cały czas przybywa funkcji i nikt nie pilnuje tego, czy na Mega to nadal działa.
Także aktualizacje mogą się skończyć tym, że nowy program nie będzie działał.

Takie efekty polagające na zapalaniu się/miganiu, to często problem natury sprzętowej. Przyciski lepiej pracują na wyższym napięciu 12-24 V, albo nawet 230 V, niż na 3-5 V, na których co krok pojawiają się zakłócenia. To temat bardziej elektroniczny, niż programistyczny, aby to dobrze działało.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 23
Joined: Thu Feb 03, 2022 9:36 pm

Post

klew wrote: Mon Dec 30, 2024 9:04 am Kanały są zapamiętywane na serwerze. Jak wejdziesz na Cloud, to powinieneś widzieć, że na tych dodatkowych (brakujących na urządzeniu), jest wyświetlony konflikt kanałów. Te kanały możesz z poziomu Clouda usunąć.

Ogólnie Arduino Mega ma strasznie mało RAM-u. W bibliotece cały czas przybywa funkcji i nikt nie pilnuje tego, czy na Mega to nadal działa.
Także aktualizacje mogą się skończyć tym, że nowy program nie będzie działał.

Takie efekty polagające na zapalaniu się/miganiu, to często problem natury sprzętowej. Przyciski lepiej pracują na wyższym napięciu 12-24 V, albo nawet 230 V, niż na 3-5 V, na których co krok pojawiają się zakłócenia. To temat bardziej elektroniczny, niż programistyczny, aby to dobrze działało.
Zapętlenie to wysterowanie wszystkich przekaźników i od razu ich wyłączenie, ale tylko jak podpięta jest chmura lokalnie tak się nie dzieje.
Był konflikt urządzeń ale wszystko usunąłem i ustawiam od nowa niestety coś nie działa jak trzeba.
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

[email protected] wrote: Mon Dec 30, 2024 10:10 am
Zapętlenie to wysterowanie wszystkich przekaźników i od razu ich wyłączenie, ale tylko jak podpięta jest chmura lokalnie tak się nie dzieje.
Był konflikt urządzeń ale wszystko usunąłem i ustawiam od nowa niestety coś nie działa jak trzeba.
Wrzuć logi
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 23
Joined: Thu Feb 03, 2022 9:36 pm

Post

klew wrote: Mon Dec 30, 2024 10:21 am
[email protected] wrote: Mon Dec 30, 2024 10:10 am
Zapętlenie to wysterowanie wszystkich przekaźników i od razu ich wyłączenie, ale tylko jak podpięta jest chmura lokalnie tak się nie dzieje.
Był konflikt urządzeń ale wszystko usunąłem i ustawiam od nowa niestety coś nie działa jak trzeba.
Wrzuć logi
które logi

Wgrałem jeszcze raz program i sparowałem z innym kontem na cloudzie. CLoud widzi 8 urządzeń czyli prawidłowo natomiast po podpięciu lanu znowu załącza i wyłącza przekazniki
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

Chodzi o logi z urządzenia.

Nie rozumiem opisywanego przez Ciebie problemu.
Nie da się podłączyć Mega do Clouda, nie podłączając LAN-u. A Ty piszesz, że najpierw podpinasz urządzenie do Clouda i to działa. A potem, że podłączasz LAN i przestaje działać.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 23
Joined: Thu Feb 03, 2022 9:36 pm

Post

klew wrote: Mon Dec 30, 2024 12:12 pm Chodzi o logi z urządzenia.

Nie rozumiem opisywanego przez Ciebie problemu.
Nie da się podłączyć Mega do Clouda, nie podłączając LAN-u. A Ty piszesz, że najpierw podpinasz urządzenie do Clouda i to działa. A potem, że podłączasz LAN i przestaje działać.
Tak żle się wyraziłem...

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)
User avatar
klew
Posts: 13908
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

[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)
Pokaż logi z urządzenia :P
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 23
Joined: Thu Feb 03, 2022 9:36 pm

Post

klew wrote: Mon Dec 30, 2024 1:51 pm
[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)
Pokaż logi z urządzenia :P
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
User avatar
Zibi_007
Posts: 3985
Joined: Tue Oct 31, 2023 10:06 pm
Has thanked: 10 times
Been thanked: 31 times

Post

Na próbę wygeneruj soft z GG (z tego co widzę powinno dać się wyklikać wszystkie funkcjonalności) i sprawdź czy działa.
Image Wiesz, że Supla obsługuje Zigbee? Wstąp do Klubu Promila: https://forum.supla.org/viewtopic.php?t=18018
Image Szukasz nowego GG? Jest tutaj: https://forum.supla.org/viewtopic.php?t=18036

Return to “Pomoc”