- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, is it possible to send advertising packets on one fixed channel? (instead of three channels)
Also, is it possible for the master node to scan only one fixed channel whenever it scans?
Thank you.
Solved! Go to Solution.
- Labels:
-
Scanning-Advertising
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
check out the mybeacon app for more details:
blecm_startAdv(
HCIULP_ADV_NONCONNECTABLE_EVENT, // non-connectable undirected advertisement
160, // adv interval 100 msec, N*0.625ms
HCIULP_ADV_CHANNEL_MAP_MASK, // all channels
HCIULP_PUBLIC_ADDRESS, // int advAdrType,
HCIULP_ADV_FILTER_POLICY_WHITE_LIST_NOT_USED, // int advFilterPolicy,
HCIULP_PUBLIC_ADDRESS, // int initiatorAdrType,
NULL); // UINT8* initiatorAdr
A gentle reminder on adv_interval, "160" which translates to 100ms is the minimum you can go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know you can do this in mybeacon in under blecm_startAdv, check the header file for defs
#define HCIULP_ADV_CHANNEL_37 0x01
#define HCIULP_ADV_CHANNEL_38 0x02
#define HCIULP_ADV_CHANNEL_39 0x04
Have to check for the scanning
-Kevin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I saw that blecm_startAdv function has parameters to specify the channels. What if I use bleprofile_Discoverable function? Do I need to change function or I can somehow configure it? Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Will ask the developers and see if there's anyway to broadcast on a single channel through bleprofile_Discoverable and if it is possible to scan one channel.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
bleprofile_Discoverable always starts advertisements on 3 channels.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I use blecm_startAdv function, what "advertising duration" will it use? Will it use the values defined in BLE_PROFILE_CFG?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
check out the mybeacon app for more details:
blecm_startAdv(
HCIULP_ADV_NONCONNECTABLE_EVENT, // non-connectable undirected advertisement
160, // adv interval 100 msec, N*0.625ms
HCIULP_ADV_CHANNEL_MAP_MASK, // all channels
HCIULP_PUBLIC_ADDRESS, // int advAdrType,
HCIULP_ADV_FILTER_POLICY_WHITE_LIST_NOT_USED, // int advFilterPolicy,
HCIULP_PUBLIC_ADDRESS, // int initiatorAdrType,
NULL); // UINT8* initiatorAdr
A gentle reminder on adv_interval, "160" which translates to 100ms is the minimum you can go.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks. There is no parameter "advertising duration" in above example. It has adv "interval". When using bleprofile_Discoverable, the "duration" is defined in BLE_PROFILE_CFG.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That means that you need to turn advertisements off when you find it appropriate. To turn advertisements off use blecm_setAdvEnable(0);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If I start advertising using bleprofile_Discoverable(), can I use blecm_setAdvEnable(0) to stop the advertising?
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the API reference, the minimum is 32 slots which I think is 20 ms.
Can you confirm which one is correct? 160 or 32 slots?
Thanks
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
According to the spec you cannot send non-connectable advertisements more often than every 100msec. This rule is enforced in the stack. Connectable advertisements do not have this limitation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I want to follow up with my question, since I still don't have the answer.
Is it possible for the master node to scan only one fixed Adv channel whenever it scans?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In the advertisement report, is it possible for the master to know which channel it receives each advertisement packet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, this information is not exposed to the application. When device is an observer it listen on the certain advertisement channel for the duration of the scan window. The next scan interval it will listen on the next advertisement channel. If peer advertises on all 3 channels, it is pretty much random on which channel will be hit.