-
Notifications
You must be signed in to change notification settings - Fork 305
Closed
Description
I have upgraded the library to 2.6.1 using pip install meshtastic==2.6.1 and cannot connect to my seeed-xiao-s3 using the serial port. I have tested my other device - tbeam is working fine with 2.6.1.
My platform:
- Windows 11 x64
- meshtastic --version:
2.6.1 - device: seeed-xiao-s3
- firmwareVersion:
2.6.4.b89355f
test.py code:
import logging
logging.basicConfig(
level=logging.DEBUG,
format="%(levelname)s file:%(filename)s %(funcName)s line:%(lineno)s %(message)s",
)
import meshtastic.serial_interface
iface = meshtastic.serial_interface.SerialInterface()
print(iface.getMyNodeInfo())
Running my code
pip install meshtastic==2.6.1
python .\test.py
DEBUG file:serial_interface.py __init__ line:36 ports:['COM11']
DEBUG file:serial_interface.py __init__ line:47 Connecting to COM11
DEBUG file:stream_interface.py __reader line:151 in __reader()
DEBUG file:stream_interface.py _sendToRadioImpl line:114 Sending: want_config_id: 2549725438
DEBUG file:stream_interface.py _sendToRadioImpl line:119 sending header:b'\x94\xc3\x00\x06' b:b'\x18\xfe\xf1\xe6\xbf\t'
Traceback (most recent call last):
File "d:\dev\meshtastic\test.py", line 10, in <module>
iface = meshtastic.serial_interface.SerialInterface()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\serial_interface.py", line 74, in __init__
StreamInterface.__init__(
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\stream_interface.py", line 55, in __init__
self.connect()
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\stream_interface.py", line 79, in connect
self._waitConnected()
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\mesh_interface.py", line 1073, in _waitConnected
raise MeshInterface.MeshInterfaceError(
meshtastic.mesh_interface.MeshInterface.MeshInterfaceError: Timed out waiting for connection completion
Also --info does not work
meshtastic --info
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "d:\dev\meshtastic\.venv\Scripts\meshtastic.exe\__main__.py", line 7, in <module>
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\__main__.py", line 2062, in main
common()
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\__main__.py", line 1261, in common
client = meshtastic.serial_interface.SerialInterface(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\serial_interface.py", line 74, in __init__
StreamInterface.__init__(
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\stream_interface.py", line 55, in __init__
self.connect()
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\stream_interface.py", line 79, in connect
self._waitConnected()
File "d:\dev\meshtastic\.venv\Lib\site-packages\meshtastic\mesh_interface.py", line 1073, in _waitConnected
raise MeshInterface.MeshInterfaceError(
meshtastic.mesh_interface.MeshInterface.MeshInterfaceError: Timed out waiting for connection completion
Reverting to 2.6.0 pip install meshtastic==2.6.0 - everything is fine - can connect to seeed-xiao-s3:
python .\test.py
DEBUG file:serial_interface.py __init__ line:36 ports:['COM11']
DEBUG file:serial_interface.py __init__ line:47 Connecting to COM11
DEBUG file:stream_interface.py __reader line:151 in __reader()
DEBUG file:stream_interface.py _sendToRadioImpl line:114 Sending: want_config_id: 673038973
DEBUG file:stream_interface.py _sendToRadioImpl line:119 sending header:b'\x94\xc3\x00\x06' b:b'\x18\xfd\x84\xf7\xc0\x02'
DEBUG file:mesh_interface.py _handleFromRadio line:1258 in mesh_interface.py _handleFromRadio() fromRadioBytes: (...)
DEBUG file:mesh_interface.py _handleFromRadio line:1270 Received from radio: packet {
(.......)
CLI is working correctly
meshtastic --info
Connected to radio
(.......)
Owner: (...)
My info: (...)
Metadata: (...)
todd-herbert, accik and CLAiMORE
Metadata
Metadata
Assignees
Labels
No labels