-
1. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
HimaM_31 May 2, 2018 4:46 AM (in response to e.pratt_1639216)Hello,
1)Did you use CyBleProcessEvents( ) after CyBle_GappSetNumOfAdvPkts().
2)Are there any other high priority interrupts?
Thanks,
Hima
-
2. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
e.pratt_1639216 May 2, 2018 7:34 AM (in response to HimaM_31)1) I am periodically calling the CyBleProcessEvents() inside the main loop before checking the BLESS states, and after sending commands to the BLESS to do activity. This includes the CyBle_GappSetNumOfAdvPkts():
I am calling:
CyBleProcessEvents(),
<Other code>,
CyBle_GappSetNumOfAdvPkts(),
CyBleProcessEvents(),
<Loop again, or go to low power mode>
2) I have the BLE_bless_isr set to priority 2, and all other priorities set to 3 (ADC_IRQ, ADC_ISR, Button_ISR, WDT_ISR)
-
3. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
e.pratt_1639216 May 2, 2018 8:41 AM (in response to HimaM_31)The BLESS stays in active mode for seconds (minutes if I let it) without leaving the active mode, and seems to only be caused by the CyBle_GappSetNumOfAdvPkts() function. (The unit loops through the main code I replied in my other comment during this time, so I think it is unlikely it is a failure to call the CyBleProcessEvents() unless there is more stringent requirements for the timing to do so.
-
4. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
ranjithk_81 Jun 13, 2018 1:21 AM (in response to e.pratt_1639216)Hi E Pratt,
Can you share the project, so that we can take a look at this behavior?
Thanks,
Ranjith
-
5. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
e.pratt_1639216 Jun 13, 2018 9:07 AM (in response to ranjithk_81)Not publically, no. But I'll open a case and share the code through support so you can view the problem.
-
6. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
e.pratt_1639216 Jun 13, 2018 3:37 PM (in response to ranjithk_81)I have created the case: 00437025 with the project in it for inspection. The case details point out the line used to workaround the issue, and commenting/uncommenting that line will cause the issue to appear/disappear.
-
7. Re: CyBle_GappSetNumOfAdvPkts leaves BLE in ACTIVE state permanently when it finishes?
GyanC_36 Nov 25, 2018 9:16 PM (in response to e.pratt_1639216)Fixed this issue in BLE component version 3.54.
-Gyan