Telemetry packets disconnect the node #69

Closed
opened 2026-10-05 01:19:24 +02:00 by adam · 6 comments
Owner

I have enabled the telemetry module on the node to share temperature, humidity, pressure, and AQI.

Looks like the telemetry packets rise the exception:

2025-08-18 20:29:53,849 | WARNING | System: Abrupt Disconnection of Interface detected
ERROR:root:Unexpected error in deferred execution <class 'serial.serialutil.SerialException'>
2025-08-18 20:29:53,851 | DEBUG | System: Retrying interface1 in 15 seconds
Traceback (most recent call last):
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\meshtastic\util.py", line 308, in _run
o()
~^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\meshtastic\mesh_interface.py", line 1131, in
lambda: pub.sendMessage("meshtastic.connection.lost", interface=self)
~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\pubsub\core\publisher.py", line 216, in sendMessage
topicObj.publish(**msgData)
~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\pubsub\core\topicobj.py", line 452, in publish
self.__sendMessage(msgData, topicObj, msgDataSubset)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\pubsub\core\topicobj.py", line 482, in __sendMessage
listener(data, self, allData)
~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\pubsub\core\listener.py", line 237, in call
cb(**kwargs)
~~^^^^^^^^^^
File "E:\uv\Projects\meshing-around\modules\system.py", line 844, in onDisconnect
interface.close()
~~~~~~~~~~~~~~~^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\meshtastic\serial_interface.py", line 83, in close
self.stream.flush() # FIXME: why are there these two flushes with 100ms sleeps? This shouldn't be necessary
~~~~~~~~~~~~~~~~~^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\serial\serialwin32.py", line 345, in flush
while self.out_waiting:
^^^^^^^^^^^^^^^^
File "E:\uv\Projects\meshing-around.venv\Lib\site-packages\serial\serialwin32.py", line 447, in out_waiting
raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError()))
serial.serialutil.SerialException: ClearCommError failed (OSError(9, 'Wrong descriptor.', None, 6))

I have enabled the telemetry module on the node to share temperature, humidity, pressure, and AQI. Looks like the telemetry packets rise the exception: 2025-08-18 20:29:53,849 | WARNING | System: Abrupt Disconnection of Interface detected ERROR:root:Unexpected error in deferred execution <class 'serial.serialutil.SerialException'> 2025-08-18 20:29:53,851 | DEBUG | System: Retrying interface1 in 15 seconds Traceback (most recent call last): File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\meshtastic\util.py", line 308, in _run o() ~^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\meshtastic\mesh_interface.py", line 1131, in <lambda> lambda: pub.sendMessage("meshtastic.connection.lost", interface=self) ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\pubsub\core\publisher.py", line 216, in sendMessage topicObj.publish(**msgData) ~~~~~~~~~~~~~~~~^^^^^^^^^^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\pubsub\core\topicobj.py", line 452, in publish self.__sendMessage(msgData, topicObj, msgDataSubset) ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\pubsub\core\topicobj.py", line 482, in __sendMessage listener(data, self, allData) ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\pubsub\core\listener.py", line 237, in __call__ cb(**kwargs) ~~^^^^^^^^^^ File "E:\uv\Projects\meshing-around\modules\system.py", line 844, in onDisconnect interface.close() ~~~~~~~~~~~~~~~^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\meshtastic\serial_interface.py", line 83, in close self.stream.flush() # FIXME: why are there these two flushes with 100ms sleeps? This shouldn't be necessary ~~~~~~~~~~~~~~~~~^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\serial\serialwin32.py", line 345, in flush while self.out_waiting: ^^^^^^^^^^^^^^^^ File "E:\uv\Projects\meshing-around\.venv\Lib\site-packages\serial\serialwin32.py", line 447, in out_waiting raise SerialException("ClearCommError failed ({!r})".format(ctypes.WinError())) serial.serialutil.SerialException: ClearCommError failed (OSError(9, 'Wrong descriptor.', None, 6)) <!-- github-sync-id:3332682546 -->
adam closed this issue 2026-10-05 01:19:24 +02:00
Author
Owner

You enabled the telemetry on a firmware config and this happened?!

Or you used this scrip?

https://github.com/SpudGunMan/meshing-around/blob/main/script/send-environment-metrics.py

You enabled the telemetry on a firmware config and this happened?! Or you used this scrip? https://github.com/SpudGunMan/meshing-around/blob/main/script/send-environment-metrics.py <!-- github-comment-id:3199025384 -->
Author
Owner

I have enabled the telemetry on a firmware config.

I have enabled the telemetry on a firmware config. <!-- github-comment-id:3199028384 -->
Author
Owner

API/Firmware bug possibly

What rev of code and node is it on? Rak? Wonder if it's a resource issue

API/Firmware bug possibly What rev of code and node is it on? Rak? Wonder if it's a resource issue <!-- github-comment-id:3199035563 -->
Author
Owner

I run current master on LilyGo T3-S3 v1.2 with firmware v2.7.5.

I run current master on LilyGo T3-S3 v1.2 with firmware v2.7.5. <!-- github-comment-id:3199069937 -->
Author
Owner

I can't replicate it on a tbeam

You sure it wasn't set while the bot was running? The node rebooted?

I can't replicate it on a tbeam You sure it wasn't set while the bot was running? The node rebooted? <!-- github-comment-id:3199227276 -->
Author
Owner

I can't replicate it now too. I will get back as soon as I get more info. Thank you!

I can't replicate it now too. I will get back as soon as I get more info. Thank you! <!-- github-comment-id:3203533150 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/meshing-around#69