At the same time, beacon PHY advertising and GPS reading system

Hi, 

I have a BLE beacon coded PHY example that in SDK 15.2.0. I want to add GPS. I have no idea this situation. How do it? Is there any example about this? How do I do? the reason why I ask this, to finish this job by making minor changes on the code I wrote. Lastly this GPS data should include in UUID data. Thank you for you will give advice. (By the way I will use gps NEO 6M) 

Parents Reply
  • Hi, 

    Sorry for replying a little late. I am already able to update the battery datas in this format. 

    When it comes to advertising the data, you just need to decide on the format and add it to your advertising data, probably as manufacturer specific data (see this thread).

    But my main question is how do PHY encoded beacon and UART data receiver both work together? I combined to both of them that UART example and PHY Beacon example. But I think I'm doing some things wrong.

    Error comes like this. If you want me to post my code I can send it. 

Children
  • sasci said:
    But my main question is how do PHY encoded beacon and UART data receiver both work together

    They are independent things, so should not conflict. You should take a Bluetooth project as starting point, and copy all configurations dependencies etc and code for UART into that. It is a bit tedious work, but that is what you need to do. As there are so many things that needs to be added you will generally have to resolve some build errors like this before you are done.

    As you get this error I wonder if you did it the other way around? I say that because this error tells me that you do not have the SoftDevice header files in your include path (search for NRF_FAULT_ID_SD_ASSERT and you will see it is defined in nrf_sdm.h), which is in the same folder as all other SoftDevice header files. And you need that. As there are more dependencies for Bluetooth, starting with that sample works. And to resolve what is missing, do like this (check the error, serach the code for keywords from the error to see were and how it is used etc).

Related