This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Problems with the db discovery module

Hi everybody.

I am opening a dedicate question after a recent topic that already helped me a lot, with another discussion pretty similar to my problem. Resuming briefly, i have two nordic devices, a smart beacon kit (SDK 7.1 with s110) that is sending temperature by notification with a custom service (from service tutorial here on the nordic site), and a DK (SDK 11 with s130) that must receive the values and send it via USB to the PC. I use the ble_app_uart_c as reference on the DK, modified by one of the moderators to find the UUID of my service on the beacon and connect to it (function is_uuid_present), and this works correctly. The problem is that the next step should be find the service on the beacon with the discovery module, in order to start the transmission of the values, but it seems that the discovery module doesn't find the service (it starts correctly, but the function db_disc_handler, which should be called when a discovery event occurs, never executes). I load the two projects (the one on the beacon that i think at this point should be ok, and the one on the DK), can you please help me understand the error, or if i am using correctly the discovery module? Probably is some kind of stupid error caused by my inexperience ^^' Thanks in advance!

Or at least please tell me how should i use correctly the db discovery module, in terms of what field i should fill to make it find my service and characteristic or what esle!

projects.zip

libraries.zip

Parents
  • I uploaded the updated project file, but as you can see the only difference with the older version are the printf's that i used to track down the operations order; i also added a case in on_ble_evt for BLE_GAP_EVT_DISCONNECTED because as you can see in the older version this case wasn't event present. However, even when disconnecting, it doesn't enter in this case, i think because that case is not triggered in any part of the code.

    I am using softdevice s130 and SDK 11 on the nrf51 DK, and softdevice s110 and SDK 7.1 in the smart beacon kit.

    However i can't really understand how it can work on your devices and not on mine, it could really be something about compilation ^^'

Reply
  • I uploaded the updated project file, but as you can see the only difference with the older version are the printf's that i used to track down the operations order; i also added a case in on_ble_evt for BLE_GAP_EVT_DISCONNECTED because as you can see in the older version this case wasn't event present. However, even when disconnecting, it doesn't enter in this case, i think because that case is not triggered in any part of the code.

    I am using softdevice s130 and SDK 11 on the nrf51 DK, and softdevice s110 and SDK 7.1 in the smart beacon kit.

    However i can't really understand how it can work on your devices and not on mine, it could really be something about compilation ^^'

Children
No Data
Related