Failed to run QN9090 DK6 SDK BLE examples

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Failed to run QN9090 DK6 SDK BLE examples

跳至解决方案
4,570 次查看
uiraeta
Contributor II

Hi,

I am trying to debug de Heart Rate Sensor BLE example in the QN9090 DK6 Evaluation board but I can´t see the transmitted information in the NXP IoT Toolbox (Smartphone). The example project is compiled and debuged with no errors or warnings, the smartphone scans the NXP_HRS advertising and the comunnication is established. However, the Heart Rate data is not displayed in the app.

I try to snif the transmitted data and the packet are apparently empty (file attached).

I have tried it with other examples and the same thing happens.

The code of the example has not been modified. MCUXPresso IDE version 11.3.0. NXP IoT Toolbox version 5.1.4. QN9090 DK6 SDK version 2.6.3.

Awaiting reply..

Thanks

Unai Iraeta

0 项奖励
回复
1 解答
4,506 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @uiraeta,

The device is pulling away, you will get the reason ‘gHciConnectionTimeout_c’ after disconnecting.

What is the phone that you are using? Is it possible that you could use another phone to connect to the device?

Did you enable the security in the example? Are you seeing a pop-up on the phone requesting security?

Regards,

Mario

在原帖中查看解决方案

0 项奖励
回复
8 回复数
4,561 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @uiraeta,

I hope you are doing great.

Did you enable some security? Did you modify the code?

Could you please share a capture of the IoT Toolbox?

I tested by my side, and I am seeing the data.

Regards,

Mario

0 项奖励
回复
4,547 次查看
uiraeta
Contributor II

Hi @mario_castaneda,

I have not modified anything in the code, I just followed the steps described in the "Bluetooth Low Energy Demo Applications User's Guide" document. I have also tried to download again the SDK and reinstall it to make sure that I have not made any modifications in the code.

Best regards,

Unai

0 项奖励
回复
4,541 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @uiraeta,

You are following the process correctly. I am working with a phone with Bluetooth 5. However, is it possible that you could select the Exclamation mark?

Also, could you please disable the low power mode?

/* Enable Power down modes
* Need cPWR_UsePowerDownMode to be set to 1 first */
#define cPWR_FullPowerDownMode 0//1

 

mario_castaneda_0-1625842938589.png

Let me know your findings.

Regards,

Mario

0 项奖励
回复
4,528 次查看
uiraeta
Contributor II

Hi @mario_castaneda,

I am also working to a phone with Bluetooth 5.

When I press the exclamation mark a window is opened but automatically closed and then it disconnects.

I have tried disabling the low power mode and the same happens.

I have read that the IoT app uses the location to work with the BLE scan, in my working place I have not good mobile internet connection (4G), but I am connected with WiFi, could this connection affect in the data transfer?

Regards,

Unai

0 项奖励
回复
4,519 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

 Hi @uiraeta,

I have read that the IoT app uses the location to work with the BLE scan, in my working place I have not a good mobile internet connection (4G), but I am connected with WiFi, could this connection affect the data transfer?

No, it won't affect if you have an internet connection.

Is it possible that you could check the reason for the disconnection event?

Please look at the next function that shows the disconnect case and you could look at the disconnect event.

static void BleApp_ConnectionCallback (deviceId_t peerDeviceId, gapConnectionEvent_t* pConnectionEvent)

gapDisconnectedEvent_t disconnectedEvent; /*!< Data for gConnEvtDisconnected_c: reason for disconnection. */

Regards,

Mario

0 项奖励
回复
4,512 次查看
uiraeta
Contributor II

Hi @mario_castaneda,

The described reason for disconnection is: gHciRemoteUserTerminatedConnection_c.

Regards,

Unai

0 项奖励
回复
4,507 次查看
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi @uiraeta,

The device is pulling away, you will get the reason ‘gHciConnectionTimeout_c’ after disconnecting.

What is the phone that you are using? Is it possible that you could use another phone to connect to the device?

Did you enable the security in the example? Are you seeing a pop-up on the phone requesting security?

Regards,

Mario

0 项奖励
回复
4,493 次查看
uiraeta
Contributor II

Hi @mario_castaneda ,

I tried with other phone and it work. The Iot app did not have permissions to connect to the internet, now is also working in my phone.

Thanks for helping me,

Unai