-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Had a strange behaviour today when upgrading meshcore-cli ...
$ mccli -D
DEBUG:meshcore:Connecting with client: None, address: FB:F2:5C:40:4F:77, device: None
DEBUG:meshcore:Connecting using provided address
INFO:meshcore:BLE Connection started
DEBUG:meshcore:Connected successfully: FB:F2:5C:40:4F:77
DEBUG:meshcore:Sending appstart command
DEBUG:meshcore:Sending raw data: bytearray(b'\x01\x03 mccli')
DEBUG:meshcore:Dispatching event: EventType.CONNECTED, {'connection_info': 'FB:F2:5C:40:4F:77'}, {}
DEBUG:meshcore:Waiting for events [<EventType.SELF_INFO: 'self_info'>], timeout=5.0
DEBUG:meshcore:Received data: 05011616b465415fe469cd00d10896f9d8e7d3866ad65ccd85800923a07a32ffedcee22b000000000000000000000000f2440d0024f400000807663178
DEBUG:meshcore:Dispatching event: EventType.SELF_INFO, {'adv_type': 1, 'tx_power': 22, 'max_tx_power': 22, 'public_key': 'b465415fe469cd00d10896f9d8e7d3866ad65ccd85800923a07a32ffedcee22b', 'adv_lat': 0.0, 'adv_lon': 0.0, 'multi_acks': 0, 'adv_loc_policy': 0, 'telemetry_mode_env': 0, 'telemetry_mode_loc': 0, 'telemetry_mode_base': 0, 'manual_add_contacts': False, 'radio_freq': 869.618, 'radio_bw': 62.5, 'radio_sf': 8, 'radio_cr': 7, 'name': 'f1x'}, {}
DEBUG:meshcore:Sending device query command
DEBUG:meshcore:Sending raw data: 1603
DEBUG:meshcore:Received data: 0d08af0a000000003133204e6f76203230323500536565656420547261636b65722054313030302d650000000000000000000000000000000000000076312e31302e3000000000000000000000000000
DEBUG:meshcore:Dispatching event: EventType.DEVICE_INFO, {'fw ver': 8, 'max_contacts': 350, 'max_channels': 10, 'ble_pin': 0, 'fw_build': '13 Nov 2025', 'model': 'Seeed Tracker T1000-e', 'ver': 'v1.10.0'}, {}
DEBUG:meshcore:Waiting for events [<EventType.DEVICE_INFO: 'device_info'>, <EventType.ERROR: 'command_error'>], timeout=5.0
ERROR:meshcore:Error while querying device: Event(type=<EventType.ERROR: 'command_error'>, payload={'reason': 'no_event_received'}, attributes={})
First transaction (appstart) is ok
But then it fails when doing the device query command ! The event comes before it is awaited and so is not seen !
I've tried to bypass device query, the same error happened on next transaction, so this is not limited to one call ...
@awolden maybe you'll have an idea, so I open the issue
For the moment, version of bleak has been forced to a <2.0 value,
It would also be interesting to know if it works on non-debian systems ...
Metadata
Metadata
Assignees
Labels
No labels