Licznik impulsów
Serwer zapisuje stan co 10min. Urządzenie powinno zapisywać stan co kilkadziesiąt sekund.
Założyłem sobie czujnik odbiciowy do licznika wody ale pojawiają mi się przekłamania. Chciałem wprowadzić limit czasu na jakieś 200ms ale zauważyłem że ten parametr nie reaguje. Nawet przy 400, zlicza jakieś mignięcia po parę ms. Ewentualnie coś nie tak mam ustawione ?
Fajnie też przy tej okazji dodać jednostki np. [ms] przy parametrach jakie możemy edytować
Fajnie też przy tej okazji dodać jednostki np. [ms] przy parametrach jakie możemy edytować
Jeszcze jeden temat do licznika impulsów: czy resetowanie z poziomu cloud było dodane do GG ?
Także jakby są dwa tematy:
1. limit czasu (rozumiem że to debounce): brak reakcji na zmiany wartości i działa chyba na każde kilka ms. Można też dodać jednostkę do strony konfiguracyjnej [ms]
2. Brak możliwości resetu licznika z poziomu cloud.
Także jakby są dwa tematy:
1. limit czasu (rozumiem że to debounce): brak reakcji na zmiany wartości i działa chyba na każde kilka ms. Można też dodać jednostkę do strony konfiguracyjnej [ms]
2. Brak możliwości resetu licznika z poziomu cloud.
Dodam to do bibliotekiLukaszH pisze: ↑ndz lis 27, 2022 10:50 am Jeszcze jeden temat do licznika impulsów: czy resetowanie z poziomu cloud było dodane do GG ?
Także jakby są dwa tematy:
1. limit czasu (rozumiem że to debounce): brak reakcji na zmiany wartości i działa chyba na każde kilka ms. Można też dodać jednostkę do strony konfiguracyjnej [ms]
2. Brak możliwości resetu licznika z poziomu cloud.
Widzimy się na Supla Offline Party vol. 2
Poprawiłem, użyłem typu zmiennej uint8_t więc maksymalnie mogłeś podać 255 oraz dodałem jednostkę [ms].
https://gui-generic-builder.supla.io/
właśnie testowałem 5.2.6 ustawiając zarówno 500-1000ms jak i 250ms. Niestety każdy mikro impuls jest liczony.
Poprawa biblioteki tyczy się resetu z poziomu cloud ?
Kod: Zaznacz cały
17:55:03.064 -> tEutEu|E⸮c_GuxF4UY⸮5!T⸮Q
17:55:03.064 -> ⸮k5J⸮
17:55:03.064 -> ets Jan 8 2013,rst cause:2, boot mode:(3,6)
17:55:03.064 ->
17:55:03.064 -> load 0x4010f000, len 3460, room 16
17:55:03.064 -> tail 4
17:55:03.064 -> chksum 0xcc
17:55:03.064 -> load 0x3fff20b8, len 40, room 4
17:55:03.111 -> tail 4
17:55:03.111 -> chksum 0xc9
17:55:03.111 -> csum 0xc9
17:55:03.111 -> v00094170
17:55:03.111 -> ~ld
17:55:03.159 -> Config read
17:55:03.159 -> Key: 0 Value: N⸮⸮"⸮D`J⸮qݏ⸮Z
17:55:03.159 -> Key: 1 Value: ve⸮⸮⸮⸮.⸮"⸮6⸮ ⸮
17:55:03.196 -> Key: 2 Value: xxxxxx
17:55:03.196 -> Key: 3 Value: xxxxxx
17:55:03.196 -> Key: 4 Value: admin
17:55:03.196 -> Key: 5 Value: pass
17:55:03.196 -> Key: 6 Value: Testy Wemos
17:55:03.196 -> Key: 7 Value: svr14.supla.org
17:55:03.196 -> Key: 8 Value: xxxxxx
17:55:03.196 -> Key: 9 Value:
17:55:03.196 -> Key: 10 Value:
17:55:03.196 -> Key: 11 Value: 1
17:55:03.196 -> Key: 12 Value:
17:55:03.196 -> Key: 13 Value:
17:55:03.196 -> Key: 14 Value: 1
17:55:03.243 -> Key: 15 Value:
17:55:03.243 -> Key: 16 Value: 216
17:55:03.243 -> Key: 17 Value: 250
17:55:03.243 -> Key: 18 Value: 1
17:55:03.243 -> Key: 19 Value: 0,,1,,,,,,,,,,,,
17:55:03.243 -> Key: 20 Value:
17:55:03.243 -> Key: 21 Value: 0
17:55:03.243 -> Key: 22 Value:
17:55:03.243 -> Key: 23 Value:
17:55:03.243 -> Key: 24 Value: ,,,,,,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,,
17:55:03.243 -> Key: 25 Value:
17:55:03.243 -> Key: 26 Value: 1,21,0,,,,,,,,,,,,,,1,1,,,,,,,,,,,,,
17:55:03.243 -> Key: 27 Value:
17:55:03.243 -> Key: 28 Value: 1,9,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
17:55:03.280 -> Key: 29 Value: 1,10,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,
17:55:03.280 -> Key: 30 Value:
17:55:03.280 -> Key: 31 Value:
17:55:03.280 -> Key: 32 Value:
17:55:03.280 -> Key: 33 Value:
17:55:03.280 -> Key: 34 Value:
17:55:03.280 -> Key: 35 Value:
17:55:03.280 -> Key: 36 Value:
17:55:03.280 -> Key: 37 Value: 1,17,1,,1,,,,,,,,,,,,,,,,,,,,,,,,,,,
17:55:03.327 -> Key: 38 Value:
17:55:03.327 -> Key: 39 Value:
17:55:03.327 -> Key: 40 Value:
17:55:03.327 -> Key: 41 Value:
17:55:03.327 -> Key: 42 Value:
17:55:03.327 -> Key: 43 Value:
17:55:03.327 -> Key: 44 Value:
17:55:03.327 -> Key: 45 Value:
17:55:03.327 -> Key: 46 Value:
17:55:03.327 -> Key: 47 Value:
17:55:03.327 -> Key: 48 Value:
17:55:03.327 -> Key: 49 Value:
17:55:03.327 -> Key: 50 Value:
17:55:03.327 -> Key: 51 Value:
17:55:03.327 -> Key: 52 Value:
17:55:03.327 -> Key: 53 Value:
17:55:03.327 -> Key: 54 Value:
17:55:03.327 -> Key: 55 Value:
17:55:03.327 -> Key: 56 Value:
17:55:03.327 -> Key: 57 Value:
17:55:03.327 -> Key: 58 Value: 1
17:55:03.381 -> Key: 59 Value: 0
17:55:03.381 -> Key: 60 Value:
17:55:03.381 -> Key: 61 Value:
17:55:03.381 -> Key: 62 Value:
17:55:03.381 -> Key: 63 Value:
17:55:03.381 -> Key: 64 Value:
17:55:03.381 -> Key: 65 Value:
17:55:03.381 -> Key: 66 Value:
17:55:03.381 -> Key: 67 Value:
17:55:03.381 -> Key: 68 Value:
17:55:03.381 -> Key: 69 Value:
17:55:03.381 -> Key: 70 Value:
17:55:03.381 -> Key: 71 Value:
17:55:03.381 -> Key: 72 Value:
17:55:03.381 -> Key: 73 Value:
17:55:03.381 -> Key: 74 Value:
17:55:03.381 -> Key: 75 Value:
17:55:03.381 -> Key: 76 Value:
17:55:03.381 -> Key: 77 Value:
17:55:03.381 -> Key: 78 Value:
17:55:03.381 -> Key: 79 Value:
17:55:03.381 -> Key: 80 Value: 0
17:55:03.381 -> Key: 81 Value:
17:55:03.381 -> Key: 82 Value:
17:55:03.428 -> Key: 83 Value:
17:55:03.428 -> Key: 84 Value:
17:55:03.428 -> Key: 85 Value:
17:55:03.428 -> Creating Impulse Counter: impulsePin(13), delay(250 ms)
17:55:03.428 -> Supla - starting initialization
17:55:03.428 -> Storage initialization
17:55:03.428 -> readStorage: 8; Read: [53 55 50 4C 41 1 0 1 ]
17:55:03.428 -> Storage: Number of sections 1
17:55:03.428 -> Reading section: 0
17:55:03.428 -> readStorage: 7; Read: [3 8 0 0 0 0 0 ]
17:55:03.428 -> Section type: 3; size: 8
17:55:03.428 -> Config storage not configured
17:55:03.481 -> Validating storage state section with current device configuration
17:55:03.481 -> Storage state section validation completed. Loading elements state...
17:55:03.481 -> readStorage: 8; Read: [13 0 0 0 0 0 0 0 ]
17:55:03.481 -> Channel(0) value changed to 19
17:55:03.481 -> ImpulseCounter[0] - set counter to 19
17:55:03.528 -> Found model Si7021Channel(1) value changed to temp(21.286543), humi(57.793182)
17:55:03.581 -> Initializing network layer
17:55:03.581 -> Network AP/hostname: TESTY-WEMOS-483FDAAA5DB5
17:55:03.628 -> Using Supla protocol version 16
17:55:03.628 -> Channel(0) value changed to 20
17:55:03.628 -> Current status: [5] SuplaDevice initialized
17:55:03.628 -> Enter normal mode
17:55:03.628 -> WiFi: establishing connection with SSID: "Endor"
17:55:09.550 -> Connected BSSID: CC:32:E5:26:88:D2
17:55:09.550 -> local IP: 192.168.68.118
17:55:09.550 -> subnetMask: 255.255.255.0
17:55:09.550 -> gatewayIP: 192.168.68.1
17:55:09.550 -> Signal strength (RSSI): -44 dBm
17:55:09.603 -> IMPROV⸮
17:55:09.603 -> IMPROVhttp://192.168.68.118J
17:55:09.650 -> Establishing NOT encrypted connection with: svr14.supla.org (port: 2015)
17:55:09.703 -> Connected to Supla Server
17:55:09.703 -> Current status: [10] Register in progress
17:55:09.750 -> Device registered (activity timeout 120 s, server version: 19, server min version: 1)
17:55:09.750 -> Current status: [17] Registered and ready
17:55:09.750 -> Changing activity timeout to 30
17:55:09.750 -> Activity timeout set to 30 s
17:55:13.178 -> Channel(1) value changed to temp(21.265097), humi(51.048798)
17:55:16.675 -> Channel(0) value changed to 21
17:55:17.992 -> Channel(0) value changed to 22
17:55:18.648 -> Channel(0) value changed to 23
17:55:19.613 -> Channel(0) value changed to 24
17:55:23.164 -> Channel(1) value changed to temp(21.340170), humi(50.095123)
17:55:28.601 -> Channel(0) value changed to 25
17:55:33.171 -> Channel(1) value changed to temp(21.372343), humi(51.186127)
17:55:43.185 -> Channel(1) value changed to temp(21.479597), humi(52.864594)