Wsparcie dla licznika energii z serii SDM72 SDM120 SDM220 SDM230 SDM630 DDM18SD

User avatar
klew
Posts: 13906
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 134 times
Been thanked: 137 times

Post

krycha88 wrote: Tue Aug 01, 2023 8:53 am @klew czy coś zmieniałeś w okolicy ponownego łączenia do wifi? Na czas odczytu urządzenie się blokuje na kilka sekund i wychodzi na to, że ten czas wystarczy na wywołanie procedury ponownego łączenia. Z tego co rozumiem, kiedyś ten problem nie występował.
W ostatnim czasie nie przypominam sobie takich zmian. Natomaist aby dokładniej odpowiedzieć, to przydałaby się informacja między jakimi wersjami chcesz to porównanie? :)
Najlepsze suple dla Twojego domu :mrgreen:
Karol503
Posts: 33
Joined: Sat Dec 31, 2022 7:17 pm
Been thanked: 1 time

Post

Witam Panowie.
Dziś od nowego miesiąca o północy zmobilizowałem się i podłączyłem do właściwego licznika swojego Wemosa D1 do odczytu licznika sdm630. Projekt leżał przez ponad miesiąc na biurku z wgranym GG 6.1.2 podłączony do zasilania akumulatora do póki ten się nie rozładował ze 2 tygodnie temu. Do linii RS był podłączony licznik nowy ze stanem 0 i napięcie 1 fazy. Do momentu gdy działał akumulator to wszystko dobrze czytało.

Teraz po podłączeniu do właściwego licznika w rozdzielnicy cały czas zrywa połączenie tak jak u Was. Jedyna zmiana u mnie to dłuższy kabelek do RS485 o ok 30 cm i inny sdm630. Więc nie jest to zależne od firmware a coś się zmieniło w serwerze.

Wcześniej na biurku jedyny mankament to było długie łączenie do serwera po ustawieniu gpio dla RX i TX dla R 485 i powolna praca strony www na tym wemosie.

GG 6.1.2 jest z przed ponad miesiąca i w konfiguracji nic nie zmieniałem.
bacman
Posts: 32
Joined: Wed Jan 11, 2023 7:44 am

Post

klew wrote: Tue Aug 01, 2023 9:45 am
krycha88 wrote: Tue Aug 01, 2023 8:53 am @klew czy coś zmieniałeś w okolicy ponownego łączenia do wifi? Na czas odczytu urządzenie się blokuje na kilka sekund i wychodzi na to, że ten czas wystarczy na wywołanie procedury ponownego łączenia. Z tego co rozumiem, kiedyś ten problem nie występował.
W ostatnim czasie nie przypominam sobie takich zmian. Natomaist aby dokładniej odpowiedzieć, to przydałaby się informacja między jakimi wersjami chcesz to porównanie? :)
Na wersji 7.0.7 i wemos, tez wywala z serwera


Device software version: GG v7.0.7
Initializing network layer
Network AP/hostname: GUI-GENERIC-84F3EB0439DB
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "xxxx"
Connected BSSID: 36:A4:3C:35:0D:18
local IP: 10.100.100.66
subnetMask: 255.255.255.0
gatewayIP: 10.100.100.1
Signal strength (RSSI): -72 dBm
Establishing NOT encrypted connection with: svr62.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
Establishing NOT encrypted connection with: svr62.supla.org (port: 2015)
Connected to Supla Server
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Changing activity timeout to 30
Activity timeout set to 30 s
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

bacman wrote: Tue Aug 01, 2023 12:10 pm Na wersji 7.0.7 i wemos, tez wywala z serwera


Device software version: GG v7.0.7
Initializing network layer
Network AP/hostname: GUI-GENERIC-84F3EB0439DB
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "xxxx"
Connected BSSID: 36:A4:3C:35:0D:18
local IP: 10.100.100.66
subnetMask: 255.255.255.0
gatewayIP: 10.100.100.1
Signal strength (RSSI): -72 dBm
Establishing NOT encrypted connection with: svr62.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
Establishing NOT encrypted connection with: svr62.supla.org (port: 2015)
Connected to Supla Server
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Changing activity timeout to 30
Activity timeout set to 30 s
Akurat to jest jakaś stara wersja. Aktualna to 7.3.6.
https://gui-generic-builder.supla.io/
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Robert Błaszczak wrote: Sun Jul 30, 2023 7:20 pm Krystian, jest jakiś problem z obsługą SDM na GG 7.3.3
ESP resetuje się co jakiś czas. Poniżej log. Jak znajdziesz chwilę to zerknij, co może być nie tak.

Code: Select all

IMPROV �
IMPROV�
IMPROVhttp://192.168.10.29

 ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x4010f000, len 3424, room 16 
tail 0
chksum 0x2e
load 0x3fff20b8, len 40, room 8 
tail 0
chksum 0x2b
csum 0x2b
v0008e380
~ld
rf cal sector: 1020
freq trace enable 0
rf[112] : 0�Config read
Key: 0 Value: ���!yY�Mc��
Key: 1 Value: �E���;���uX(l�
Key: 2 Value: xxxxxxxx
Key: 3 Value: xxxxxxxx
Key: 4 Value: admin
Key: 5 Value: pass
Key: 6 Value: SDM230
Key: 7 Value: svr14.supla.org
Key: 8 Value: [email protected]
Key: 9 Value: 
Key: 10 Value: 
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: 0
Key: 22 Value: 
Key: 23 Value: 
Key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 25 Value: 
Key: 26 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Key: 27 Value: 
Key: 28 Value: 
Key: 29 Value: 
Key: 30 Value: 
Key: 31 Value: 
Key: 32 Value: 
Key: 33 Value: 
Key: 34 Value: 
Key: 35 Value: 
Key: 36 Value: 1,39,,,,5,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 37 Value: 1,40,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value: 
Key: 39 Value: 
Key: 40 Value: 
Key: 41 Value: 
Key: 42 Value: 
Key: 43 Value: 
Key: 44 Value: 
Key: 45 Value: 
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: 1
Key: 59 Value: 1
Key: 60 Value: 
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: 
Key: 80 Value: 0
Key: 81 Value: 
Key: 82 Value: 
Key: 83 Value: 
Key: 84 Value: 
Key: 85 Value: 
Key: 86 Value: 
Key: 87 Value: 
Key: 88 Value: 
Key: 89 Value: 
Key: 90 Value: 
Key: 91 Value: 
Key: 92 Value: 
Button[0]::setMulticlickTime: 800
Supla - starting initialization
Storage initialization
readStorage: 8; Read: [53 55 50 4C 41 1 0 0 ]
Storage: Number of sections 0
Config storage not configured
Validating storage state section with current device configuration
Storage state section validation completed. Loading elements state...
Pin 0, pullUp 1, invertLogic 1, state 1
GUID: BEEAD021790508590C89044D6383E0BE
Device name: SDM230
Device software version: GG v7.3.3
Initializing network layer
Network AP/hostname: SDM230-840D8EB2EF6A
Using Supla protocol version 20
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "xxxxxxxx"
Connected BSSID: 0A:42:1A:E5:62:C8
local IP: 192.168.10.29
subnetMask: 255.255.255.0
gatewayIP: 192.168.10.254
Signal strength (RSSI): -70 dBm
Connecting without certificate validation (INSECURE)
Establishing encrypted connection with: svr14.supla.org (port: 2016)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
Connecting without certificate validation (INSECURE)
Establishing encrypted connection with: svr14.supla.org (port: 2016)
Connected to Supla Server
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Changing activity timeout to 30
Activity timeout set to 30 s
Wrote 7 bytes to storage at 0
Commit
Connecting without certificate validation (INSECURE)
Establishing encrypted connection with: svr14.supla.org (port: 2016)
Connected to Supla Server
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Changing activity timeout to 30
Activity timeout set to 30 s
Connecting without certificate validation (INSECURE)
Establishing encrypted connection with: svr14.supla.org (port: 2016)
Connected to Supla Server
Device registered (activity timeout 120 s, server version: 20, server min version: 1)
Changing activity timeout to 30
Activity timeout set to 30 s
Dodałem do testu tylko licznik jednofazowy z prędkością odczytu 9600 i 30 min mija bez żadnego restartu :(
https://gui-generic-builder.supla.io/
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

Dziękuję, W piątek sprawdzę. Aktualnie jestem w delegacji.
Czy włączałeś SSL z serwerami Supla? Bo to tu może być problem.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Robert Błaszczak wrote: Wed Aug 02, 2023 5:35 pm Dziękuję, W piątek sprawdzę. Aktualnie jestem w delegacji.
Czy włączałeś SSL z serwerami Supla? Bo to tu może być problem.
Tak.
https://gui-generic-builder.supla.io/
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

Zgodnie ze wcześniejszą informacją potestowałem soft z obsługą liczników SDM. Testy na najświeższej wersji 7.3.6

1. Test na ESP-12S bez podłączonego licznika SDM
Przy ustawionych pinach RX - GPIO12-D6, TX - GPIO13-D7 i prędkości 9600 brak restartów. Przy ustawionej prędkości 38400 pojawiają się restarty.

2. Test z podłączonym licznikiem jednofazowym SDM230
Prędkość ustawiona na 38400 w konfiguracji ESP oraz w konfiguracji licznika SDM230 - brak restartów, wszystko działa jak należy. Poniżej uptime z aplikacji.
Screenshot_20230803_160150_SUPLA.jpg
You do not have the required permissions to view the files attached to this post.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
krycha88
Posts: 5575
Joined: Fri Nov 16, 2018 7:25 am
Been thanked: 5 times

Post

Mógłbym dla 38400 zwiększyć czas odczytu z 10 do 20s wtedy by nie było tego efektu ale może nie warto?
https://gui-generic-builder.supla.io/
User avatar
Robert Błaszczak
Posts: 5222
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra
Has thanked: 37 times
Been thanked: 27 times

Post

Jak dla mnie jest ok. Ale ja nie mam jak przetestować liczników 3-fazowych, które dają większą paczkę danych. Niech wypowiedzą się użytkownicy 3-fazowych.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl

Return to “GUI Generic”