Open jensolsson opened 8 months ago
Hi Jens!
This use case is very similar to our bt_thermometer_client example code. I think you can try that one quickly by replacing the UUIDs here and write the characteristic value here.
My other advice is to use the bt_ncp firmware from the latest Gecko SDK v4.4.1, because it contains an important fix (with the ID 1241153 in this document) that affects the NCP performance.
I hope it helps!
Thanks @silabs-beta
I got the feeling that the new sdk worked slightly better, but issue remains that I often do not get a service when scanning for services. and what I try to do then is to scan for services again, which does not seem to work....
Would love to try the thermometer eample but I think it is a bit over-complicated for such an easy thing with inheritance and a lof ot libraries in the parent folders.
Kind regards Jens
It seem my SERVICE_UUID cannot be found from the python app. If I use NcpCommander I see it when I run sl_bt_rsp_gatt_discover_primary_services(0) However when I do the same from my python script l.bt.gatt.discover_primary_services(connection) I get all services except the one I am interested in, also if I do l.bt.gatt.discover_primary_services_by_uuid(connection, SERVICE_UUID) in the python script it usually do not yield a response. I have not figured out how to run the equalivalent to l.bt.gatt.discover_primary_services_by_uuid on NcpCommander, would be interesting
You can copy the UUID directly from the sl_bt_evt_gatt_service
event received on the sl_bt_gatt_discover_primary_services(0)
command, like this:
The NCP commander also shows hints for the commands while you are typing:
works well, but I have problem interacting with self.lib.btmesh.config_client , whatever I try it returns error 0x502.
self.lib.btmesh.config_client.list_netkeys(0,8228)
Traceback (most recent call last):
File "
I'm not a BT mesh expert, but 0x502 stands for SL_STATUS_BT_MESH_DOES_NOT_EXIST.
Returned when trying to manipulate a key or some other resource with an ID which does not exist.
Does it ring a bell?
@jensolsson , what is the status of your original issue? Do you need more assistance?
Ive got a support ticket raised and am receiving assistance, afaik the Ids im using are correct
sorry I commeneted on someone elses issue, should have started a new one ;)
Hi
I use this library together with a thunderboard which I have installed the correct firmware to. I have a very simple applicaiton that should scan for a specific peripheral, connect to it, find a specific service / characteristic and write to it.
It works sometimes, but commonly for example when I connect and try to retrieve services, I dont get a response. I power cycle the thunderboard and it may work, and then stops working again. Why is it so unreliable?
Here is some sample output: