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
已解决! 转到解答。
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
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
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
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
Let me know your findings.
Regards,
Mario
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
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
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