How to get connection status?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to get connection status?

1,260 Views
tedwu1
Contributor III

Hi Friend,

I used the MCU of Qn902X and SDK 1.4.0. My device is peripheral role. Did SDK have any function to get connection status?

 

Thank you in advance.

Ted Wu

0 Kudos
Reply
3 Replies

1,239 Views
tedwu1
Contributor III

Hi Mario,

Thank you very much.

Another question, I used SDK 1.4.0 of prj_qpps. I use the library of qn9020b2_lib_peripheral_v40.lib. I changed some defines at usr_config.h. My iphone cannot connect to the device (use prj_qpps) if I defined the parameter of CFG_32K_RCO. Please see the log file of define_CFG_32K_RCO. My iphone connects to the device (use prj_qpps) correctly if I undefined the parameter of CFG_32K_RCO. Please see the log file of undefine_CFG_32K_RCO. My target doesn't have 32KHz crystal. We use 32K RC. Modify the parameters as follows. Could you guide me how to solve?

Thank you very much.

#define CFG_9020_B2

#define CFG_9021_MINIDK

// #define CFG_DC_DC

#define CFG_32K_RCO

 

0 Kudos
Reply

1,230 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @tedwu1,

Please use the lib file for the Bluetooth LE 4.2 version.

For example: "C:\NXP\QN902x_SDK_1.4.0\Projects\BLE\src\lib\keil\qn9020b4_lib_peripheral_v42.lib"

What is the DCDC setup that you have on your question board?

Also, what is the sleep mode that you are setting?

Regards,

Mario

 

0 Kudos
Reply

1,255 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @tedwu1,

Please look at the next API

app_gap_le_create_conn_req_cmp_evt_handler

This could help you to know if the connection has been established, also be sure that if the device disconnects you will receive a disconnect reason.

Regards,

Mario

0 Kudos
Reply