-
Notifications
You must be signed in to change notification settings - Fork 298
Closed
Description
I started having this issue today in which my RAK4631 device has started power cycling every couple of seconds. In trying to do a factory reset I'm getting this output:
(meshtastic) tom@tom-arch ~ $ meshtastic --factory-reset
WARNING file:stream_interface.py __reader line:187 Meshtastic serial port disconnected, disconnecting... device reports readiness to read but returned no data (device disconnected or multiple access on port?)
Traceback (most recent call last):
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/serial/serialposix.py", line 621, in write
n = os.write(self.fd, d)
^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 9] Bad file descriptor
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/tom/.virtualenvs/meshtastic/bin/meshtastic", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/__main__.py", line 1383, in main
common()
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/__main__.py", line 974, in common
client = meshtastic.serial_interface.SerialInterface(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/serial_interface.py", line 61, in __init__
StreamInterface.__init__(
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/stream_interface.py", line 50, in __init__
self.connect()
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/stream_interface.py", line 71, in connect
self._startConfig()
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 659, in _startConfig
self._sendToRadio(startConfig)
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/mesh_interface.py", line 690, in _sendToRadio
self._sendToRadioImpl(toRadio)
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/stream_interface.py", line 115, in _sendToRadioImpl
self._writeBytes(header + b)
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/meshtastic/stream_interface.py", line 91, in _writeBytes
self.stream.write(b)
File "/home/tom/.virtualenvs/meshtastic/lib/python3.11/site-packages/serial/serialposix.py", line 655, in write
raise SerialException('write failed: {}'.format(e))
serial.serialutil.SerialException: write failed: [Errno 9] Bad file descriptor
In addition here is my system info:
System: Linux
Platform: Linux-6.8.1-arch1-1-x86_64-with-glibc2.39
Release: 6.8.1-arch1-1
Machine: x86_64
Encoding (stdin): utf-8
Encoding (stdout): utf-8
meshtastic: v2.3.0
Executable: /home/tom/.virtualenvs/meshtastic/bin/meshtastic
Python: 3.11.8 CPython GCC 13.2.1 20230801
If anyone has any suggestions and/or needs more information please let me know. Anything is appreciated.
Metadata
Metadata
Assignees
Labels
No labels