You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will log all traffic going through. Note that everything shows up two times, because it goes through the ble module and then into the serial port and vice versa.
299
-
It also helps with figuring out how characteristics are selected:
300
-
```console
301
-
14:32:47.589 | DEBUG | ble_interface.py: No write uuid specified, trying builtin list
302
-
14:32:47.589 | DEBUG | ble_interface.py: Characteristic candidates for write:
303
-
0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 17): Vendor specific ['read', 'write-without-response', 'notify']
304
-
14:32:47.589 | INFO | ble_interface.py: Found write characteristic 0000ffe1-0000-1000-8000-00805f9b34fb (H. 17)
305
-
14:32:47.589 | DEBUG | ble_interface.py: No notify uuid specified, trying builtin list
306
-
14:32:47.589 | DEBUG | ble_interface.py: Characteristic candidates for notify:
307
-
0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 17): Vendor specific ['read', 'write-without-response', 'notify']
308
-
14:32:47.589 | INFO | ble_interface.py: Found notify characteristic 0000ffe1-0000-1000-8000-00805f9b34fb (H. 17)
309
-
```
310
-
Always try the verbose option if something is not working properly.
311
-
312
290
## Advanced Usage
313
291
### TCP socket server
314
292
Instead of the serial port emulation there is a also builtin raw tcp server since version 2.7:
@@ -417,6 +395,32 @@ On Linux you can also use the included systemd (user) service to auto start this
417
395
ble-serial is primarily designed for command line usage. Nonetheless it is possible to import modules of it into another python application. See the
418
396
[`examples/`](https://github.com/Jakeler/ble-serial/tree/master/examples) dir for how to use the ble parts directly.
419
397
398
+
## Troubleshooting
399
+
First you can use `-v` to increase the log verbosity to DEBUG:
400
+
```console
401
+
18:31:25.136 | DEBUG | ble_interface.py: Received notify from 17: bytearray(b'\xb0\xb0\xb0\xb0\xb0\xb0;\xb0\xb0\xb0\xba\xb0\r\x8a')
This will log all traffic going through. Note that everything shows up two times, because it goes through the ble module and then into the serial port and vice versa.
408
+
It also helps with figuring out how characteristics are selected:
409
+
```console
410
+
14:32:47.589 | DEBUG | ble_interface.py: No write uuid specified, trying builtin list
411
+
14:32:47.589 | DEBUG | ble_interface.py: Characteristic candidates for write:
412
+
0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 17): Vendor specific ['read', 'write-without-response', 'notify']
413
+
14:32:47.589 | INFO | ble_interface.py: Found write characteristic 0000ffe1-0000-1000-8000-00805f9b34fb (H. 17)
414
+
14:32:47.589 | DEBUG | ble_interface.py: No notify uuid specified, trying builtin list
415
+
14:32:47.589 | DEBUG | ble_interface.py: Characteristic candidates for notify:
416
+
0000ffe1-0000-1000-8000-00805f9b34fb (Handle: 17): Vendor specific ['read', 'write-without-response', 'notify']
417
+
14:32:47.589 | INFO | ble_interface.py: Found notify characteristic 0000ffe1-0000-1000-8000-00805f9b34fb (H. 17)
418
+
```
419
+
Always try the verbose option if something is not working properly.
420
+
421
+
If this is not enough use the double verbose `-vv` flag. It activates debug logging also for the underlying [bleak](https://github.com/hbldh/bleak) module and shows interactions with the bluetooth stack more detailed.
422
+
Check out the [issue tracker](https://github.com/hbldh/bleak/issues) there too, it is often helpful for problems not directly caused by ble-serial.
423
+
420
424
## Known limitations
421
425
* Chromium 73+ based applications, including NW.js/electron desktop apps, for example current Betaflight/INAV Configurator: Connection to the virtual serial port (pty) fails. This is because of explicit whitelisting in chromium.
0 commit comments