-
Notifications
You must be signed in to change notification settings - Fork 292
Closed
Description
Hardware: tbeam
Firmware: 2.6.11.60ec05e
Meshtastic CLI Version: 2.7.4
After successfully running a command using the CLI, the Serial Stream doesn't close properly.
Example command and error:
$ meshtastic --info
Connected to radio
Owner: joebishop (a8f8)
My info: { "myNodeNum": 240560376, "rebootCount": 3, "minAppVersion": 30200, "pioEnv": "tbeam", "deviceId": "", "firmwareEdition": "VANILLA", "nodedbCount": 0 }
Metadata: { "firmwareVersion": "2.6.11.60ec05e", "deviceStateVersion": 24, "canShutdown": true, "hasWifi": true, "hasBluetooth": true, "positionFlags": 811, "hwModel": "TBEAM", "hasPKC": true, "excludedModules": 1280, "hasEthernet": false, "role": "CLIENT", "hasRemoteHardware": false }
<all node information like normal, snipped for brevity>
Primary channel URL: https://meshtastic.org/e/#CgcSAQE6AggNEgwIATgBQANIAVAaeEA
ERROR file:stream_interface.py __reader line:227 Unexpected exception, terminating meshtastic reader... 'NoneType' object cannot be interpreted as an integer
Some initial troubleshooting shows commands work, but the error is thrown at the end of the session. Regardless of which option is used, (--nodes, --set lora.region US, etc) the error shows up. The command executes successfully against the node, but it appears closing the stream has a failure.
Traceback is shown when using --port /dev/ACM#. Full system path cut for brevity.
WARNING file:stream_interface.py __reader line:216 Meshtastic serial port disconnected, disconnecting... read failed: [Errno 9] Bad file descriptor
Exception in thread stream reader:
Traceback (most recent call last):
File "/usr/lib/python3.12/threading.py", line 1073, in _bootstrap_inner
self.run()
File "/usr/lib/python3.12/threading.py", line 1010, in run
self._target(*self._args, **self._kwargs)
File "./meshtastic/.meshtastic/lib/python3.12/site-packages/meshtastic/stream_interface.py", line 232, in __reader
self._disconnected()
File "./meshtastic/.meshtastic/lib/python3.12/site-packages/meshtastic/stream_interface.py", line 98, in _disconnected
self.stream.close()
File "./meshtastic/.meshtastic/lib/python3.12/site-packages/serial/serialposix.py", line 533, in close
os.close(self.fd)
OSError: [Errno 9] Bad file descriptor
Thanks for looking into this. I'm happy to provide any additional information or troubleshooting steps.
Metadata
Metadata
Assignees
Labels
No labels