This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Feeding data into the BDS example

I've recently been playing around with Bluetooth Developer Studio, and I can see it's potential despite it having a few annoying bugs.

I've set up a custom service by re-purposing the Battery Service for now (For some reason I couldn't get an exact copy of the battery service to actually send any sort of data value despite my best efforts). Now I'm trying to figure out how to actually pass data from read from the TWI into these characteristics and have them update.

I can't seem to understand where I should be putting data to make this happen. Am I missing something obvious here?

Parents
  • What problems did you have with the battery service? In the generated code you can set the battery level with ble_bas_battery_level_set(), which is defined in ble_bas.c. I just tested by adding the battery service (unmodified) to a design with the heart rate profile, and what I set with ble_bas_battery_level_set() is what I read as the attribute value in Master Control Panel.

  • My end goal here is to generate some code for a product, so it's helpful to know that I am going down the wrong path with BDS right now. Are there any tutorials or other posts that explain clearly the best way to do this without using BDS? I thing the biggest problem for me without using BDS it's difficult to ensure all the correct things have been instantiated in the correct ways. It just seems very complex at the software level.

Reply
  • My end goal here is to generate some code for a product, so it's helpful to know that I am going down the wrong path with BDS right now. Are there any tutorials or other posts that explain clearly the best way to do this without using BDS? I thing the biggest problem for me without using BDS it's difficult to ensure all the correct things have been instantiated in the correct ways. It just seems very complex at the software level.

Children
No Data
Related