Closed pat1 closed 2 years ago
In a normal situation one data is missed from temperature serie "2022-02-03T08:27:00" istantaneous temoperature is missed
https://test.rmap.cc/borinud/api/v1/dbajson/pat1/1165626,4485893/fixed/254,0,0/103,2000,-,-/B12101/timeseries/2022/02/03/08
master log:
#2022-02-03T08:27:30 V: SIM800<-- OK #2022-02-03T08:27:31 V: SIM800<-- CONNECT #2022-02-03T08:27:31 N: SIM800 TCP status... [ OK ] [ CONNECT ] #2022-02-03T08:27:31 T: MQTT clientID: pat1/1165626,4485893/fixed #2022-02-03T08:27:31 T: MQTT will message: {"v":"error01"} #2022-02-03T08:27:31 T: MQTT will topic: maint/pat1/1165626,4485893/fixed/254,0,0/265,0,-,-/B01213 #2022-02-03T08:27:31 T: MQTT cleansession: false #2022-02-03T08:27:32 T: MQTT sessionPresent: true #2022-02-03T08:27:32 T: MQTT Connection... [ OK ] #2022-02-03T08:27:32 V: MQTT_CONNECT ---> MQTT_ON_CONNECT #2022-02-03T08:27:32 V: MQTT TX: {"v":"conn"} #2022-02-03T08:27:32 V: --> len 12 #2022-02-03T08:27:33 V: publish SUCCESS #2022-02-03T08:27:33 V: MQTT_ON_CONNECT ---> MQTT_SUBSCRIBE #2022-02-03T08:27:33 V: MQTT_SUBSCRIBE ---> MQTT_CONSTANTDATA #2022-02-03T08:27:33 V: MQTT TX: {"v":"new station"} #2022-02-03T08:27:33 V: --> len 19 #2022-02-03T08:27:33 V: publish SUCCESS #2022-02-03T08:27:33 N: MQTT <-- report/pat1/1165626,4485893/fixed/-,-,-/-,-,-,-/B01019 {"v":"new station"} #2022-02-03T08:27:33 V: MQTT TX: {"v":"20"} #2022-02-03T08:27:33 V: --> len 10 #2022-02-03T08:27:34 V: publish SUCCESS #2022-02-03T08:27:34 N: MQTT <-- report/pat1/1165626,4485893/fixed/-,-,-/-,-,-,-/B07030 {"v":"20"} #2022-02-03T08:27:34 V: MQTT_CONSTANTDATA ---> MQTT_CHECK #2022-02-03T08:27:34 V: MQTT_CHECK ---> MQTT_OPEN_DATA_FILE #2022-02-03T08:27:34 V: MQTT_OPEN_DATA_FILE ---> MQTT_SD_LOOP #2022-02-03T08:27:36 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:36 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:36 V: MQTT TX: {"v":null,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:36 V: --> len 36 #2022-02-03T08:27:36 V: publish SUCCESS #2022-02-03T08:27:36 N: MQTT(SD) <-- 254,0,0/103,2000,-,-/B12101 {"v":null,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:36 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:36 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:36 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:36 V: MQTT TX: {"v":null,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:36 V: --> len 36 #2022-02-03T08:27:37 V: publish SUCCESS #2022-02-03T08:27:37 N: MQTT(SD) <-- 254,0,0/103,2000,-,-/B13003 {"v":null,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:37 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:37 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:37 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:37 V: MQTT TX: {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:37 V: --> len 37 #2022-02-03T08:27:37 V: publish SUCCESS #2022-02-03T08:27:37 N: MQTT(SD) <-- 3,0,900/103,2000,-,-/B12101 {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:37 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:37 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:37 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:37 V: MQTT TX: {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:37 V: --> len 34 #2022-02-03T08:27:38 V: publish SUCCESS #2022-02-03T08:27:38 N: MQTT(SD) <-- 3,0,900/103,2000,-,-/B13003 {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:38 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:38 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:38 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:38 V: MQTT TX: {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:38 V: --> len 37 #2022-02-03T08:27:39 V: publish SUCCESS #2022-02-03T08:27:39 N: MQTT(SD) <-- 0,0,900/103,2000,-,-/B12101 {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:39 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:39 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:39 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:39 V: MQTT TX: {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:39 V: --> len 34 #2022-02-03T08:27:39 V: publish SUCCESS #2022-02-03T08:27:39 N: MQTT(SD) <-- 0,0,900/103,2000,-,-/B13003 {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:39 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:39 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:39 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:39 V: MQTT TX: {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:39 V: --> len 37 #2022-02-03T08:27:40 V: publish SUCCESS #2022-02-03T08:27:40 N: MQTT(SD) <-- 2,0,900/103,2000,-,-/B12101 {"v":29493,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:40 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:40 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:40 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:40 V: MQTT TX: {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:40 V: --> len 34 #2022-02-03T08:27:41 V: publish SUCCESS #2022-02-03T08:27:41 N: MQTT(SD) <-- 2,0,900/103,2000,-,-/B13003 {"v":32,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:41 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:41 V: MQTT_SD_LOOP ---> MQTT_DATA_LOOP #2022-02-03T08:27:41 V: MQTT_DATA_LOOP ---> MQTT_PUBLISH #2022-02-03T08:27:41 V: MQTT TX: {"v":0,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:41 V: --> len 33 #2022-02-03T08:27:41 V: publish SUCCESS #2022-02-03T08:27:41 N: MQTT(SD) <-- 1,0,900/1,-,-,-/B13011 {"v":0,"t":"2022-02-03T08:27:00"} #2022-02-03T08:27:41 V: MQTT_PUBLISH ---> MQTT_SD_LOOP #2022-02-03T08:27:41 V: MQTT_SD_LOOP ---> MQTT_PTR_FOUND #2022-02-03T08:27:41 V: MQTT_PTR_FOUND ---> MQTT_CLOSE_DATA_FILE #2022-02-03T08:27:41 V: MQTT_CLOSE_DATA_FILE ---> MQTT_RPC_DELAY #2022-02-03T08:27:41 V: MQTT_WAIT_STATE_RPC: 300000u #2022-02-03T08:27:41 V: MQTT_RPC_DELAY ---> MQTT_WAIT_STATE_RPC #2022-02-03T08:27:41 T: MQTT_WAIT_STATE_RPC: skipped #2022-02-03T08:27:41 V: mqtt_client.isConnected: true #2022-02-03T08:27:41 V: is_mqtt_rpc_delay: false #2022-02-03T08:27:41 V: is_mqtt_error: false #2022-02-03T08:27:41 V: MQTT TX: {"v":"disconn"} #2022-02-03T08:27:41 V: --> len 15 #2022-02-03T08:27:42 V: publish SUCCESS #2022-02-03T08:27:42 V: MQTT_ON_DISCONNECT ---> MQTT_DISCONNECT #2022-02-03T08:27:42 T: MQTT Disconnect... [ OK ] #2022-02-03T08:27:42 V: MQTT_DISCONNECT ---> MQTT_PTR_UPDATE #2022-02-03T08:27:42 N: Data pointer... [ 3/2/2022 8:27:1 ] [ UPDATE ] #2022-02-03T08:27:42 V: MQTT_PTR_UPDATE ---> MQTT_CLOSE_PTR_FILE #2022-02-03T08:27:42 V: MQTT_CLOSE_PTR_FILE ---> MQTT_END #2022-02-03T08:27:42 N: [ 9 ] data published through mqtt... [ OK ] #2022-02-03T08:27:42 V: MQTT_END ---> MQTT_INIT
i2c-th log:
# 3051184 : N: Execute [ CONTINUOUS START-STOP ] # 3051382 : V: Sensor error count: 0 # 3051384 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3051409 : T: hyt2x1 prepare... [ OK ] # 3051614 : T: Sensor is getted... [ not end ] # 3051620 : T: Sensor is getted... [ not end ] # 3051626 : T: hyt_read no new data # 3051630 : T: Sensor is getted... [ not end ] # 3051634 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3051640 : T: hyt2x1 get... [ OK ] # 3051644 : T: hyt2x1--> humidity: 33 # 3051649 : T: hyt2x1--> temperature: 29438 # 3051655 : T: 29438 33 1 1 N # 3051659 : V: Sensor error count: 0 # 3051663 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3051669 : T: hyt2x1 prepare... [ OK ] # 3051874 : T: Sensor is getted... [ not end ] # 3051880 : T: Sensor is getted... [ not end ] # 3051886 : T: hyt_read no new data # 3051890 : T: Sensor is getted... [ not end ] # 3051894 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3051900 : T: hyt2x1 get... [ OK ] # 3051905 : T: hyt2x1--> humidity: 33 # 3051909 : T: hyt2x1--> temperature: 29437 # 3051915 : T: 29437 33 2 2 N # 3051919 : V: Sensor error count: 0 # 3051923 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3051929 : T: hyt2x1 prepare... [ OK ] # 3052134 : T: Sensor is getted... [ not end ] # 3052140 : T: Sensor is getted... [ not end ] # 3052146 : T: hyt_read no new data # 3052150 : T: Sensor is getted... [ not end ] # 3052154 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3052161 : T: hyt2x1 get... [ OK ] # 3052165 : T: hyt2x1--> humidity: 33 # 3052169 : T: hyt2x1--> temperature: 29437 # 3052175 : T: 29437 33 3 3 N # 3052179 : V: Sensor error count: 0 # 3052183 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3052189 : T: hyt2x1 prepare... [ OK ] # 3052394 : T: Sensor is getted... [ not end ] # 3052400 : T: Sensor is getted... [ not end ] # 3052406 : T: hyt_read no new data # 3052410 : T: Sensor is getted... [ not end ] # 3052414 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3052421 : T: hyt2x1 get... [ OK ] # 3052425 : T: hyt2x1--> humidity: 33 # 3052429 : T: hyt2x1--> temperature: 29437 # 3052435 : T: 29437 33 4 4 N # 3052439 : V: Sensor error count: 0 # 3052443 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3052449 : T: hyt2x1 prepare... [ OK ] # 3052654 : T: Sensor is getted... [ not end ] # 3052660 : T: Sensor is getted... [ not end ] # 3052666 : T: hyt_read no new data # 3052670 : T: Sensor is getted... [ not end ] # 3052675 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3052681 : T: hyt2x1 get... [ OK ] # 3052685 : T: hyt2x1--> humidity: 33 # 3052689 : T: hyt2x1--> temperature: 29437 # 3052695 : T: 29437 33 5 5 N # 3052699 : V: Sensor error count: 0 # 3052703 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3052709 : T: hyt2x1 prepare... [ OK ] # 3052914 : T: Sensor is getted... [ not end ] # 3052920 : T: Sensor is getted... [ not end ] # 3052926 : T: hyt_read no new data # 3052931 : T: Sensor is getted... [ not end ] # 3052935 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3052941 : T: hyt2x1 get... [ OK ] # 3052945 : T: hyt2x1--> humidity: 33 # 3052949 : T: hyt2x1--> temperature: 29437 # 3052955 : T: 29437 33 6 6 N # 3052959 : V: Sensor error count: 0 # 3052963 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3052969 : T: hyt2x1 prepare... [ OK ] # 3053176 : T: Sensor is getted... [ not end ] # 3053182 : T: Sensor is getted... [ not end ] # 3053189 : T: hyt_read no new data # 3053193 : T: Sensor is getted... [ not end ] # 3053197 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3053203 : T: hyt2x1 get... [ OK ] # 3053207 : T: hyt2x1--> humidity: 33 # 3053211 : T: hyt2x1--> temperature: 29437 # 3053217 : T: 29437 33 7 7 N # 3053221 : V: Sensor error count: 0 # 3053225 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3053232 : T: hyt2x1 prepare... [ OK ] # 3053438 : T: Sensor is getted... [ not end ] # 3053445 : T: Sensor is getted... [ not end ] # 3053451 : T: hyt_read no new data # 3053455 : T: Sensor is getted... [ not end ] # 3053459 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3053465 : T: hyt2x1 get... [ OK ] # 3053469 : T: hyt2x1--> humidity: 33 # 3053473 : T: hyt2x1--> temperature: 29437 # 3053479 : T: 29437 33 8 8 N # 3053484 : V: Sensor error count: 0 # 3053488 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3053494 : T: hyt2x1 prepare... [ OK ] # 3053699 : T: Sensor is getted... [ not end ] # 3053705 : T: Sensor is getted... [ not end ] # 3053711 : T: hyt_read no new data # 3053715 : T: Sensor is getted... [ not end ] # 3053719 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3053725 : T: hyt2x1 get... [ OK ] # 3053729 : T: hyt2x1--> humidity: 33 # 3053733 : T: hyt2x1--> temperature: 29437 # 3053740 : T: 29437 33 9 9 N # 3053744 : V: Sensor error count: 0 # 3053748 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3053754 : T: hyt2x1 prepare... [ OK ] # 3053959 : T: Sensor is getted... [ not end ] # 3053965 : T: Sensor is getted... [ not end ] # 3053971 : T: hyt_read no new data # 3053975 : T: Sensor is getted... [ not end ] # 3053979 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3053985 : T: hyt2x1 get... [ OK ] # 3053989 : T: hyt2x1--> humidity: 33 # 3053993 : T: hyt2x1--> temperature: 29437 # 3054000 : T: 29437 33 10 10 N # 3054004 : V: Sensor error count: 0 # 3054008 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3054014 : T: hyt2x1 prepare... [ OK ] # 3054219 : T: Sensor is getted... [ not end ] # 3054225 : T: Sensor is getted... [ not end ] # 3054231 : T: hyt_read no new data # 3054235 : T: Sensor is getted... [ not end ] # 3054239 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3054245 : T: hyt2x1 get... [ OK ] # 3054249 : T: hyt2x1--> humidity: 33 # 3054254 : T: hyt2x1--> temperature: 29437 # 3054260 : T: 29437 33 11 11 N # 3054264 : V: Sensor error count: 0 # 3054268 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3054274 : T: hyt2x1 prepare... [ OK ] # 3054479 : T: Sensor is getted... [ not end ] # 3054485 : T: Sensor is getted... [ not end ] # 3054491 : T: hyt_read no new data # 3054495 : T: Sensor is getted... [ not end ] # 3054499 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3054505 : T: hyt2x1 get... [ OK ] # 3054510 : T: hyt2x1--> humidity: 33 # 3054514 : T: hyt2x1--> temperature: 29438 # 3054520 : T: 29438 33 12 12 N # 3054524 : V: Sensor error count: 0 # 3054528 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3054534 : T: hyt2x1 prepare... [ OK ] # 3054739 : T: Sensor is getted... [ not end ] # 3054745 : T: Sensor is getted... [ not end ] # 3054751 : T: hyt_read no new data # 3054755 : T: Sensor is getted... [ not end ] # 3054759 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3054766 : T: hyt2x1 get... [ OK ] # 3054770 : T: hyt2x1--> humidity: 33 # 3054774 : T: hyt2x1--> temperature: 29437 # 3054780 : T: 29437 33 13 13 N # 3054784 : V: Sensor error count: 0 # 3054788 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3054794 : T: hyt2x1 prepare... [ OK ] # 3054999 : T: Sensor is getted... [ not end ] # 3055005 : T: Sensor is getted... [ not end ] # 3055011 : T: hyt_read no new data # 3055015 : T: Sensor is getted... [ not end ] # 3055020 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3055026 : T: hyt2x1 get... [ OK ] # 3055030 : T: hyt2x1--> humidity: 33 # 3055034 : T: hyt2x1--> temperature: 29437 # 3055040 : T: 29437 33 14 14 N # 3055044 : T: 29437 33 14 14 T # 3055048 : N: Execute [ TEST READ ] # 3055079 : V: Sensor error count: 0 # 3055081 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true false # 3055106 : T: hyt2x1 prepare... [ OK ] # 3055312 : T: Sensor is getted... [ not end ] # 3055335 : T: hyt_read no new data # 3055339 : E: hyt2x1 get read error # 3055341 : T: Sensor is getted... [ not end ] # 3055347 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3055353 : E: hyt2x1 get... [ FAIL ] # 3055357 : T: hyt2x1--> humidity: --- # 3055362 : T: hyt2x1--> temperature: --- # 3055366 : E: Sensor is getted... [ retry ] # 3055468 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3055491 : T: hyt2x1 prepare... [ OK ] # 3055697 : T: Sensor is getted... [ not end ] # 3055720 : T: hyt_read no new data # 3055724 : E: hyt2x1 get read error # 3055726 : T: Sensor is getted... [ not end ] # 3055732 : V: SensorDriver I2C-HYT 0x28 (40) on node 1 true true # 3055738 : E: hyt2x1 get... [ FAIL ] # 3055742 : T: hyt2x1--> humidity: --- # 3055747 : T: hyt2x1--> temperature: --- # 3055751 : E: Sensor is getted... [ FAIL ] # 3055757 : T: 65535 65535 14 14 N # 3055761 : T: O-> -1 -1 14/15 14/15 O<- # 3055765 : N: R-> # 3055767 : N: T-SMP: ----- # 3055771 : N: T-IST: 29436 # 3055773 : N: T-MIN: 29436 # 3055777 : N: T-MED: 29436 # 3055779 : N: T-MAX: 29437 # 3055783 : N: H-SMP: ----- # 3055785 : N: H-IST: 33 # 3055790 : N: H-MIN: 33 # 3055792 : N: H-MED: 33 # 3055794 : N: H-MAX: 33 # 3055798 : N: R<
related to #399
changed logic in stima 3.7 release
In a normal situation one data is missed from temperature serie "2022-02-03T08:27:00" istantaneous temoperature is missed
https://test.rmap.cc/borinud/api/v1/dbajson/pat1/1165626,4485893/fixed/254,0,0/103,2000,-,-/B12101/timeseries/2022/02/03/08
master log:
i2c-th log: