This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Yuri,
Can you explain more about how you simulated the mouse movement for 10ms interval? What changes did you make in the HOGPDemo?
Did you use the GAP_LE_Connection_Parameter_Update_Request API? Prototype for this API is defined in the GAPAPI.h file.
Best regards,
Vihang
Vihang,
Thank you for your response.
I will try this ASAP and write back about the results.
Hi Yuri,
What is the Central device (Master) in your test? If it is an iOS device, you might want to take a look at this article :
1. Yes, the master can reject the update parameter request if it does not comply with its stack requirements. As the documentation for the GAP_LE_Connection_Parameter_Update_Request() API states, this function will return 0 on successful execution but this return value does not indicate whether the Master accepted/updated these parameters or rejected them.
2. For that, you will need to look for the etLE_Connection_Parameter_Update_Response in your GAP_LE_Event_Callback(). If this case does not exist in your GAP_LE_Event_Callback() function, you might want to add the case etLE_Connection_Parameter_Update_Response under switch(GAP_LE_Event_Data->Event_Data_Type).
3. When the GAP_LE_Event_Callback() is called with this event type, the GAP_LE_Event_Data->Event_Data.GAP_LE_Connection_Parameter_Update_Response_Event_Data->Accepted field will show you a Boolean indication whether or not the Master accepted the parameters.
4. If it did (...->Accepted = 1), then you can call the GAP_LE_Query_Connection_Parameters() to verify that the connection parameters are updated.
Best regards,
Vihang
Hi Vihang!
1. My master device is an android - Nexus 5.
2. I had no case of "etLE_Connection_Parameter_Update_Response" so i added one as you said.
Afterwards i tried to do a parameter update with the desired interval parameters --->
(GAP_LE_Connection_Parameter_Update_Request(ApplicationStateInfo.BluetoothStackID, ApplicationStateInfo.LEConnectionInfo.BD_ADDR,MINIMUM_MINIMUM_CONNECTION_INTERVAL,MINIMUM_MAXIMUM_CONNECTION_INTERVAL,MINIMUM_SLAVE_LATENCY,28000); )
the value of (...->Accepted ) was Zero, so i understand the response was negative and therefore nothing changed.
do you know of any limitation by android that can cause this ?
Hello Vihang!
After further testing with higher values of interval i am happy to say this is working.
i guess that it was androids problem and although the interval now is over 10mS it is still good enough for me.
I will make some more test and make sure that the change has really taken effect,
I'll update on this subject as soon as i will do this.
thanks again,
Yuri.