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 -->
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 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
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))
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
I have enabled the telemetry on a firmware config.
API/Firmware bug possibly
What rev of code and node is it on? Rak? Wonder if it's a resource issue
I run current master on LilyGo T3-S3 v1.2 with firmware v2.7.5.
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 now too. I will get back as soon as I get more info. Thank you!