I've flashed the USB dongle with an updated SimpleBLECentral code (updated to include the USB configuration) and my goal is to read the advertisement data. I understand that a bunch of 'GAP_DEVICE_INFO_EVENT' events are added to the stack as peripheral devices that are advertising in the area are scanned. However, when I walk through the code with the debugger, these events never occur (I'm using the KeyFobDemo and toggled on advertising).
I understand that the SimpleBLECentral is designed to use a display and joystick (which I don't have) so I updated the START_DEVICE_EVT to simulate a joystick up event (to start scanning). Below is the updated code:
if ( events & START_DEVICE_EVT )
{
// Start the Device
VOID GAPCentralRole_StartDevice( (gapCentralRoleCB_t *) &simpleBLERoleCB );
// Register with bond manager after starting device
GAPBondMgr_Register( (gapBondCBs_t *) &simpleBLEBondCB );
SimpleBLECentral_PerformAction ( START_SCAN ); // calls: OnBoard_SendKeys( HAL_KEY_UP, 0);
simpleBLECentralStartDiscovery();
return ( events ^ START_DEVICE_EVT );
Any ideas why the GAP_DEVICE_INFO_EVENT isn't getting reached? When I debug it goes through the initialization phase and then after a few loops through the OSAL, appears to time out (debugger buttons go gray and I'm not able to step forward).
Thanks!