Hi All,
First of all, I know I posted this before but I did not get any more answers and I really need to get this right. ( https://e2e.ti.com/support/wireless_connectivity/bluetooth_low_energy/f/538/t/491894 )
I am using the SimpleBLECentral project connected to the SimpleBLEPeripheral (CC2650DK). I have set DEFAULT_ENABLE_UPDATE_REQUEST to FALSE on the central device and to TRUE on the Peripheral. I know that at a time equal to DEFAULT_CONN_PAUSE_PERIPHERAL after the connection has been stablished, the peripheral device will send a connection parameter update request to the central device.
The result of this update request is shown on the LCD:
SimpleBLECentral_processRoleEvent(gapCentralRoleEvent_t *pEvent){
switch (pEvent->gap.opcode){
....
case GAP_LINK_PARAM_UPDATE_EVENT:
{
LCD_WRITE_STRING_VALUE("Param Update:", pEvent->linkUpdate.status,10, LCD_PAGE2);
}
...
}
}
My question is: Which are the possible values for pEvent->linkUpdate.status?
Sometimes I get 0 on the LCD, other times I get 105 and some others 240. I tried to understand by myself where the status is set, but i did not succeed.
In synthesis, I want to know:
1 - Where, in the code of the central device, the status is set after reception of the update request from the peripheral.
2 - Which are the possible values for pEvent->linkUpdate.status
As suggested by Sean2, I read the bcomdef.h file but non of the values I see on the screen are among the possible values defined for bStatus_t defined there.
I get 105, 20, 47 and other values when using the default out-of-the box projects (central and peripheral). I would like to understand the meaning of these status values and the reason why I get so many different results when I am using the hex files provided when installing the BLE stack.
I apologize once more for posting this again but I waited over a week and, as I said before, I really need this information.
Thanks,
Daniel