Eric
Do not send private messages with technical questions; they will be discarded. All technical questions must be posted publicly on the forum.
About
- Username
- Eric
- Joined
- Visits
- 9,275
- Last Active
- Roles
- Administrator
Comments
-
Data is fine for me on my Nexus 6 running Android M. What sensors are you seeing the funny data from? Another user had mentioned that the CSV file was only outputting decimals and he modified the app to use another data delimeter. This could be …
-
See my post from a previous thread with a similar question.
-
Marshal the IntPtr to a Core.Data object
-
Doing a Google search of "status_device_power_failure bluetooth windows 10" suggests this error code being seen across multiple laptop vendors and is related to W10 driver issues. The first thing you can do it try to pair your PC with other BLE dev…
-
For 1) and 2), you want programCommandsToRunOnEventAsync For 3), use setLEDColorAsnyc with NO
-
Not sure what could be wrong with your code. Have you tried only enabling the step counter? This code works for me on my CPro. final boolean silent= false; final Bmi160Accelerometer accModule = mwBoard.getModule(Bmi160Accelerometer.class); acc…
-
See my post from this thread: http://community.mbientlab.com/discussion/comment/2252/#Comment_2252 Since you have the exact same error, further conversation about this bug should be merged with the aforementioned thread.
-
MetaWear uses a Bluetooth Low Energy radio. Your computer/device needs to have a Bluetooth 4.0 compliant radio and be using an OS that supports Bluetooth Low Energy. For Windows, that would require Windows 8 or 10.
-
The write/notifies from your log are correct; that is the expected write/notify exchanges from initialization. Since you're not getting a null pointer when requesting a data signal, then it would appear that everything is working fine. The datasi…
-
* Is the battery inserted correctly? * BLE scanning in the background requires location permissions. Double check the MetaWear app has the appropriate permissions. * Does the MetaWear show up in the Bluetooth pairing menu?
-
You need to enable the step counter with the StepDetectionConfigEditor as mentioned in the Step Detection. There is sample code at the bottom in the second code section that demonstrates this. Also, I don't think the BMI160 handles both step count…
-
The Message class has a getData() function to retrieve the bytes.
-
What is the address of acc_signal and battery_signal? If my hunch is correct, then they are set to NULL which means something went wrong with the initialization.
-
Use the app to update the firmware. The latest firmware for env and detector boards is 1.2.1.
-
Use the MetaWear app.
-
What firmware version are you running and what type of MetaWear board do you have?
-
I would first program the switch to only turn on the LED. Then, use the disconnect event to erase the pattern and set the color to red, and when you connect to the board again, erase the pattern and set the color to green.
-
api v0.3.0 changed how the library handled ble communication. You should read the v0.3.0 how to page:https://github.com/mbientlab/Metawear-CppAPI/wiki/API-v0.3.0-How-To
-
The second parameter is a delegate that accepts an IntPtr, as defined in the Core.cs class.https://github.com/mbientlab/Metawear-CppAPI/blob/0.4.15/wrapper/csharp/Core.cs#L12
-
The firmware calculates battery level based on the battery voltage. The battery gatt service only provides the battery level but if you use the readBatteryState function (only firmware v1.1.0 and higher), you can get at battery voltage value which …
-
What is the actual byte data that is returned in the Message class? If a npe is being thrown, then it seems like invalid data is getting sent from the board. Double and single taps have different enable and interrupt bits on the accelerometer so …
-
final Bmi160Accelerometer bmi160AccModule= mwBoard.getModule(Bmi160Accelerometer.class); final boolean silent= false; bmi160AccModule.routeData().fromStepCounter(silent).stream("step_counter").commit().onComplete(new AsyncOperation.CompletionHa…
-
All sensor configurations must be made before you start the accelerometer; the start function is the last function to call. Motion default values are listed on the BMI160 spec sheet section 2.11.25. Your best bet however, is to find the settings …
-
The Android Switch class is not the same as the MetaWear Switch class. The MetaWear Switch is a simple class with only 1 function and is only used here in the sample app. There seems to be some confusion over the concepts of a stream and monitor,…
-
Oh wow yeah, that documentation is not up to date nor complete. Sorry about that. The step counter only sends the step data when requested. You have to manually trigger the request by calling readStepCounter.
-
The iOS and Android APIs are functionally equivalent except for the ANCS module. Using the Android API to log data is detailed on the Android Documentation page; you should read the sections here and here. Streamlined, in that context, simply mea…
-
You need to use a stream not a monitor.https://mbientlab.com/androiddocs/#dr-stream-log
-
I have not had good BLE experiences on Moto G phones. Do you have other Android phones you can test with?
-
You need to enable the step counter, as outlined on the Android docs:https://mbientlab.com/androiddocs/#bmi160-step
-
I followed your steps both closing the app from the app switcher and force closing it from the settings menu, and I was able to program one of the example routes from the Android documentation with no issues. Terminating an app should also end the…