5 posts / 0 new
Last post
meriororen
Offline
Last seen:3 years 9 months ago
加入:2015-08-12 13:45
Regarding error codes

Hi Dialog,

Is it possible to get further information about these following error codes?
e.g. what situation can direct to creating these errors

0x41 GAP_ERR_PROTOCOL_PROBLEM : Problem with protocol exchange, get unexpected response?
0x42 GAP_ERR_NOT_SUPPORTED : Request not supported by software configuration
0x45 GAP_ERR_TIMEOUT : Requested operation timeout
0x49 GAP_ERR_PRIVACY_CFG_PB : Problem with privacy configuration

Thank you very much.

Device:
MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
嗨meriororen,

嗨meriororen,

There is no document that indicates the exact reasons that those errors to occur (an additional document other than the one that you have allready seen i suppose - the RW-BLE-GAP-IS.pdf) i can give you a few indications here from what i have come across, for example the GAP_ERR_PROTOCOL_PROBLEM is a quite generic error status and can be send towards you application for any kind of protocol problems. The GAP_ERR_NOT_SUPPORTED is usually send to the application when the operation that it is selected doesn't correspond to the role assigned that the stack is currently configured, for example try to scan while the configuration is a peripheral or try to execute a limited or a general advertise while being in Broadcaster role. The GAP_ERR_TIMEOUT some of the commands have a timeout for example the scanning procedure or the update parameters procedure, so as soon as that timeout occurs the command will respond with the above error. The GAP_ERR_PRIVACY_CFG_PB is related with the privacy configuration flag for example if you have the privacy enabled and you try to start advertising using an invalid bd_address type or in case you try to enable privacy while the role is a broadcaster or in case you dont have to privacy enabled and you attempt to advertise using a GAPM_GEN_RSLV_ADDR or a GAPM_GEN_NON_RSLV_ADDR or a GAPM_PROVIDED_RECON_ADDR.

Thanks MT_dialog

meriororen
Offline
Last seen:3 years 9 months ago
加入:2015-08-12 13:45
Hi, MT_Dialog.

Hi, MT_Dialog.

Thanks for the kind answers.

As for GAP_ERR_PROTOCOL_PROBLEM, what protocol does it mean? communication protocol between stack and applications, or
protocol inside the stack (between stack and physical layer)? or both of them?

Thanks.

MT_dialog
Offline
Last seen:2 months 2 weeks ago
Staff
加入:2015-06-08 11:34
嗨meriororen,

嗨meriororen,

The GAP_ERROR_PROTOCOL_PROBLEM usually indicates error events occured in the stack (unexpected responses received most of the times) and not communication problem between the stack and the application.

Thanks MT_dialog

meriororen
Offline
Last seen:3 years 9 months ago
加入:2015-08-12 13:45
Thanks MT_Dialog.

Thanks MT_Dialog.