I am developing an application to control BLE gadget cars:
I have an issue with multiple type of cars (equipped with different electronics): both dropping the connection after a certain amount of time (varied 10-30 sec) with the following error on my XA2:
[W] unknown:0 - void QBluetoothSocketPrivate::_q_readNotify() 48 error: -1 "Software caused connection abort" [W] BleRcCar::errorReceived:64 - QLowEnergyController::Error(UnknownError) 35306
The application is pretty simple: it publishing some data to a characteristics, and subscribes to a battery notification characteristics.
Both characteristics operation working as intended.
I have tried to do the following, but neither helped:
- Reduced the write interval
- Tried with both Random and Public remote address types
- Disabling the battery notification subscribtion
The connection drops randomly after a certain period on my XA2, while it works just fine on a Jolla Cified Aqua fish, both running 22.214.171.124.
Any idea is welcome!