hi, i am using sdk 10, with s120.
i want to advertise data on a single channel with frequency say (2426). is there any sample code or something, with which i can play with.
thanks!!
hi, i am using sdk 10, with s120.
i want to advertise data on a single channel with frequency say (2426). is there any sample code or something, with which i can play with.
thanks!!
Hi,
If you meant BLE advertising you can look at Kristin's answer on this post: devzone.nordicsemi.com/.../
It's for S110 v8, but I have tested it in S110 and S130 v9 and it should be in SDK 10 too. You can look for ble_gap_adv_params_t --> ble_gap_adv_ch_mask_t in infocenter.nordicsemi.com/ for more information.
A tutorial on simple BLE advertising is also in devzone.nordicsemi.com/.../.
Hope it helps, FA
I have used advertising in only one channel and I could detect it with both sniffer and the nRF Master Control Panel. But I do confirm that in the control panel I could see that it takes time to detect the advertisement and also there were missing packets in between. This is expected as the sniffer or the phone search for all three channels in different time slots and might scan the channel you are using in a time that you are not sending anything. Try to reduce the advertisement interval to 100 msec and see what happens (if you are not already less than this). You might also want to double check if you are actually advertising or not? Any error codes in return?
I have used advertising in only one channel and I could detect it with both sniffer and the nRF Master Control Panel. But I do confirm that in the control panel I could see that it takes time to detect the advertisement and also there were missing packets in between. This is expected as the sniffer or the phone search for all three channels in different time slots and might scan the channel you are using in a time that you are not sending anything. Try to reduce the advertisement interval to 100 msec and see what happens (if you are not already less than this). You might also want to double check if you are actually advertising or not? Any error codes in return?