[sturgeon] BLE client mode doesn't discover services on some devices
Describe the bug I am building an app to connect and lock/unlock my escooter via BLE. The Problem is, that after connecting to the scooter the services arnt getting discovered. I have tested other ble devices and the services are getting discovered succefully. nrf connect on my phone is discovering the services correctly. I am using the simpleble library in cpp. After connecting the size of services is 0 and mtu size is somehow also 0. in bluetoothctl the UART services is being listed with the info command but in the gatt menu the list-attributes command also shows nothing. Note that it only happens when connecting to the scooter iot. I have tested connecting to other devices like an esp32 with ble uart service and it worked..
Any Ideas how to fix that would be greatly appreciated
To reproduce Steps to reproduce the behavior:
- get ssh shell
-
bluetoothctl -
scan on -
connect <mac address> -
info(it shows the uart service (sometimes)) -
menu gatt -
list-attributes(returns nothing)
Expected behavior
list-attributes should show me the services and characteristics of the connected device.
Device (please complete the following information):
- Watch Codename: sturgeon
- Version 1.1-nightly
Additional context btmon log: https://gist.github.com/A-Emile/7d09cea00146529ec96f9d175d55c57a#file-btmon-txt
To help us work on the problem, I have two requests for more information:
- please post the contents of
/etc/os-releasefrom the watch - if you temporarily change the line in
/etc/bluetooth/main.conffromControllerMode = letoControllerMode = dualand reboot the watch, does it seem to work then?
Thanks for the respone!
So here is the conetent of /etc/os-release:
ID=asteroid
NAME="AsteroidOS"
VERSION="1.1-nightly"
VERSION_ID=1.1-nightly
VERSION_CODENAME="${DISTRO_CODENAME}"
PRETTY_NAME="AsteroidOS 1.1-nightly"
BUILD_ID="20240112002713"
LOGO=logo-asteroidos
HOME_URL="https://asteroidos.org/"
And i forgot to mention that i already changed ControllerMode to dual and it didnt seem change anything..