python icon indicating copy to clipboard operation
python copied to clipboard

--export-config not working with --ble; v 2.7.2 on MacOS 15

Open ulab opened this issue 3 months ago • 1 comments

For a few weeks now I can't seem to export my nodes' (T1000-E, Helltec V3 and others on both stable and alpha versions) configuration using the meshtastic CLI (v 2.7.2 on MacOS 15).

The --ble-scan works fine, but if I try --export-config it just seems to hang.

Adding --debug then does a whole lot of things like fetching nodeinfo packets, but suddenly slows down, repeating lines like the following

DEBUG file:PeripheralDelegate.py peripheral_didWriteValueForCharacteristic_error_ line:467 peripheral_didWriteValueForCharacteristic_error_
DEBUG file:PeripheralDelegate.py peripheral_didUpdateValueForCharacteristic_error_ line:397 peripheral_didUpdateValueForCharacteristic_error_
DEBUG file:ble_interface.py from_num_handler line:102 FROMNUM notify: 4361
DEBUG file:PeripheralDelegate.py peripheral_didUpdateValueForCharacteristic_error_ line:397 peripheral_didUpdateValueForCharacteristic_error_
DEBUG file:ble_interface.py from_num_handler line:102 FROMNUM notify: 4363
DEBUG file:PeripheralDelegate.py peripheral_didUpdateValueForCharacteristic_error_ line:397 peripheral_didUpdateValueForCharacteristic_error_
DEBUG file:ble_interface.py from_num_handler line:102 FROMNUM notify: 4364

ulab avatar Sep 16 '25 14:09 ulab

also serial. Started when i updated to 2.7.3 but I'm not sure what my previous version was. The last related commit i found is https://github.com/meshtastic/python/commit/84417f0bb14beba9607fcb01d08a7a0be932618f

edit: working in https://github.com/meshtastic/python/releases/tag/2.6.4

% mt -s --export-config 
^CTraceback (most recent call last):
  File "/Users/c/miniconda3/bin/meshtastic", line 8, in <module>
    sys.exit(main())
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/__main__.py", line 2198, in main
    common()
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/__main__.py", line 1435, in common
    onConnected(client)
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/__main__.py", line 789, in onConnected
    config_txt = export_config(interface)
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/__main__.py", line 1164, in export_config
    ringtone = interface.getRingtone()
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/mesh_interface.py", line 1100, in getRingtone
    return node.get_ringtone()
  File "/Users/c/miniconda3/lib/python3.9/site-packages/meshtastic/node.py", line 467, in get_ringtone
    time.sleep(0.1)
KeyboardInterrupt

final edit: i reinstalled 2.7.3 and now it's working, odd.

kawfey avatar Oct 27 '25 01:10 kawfey