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

Set public address(MAC) without BLE stack

I am trying to write a radio code without using BLE stack here i was able to write down code for initialization of radio and was advertising some random packets. But how should i debug to know that am i advertising correctly or not. I tried to use sniffer for debugging but it was not able to detect it as i have not setted any public address(MAC addr). Do anybody have any idea how to set public address without using BLE stack. So that i can see adv packets on sniffer for that device. Or you know any other technique to debug the code, in-short to validate what i am doing correctly.

Parents
  • Hi,

    You can see how it is done in advertiser_beacon.c in the hrs_advertiser example from SDK 8.1. ("..\examples\experimental_ble_app_multiactivity_beacon\hrs_advertiser....") Particularly the radio configuration part should be interesting.

    If you have a spectrum analyzer or a software defined radio available you can check the spectrum for any impact when transmitting, note that this might be difficult due to WiFi or other in-band noise. Hopefully this answers your question.

    Best regards,

    Øyvind

  • Here my goal is to continuously advertise on three advertising channels.So i only initialized 2 things Timer and Radio. Now i have Initialized radio, adv packets, and adv channels funtions. Now on which registers or function should i enter above MAC address values so during advertising of the device i can see MAC address. JAyesh

Reply Children
No Data
Related