KPOP w supla-device

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

Post

[email protected] wrote: Mon Jun 17, 2024 1:27 pm @klew pozamieniałem te porównania ale to nic nie zmieniło.

Zostawiłem tylko 6 x KPOP i efekt jest taki, że one się dodają ale w Cloud, pierwszy ma wszystko a dla kolejnych nie widać im jednostek ale nie ma tego komunikatu o niedostępnej konfiguracji, za to w Apce na Androida wszystko się zgadza.
Wczoraj jak sprawdzałem skupiłem się tylko na Cloud, a w apce też było wszystko zgodnie z konfiguracją z urządzenia.
Co więcej teraz w Cloud jak kliknę przywróć domyślną konfigurację to ustawiają się wartości podane z urządzenia. Także coś jest nie tak :P

Czas 10 sek to jest domyślna pętla no nie? bo ja tam nic innego nie robiłem dla tych czujników.
Te znaki < > i korekta ifów z millis, to detal. Jest szansa raz na 46 dni od uruchomienia, że coś pójdzie nie tak. Także to był tylko kosemtyczny komentarz.
Natomiast istotny problem to te 10 s opóźnienia.
Nie wiem co to jest "domyślna pętla". Normalnie loop wykonuje się bez opóźnień. Odczyt czujników jest robiony w iterateAlways i iterateConnected, więc te wszystkie metody (razem z getValue) się tam odpalają przy każdej iteracji.
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

klew wrote: Mon Jun 17, 2024 1:40 pm
[email protected] wrote: Mon Jun 17, 2024 1:27 pm @klew pozamieniałem te porównania ale to nic nie zmieniło.

Zostawiłem tylko 6 x KPOP i efekt jest taki, że one się dodają ale w Cloud, pierwszy ma wszystko a dla kolejnych nie widać im jednostek ale nie ma tego komunikatu o niedostępnej konfiguracji, za to w Apce na Androida wszystko się zgadza.
Wczoraj jak sprawdzałem skupiłem się tylko na Cloud, a w apce też było wszystko zgodnie z konfiguracją z urządzenia.
Co więcej teraz w Cloud jak kliknę przywróć domyślną konfigurację to ustawiają się wartości podane z urządzenia. Także coś jest nie tak :P

Czas 10 sek to jest domyślna pętla no nie? bo ja tam nic innego nie robiłem dla tych czujników.
Te znaki < > i korekta ifów z millis, to detal. Jest szansa raz na 46 dni od uruchomienia, że coś pójdzie nie tak. Także to był tylko kosemtyczny komentarz.
Natomiast istotny problem to te 10 s opóźnienia.
Nie wiem co to jest "domyślna pętla". Normalnie loop wykonuje się bez opóźnień. Odczyt czujników jest robiony w iterateAlways i iterateConnected, więc te wszystkie metody (razem z getValue) się tam odpalają przy każdej iteracji.
Miałem na myśli co ile z iterateAlways są wysyłane dane, z tego co widzę w GPM to jest 5 sekund by default.

log z tej wersji z 6 x KPOP:

Code: Select all

17:34:12.735 > Channel[0] initial caption set to 'Natężenie światła'
17:34:12.755 > GPM[0]: DefaultUnitAfterValue "lx"
17:34:12.759 > Channel[1] initial caption set to 'PM 0.5'
17:34:12.763 > GPM[1]: DefaultUnitAfterValue "μg/m³"
17:34:12.766 > GPM[1]: RefreshIntervalMs 60000 ms
17:34:12.770 > LittleFS: writing file 1_gpm_common
17:34:12.791 > GPM[1]: common config saved successfully
17:34:12.791 > GPM[2]: DefaultUnitAfterValue "μg/m³"
17:34:12.804 > Channel[2] initial caption set to 'PM 1.0'
17:34:12.808 > GPM[2]: RefreshIntervalMs 60000 ms
17:34:12.809 > LittleFS: writing file 2_gpm_common
17:34:12.842 > GPM[2]: common config saved successfully
17:34:12.842 > GPM[3]: DefaultUnitAfterValue "μg/m³"
17:34:12.855 > Channel[3] initial caption set to 'PM 2.5'
17:34:12.858 > GPM[3]: RefreshIntervalMs 60000 ms
17:34:12.858 > LittleFS: writing file 3_gpm_common
17:34:12.903 > GPM[3]: common config saved successfully
17:34:12.907 > GPM[4]: DefaultUnitAfterValue "μg/m³"
17:34:12.910 > Channel[4] initial caption set to 'PM 4.0'
17:34:12.910 > GPM[4]: RefreshIntervalMs 60000 ms
17:34:12.910 > LittleFS: writing file 4_gpm_common
17:34:12.959 > GPM[4]: common config saved successfully
17:34:12.959 > GPM[5]: DefaultUnitAfterValue "μg/m³"
17:34:12.971 > Channel[5] initial caption set to 'PM 10.0'
17:34:12.973 > GPM[5]: RefreshIntervalMs 60000 ms
17:34:12.973 > LittleFS: writing file 5_gpm_common
17:34:13.025 > GPM[5]: common config saved successfully
17:34:13.025 > [   305][E][Wire.cpp:381] setClock(): could not acquire lock
17:34:13.038 > Main storage not configured
17:34:13.039 > LittleFsConfig: init called on non empty database. Aborting
17:34:13.039 > [Main] setting config.
17:34:13.039 > Supla - starting initialization
17:34:13.039 > Main storage not configured
17:34:13.053 > Security level: Supla CA
17:34:13.055 > RemoteDeviceConfig: Registering field 0x00000010
17:34:13.059 > Clock: automaticTimeSync: 1
17:34:13.092 > GPM[0]: config loaded successfully
17:34:13.106 > GPM[0]: RefreshIntervalMs 5000 ms
17:34:13.142 > GPM[1]: config loaded successfully
17:34:13.142 > GPM[1]: RefreshIntervalMs 60000 ms
17:34:13.155 > Channel[1] c flag is set
17:34:13.191 > GPM[2]: config loaded successfully
17:34:13.193 > GPM[2]: RefreshIntervalMs 60000 ms
17:34:13.193 > Channel[2] c flag is set
17:34:13.223 > GPM[3]: config loaded successfully
17:34:13.223 > GPM[3]: RefreshIntervalMs 60000 ms
17:34:13.238 > Channel[3] c flag is set
17:34:13.259 > GPM[4]: config loaded successfully
17:34:13.273 > GPM[4]: RefreshIntervalMs 60000 ms
17:34:13.276 > Channel[4] c flag is set
17:34:13.304 > GPM[5]: config loaded successfully
17:34:13.307 > GPM[5]: RefreshIntervalMs 60000 ms
17:34:13.307 > Channel[5] c flag is set
17:34:13.325 > Turning ON SPS sensor
17:34:13.375 > measurements started
17:34:13.375 > Channel(1) value changed to 1.96
17:34:13.387 > Channel(2) value changed to 1481765933.47
17:34:13.389 > Channel(3) value changed to 1.96
17:34:13.390 > Channel(5) value changed to 2147483647.47
17:34:13.390 > GUID: 5937A923697E90D3482A30C7A796AF46
17:34:13.390 > Device name: SUPLA-ESP32
17:34:13.390 > Device software version: SDK 24.06.01-dev
17:34:13.406 > Initializing network layer
17:34:13.408 > [Wi-Fi] Network AP/hostname: SUPLA-ESP32-AC67B236E4B8
17:34:13.409 > Using Supla protocol version 23
17:34:13.409 > Current status: [5] SuplaDevice initialized
17:34:13.409 > Enter normal mode
17:34:13.421 > addClock: DEPRECATED
17:34:13.423 > WiFi: establishing connection with SSID: "Dom44A"
17:34:14.403 > Connected BSSID: 32:DE:4B:9D:F1:BC
17:34:14.406 > local IP: 192.168.0.131
17:34:14.410 > subnetMask: 255.255.255.0
17:34:14.412 > gatewayIP: 192.168.0.1
17:34:14.413 > Signal strength (RSSI): -61 dBm
17:34:14.440 > Establishing encrypted connection with: svr85.supla.org (port: 2016)
17:34:15.838 > Connected via IP 192.168.0.131
17:34:15.839 > SSL error: 48, PADLOCK - Input data should be aligned
17:34:15.839 > LAST STATE ADDED: PADLOCK - Input data should be aligned
17:34:15.839 > Connected to Supla Server
17:34:15.839 > Initializing SRPC (proto: 23)
17:34:15.856 > LAST STATE ADDED: Register in progress
17:34:15.859 > Current status: [10] Register in progress
17:34:15.861 > Send: [53 55 50 4C 41 17 01 00 00 00 4B 00 00 00 1A 03 00 00 72 61 66 61 6C 65 6B 6B 61 6C 77 61 6B 40 77 70 2E 70 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F9 39 9D 7E 4E E6 6B 92 1E 18 BD 9A 39 B2 B2 0E 59 37 A9 23 69 7E 90 D3 48 2A 30 C7 A7 96 AF 46 53 55 50 4C 41 2D 45 53 50 33 32 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:15.945 > CH[0], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 00 00 00 00 00 00]
17:34:15.962 > Send: [00 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:15.975 > CH[1], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 00 00 67 71 ff 3f]
17:34:15.975 > Send: [01 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 00 00 67 71 FF 3F 00 ]
17:34:15.995 > CH[2], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 40 0b 7d 14 d6 41]
17:34:16.008 > Send: [02 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 40 0B 7D 14 D6 41 00 ]
17:34:16.012 > CH[3], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 00 80 02 70 ff 3f]
17:34:16.028 > Send: [03 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 00 80 02 70 FF 3F 00 ]
17:34:16.040 > CH[4], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 00 00 00 00 00 00]
17:34:16.046 > Send: [04 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:16.062 > CH[5], type: 9000, FuncList: 0x0, function: 520, flags: 0x8010000, online, validityTimeSec: 0, icon: 0, value: [00 00 00 e0 08 aa 69 43]
17:34:16.074 > Send: [05 28 23 00 00 00 00 00 00 08 02 00 00 00 00 01 08 00 00 00 00 00 00 00 00 00 00 00 00 E0 08 AA 69 43 00 ]
17:34:16.075 > Send: [53 55 50 4C 41 ]
17:34:16.358 > Recv: [53 55 50 4C 41 17 01 00 00 00 46 00 00 00 07 00 00 00 03 00 00 00 78 18 01 53 55 50 4C 41 ]
17:34:16.367 > Device registered (activity timeout 120 s, server version: 24, server min version: 1)
17:34:16.374 > LAST STATE ADDED: Registered and ready
17:34:16.378 > Current status: [17] Registered and ready
17:34:16.382 > Changing activity timeout to 30 s
17:34:16.385 > Send: [53 55 50 4C 41 17 02 00 00 00 D2 00 00 00 01 00 00 00 1E ]
17:34:16.391 > Send: [53 55 50 4C 41 ]
17:34:16.393 > Send: [53 55 50 4C 41 17 03 00 00 00 80 02 00 00 1E 00 00 00 00 00 00 00 16 00 00 00 4E 61 74 C4 99 C5 BC 65 6E 69 65 20 C5 9B 77 69 61 74 C5 82 61 00 ]
17:34:16.406 > Send: [53 55 50 4C 41 ]
17:34:16.408 > Send: [53 55 50 4C 41 17 04 00 00 00 80 02 00 00 0F 00 00 00 01 00 00 00 07 00 00 00 50 4D 20 30 2E 35 00 ]
17:34:16.413 > Send: [53 55 50 4C 41 ]
17:34:16.413 > Send: [53 55 50 4C 41 17 05 00 00 00 80 02 00 00 0F 00 00 00 02 00 00 00 07 00 00 00 50 4D 20 31 2E 30 00 ]
17:34:16.429 > Send: [53 55 50 4C 41 ]
17:34:16.429 > Send: [53 55 50 4C 41 17 06 00 00 00 80 02 00 00 0F 00 00 00 03 00 00 00 07 00 00 00 50 4D 20 32 2E 35 00 ]
17:34:16.441 > Send: [53 55 50 4C 41 ]
17:34:16.443 > Send: [53 55 50 4C 41 17 07 00 00 00 80 02 00 00 0F 00 00 00 04 00 00 00 07 00 00 00 50 4D 20 34 2E 30 00 ]
17:34:16.445 > Send: [53 55 50 4C 41 ]
17:34:16.445 > Send: [53 55 50 4C 41 17 08 00 00 00 80 02 00 00 10 00 00 00 05 00 00 00 08 00 00 00 50 4D 20 31 30 2E 30 00 ]
17:34:16.463 > Send: [53 55 50 4C 41 ]
17:34:16.463 > Send: [53 55 50 4C 41 17 09 00 00 00 E0 01 00 00 00 00 00 00 ]
17:34:16.463 > Send: [53 55 50 4C 41 ]
17:34:16.474 > Recv: [53 55 50 4C 41 17 02 00 00 00 AD 02 00 00 1C 00 00 00 01 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 10 00 00 00 00 00 00 00 01 00 01 53 55 50 4C 41 ]
17:34:16.479 > Received new device config
17:34:16.490 > Processing AutomaticTimeSync config
17:34:16.493 > Sending device config result OK (1)
17:34:16.497 > Send: [53 55 50 4C 41 17 0A 00 00 00 B7 02 00 00 0A 00 00 00 01 00 00 00 00 00 00 00 00 00 ]
17:34:16.506 > Send: [53 55 50 4C 41 ]
17:34:16.508 > Send: [53 55 50 4C 41 17 0B 00 00 00 E0 01 00 00 00 00 00 00 ]
17:34:16.513 > Send: [53 55 50 4C 41 ]
17:34:16.513 > Recv: [53 55 50 4C 41 17 03 00 00 00 AA 02 00 00 74 00 00 00 00 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6C 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 6C 78 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:16.546 > Received SetChannelConfig for channel 0, function 520, config type 0, config size 108
17:34:16.559 > Channel[0]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:16.563 > GPM[0]: RefreshIntervalMs 5000 ms
17:34:16.563 > Sending channel config result OK (1)
17:34:16.573 > Send: [53 55 50 4C 41 17 0C 00 00 00 B4 02 00 00 03 00 00 00 01 00 00 ]
17:34:16.579 > Send: [53 55 50 4C 41 ]
17:34:16.580 > Recv: [53 55 50 4C 41 17 04 00 00 00 AB 02 00 00 01 00 00 00 00 53 55 50 4C 41 ]
17:34:16.580 > Received ChannelConfigFinished for channel [0]
17:34:16.593 > Recv: [53 55 50 4C 41 17 05 00 00 00 AA 02 00 00 74 00 00 00 01 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:16.630 > Received SetChannelConfig for channel 1, function 520, config type 0, config size 108
17:34:16.631 > Channel[1]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:16.644 > Channel[1]: Ignoring config (local config changed offline)
17:34:16.649 > Sending channel config result OK (1)
17:34:16.651 > Send: [53 55 50 4C 41 17 0D 00 00 00 B4 02 00 00 03 00 00 00 01 00 01 ]
17:34:16.659 > Send: [53 55 50 4C 41 ]
17:34:16.663 > Recv: [53 55 50 4C 41 17 06 00 00 00 AB 02 00 00 01 00 00 00 01 53 55 50 4C 41 ]
17:34:16.663 > Received ChannelConfigFinished for channel [1]
17:34:16.675 > Send: [53 55 50 4C 41 17 0E 00 00 00 A9 02 00 00 74 00 00 00 01 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:16.710 > Send: [53 55 50 4C 41 ]
17:34:16.712 > Channel[1]: Sending channel config
17:34:16.714 > Recv: [53 55 50 4C 41 17 07 00 00 00 AA 02 00 00 74 00 00 00 02 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:16.746 > Received SetChannelConfig for channel 2, function 520, config type 0, config size 108
17:34:16.759 > Channel[2]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:16.764 > Channel[2]: Ignoring config (local config changed offline)
17:34:16.764 > Sending channel config result OK (1)
17:34:16.775 > Send: [53 55 50 4C 41 17 0F 00 00 00 B4 02 00 00 03 00 00 00 01 00 02 ]
17:34:16.782 > Send: [53 55 50 4C 41 ]
17:34:16.782 > Recv: [53 55 50 4C 41 17 08 00 00 00 AB 02 00 00 01 00 00 00 02 53 55 50 4C 41 ]
17:34:16.791 > Received ChannelConfigFinished for channel [2]
17:34:16.795 > Send: [53 55 50 4C 41 17 10 00 00 00 A9 02 00 00 74 00 00 00 02 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:16.831 > Send: [53 55 50 4C 41 ]
17:34:16.831 > Channel[2]: Sending channel config
17:34:16.831 > Recv: [53 55 50 4C 41 17 09 00 00 00 AA 02 00 00 74 00 00 00 03 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:16.873 > Received SetChannelConfig for channel 3, function 520, config type 0, config size 108
17:34:16.879 > Channel[3]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:16.879 > Channel[3]: Ignoring config (local config changed offline)
17:34:16.892 > Sending channel config result OK (1)
17:34:16.896 > Send: [53 55 50 4C 41 17 11 00 00 00 B4 02 00 00 03 00 00 00 01 00 03 ]
17:34:16.898 > Send: [53 55 50 4C 41 ]
17:34:16.898 > Recv: [53 55 50 4C 41 17 0A 00 00 00 AB 02 00 00 01 00 00 00 03 53 55 50 4C 41 ]
17:34:16.911 > Received ChannelConfigFinished for channel [3]
17:34:16.913 > Send: [53 55 50 4C 41 17 12 00 00 00 A9 02 00 00 74 00 00 00 03 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:16.947 > Send: [53 55 50 4C 41 ]
17:34:16.947 > Channel[3]: Sending channel config
17:34:16.957 > Recv: [53 55 50 4C 41 17 0B 00 00 00 AA 02 00 00 74 00 00 00 04 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:16.994 > Received SetChannelConfig for channel 4, function 520, config type 0, config size 108
17:34:17.000 > Channel[4]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.008 > Channel[4]: Ignoring config (local config changed offline)
17:34:17.013 > Sending channel config result OK (1)
17:34:17.016 > Send: [53 55 50 4C 41 17 13 00 00 00 B4 02 00 00 03 00 00 00 01 00 04 ]
17:34:17.023 > Send: [53 55 50 4C 41 ]
17:34:17.024 > Recv: [53 55 50 4C 41 17 0C 00 00 00 AB 02 00 00 01 00 00 00 04 53 55 50 4C 41 ]
17:34:17.032 > Received ChannelConfigFinished for channel [4]
17:34:17.032 > Send: [53 55 50 4C 41 17 14 00 00 00 A9 02 00 00 74 00 00 00 04 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:17.064 > Send: [53 55 50 4C 41 ]
17:34:17.073 > Channel[4]: Sending channel config
17:34:17.077 > Recv: [53 55 50 4C 41 17 0D 00 00 00 AA 02 00 00 74 00 00 00 05 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.115 > Received SetChannelConfig for channel 5, function 520, config type 0, config size 108
17:34:17.116 > Channel[5]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.127 > Channel[5]: Ignoring config (local config changed offline)
17:34:17.130 > Sending channel config result OK (1)
17:34:17.130 > Send: [53 55 50 4C 41 17 15 00 00 00 B4 02 00 00 03 00 00 00 01 00 05 ]
17:34:17.143 > Send: [53 55 50 4C 41 ]
17:34:17.146 > Recv: [53 55 50 4C 41 17 0E 00 00 00 AB 02 00 00 01 00 00 00 05 53 55 50 4C 41 ]
17:34:17.146 > Received ChannelConfigFinished for channel [5]
17:34:17.157 > Send: [53 55 50 4C 41 17 16 00 00 00 A9 02 00 00 74 00 00 00 05 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]
17:34:17.193 > Send: [53 55 50 4C 41 ]
17:34:17.195 > Channel[5]: Sending channel config
17:34:17.198 > Recv: [53 55 50 4C 41 17 0F 00 00 00 DC 00 00 00 03 00 00 00 1E 0A F0 53 55 50 4C 41 ]
17:34:17.198 > Activity timeout set to 30 s
17:34:17.209 > Recv: [53 55 50 4C 41 17 10 00 00 00 8A 02 00 00 1F 00 00 00 00 00 00 00 1A 16 00 00 00 4E 61 74 C4 99 C5 BC 65 6E 69 65 20 C5 9B 77 69 61 74 C5 82 61 00 53 55 50 4C 41 ]
17:34:17.223 > Receieved setChannelCaptionResult for channel [0]
17:34:17.227 > Recv: [53 55 50 4C 41 17 11 00 00 00 8A 02 00 00 10 00 00 00 01 00 00 00 1A 07 00 00 00 50 4D 20 30 2E 35 00 53 55 50 4C 41 ]
17:34:17.231 > Receieved setChannelCaptionResult for channel [1]
17:34:17.244 > Recv: [53 55 50 4C 41 17 12 00 00 00 8A 02 00 00 10 00 00 00 02 00 00 00 1A 07 00 00 00 50 4D 20 31 2E 30 00 53 55 50 4C 41 ]
17:34:17.248 > Receieved setChannelCaptionResult for channel [2]
17:34:17.259 > Recv: [53 55 50 4C 41 17 13 00 00 00 8A 02 00 00 10 00 00 00 03 00 00 00 1A 07 00 00 00 50 4D 20 32 2E 35 00 53 55 50 4C 41 ]
17:34:17.264 > Receieved setChannelCaptionResult for channel [3]
17:34:17.275 > Recv: [53 55 50 4C 41 17 14 00 00 00 8A 02 00 00 10 00 00 00 04 00 00 00 1A 07 00 00 00 50 4D 20 34 2E 30 00 53 55 50 4C 41 ]
17:34:17.282 > Receieved setChannelCaptionResult for channel [4]
17:34:17.290 > Recv: [53 55 50 4C 41 17 15 00 00 00 8A 02 00 00 11 00 00 00 05 00 00 00 1A 08 00 00 00 50 4D 20 31 30 2E 30 00 53 55 50 4C 41 ]
17:34:17.298 > Receieved setChannelCaptionResult for channel [5]
17:34:17.298 > Recv: [53 55 50 4C 41 17 16 00 00 00 EA 01 00 00 1A 00 00 00 E8 07 06 11 02 11 22 10 0E 00 00 00 45 75 72 6F 70 65 2F 57 61 72 73 61 77 00 53 55 50 4C 41 ]
17:34:17.315 > Current local time: 1970-1-1 0:0:4
17:34:17.315 > Clock: time diff (system-new): -1718645652 s
17:34:17.326 > Clock: new local time: 2024-6-17 17:34:16
17:34:17.330 > Recv: [53 55 50 4C 41 17 17 00 00 00 EA 01 00 00 1A 00 00 00 E8 07 06 11 02 11 22 10 0E 00 00 00 45 75 72 6F 70 65 2F 57 61 72 73 61 77 00 53 55 50 4C 41 ]
17:34:17.344 > Current local time: 2024-6-17 17:34:16
17:34:17.347 > Recv: [53 55 50 4C 41 17 18 00 00 00 B3 02 00 00 03 00 00 00 01 00 01 53 55 50 4C 41 ]
17:34:17.348 > Channel[1] Set channel config succeeded (1)
17:34:17.359 > Recv: [53 55 50 4C 41 17 19 00 00 00 AA 02 00 00 74 00 00 00 01 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.395 > Received SetChannelConfig for channel 1, function 520, config type 0, config size 108
17:34:17.397 > Channel[1]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.410 > GPM[1]: RefreshIntervalMs 60000 ms
17:34:17.413 > Sending channel config result OK (1)
17:34:17.416 > Send: [53 55 50 4C 41 17 17 00 00 00 B4 02 00 00 03 00 00 00 01 00 01 ]
17:34:17.416 > Send: [53 55 50 4C 41 ]
17:34:17.426 > Recv: [53 55 50 4C 41 17 1A 00 00 00 B3 02 00 00 03 00 00 00 01 00 02 53 55 50 4C 41 ]
17:34:17.430 > Channel[2] Set channel config succeeded (1)
17:34:17.430 > Recv: [53 55 50 4C 41 17 1B 00 00 00 AA 02 00 00 74 00 00 00 02 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.475 > Received SetChannelConfig for channel 2, function 520, config type 0, config size 108
17:34:17.479 > Channel[2]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.479 > GPM[2]: RefreshIntervalMs 60000 ms
17:34:17.491 > Sending channel config result OK (1)
17:34:17.495 > Send: [53 55 50 4C 41 17 18 00 00 00 B4 02 00 00 03 00 00 00 01 00 02 ]
17:34:17.497 > Send: [53 55 50 4C 41 ]
17:34:17.497 > Recv: [53 55 50 4C 41 17 1C 00 00 00 B3 02 00 00 03 00 00 00 01 00 03 53 55 50 4C 41 ]
17:34:17.513 > Channel[3] Set channel config succeeded (1)
17:34:17.513 > Recv: [53 55 50 4C 41 17 1D 00 00 00 AA 02 00 00 74 00 00 00 03 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.547 > Received SetChannelConfig for channel 3, function 520, config type 0, config size 108
17:34:17.563 > Channel[3]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.563 > GPM[3]: RefreshIntervalMs 60000 ms
17:34:17.563 > Sending channel config result OK (1)
17:34:17.576 > Send: [53 55 50 4C 41 17 19 00 00 00 B4 02 00 00 03 00 00 00 01 00 03 ]
17:34:17.580 > Send: [53 55 50 4C 41 ]
17:34:17.580 > Recv: [53 55 50 4C 41 17 1E 00 00 00 B3 02 00 00 03 00 00 00 01 00 04 53 55 50 4C 41 ]
17:34:17.594 > Channel[4] Set channel config succeeded (1)
17:34:17.598 > Recv: [53 55 50 4C 41 17 1F 00 00 00 AA 02 00 00 74 00 00 00 04 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.631 > Received SetChannelConfig for channel 4, function 520, config type 0, config size 108
17:34:17.643 > Channel[4]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.649 > GPM[4]: RefreshIntervalMs 60000 ms
17:34:17.649 > Sending channel config result OK (1)
17:34:17.649 > Send: [53 55 50 4C 41 17 1A 00 00 00 B4 02 00 00 03 00 00 00 01 00 04 ]
17:34:17.661 > Send: [53 55 50 4C 41 ]
17:34:17.664 > Recv: [53 55 50 4C 41 17 20 00 00 00 B3 02 00 00 03 00 00 00 01 00 05 53 55 50 4C 41 ]
17:34:17.664 > Channel[5] Set channel config succeeded (1)
17:34:17.676 > Recv: [53 55 50 4C 41 17 21 00 00 00 AA 02 00 00 74 00 00 00 05 08 02 00 00 00 6C 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 EA 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 CE BC 67 2F 6D C2 B3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 53 55 50 4C 41 ]
17:34:17.713 > Received SetChannelConfig for channel 5, function 520, config type 0, config size 108
17:34:17.714 > Channel[5]: handleChannelConfig, func 520, configtype 0, configsize 108
17:34:17.726 > GPM[5]: RefreshIntervalMs 60000 ms
17:34:17.730 > Sending channel config result OK (1)
17:34:17.733 > Send: [53 55 50 4C 41 17 1B 00 00 00 B4 02 00 00 03 00 00 00 01 00 05 ]
17:34:17.734 > Send: [53 55 50 4C 41 ]
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

[email protected] Zrób taki test - zakomentuj 2 linie kodu z attachInterrupt w WindSensor i Anemometr bodajże?
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

vajera wrote: Mon Jun 17, 2024 4:56 pm [email protected] Zrób taki test - zakomentuj 2 linie kodu z attachInterrupt w WindSensor i Anemometr bodajże?
Zrobiłem tak wcześniej, zakomentowałem wszystko prócz KPOP
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

[email protected] wrote: Mon Jun 17, 2024 5:16 pm Zrobiłem tak wcześniej, zakomentowałem wszystko prócz KPOP
OK, czyli to jednak nie przerwania - miałem przez nie podobne opóźnienia.
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

vajera wrote: Mon Jun 17, 2024 5:28 pm
[email protected] wrote: Mon Jun 17, 2024 5:16 pm Zrobiłem tak wcześniej, zakomentowałem wszystko prócz KPOP
OK, czyli to jednak nie przerwania - miałem przez nie podobne opóźnienia.
Znaczy się ja tu widzę dwa problemy , ilość czujników i przerwania nie pomagają w konfiguracji bo dodają opóźnienia ,ale po wycięciu ich i zostawieniu tylko kilku KPOP Cloud pokazuje nie spójny stan bo pierwszy kanał jest Ok, następne istnieją ale jakby bez konfiguracji , mimo że można kliknąć przywróć domyślne które już są tymi co zostały przesłane z Esp .

Jesteś w stanie spróbować zrobić kilka razy KPOP jak ja ?
User avatar
vajera
Posts: 7293
Joined: Wed Oct 31, 2018 7:58 am
Location: Biedrusko
Has thanked: 291 times
Been thanked: 161 times

Post

[email protected] wrote: Mon Jun 17, 2024 5:55 pm
Znaczy się ja tu widzę dwa problemy , ilość czujników i przerwania nie pomagają w konfiguracji bo dodają opóźnienia ,ale po wycięciu ich i zostawieniu tylko kilku KPOP Cloud pokazuje nie spójny stan bo pierwszy kanał jest Ok, następne istnieją ale jakby bez konfiguracji , mimo że można kliknąć przywróć domyślne które już są tymi co zostały przesłane z Esp .

Jesteś w stanie spróbować zrobić kilka razy KPOP jak ja ?
Spróbuję, ale spróbuj najpierw tę sekcję kodu:

Code: Select all

new Supla::Sensor::DS18B20(4);
  new Supla::Sensor::HDC1080();
  rainSensor = new Supla::Sensor::RainSensor(2, 2.5, 300);
  new Supla::Sensor::LightSensor();
  new Supla::Sensor::MS5611Sensor(248);
  new Supla::Sensor::Anemometr(15, 1, 1);
  new Supla::Sensor::WindDirectionSensor(18, 15);
  Supla::Sensor::SPS30_X *sps30 = new Supla::Sensor::SPS30_X();
  auto spsPM005 = new Supla::Sensor::SPS30_PM005(sps30);
  auto spsPM01 = new Supla::Sensor::SPS30_PM01(sps30);
  auto spsPM025 = new Supla::Sensor::SPS30_PM025(sps30);
  auto spsPM04 = new Supla::Sensor::SPS30_PM04(sps30);
  auto spsPM10 = new Supla::Sensor::SPS30_PM10(sps30);
wstawić po:

Code: Select all

Supla::Storage::Init();

  auto cfg = Supla::Storage::ConfigInstance();
a przed

Code: Select all

SuplaDevice.begin(...
Bramka Zigbee <=> SUPLA
Więcej informacji tutaj:
https://forum.supla.org/viewforum.php?f=127
FAQ https://forum.supla.org/viewtopic.php?t=17277
User avatar
klew
Posts: 13911
Joined: Thu Jun 27, 2019 12:16 pm
Location: Wrocław
Has thanked: 136 times
Been thanked: 137 times

Post

[email protected] wrote: Mon Jun 17, 2024 5:55 pm
vajera wrote: Mon Jun 17, 2024 5:28 pm
[email protected] wrote: Mon Jun 17, 2024 5:16 pm Zrobiłem tak wcześniej, zakomentowałem wszystko prócz KPOP
OK, czyli to jednak nie przerwania - miałem przez nie podobne opóźnienia.
Znaczy się ja tu widzę dwa problemy , ilość czujników i przerwania nie pomagają w konfiguracji bo dodają opóźnienia ,ale po wycięciu ich i zostawieniu tylko kilku KPOP Cloud pokazuje nie spójny stan bo pierwszy kanał jest Ok, następne istnieją ale jakby bez konfiguracji , mimo że można kliknąć przywróć domyślne które już są tymi co zostały przesłane z Esp .

Jesteś w stanie spróbować zrobić kilka razy KPOP jak ja ?
Wyrzuć na razie z kodu te kanały, co robią ten printy:

Code: Select all

15:43:02.502 > MS5611 getting pres.
15:43:07.498 > Speed: 0.00
15:43:12.501 > Wind direction: 18.60
Wygląda jakby one blokowały główną pętlę na 10 s (albo blokuje coś innego, co nie robi printów, ale wykonuje się między nimi).
Najlepsze suple dla Twojego domu :mrgreen:
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

klew wrote: Mon Jun 17, 2024 8:29 pm
[email protected] wrote: Mon Jun 17, 2024 5:55 pm
vajera wrote: Mon Jun 17, 2024 5:28 pm

OK, czyli to jednak nie przerwania - miałem przez nie podobne opóźnienia.
Znaczy się ja tu widzę dwa problemy , ilość czujników i przerwania nie pomagają w konfiguracji bo dodają opóźnienia ,ale po wycięciu ich i zostawieniu tylko kilku KPOP Cloud pokazuje nie spójny stan bo pierwszy kanał jest Ok, następne istnieją ale jakby bez konfiguracji , mimo że można kliknąć przywróć domyślne które już są tymi co zostały przesłane z Esp .

Jesteś w stanie spróbować zrobić kilka razy KPOP jak ja ?
Wyrzuć na razie z kodu te kanały, co robią ten printy:

Code: Select all

15:43:02.502 > MS5611 getting pres.
15:43:07.498 > Speed: 0.00
15:43:12.501 > Wind direction: 18.60
Wygląda jakby one blokowały główną pętlę na 10 s (albo blokuje coś innego, co nie robi printów, ale wykonuje się między nimi).
Zrobiłem to już 😤,zobacz log wyżej gdzie zostawiłem tylko 6x KPOP
[email protected]
Posts: 1586
Joined: Mon Feb 06, 2023 8:56 am
Has thanked: 18 times
Been thanked: 26 times

Post

vajera wrote: Mon Jun 17, 2024 8:20 pm
[email protected] wrote: Mon Jun 17, 2024 5:55 pm
Znaczy się ja tu widzę dwa problemy , ilość czujników i przerwania nie pomagają w konfiguracji bo dodają opóźnienia ,ale po wycięciu ich i zostawieniu tylko kilku KPOP Cloud pokazuje nie spójny stan bo pierwszy kanał jest Ok, następne istnieją ale jakby bez konfiguracji , mimo że można kliknąć przywróć domyślne które już są tymi co zostały przesłane z Esp .

Jesteś w stanie spróbować zrobić kilka razy KPOP jak ja ?
Spróbuję, ale spróbuj najpierw tę sekcję kodu:

Code: Select all

new Supla::Sensor::DS18B20(4);
  new Supla::Sensor::HDC1080();
  rainSensor = new Supla::Sensor::RainSensor(2, 2.5, 300);
  new Supla::Sensor::LightSensor();
  new Supla::Sensor::MS5611Sensor(248);
  new Supla::Sensor::Anemometr(15, 1, 1);
  new Supla::Sensor::WindDirectionSensor(18, 15);
  Supla::Sensor::SPS30_X *sps30 = new Supla::Sensor::SPS30_X();
  auto spsPM005 = new Supla::Sensor::SPS30_PM005(sps30);
  auto spsPM01 = new Supla::Sensor::SPS30_PM01(sps30);
  auto spsPM025 = new Supla::Sensor::SPS30_PM025(sps30);
  auto spsPM04 = new Supla::Sensor::SPS30_PM04(sps30);
  auto spsPM10 = new Supla::Sensor::SPS30_PM10(sps30);
wstawić po:

Code: Select all

Supla::Storage::Init();

  auto cfg = Supla::Storage::ConfigInstance();
a przed

Code: Select all

SuplaDevice.begin(...
Nic to nie zmienia. Ten SPS30_X to jest wydmuszka zwracająca random(). Dla mnie jest to powtarzalne, że jak jest wiele KPOP to Cloud nie do końca łapie ich ustawienia i nie pokazuje jednostek ale np. Interwał odświeżania jest OK, a po kliknięciu "Przywróć domyślne" jednostki też się znajdują.

Code: Select all

#include <Arduino.h>
#include <SuplaDevice.h>
#include <supla/sensor/DS18B20.h>
#include <Wire.h>
#include <HDC1080.h>
#include <MS5611Sensor.h>
#include <supla/sensor/rain.h>
#include <supla/sensor/wind.h>
#include <supla/sensor/pressure.h>
#include <supla/channel_element.h>
#include <supla/network/esp_wifi.h>
#include <LightSensor.h>
#include <RainSensor.h>
#include <supla/clock/clock.h>
#include <Anemometr.h>
#include <WindDirection.h>
#include <SPS30Sensor.h>
#include <VoltageSensor.h>
#include <supla/storage/littlefs_config.h>
#include <supla/network/esp_web_server.h>
#include <supla/network/html/device_info.h>
#include <supla/network/html/wifi_parameters.h>
#include <supla/network/html/protocol_parameters.h>
#include <supla/device/supla_ca_cert.h>
#include <LittleFS.h>
Supla::Clock suplaClock;
Supla::Sensor::RainSensor *rainSensor;
bool resetOncePerHour = true;
Supla::ESPWifi wifi(wifiSSID, wifiPass);
Supla::LittleFsConfig configSupla;

void setup()
{
 //configSupla.removeAll();
  Serial.begin(115200);
  // Replace the falowing GUID with value that you can retrieve from https://www.supla.org/arduino/get-guid
  char GUID[SUPLA_GUID_SIZE] = {0x0};

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

 Supla::Storage::Init();

  auto cfg = Supla::Storage::ConfigInstance();

  if (cfg)
  {
    char buf[100];
    if (!cfg->getGUID(buf))
    {
      Serial.println("[Main] setting config.");
      cfg->setGUID(GUID);
      cfg->setAuthKey(AUTHKEY);
      cfg->setWiFiSSID(wifiSSID);
      cfg->setWiFiPassword(wifiPass);
      cfg->setSuplaServer(serverVariable);
      cfg->setEmail(emailVariable);
    }
    else
    {
      Serial.println("[Main] Can load guid.");
    }
  }
  else
  {
    Serial.println("[Main] Config not found.");
  }

  Supla::Sensor::SPS30_X *sps30 = new Supla::Sensor::SPS30_X();
  auto spsPM005 = new Supla::Sensor::SPS30_PM005(sps30);
  auto spsPM01 = new Supla::Sensor::SPS30_PM01(sps30);
  auto spsPM025 = new Supla::Sensor::SPS30_PM025(sps30);
  auto spsPM04 = new Supla::Sensor::SPS30_PM04(sps30);
  auto spsPM10 = new Supla::Sensor::SPS30_PM10(sps30);

  Wire.setClock(100000);

 
  
  SuplaDevice.setSuplaCACert(suplaCACert);
  SuplaDevice.setSupla3rdPartyCACert(supla3rdCACert);
  SuplaDevice.begin(GUID,           // Global Unique Identifier
                    serverVariable, // SUPLA server address
                    emailVariable,  // Email address used to login to Supla Cloud
                    AUTHKEY);
  SuplaDevice.addClock(new Supla::Clock);
}

void loop()
{
  SuplaDevice.iterate();
}

Return to “supla-dev”