Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi Everyone,

   

When I'm trying to connect my device with Cysmart either in android or IOS, I'm getting disconnected frequently.

   

In android getting the msg Bluetooth Disconnected, whereas in IOS I'm getting "Connection Timed out unexpectedly".

   

How to achieve consistency in connectivity and what are the parameters which are affecting the connectivity.

   

Regards, 

   

Jatin

0 Likes
1 Solution
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi Jatin,

   

Probably your peripheral project have some issue. If possible, please share your project and steps to reproduce to test at our side.

   

Please let us know the below:

   

- Whether the peripheral is advertising again after the disconnection?

   

- Are you using our BLE pioneer kit or custom board?

   

- Did you check the Disconnect reason at peripheral side ? Are you getting disconnect event ?

   

 How to check:

   

Event CYBLE_EVT_GAP_DEVICE_DISCONNECTED : Disconnected from remote device or failed to establish connection. Parameter returned with the event contains pointer to the reason for disconnection, which is of type uint8. For details refer core spec 4.2, vol2, part D .

   

So what you have to do in the project is hope there will be a UART to see the debug prints in the project. If then, in the CYBLE_EVT_GAP_DEVICE_DISCONNECTED event, print the event parameter value, for eg:

   

printf("Error code is : 0x%x",*(uint8 *)eventParam);

   

and see what error code are you getting. Now check in the core spec part mentioned, there you can find the reason of error code. This is the way to find the reason.

   

 

   

Thanks & Regards,

   

Anjana

View solution in original post

0 Likes
1 Reply
AnjanaM_61
Moderator
Moderator
Moderator
10 questions asked 5 comments on KBA First comment on KBA

Hi Jatin,

   

Probably your peripheral project have some issue. If possible, please share your project and steps to reproduce to test at our side.

   

Please let us know the below:

   

- Whether the peripheral is advertising again after the disconnection?

   

- Are you using our BLE pioneer kit or custom board?

   

- Did you check the Disconnect reason at peripheral side ? Are you getting disconnect event ?

   

 How to check:

   

Event CYBLE_EVT_GAP_DEVICE_DISCONNECTED : Disconnected from remote device or failed to establish connection. Parameter returned with the event contains pointer to the reason for disconnection, which is of type uint8. For details refer core spec 4.2, vol2, part D .

   

So what you have to do in the project is hope there will be a UART to see the debug prints in the project. If then, in the CYBLE_EVT_GAP_DEVICE_DISCONNECTED event, print the event parameter value, for eg:

   

printf("Error code is : 0x%x",*(uint8 *)eventParam);

   

and see what error code are you getting. Now check in the core spec part mentioned, there you can find the reason of error code. This is the way to find the reason.

   

 

   

Thanks & Regards,

   

Anjana

0 Likes