Problem with MTU size #1748
Unanswered
SimonJonsson1999
asked this question in
Q&A
Replies: 2 comments
-
|
Here is logs from wireshark during the connection that fails |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
-
I have some problems with connecting to a periphiral.
Running the same code yields different results.
When i can connect successfully:
DEBUG:bleak.backends.winrt.scanner:17 devices found. Watcher status: <BluetoothLEAdvertisementWatcherStatus.STOPPED: 3>.
Scanning stop, target device 70:54:64:D7:C5:D4
DEBUG:bleak.backends.winrt.client:Connecting to BLE device @ 70:54:64:D7:C5:D4
DEBUG:bleak.backends.winrt.client:getting services (service_cache_mode=None, cache_mode=None)...
DEBUG:bleak.backends.winrt.client:session_status_changed_event_handler: id: BluetoothLE#BluetoothLE68:c6:ac:54:96:23-70:54:64:d7:c5:d4, error: <BluetoothError.SUCCESS: 0>, status: <GattSessionStatus.ACTIVE: 1>
DEBUG:bleak.backends.winrt.client:max_pdu_size_changed_handler: 247
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
DEBUG:bleak.backends.winrt.client:70:54:64:D7:C5:D4: services changed
Connected to target
and when i can not:
DEBUG:bleak.backends.winrt.client:Connecting to BLE device @ 70:54:64:D7:C5:D4
DEBUG:bleak.backends.winrt.scanner:17 devices found. Watcher status: <BluetoothLEAdvertisementWatcherStatus.STOPPED: 3>.
DEBUG:bleak.backends.winrt.client:getting services (service_cache_mode=None, cache_mode=None)...
DEBUG:bleak.backends.winrt.client:session_status_changed_event_handler: id: BluetoothLE#BluetoothLE68:c6:ac:54:96:23-70:54:64:d7:c5:d4, error: <BluetoothError.SUCCESS: 0>, status: <GattSessionStatus.ACTIVE: 1>
Connected to target
DEBUG:bleak.backends.winrt.client:max_pdu_size_changed_handler: 247
DEBUG:bleak.backends.winrt.client:max_pdu_size_changed_handler: 23
DEBUG:bleak.backends.winrt.client:session_status_changed_event_handler: id: BluetoothLE#BluetoothLE68:c6:ac:54:96:23-70:54:64:d7:c5:d4, error: <BluetoothError.SUCCESS: 0>, status: <GattSessionStatus.CLOSED: 0>
DEBUG:bleak.backends.winrt.client:closing requester
DEBUG:bleak.backends.winrt.client:closing session
I assume it has to do with the max_pdu_size_changed_handler: 23. But i dont understand how to influence this. As i understand it this is negotiated by the ble driver inside my windows machine. Can someone help me or guide me where to look for more info?
Beta Was this translation helpful? Give feedback.
All reactions