Skip to content

meshtastic --ble DE:D6:F7:35:0A:84 --listen - How to access a device in listen mode ? #902

@ZababurinSergei

Description

@ZababurinSergei

Hi.
system: Ubuntu 25.10

I connect to the node in listening mode.

meshtastic --ble DE:D6:F7:35:0A:84 --listen

Connection is work.

DEBUG file:manager.py _parse_msg line:970 received D-Bus signal: org.freedesktop.DBus.ObjectManager.InterfacesRemoved (/): ['/org/bluez/hci0/dev_54_2E_48_23_88_CB', ['org.freedesktop.DBus.Properties', 'org.freedesktop.DBus.Introspectable', 'org.bluez.Device1']]
DEBUG file:ble_interface.py from_num_handler line:104 FROMNUM notify: 1113
DEBUG file:manager.py _parse_msg line:970 received D-Bus signal: org.freedesktop.DBus.Properties.PropertiesChanged (/org/bluez/hci0/dev_DE_D6_F7_35_0A_84/service0025/char0029): ['org.bluez.GattCharacteristic1', {'Value': <dbus_fast.signature.Variant ('ay', b'Z\n\x10\x0f\x18\x10 \xfe\xe0\xf2\x96\x0c')>}, []]
DEBUG file:client.py read_gatt_char line:727 Read Characteristic 2c55e69e-4993-11ed-b878-0242ac120002 | /org/bluez/hci0/dev_DE_D6_F7_35_0A_84/service0025/char0029: bytearray(b'Z\n\x10\x0f\x18\x10 \xfe\xe0\xf2\x96\x0c')
DEBUG file:ble_interface.py _receiveFromRadioImpl line:213 FROMRADIO read: 5a0a100f181020fee0f2960c
DEBUG file:mesh_interface.py _handleFromRadio line:1299 in mesh_interface.py _handleFromRadio() fromRadioBytes: b'Z\n\x10\x0f\x18\x10 \xfe\xe0\xf2\x96\x0c'
DEBUG file:mesh_interface.py _handleFromRadio line:1311 Received from radio: queueStatus {
  free: 15
  maxlen: 16
  mesh_packet_id: 3269243006
}

But the next step I want to get information about the node.

meshtastic --ble DE:D6:F7:35:0A:84 --info

And I get an error

sergei@sergei-ThinkPad-T14-Gen-1:~$ meshtastic --ble DE:D6:F7:35:0A:84 --info
INFO file:ble_interface.py scan line:129 Scanning for BLE devices (takes 10 seconds)...
Traceback (most recent call last):
  File "/home/sergei/.local/bin/meshtastic", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/__main__.py", line 2208, in main
    common()
    ~~~~~~^^
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/__main__.py", line 1368, in common
    client = BLEInterface(
        args.ble if args.ble != "any" else None,
    ...<3 lines>...
        timeout=args.timeout,
    )
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/ble_interface.py", line 64, in __init__
    raise e
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/ble_interface.py", line 60, in __init__
    self.client = self.connect(address)
                  ~~~~~~~~~~~~^^^^^^^^^
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/ble_interface.py", line 178, in connect
    device = self.find_device(address)
  File "/home/sergei/.local/lib/python3.13/site-packages/meshtastic/ble_interface.py", line 158, in find_device
    raise BLEInterface.BLEError(
        f"No Meshtastic BLE peripheral with identifier or address '{address}' found. Try --ble-scan to find it."
    )
meshtastic.ble_interface.BLEInterface.BLEError: No Meshtastic BLE peripheral with identifier or address 'DE:D6:F7:35:0A:84' found. Try --ble-scan to find it.
sergei@sergei-ThinkPad-T14-Gen-1:~$ 

How do I send messages and service alerts to a device via Bluetooth?
When the device is connected, it is unavailable for interaction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions