Other Parts Discussed in Thread: BLE-STACK
Hello everyone!
Sometimes BLE connection between CC2541 and smartphone on Android can be broken with error, but CC2541 stay on connected mode ( GAPROLE_CONNECTED ), or in error mode ( GAPROLE_ERROR ). In this case i try to force disconnected (GAPRole_TerminateConnection()) or reanable Advertising mode ( GAPRole_SetParameter( GAPROLE_ADVERT_ENABLED, sizeof( uint8 ), &enable_adv ); where enable_adv is TRUE ), but this does not always work.
Sometimes mode is still GAPROLE_CONNECTED or GAPROLE_ADVERTISING but there is no signal on the air.
So I have three questions:
1) What should I do if I get GAPROLE_ERROR or GAPROLE_WAITING GAPROLE_WAITING_AFTER_TIMEOUT status?
2) How to find out that the Advertising (or something else in the stack) does not work correctly?
3) Can I completely reinitialize the entire stack without restarting the entire controller?