Other Parts Discussed in Thread: SYSCONFIG
Hi,
I am working on cc2642 and for that, I am using LAUNCHXL-CC26X2R1.
I am using the below IDE and SDK.
- CCS 9.2.0
- simplelink_cc13x2_26x2_sdk_3_30_00_03
- using simple_peripheral_oad_onchip as a base code.
I want to send data in the advertisement packet at every 1 minute after the advertisement device will go in sleep.
I have configured the timer for 1 minute and after the timer expires am sending the updated advertisement packet.
I have attached the test file for your reference(Includes necessary functions only, not compilable).
I have below queries
1) Is my implementation correct for sending an updated packet at every 1 minute(although it works fine).
-> able to see updated packet on ble scanner app on every 1 minute.
-> but in my application central device is cc2642, in scanning mode.
2:) How GapAdv_enableOptions_t options in GapAdv_enable are different than the advertising interval which is configured in sysconfig primIntMin and primIntMax ?
-> In my application GapAdv_enable will be called only once so, after calling GapAdv_loadByBuffer(ADV_DATA2_LEN, advData1); my device will advertise until again timer expires.
-> primIntMin and primIntMax can be configured for about 10s only.
-> so how my device will go in sleep? when it is not advertising.
-> do I need to implement one more timer which disables advertising after some amount of time disables advertisement by calling GapAdv_disable?
3) in scanning side cc2642 which is in scanning mode, getting lots of packets and its hard to differentiate.
-> tried to use duplicate filtering enable the option, but no luck.
Please let me know if you need more information.
Thanks