Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing a period of notification in the log file when comparing to wireshark capture #226

Open
yoyuasazenth opened this issue Dec 20, 2024 · 3 comments
Labels

Comments

@yoyuasazenth
Copy link

yoyuasazenth commented Dec 20, 2024

Describe the bug
I currently have a system which uses BLE5.0 to stream some raw sensor data via notification through service uuid 0xfff0 and characteristic uuid 0xfff7.
The transmission data rate is about 1.25 kB/s.
The issue i'm currently facing is that sometimes i found missing notification for a long period of time (11 seconds) when wireshark capture shows that the notification packet has been transmitted successfully.
It seems to me that the packet has been transmitted from peripheral device (sensor) to central device (mobile) however for some reason the notification data is not logged into the log file of nRF Connect application.
Therefore, i'd like to know if there is any condition in the application that could caused this behavior?

Expected behavior
The notification should not be missing from the log file if wireshark capture shows that the notification packet has been transmitted successfully.

Screenshots
nrfconnect_issue

Versions (please complete the following information):

  • Android version: 12
  • Phone model: Samsung Galaxy Tab S7 FE TE119
  • App Version: 4.29.1

Additional comments
The timestamp between the log file and the wireshark capture is not equal due to time difference between mobile device and laptop.

@philips77
Copy link
Member

Hi,
It may be that the phone failed to scan those packets, e.g. the controller was busy with something else and missed packets. The app is logging all packet that it gets from the system.

@yoyuasazenth
Copy link
Author

Hi, It may be that the phone failed to scan those packets, e.g. the controller was busy with something else and missed packets. The app is logging all packet that it gets from the system.

Hi,
I have done another test and it seems that the mobile device seems to received the notification packet normally but on the nRF Connect app side it does not received the packet.

This wireshark log is exported from the mobile device itself from btsnoop_hci.log file (this is why i think that mobile device receives the packet successfully since all the packets is present in the android hci log file).
Screenshot 2025-01-02 123515
From the above image, you can see that there is continuous notification from 18:18:38.461007 onwards.

However, from the nRF connect log during the same session, it can be seen that there is notification discontinuity from time 18:18:38.467 and then notification resumes at time 18:19:13.679
Screenshot 2025-01-02 123055

@yoyuasazenth
Copy link
Author

It seems like if i clear cache and clear app data of both nRF Connect and nRF Logger application and restart device then the issue is resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants