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

Z J
Posts: 128
Joined: Wed Feb 23, 2022 8:25 am

Post

Wcześniej pisał, że na Wemos D1 mini, czyli 8266, mhmm
krycha88
Posts: 5465
Joined: Fri Nov 16, 2018 7:25 am

Post

Z J wrote: Tue Dec 13, 2022 5:47 pm Wcześniej pisał, że na Wemos D1 mini, czyli 8266, mhmm
no to sprawdź GPIO13- RX GPIO15-TX tylko tutaj może być problem ze startem ESP jeżeli będziesz miał podłączony konwerter.
https://gui-generic-builder.supla.io/
Z J
Posts: 128
Joined: Wed Feb 23, 2022 8:25 am

Post

krycha88 wrote: Tue Dec 13, 2022 5:55 pm
Z J wrote: Tue Dec 13, 2022 5:47 pm Wcześniej pisał, że na Wemos D1 mini, czyli 8266, mhmm
no to sprawdź GPIO13- RX GPIO15-TX tylko tutaj może być problem ze startem ESP jeżeli będziesz miał podłączony konwerter.
Te same objawy, trudno najwyżej na 32 będzie :)
User avatar
Robert Błaszczak
Posts: 4519
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra

Post

Soft testowany na Wemos D1 mini (oryginalny Wemos). RX - GPIO13, TX - GPIO15. Działa bez żadnego problemu. Wszystko jest podłączone i startuje bez problemu.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
krycha88
Posts: 5465
Joined: Fri Nov 16, 2018 7:25 am

Post

Z J wrote: Tue Dec 13, 2022 6:08 pm Te same objawy, trudno najwyżej na 32 będzie :)
Ustaw jak możesz GPIO5 oraz GPIO4 wtedy będziesz mógł odczytać dane z UART - bardzo mnie zastanawia ten restart urządzenia o którym piszesz. Podeślij wtedy tutaj logi z urządzenia (prędkość 74880).
https://gui-generic-builder.supla.io/
Z J
Posts: 128
Joined: Wed Feb 23, 2022 8:25 am

Post

krycha88 wrote: Tue Dec 13, 2022 7:28 pm
Z J wrote: Tue Dec 13, 2022 6:08 pm Te same objawy, trudno najwyżej na 32 będzie :)
Ustaw jak możesz GPIO5 oraz GPIO4 wtedy będziesz mógł odczytać dane z UART - bardzo mnie zastanawia ten restart urządzenia o którym piszesz. Podeślij wtedy tutaj logi z urządzenia (prędkość 74880).
RX IO5, TX IO4, dane z GUI
Initializing network layer
Network AP/hostname: 8266-84F3EB0D84AD
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
IMPROV�
IMPROV�
WiFi: establishing connection with SSID: "SSID"
Connected BSSID: 04:8D:38:BA:E2:1C
local IP: 192.168.1.23
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -70 dBm
IMPROV�
IMPROVhttp://192.168.1.23�
Establishing NOT encrypted connection with: svr.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 19, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
Save key: 0 Value: V���J�����è
Save key: 1 Value: 5"�����璏�
Save key: 2 Value:
Save key: 3 Value:
Save key: 4 Value:
Save key: 5 Value:
Save key: 6 Value: 8266
Save key: 7 Value: svr.supla.org
Save key: 8 Value:
Save key: 21 Value: 1
Save key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 25 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 26 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Save key: 27 Value: 0,0,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 28 Value: 1,40,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 29 Value: 1,39,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 37 Value: 0,0,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 39 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Save key: 58 Value: 1
Save key: 59 Value: 0
Save key: 61 Value: 0
Save key: 80 Value: 0
WiFi station disconnected
��*�P*V��ET����T���*�u�U+UZ�Z�T���TQT�UQ��jP���u�����ZT�(UE����QR�Eu����*���jPE*�u��E+���T)UZV�R�E�j*QR�E���)ETU�Config read
Key: 0 Value: V���J�����è
Key: 1 Value: 5"�����璏�
Key: 2 Value:
Key: 3 Value:
Key: 4 Value:
Key: 5 Value:
Key: 6 Value: 8266
Key: 7 Value: svr.supla.org
Key: 8 Value:
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: 1
Key: 22 Value:
Key: 23 Value:
Key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 25 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 26 Value: ,,0,,,,,,,,,,,,,,,1,,,,,,,,,,,,,,,,,
Key: 27 Value: 0,0,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 28 Value: 1,40,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 29 Value: 1,39,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 30 Value:
Key: 31 Value:
Key: 32 Value:
Key: 33 Value:
Key: 34 Value:
Key: 35 Value:
Key: 36 Value:
Key: 37 Value: 0,0,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
Key: 38 Value:
Key: 39 Value: 0,0,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
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: 0
Key: 60 Value:
Key: 61 Value: 0
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:
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...
Initializing network layer
Network AP/hostname: 8266-84F3EB0D84AD
Using Supla protocol version 16
Current status: [5] SuplaDevice initialized
Enter normal mode
WiFi: establishing connection with SSID: "SSID"
Connected BSSID: 04:8D:38:BA:E2:1C
local IP: 192.168.1.23
subnetMask: 255.255.255.0
gatewayIP: 192.168.1.1
Signal strength (RSSI): -74 dBm
IMPROV�
IMPROVhttp://192.168.1.23�
Establishing NOT encrypted connection with: svr.supla.org (port: 2015)
Connected to Supla Server
Current status: [10] Register in progress
Device registered (activity timeout 120 s, server version: 19, server min version: 1)
Current status: [17] Registered and ready
Changing activity timeout to 30
Activity timeout set to 30 s
>
i dalej, wydaje mi się co te 30 sekund reset licznika bez danych w konsoli.
SSID, password i adres usunąłem :)
Jeszcze doszło to:
Wrote 7 bytes to storage at 0
Commit
Last edited by Z J on Tue Dec 13, 2022 8:52 pm, edited 1 time in total.
Z J
Posts: 128
Joined: Wed Feb 23, 2022 8:25 am

Post

Z jakiej biblioteki korzystamy? Mógłbym pogrzebać w międzyczasie.
User avatar
Robert Błaszczak
Posts: 4519
Joined: Sat Dec 22, 2018 8:55 pm
Location: Zielona Góra

Post

Ja testowo korzystałem z tej biblioteki: https://github.com/reaper7/SDM_Energy_Meter
Myślę, że w GG jest użyta dokładnie ta sama biblioteka.
Pozdrawiam
Robert Błaszczak


Moja prywatna strona: www.blaszczak.pl
User avatar
iborkim
Posts: 85
Joined: Sat Jun 11, 2016 10:59 am

Post

Nie można wygenerować kompilacji dla esp8266 i esp32.

Code: Select all

Błąd generowania
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino: In function 'void setup()':
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino:413:19: error: 'smd120' is not a member of 'Supla::GUI'
  413 |       Supla::GUI::smd120->setRefreshRate(10);
      |                   ^~~~~~
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino:416:19: error: 'smd120' is not a member of 'Supla::GUI'
  416 |       Supla::GUI::smd120->setRefreshRate(60);
      |                   ^~~~~~
Multiple libraries were found for "SoftwareSerial.h"
  Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
  Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
BOARD_NAME
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DBEARSSL_SSL_BASIC -DSUPLA_CONFIG -DSUPLA_ENABLE_GUI -DSUPLA_MODBUS_SDM -DSUPLA_OTA
Wziąłem udział w Supla Offline Party 2024
krycha88
Posts: 5465
Joined: Fri Nov 16, 2018 7:25 am

Post

iborkim wrote: Thu Jan 05, 2023 12:30 pm Nie można wygenerować kompilacji dla esp8266 i esp32.

Code: Select all

Błąd generowania
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino: In function 'void setup()':
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino:413:19: error: 'smd120' is not a member of 'Supla::GUI'
  413 |       Supla::GUI::smd120->setRefreshRate(10);
      |                   ^~~~~~
GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60/GUI-Generic_bv4.22_gv5.6.3_pl_698f59f4d24273820e7995ef13fcdc60.ino:416:19: error: 'smd120' is not a member of 'Supla::GUI'
  416 |       Supla::GUI::smd120->setRefreshRate(60);
      |                   ^~~~~~
Multiple libraries were found for "SoftwareSerial.h"
  Used: .arduino15/packages/esp8266/hardware/esp8266/3.0.2/libraries/SoftwareSerial
  Not used: /var/www/html/github/GUI-Generic/lib/espsoftwareserial
Error during build: exit status 1
xxxxxxxxxxxxxxxxxx
BOARD esp8266:esp8266:generic:eesz=1M64,xtal=160
BOARD_NAME
TEMPLATE_JSON
JSON_DEFINITION
OPTIONS -DATOMIC_FS_UPDATE -DMIMETYPE_MINIMAL -DBEARSSL_SSL_BASIC -DSUPLA_CONFIG -DSUPLA_ENABLE_GUI -DSUPLA_MODBUS_SDM -DSUPLA_OTA
Poprawiłem.
https://gui-generic-builder.supla.io/

Return to “GUI Generic”