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

Beacon with Uart

Good day,

I would like to switch between two states once I receive a trigger. state1 <---trigger--->state2.

State1 = Beacon/custom manufacturing data  - Beacon Example

Sate2 = Connectable Uart - Uart Example

Trigger = 1 sec timer (maybe push button).

Once you enter connection state, you must remain there with uart until disconnect.

Anyone with pointers to do this? Or what needs to change between to examples?

Thanks

Parents
  • If it is possible to show manufacturing data in advertising frame as well as being connectable then perhaps it is not even needed to have two states?

  • Hi. 

    I'm not sure if I understood the question correctly. 

    It is possible to add manufacturing specific data to a connectable device. What makes you think that isn't possible?

    You can add the manuf. spec. data to the ble_app_uart example in our nRF5 SDK and advertise as a connectable device as usual. 

    Best regards, 
    Joakim

  • Hi Joakim,

    Please see responses below.

    It is possible to add manufacturing specific data to a connectable device. What makes you think that isn't possible? - I was told by another Nordic employee that it is not possible via email, but then I noticed a personal device that did this and so I am asking the question.

    You can add the manuf. spec. data to the ble_app_uart example in our nRF5 SDK and advertise as a connectable device as usual. - Great, thanks, but can you please give me some instructions and sample code? I have played around with both UART and Eddystone examples, and have read a lot of topics on the forum, but not getting it correct. And unfortunately, it seems all answers are just redirects to other topics or examples. It would be great if we can get some actual source code answers. Then, if you help one person, everyone else reading this in the future is also helped.

    Thanks

  • I'm not sure if we have any examples to exactly match your requirement, but I'll take a look at the examples we have.

    If not, I'll try to make a simple example for you.

    Best regards,
    Joakim

Reply Children
Related