Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2C HTU21D broken after update 20230306 #4556

Closed
eigthyeight opened this issue Mar 18, 2023 · 18 comments · Fixed by #4557
Closed

I2C HTU21D broken after update 20230306 #4556

eigthyeight opened this issue Mar 18, 2023 · 18 comments · Fixed by #4557

Comments

@eigthyeight
Copy link

After updating a ESP32 to the latest 20230306 release a HTU21D sensor stopped working.
ESP has 98% load with P_14_Environment - SI70xx/HTU21D read but values stay at NaN.
Sensor is configured to read every 20 sec as slow I2C speed of 100000Hz and the ESP32 is also controlling two PCF8574 devices.
The sensor does show up in a I2C scan but wont read.
After downgrading to 20221224 everything works fine again.

@tonhuisman
Copy link
Contributor

Have you tried to set a I2C ClockStretchLimit value on the Tools/Advanced page? (usable values could be 1000..20000)
Some, mostly older, I2C sensors need that, and also there have been quite a few changes in I2C handling of the ESP32 framework libraries the last few months, so this might now be needed for this sensor.

Also, some of the log output, including data of this sensor, could be helpful in diagnosing this issue.

@eigthyeight
Copy link
Author

I've done some tests with values of 1000,10000 and 20000 at borh 100kHz and 400kHz, no success.

How do I get log outputs with sensor data?

@tonhuisman
Copy link
Contributor

tonhuisman commented Mar 18, 2023

How do I get log outputs with sensor data?

  • You can have a look at the Tools/Log page.
  • You can connect an USB cable to the unit, and use a terminal program like Putty (115200,N,8,1) to look at the serial data returned from the unit.

Don't know exactly know how much logging is produced by this plugin though.

@eigthyeight
Copy link
Author

eigthyeight commented Mar 18, 2023

Got an other (same type) ESP32 Wroom with a new HTU21D, nothing else connected; exact same issue older fw no problem, new fw; nan

log seems quite empty?
236244: sendcontent free: 203204 chunk size:118
236252: sendcontent free: 201404 chunk size:0
237348: sendcontent free: 203428 chunk size:4096
237427: sendcontent free: 201796 chunk size:4096
237446: DEBUG: String size:8192
237448: sendcontent free: 198420 chunk size:1357
237457: sendcontent free: 196884 chunk size:0
237467: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
237484: sendcontent free: 202840 chunk size:778
237494: sendcontent free: 201352 chunk size:0
237511: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
237520: static_file: /esp.css
237521: Serve 304: 1679155708 /esp.css
237521: HTML : Request file /esp.css
237552: static_file: /favicon.ico
237552: HTML : Request file /favicon.ico
237558: sendcontent free: 203108 chunk size:390
237567: sendcontent free: 201844 chunk size:0
238669: sendcontent free: 203792 chunk size:897
238683: sendcontent free: 201984 chunk size:0
238762: sendcontent free: 206184 chunk size:1351
238770: sendcontent free: 201084 chunk size:0
239931: Webserver 2 Arguments: 0: 'index' length: 1 1: 'page' length: 1
239939: Read settings: TaskSettings index: 2
239960: sendcontent free: 203004 chunk size:4096
239986: DEBUG: String size:4096
239988: sendcontent free: 204636 chunk size:3282
240000: sendcontent free: 202840 chunk size:0
240026: sendcontent free: 204732 chunk size:963
240035: sendcontent free: 202944 chunk size:0
240113: sendcontent free: 207136 chunk size:1351
240122: sendcontent free: 202036 chunk size:0
240184: static_file: /favicon.ico
240184: HTML : Request file /favicon.ico
240189: sendcontent free: 205584 chunk size:390
240198: sendcontent free: 203788 chunk size:0
242390: sendcontent free: 205512 chunk size:762
242399: sendcontent free: 203716 chunk size:0
242411: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
242416: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
242421: UDP : E8:DB:84:A8:EF:B3,192.168.188.110,10
243553: sendcontent free: 206496 chunk size:545
243562: sendcontent free: 204708 chunk size:0
244709: sendcontent free: 206228 chunk size:282
244720: sendcontent free: 204820 chunk size:0
245868: sendcontent free: 205924 chunk size:283
245876: sendcontent free: 204128 chunk size:0
245889: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
245894: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
245899: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
245904: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
247033: sendcontent free: 207224 chunk size:633
247042: sendcontent free: 205424 chunk size:0
248192: sendcontent free: 203564 chunk size:282
248203: sendcontent free: 205580 chunk size:0
249354: sendcontent free: 206920 chunk size:283
249362: sendcontent free: 205124 chunk size:0
249380: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
249385: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
250516: sendcontent free: 207364 chunk size:457
250523: sendcontent free: 202636 chunk size:0
251676: sendcontent free: 207840 chunk size:282
251685: sendcontent free: 205988 chunk size:0
252830: sendcontent free: 207848 chunk size:282
252838: sendcontent free: 205996 chunk size:0
253987: sendcontent free: 207636 chunk size:282
253995: sendcontent free: 205784 chunk size:0
254008: UDP : 48:3F:DA:5C:42:47,192.168.188.105,5
255147: sendcontent free: 207848 chunk size:368
255158: sendcontent free: 205996 chunk size:0
256307: sendcontent free: 207528 chunk size:283
256316: sendcontent free: 206056 chunk size:0
256347: WD : Uptime 4 ConnectFailures 0 FreeMem 211344 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
256347: UDP : Send Sysinfo message
256352: UDP : Send Sysinfo message
256393: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
256398: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
257470: sendcontent free: 207916 chunk size:760
257476: sendcontent free: 202896 chunk size:0
257495: LoopStats: shortestLoop: 60 longestLoop: 1829687 avgLoopDuration: 2522.60 loopCounterMax: 500000 loopCounterLast: 11632
257496: Scheduler stats: (called/tasks/max_length/idle%) 23493/1395/15/4.02
258622: sendcontent free: 207916 chunk size:557
258636: sendcontent free: 205920 chunk size:0
259781: sendcontent free: 207508 chunk size:283
259790: sendcontent free: 206036 chunk size:0
260936: sendcontent free: 208128 chunk size:282
260944: sendcontent free: 206276 chunk size:0
260989: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
260999: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
262091: sendcontent free: 208128 chunk size:457
262100: sendcontent free: 206272 chunk size:0
263255: sendcontent free: 207756 chunk size:282
263261: sendcontent free: 203112 chunk size:0
264402: sendcontent free: 208128 chunk size:282
264410: sendcontent free: 206272 chunk size:0
266670: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
266673: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
267812: sendcontent free: 208128 chunk size:462
267821: sendcontent free: 206272 chunk size:0
268977: sendcontent free: 207588 chunk size:282
268986: sendcontent free: 206112 chunk size:0
270134: sendcontent free: 208124 chunk size:282
270142: sendcontent free: 206268 chunk size:0
271291: sendcontent free: 208124 chunk size:282
271299: sendcontent free: 206260 chunk size:0
272445: sendcontent free: 205784 chunk size:282
272456: sendcontent free: 205632 chunk size:0
272468: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
272473: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
272478: UDP : E8:DB:84:A8:EF:B3,192.168.188.110,10
273606: sendcontent free: 208128 chunk size:545
273615: sendcontent free: 206272 chunk size:0
274761: sendcontent free: 207748 chunk size:282
274770: sendcontent free: 206272 chunk size:0
275921: sendcontent free: 206916 chunk size:282
275932: sendcontent free: 205420 chunk size:0
275945: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
275949: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
275954: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
275959: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
277085: sendcontent free: 208128 chunk size:633
277093: sendcontent free: 206272 chunk size:0
278241: sendcontent free: 207748 chunk size:282
278250: sendcontent free: 206272 chunk size:0
279398: sendcontent free: 207320 chunk size:282
279410: sendcontent free: 205832 chunk size:0
279424: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
279429: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
280564: sendcontent free: 208128 chunk size:457
280572: sendcontent free: 206272 chunk size:0
281721: sendcontent free: 207748 chunk size:282
281730: sendcontent free: 206272 chunk size:0
282878: sendcontent free: 208144 chunk size:282
282890: sendcontent free: 206288 chunk size:0
284036: sendcontent free: 207900 chunk size:283
284044: sendcontent free: 206044 chunk size:0
284058: UDP : 48:3F:DA:5C:42:47,192.168.188.105,5
285194: sendcontent free: 208364 chunk size:368
285202: sendcontent free: 206508 chunk size:0
286351: sendcontent free: 207980 chunk size:282
286360: sendcontent free: 206504 chunk size:0
286386: WD : Uptime 5 ConnectFailures 0 FreeMem 211780 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
286386: UDP : Send Sysinfo message
286390: UDP : Send Sysinfo message
286472: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
286475: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
287519: sendcontent free: 208368 chunk size:761
287527: sendcontent free: 206512 chunk size:0
287550: LoopStats: shortestLoop: 60 longestLoop: 1829687 avgLoopDuration: 2385.17 loopCounterMax: 500000 loopCounterLast: 12594
287550: Scheduler stats: (called/tasks/max_length/idle%) 12568/515/15/4.23
288676: sendcontent free: 208204 chunk size:556
288685: sendcontent free: 206348 chunk size:0
289834: sendcontent free: 207996 chunk size:282
289846: sendcontent free: 206520 chunk size:0
290993: sendcontent free: 207964 chunk size:283
291000: sendcontent free: 205612 chunk size:0
291013: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
291018: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
292152: sendcontent free: 208596 chunk size:457
292161: sendcontent free: 206744 chunk size:0
293312: sendcontent free: 208444 chunk size:282
293325: sendcontent free: 207068 chunk size:0
294470: sendcontent free: 208824 chunk size:283
294478: sendcontent free: 206968 chunk size:0
295627: sendcontent free: 208824 chunk size:282
295635: sendcontent free: 206968 chunk size:0
296784: sendcontent free: 208020 chunk size:282
296793: sendcontent free: 206536 chunk size:0
296810: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
296813: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
297948: sendcontent free: 208820 chunk size:457
297957: sendcontent free: 206968 chunk size:0
299109: sendcontent free: 208444 chunk size:282
299118: sendcontent free: 206968 chunk size:0
300266: sendcontent free: 208428 chunk size:282
300275: sendcontent free: 206952 chunk size:0
301429: sendcontent free: 208808 chunk size:282
301437: sendcontent free: 206952 chunk size:0
302586: sendcontent free: 208168 chunk size:282
302594: sendcontent free: 206304 chunk size:0
302606: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
302611: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
302616: UDP : E8:DB:84:A8:EF:B3,192.168.188.110,10
303748: sendcontent free: 208800 chunk size:545
303757: sendcontent free: 206944 chunk size:0
304908: sendcontent free: 208428 chunk size:282
304917: sendcontent free: 206952 chunk size:0
306068: sendcontent free: 207976 chunk size:282
306076: sendcontent free: 206112 chunk size:0
306086: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
306091: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
306096: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
306101: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
307233: sendcontent free: 209032 chunk size:633
307244: sendcontent free: 206340 chunk size:0
308394: sendcontent free: 208668 chunk size:283
308403: sendcontent free: 207192 chunk size:0
309546: sendcontent free: 208628 chunk size:282
309554: sendcontent free: 206764 chunk size:0
309566: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
309571: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
310707: sendcontent free: 209044 chunk size:457
310716: sendcontent free: 207192 chunk size:0
311867: sendcontent free: 208668 chunk size:282
311876: sendcontent free: 207192 chunk size:0
313026: sendcontent free: 209048 chunk size:282
313034: sendcontent free: 207184 chunk size:0
314185: sendcontent free: 208668 chunk size:282
314193: sendcontent free: 203880 chunk size:0
315347: sendcontent free: 208668 chunk size:282
315356: sendcontent free: 207412 chunk size:0
316504: sendcontent free: 209408 chunk size:282
316512: sendcontent free: 207552 chunk size:0
316525: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
316529: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
316540: WD : Uptime 5 ConnectFailures 0 FreeMem 213116 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
316540: UDP : Send Sysinfo message
316544: UDP : Send Sysinfo message
317682: sendcontent free: 210532 chunk size:760
317691: sendcontent free: 208676 chunk size:0
317713: LoopStats: shortestLoop: 60 longestLoop: 1829687 avgLoopDuration: 2370.74 loopCounterMax: 500000 loopCounterLast: 12717
317714: Scheduler stats: (called/tasks/max_length/idle%) 12691/516/15/4.23
318838: sendcontent free: 210764 chunk size:556
318847: sendcontent free: 208908 chunk size:0
319996: sendcontent free: 210376 chunk size:282
320006: sendcontent free: 208964 chunk size:0
321150: sendcontent free: 210340 chunk size:283
321163: sendcontent free: 208484 chunk size:0
321173: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
321177: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
322308: sendcontent free: 210744 chunk size:457
322317: sendcontent free: 208888 chunk size:0
323465: sendcontent free: 210596 chunk size:282
323474: sendcontent free: 209120 chunk size:0
324625: sendcontent free: 210980 chunk size:282
324634: sendcontent free: 209128 chunk size:0
325782: sendcontent free: 210972 chunk size:282
325790: sendcontent free: 209108 chunk size:0
326938: sendcontent free: 210544 chunk size:282
326946: sendcontent free: 208700 chunk size:0
326959: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
326964: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
328099: sendcontent free: 210968 chunk size:457
328108: sendcontent free: 209100 chunk size:0
329260: sendcontent free: 210424 chunk size:282
329269: sendcontent free: 208948 chunk size:0
330419: sendcontent free: 210968 chunk size:282
330428: sendcontent free: 209120 chunk size:0
331575: sendcontent free: 210584 chunk size:282
331584: sendcontent free: 209116 chunk size:0
332736: sendcontent free: 209956 chunk size:282
332745: sendcontent free: 208488 chunk size:0
332752: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
332757: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
332763: UDP : E8:DB:84:A8:EF:B3,192.168.188.110,10
333893: sendcontent free: 210736 chunk size:545
333901: sendcontent free: 208888 chunk size:0
335049: sendcontent free: 210388 chunk size:282
335058: sendcontent free: 208912 chunk size:0
336210: sendcontent free: 209892 chunk size:282
336219: sendcontent free: 208048 chunk size:0
336228: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
336233: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
336239: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
336244: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
337372: sendcontent free: 210756 chunk size:633
337380: sendcontent free: 208888 chunk size:0
338529: sendcontent free: 210360 chunk size:282
338538: sendcontent free: 208884 chunk size:0
339686: sendcontent free: 210320 chunk size:282
339694: sendcontent free: 208472 chunk size:0
339707: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
339712: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
340843: sendcontent free: 210756 chunk size:457
340851: sendcontent free: 208900 chunk size:0
342000: sendcontent free: 210360 chunk size:282
342009: sendcontent free: 208884 chunk size:0
343163: sendcontent free: 210760 chunk size:282
343172: sendcontent free: 208904 chunk size:0
344317: sendcontent free: 210172 chunk size:282
344326: sendcontent free: 208692 chunk size:0
344339: UDP : 48:3F:DA:5C:42:47,192.168.188.105,5
345477: sendcontent free: 210984 chunk size:368
345485: sendcontent free: 209128 chunk size:0
346634: sendcontent free: 210184 chunk size:282
346642: sendcontent free: 205396 chunk size:0
346657: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
346661: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
346672: WD : Uptime 6 ConnectFailures 0 FreeMem 214288 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
346672: UDP : Send Sysinfo message
346676: UDP : Send Sysinfo message
347808: sendcontent free: 211208 chunk size:760
347816: sendcontent free: 209352 chunk size:0
347836: LoopStats: shortestLoop: 60 longestLoop: 1829687 avgLoopDuration: 2358.35 loopCounterMax: 500000 loopCounterLast: 12766
347836: Scheduler stats: (called/tasks/max_length/idle%) 12740/511/15/4.11
348961: sendcontent free: 211032 chunk size:556
348970: sendcontent free: 209176 chunk size:0
350126: sendcontent free: 210828 chunk size:282
350135: sendcontent free: 209340 chunk size:0
351282: sendcontent free: 210788 chunk size:282
351290: sendcontent free: 208920 chunk size:0
351302: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
351307: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
352440: sendcontent free: 211196 chunk size:457
352448: sendcontent free: 209340 chunk size:0
353597: sendcontent free: 208956 chunk size:282
353609: sendcontent free: 209340 chunk size:0
354757: sendcontent free: 211192 chunk size:283
354762: sendcontent free: 205680 chunk size:0
355909: sendcontent free: 211204 chunk size:282
355917: sendcontent free: 209360 chunk size:0
357068: sendcontent free: 210392 chunk size:282
357080: sendcontent free: 208904 chunk size:0
357094: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
357099: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
358233: sendcontent free: 211436 chunk size:457
358241: sendcontent free: 209580 chunk size:0
359389: sendcontent free: 211048 chunk size:282
359398: sendcontent free: 209572 chunk size:0
360547: sendcontent free: 211036 chunk size:282
360559: sendcontent free: 209036 chunk size:0
361706: sendcontent free: 211428 chunk size:283
361714: sendcontent free: 209584 chunk size:0
361795: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
361800: UDP : 80:7D:3A:37:6A:44,192.168.188.116,16
361805: UDP : E8:DB:84:A8:EF:B3,192.168.188.110,10
362863: sendcontent free: 211420 chunk size:545
362872: sendcontent free: 209564 chunk size:0
364020: sendcontent free: 211420 chunk size:282
364029: sendcontent free: 209576 chunk size:0
365181: sendcontent free: 211076 chunk size:282
365190: sendcontent free: 209584 chunk size:0
366338: sendcontent free: 210568 chunk size:282
366346: sendcontent free: 208712 chunk size:0
366358: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
366363: UDP : 5C:CF:7F:B1:16:CD,192.168.188.118,18
366368: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
366373: UDP : 4C:EB:D6:7A:79:3C,192.168.188.106,15
367504: sendcontent free: 211424 chunk size:633
367513: sendcontent free: 209580 chunk size:0
368663: sendcontent free: 210868 chunk size:282
368672: sendcontent free: 209392 chunk size:0
369822: sendcontent free: 211004 chunk size:282
369830: sendcontent free: 209148 chunk size:0
369842: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
369847: UDP : 80:7D:3A:37:63:CA,192.168.188.119,19
370979: sendcontent free: 211420 chunk size:457
370987: sendcontent free: 209564 chunk size:0
372140: sendcontent free: 211040 chunk size:282
372149: sendcontent free: 209564 chunk size:0
373295: sendcontent free: 211416 chunk size:282
373303: sendcontent free: 209560 chunk size:0
374454: sendcontent free: 211216 chunk size:282
374463: sendcontent free: 209352 chunk size:0
374478: UDP : 48:3F:DA:5C:42:47,192.168.188.105,5
375615: sendcontent free: 211440 chunk size:368
375624: sendcontent free: 209584 chunk size:0
376773: sendcontent free: 210632 chunk size:282
376780: sendcontent free: 205348 chunk size:0
376793: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
376798: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
376809: WD : Uptime 6 ConnectFailures 0 FreeMem 214736 WiFiStatus WL_CONNECTED 3 ESPeasy internal wifi status: Conn. IP Init
376809: UDP : Send Sysinfo message
376813: UDP : Send Sysinfo message
377945: sendcontent free: 211428 chunk size:760
377958: sendcontent free: 209096 chunk size:0
377979: LoopStats: shortestLoop: 60 longestLoop: 1829687 avgLoopDuration: 2297.53 loopCounterMax: 500000 loopCounterLast: 13113
377979: Scheduler stats: (called/tasks/max_length/idle%) 13087/514/15/4.28
379106: sendcontent free: 211428 chunk size:556
379115: sendcontent free: 209572 chunk size:0
380263: sendcontent free: 211032 chunk size:282
380272: sendcontent free: 209556 chunk size:0
381418: sendcontent free: 210616 chunk size:282
381427: sendcontent free: 209140 chunk size:0
381443: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
381448: UDP : EC:62:60:9D:BE:8C,192.168.188.112,12
382580: sendcontent free: 211428 chunk size:457
382588: sendcontent free: 209572 chunk size:0
383734: sendcontent free: 211052 chunk size:282
383743: sendcontent free: 209576 chunk size:0
384891: sendcontent free: 211032 chunk size:282
384900: sendcontent free: 209564 chunk size:0
386051: sendcontent free: 211032 chunk size:282
386061: sendcontent free: 209556 chunk size:0
387203: sendcontent free: 211004 chunk size:283
387211: sendcontent free: 209148 chunk size:0
387225: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17
387229: UDP : 84:F3:EB:1C:3C:C9,192.168.188.117,17

@tonhuisman
Copy link
Contributor

No need to have a DEBUG level log, that's mostly confusing, most plugins log something on INFO level, but it seems this plugin doesn't log much, as I didn't find anything relevant (P014 or SI70xx).
Work has been done on this plugin some time ago, but AFAICS, that was before the 20221224 release.

To get the initialization log for the plugin (again) you can send the command taskenable,htu21 (or whatever name you gave the task). That command can also be typed into the terminal (blind entry, no correction possibility, command will echo when pressing enter), or from the Tools page.
During initialization it should report the serial number of the device (SI7013 : sn=xxxxxx-xxxxxx) that would help in debugging this further, as part of that serial number is the chip-id.

@tonhuisman
Copy link
Contributor

What exact .bin file do you have installed on your ESP?

@TD-er
Copy link
Member

TD-er commented Mar 18, 2023

This P014 does have an issue with settings transitions from earlier builds.
Please remove the task and add it again.

@eigthyeight
Copy link
Author

Build: [ESP_Easy_mega_20230306_normal_ESP32_4M316k Mar 6 2023]

removing and adding again did not make a difference, nor did a factory reset.

log with task enable;

273276: UDP : 48:3F:DA:5C:42:47,192.168.188.105,5
274412: sendcontent free: 209580 chunk size:373
274421: sendcontent free: 207792 chunk size:0
275580: Webserver 1 Arguments: 0: 'cmd' length: 19
275581: HTTP: taskenable, i2ctemp
275582: HTTP after parseTemplate: taskenable, i2ctemp
275584: Command: taskenable
275584: taskenable, i2ctemp
275585: Par1: 0 Par2: 0 Par3: 0 Par4: 0 Par5: 0
275595: sendcontent free: 208136 chunk size:4096
275613: sendcontent free: 209720 chunk size:1427
275621: sendcontent free: 204620 chunk size:0
275633: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
275648: sendcontent free: 210036 chunk size:1084
275656: sendcontent free: 205284 chunk size:0
275671: UDP : 48:3F:DA:59:32:07,192.168.188.47,2
275712: static_file: /favicon.ico
275713: HTML : Request file /favicon.ico
275718: sendcontent free: 209720 chunk size:390
275726: sendcontent free: 208460 chunk size:0
275741: SI7013 : sn=91cd6-32114854
275741: P014: chip_id=50
276897: sendcontent free: 210816 chunk size:813
276906: sendcontent free: 208964 chunk size:0
278119: sendcontent free: 209808 chunk size:1351
278132: sendcontent free: 206244 chunk size:0
278157: sendcontent free: 210828 chunk size:453
278165: sendcontent free: 208976 chunk size:0

@tonhuisman
Copy link
Contributor

As this may be related to updates in the Arduino framework libraries, can you test this Actions run, where I have included a newer version of those libraries?

@eigthyeight
Copy link
Author

Sure!
Unfortunately this does not solve the issue, still no readout:(

@TD-er
Copy link
Member

TD-er commented Mar 20, 2023

Can you try with "Check I2C devices when enabled:" unchecked on the Tools->Advanced page?

@eigthyeight
Copy link
Author

that solved it! Thanks for helping :)
new feature which requires some more work?

@tonhuisman
Copy link
Contributor

tonhuisman commented Mar 20, 2023

new feature which requires some more work?

Yes, that's a new feature, to see if the sensor is still connected, and disable the task if it's not responding as expected. But this just indicates that this sensor doesn't like to be re-detected while it also needs to do measurements.
I'll create a PR to disable that for this plugin.
Edit: This Actions run has the downloads, once it's finished.

@TD-er
Copy link
Member

TD-er commented Mar 20, 2023

that solved it! Thanks for helping :) new feature which requires some more work?

Thank you for testing....

@eigthyeight
Copy link
Author

glad to help, if you need a fix tested please let me know

@tonhuisman
Copy link
Contributor

glad to help, if you need a fix tested please let me know

Yes please, this Actions run should have a fix, where you should turn back on the Check I2C devices when enabled option in Tools/Advanced, and check if the HTU21D is responding as expected.

@eigthyeight
Copy link
Author

fix works, HTU21D is working as usual with "Check I2C devices when enabled" on
Thanks for all your great work on this project!

@tonhuisman
Copy link
Contributor

Thanks for testing 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants