1 of 1 people found this helpful
>>"After the advertisement is ready the Bluetooth should only enabled as short as possible during a small time for transmitting (transmit period: 2 seconds).
If this period is over, no transmission should occur because of interaction with the other parts of the circuit (to avoid a small drop in the power supply)."
Cypress--> By transmission you mean the device is advertising or transmitting data after connection?
In either case the best method is to Start and stop the advertisement whenever it is required (if it is advertising) instead of enabling and disabling the interrupt.
In case of connection, the devices have to communicate each other once for every connection interval. So when the ISR is not serviced the connection breaks after connection timeout. So it is not recommended.
Thanks Ganesh for your answer.
Ganesh--> In case of connection, the devices have to communicate each other once for every connection interval. So when the ISR is not serviced the connection breaks after connection timeout. So it is not recommended.
I understand the answer. The advertisement is not a problem, it is always finished before the interrupt is temporarily disabled.
Anyway, if the connection timeout is long enough the connection should not break - is this correct ?
I also understand that disabling the interrupt is a bad solution. But I didn`t find another solution to avoid small voltage drops in the power supply because of the activity of the BLE stack. Any advice and suggestions for the software will be greatly appreciated.