You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Device: Xiaomi Mi 10T Lite and Samsung S20 FE
OS: Android 12
Describe the bug
When using the Bluetooth measure in carp_connectivity_package, the output are cumulative intermediate measurements instead of only the final result. In other words, instead of waiting for results, multiple measurements appear in the output with an increasing number of devices found in the Bluetooth scan. Concretely, the first result is likely to contain no found Bluetooth devices in the vicinity, the second measurement a few, in the third measurement, a few more, et cetera. The total number of measurement on my phone was 12 instead of just 1.
Additionally, in the case of using a FileDataEndPoint, the measurements appear in invalid JSON format (see attachment).
To Reproduce
Download the example app in apps/carp_mobile_sensing_app
In pubspec.yaml change research_package to research_package: ^1.2.0 (otherwise pub get doesn't work)
Do pub get
Go to getStudyProtocol in Sensing/local_study_protocol_mananger.dart
Replace everything after protocol.addMasterDevice(phone); with the following code (to focus on one sensor):
> flutter doctor -v
[√] Flutter (Channel stable, 3.3.8, on Microsoft Windows [Version 10.0.19044.2251], locale en-GB)
• Flutter version 3.3.8 on channel stable at C:\Flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 52b3dc25f6 (2 weeks ago), 2022-11-09 12:09:26 +0800
• Engine revision 857bd6b74c
• Dart version 2.18.4
• DevTools version 2.15.0
[√] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
• Android SDK at C:\Users\u0134047\AppData\Local\Android\sdk
• Platform android-33, build-tools 33.0.0
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
• All Android licenses accepted.
[√] Chrome - develop for the web
• Chrome at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe
[√] Visual Studio - develop for Windows (Visual Studio Community 2022 17.1.2)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.1.32319.34
• Windows 10 SDK version 10.0.20348.0
[√] Android Studio (version 2021.3)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin can be installed from:
https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)
[√] VS Code (version 1.72.2)
• VS Code at C:\Users\u0134047\AppData\Local\Programs\Microsoft VS Code
• Flutter extension can be installed from:
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[√] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.19044.2251]
• Chrome (web) • chrome • web-javascript • Google Chrome 107.0.5304.107
• Edge (web) • edge • web-javascript • Microsoft Edge 107.0.1418.56
[√] HTTP Host Availability
• All required HTTP hosts are available
• No issues found!
The text was updated successfully, but these errors were encountered:
Device / Emulator and OS
Please complete the following information for each phone and/or emulator you're experiencing this bug on:
Describe the bug
When using the Bluetooth measure in
carp_connectivity_package
, the output are cumulative intermediate measurements instead of only the final result. In other words, instead of waiting for results, multiple measurements appear in the output with an increasing number of devices found in the Bluetooth scan. Concretely, the first result is likely to contain no found Bluetooth devices in the vicinity, the second measurement a few, in the third measurement, a few more, et cetera. The total number of measurement on my phone was 12 instead of just 1.Additionally, in the case of using a
FileDataEndPoint
, the measurements appear in invalid JSON format (see attachment).To Reproduce
pub get
doesn't work)getStudyProtocol
inSensing/local_study_protocol_mananger.dart
Replace everything after protocol.addMasterDevice(phone); with the following code (to focus on one sensor):
I then get the following output after a couple of minutes:
Expected behavior
A properly formatted JSON file with exactly one Bluetooth measurement.
Actual behavior
Output
Flutter doctor -v
The text was updated successfully, but these errors were encountered: