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
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
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
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