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
-
Make sure the compile dependency references the correct project and the target/source jdk are set to 1.7
-
If you have downloaded the data, you do not need to call the removeLogEntries method; read entries are automatically freed. However, you do need to disconnect from the board before it can completely free the memory. This is necessary because the b…
-
As per the comment on the method from the class documentation: Remove entries from the logger. The erase operation will not be performed until you disconnect from the board. If you wish to reset the board after the erase operation, use the {@l…
-
You use the two pins about GPIO pin 0 and 1. You can check out the hardware spec sheet (https://mbientlab.com/docs/MetaWearPPSv0.7.pdf), section 8: Typical Application Circuit
-
Try the suggestion in the error message: Error:(19, 9) Execution failed for task ':metaWearApp:processDebugManifest'. > Manifest merger failed : Attribute application@icon value=(@drawable/metawear_logo) from AndroidManifest.xml:19:9 is …
-
It is possible the IBeacon portion of the app has been removed. Radius Networks also had an IBeacon app on Android but had to pull it from the store because Apple was cracking down on IBeacon Android apps. http://beekn.net/2014/07/ibeacon-for-and…
-
The firmware is not open source
-
Sorry, looking at the OP again, I have missed a huge majority of your question. Polling GPIO data in the background does require setting up the broadcast, however it also requires recording an event macro that is triggered via the newly added Timer…
-
Broadcasts are processed inside the MetaWearBleService class; your app will never see them unless you create your own BroadcastReceiver class. All you are doing is deciding when the intents should be processed i.e. only when the app is active, or c…
-
The service class has a registerReceiver method or, call useLocalBroadcasterManager(true) to use the LocalBroadcastManager. @Override public void onServiceConnected(ComponentName componentName, IBinder service) { mwService= ((MetaWearBl…
-
Yes it can. As I mentioned in my previous post, bind the receive/intent to the service class or use the LocalBroadcastManager
-
We have a blog post explaining how to use multiple MetaWears in one app (http://projects.mbientlab.com/?p=551) as well as a sample project demoing said feature (https://github.com/mbientlab-projects/MultiMwDemo).
-
http://community.mbientlab.com/discussion/comment/127/ The Cordova page says it was last updated 5 months ago and I don't think many features were supported to begin with.
-
Register the MetaWear broadcast receiver and Intent filter with either the activity, MetaWearBleService, or LocalBroadcastManager. There is no need to bind one service to another.
-
MetaWear can send notifications when any of the DIO pins change state (0 -> 1, 1 -> 0).The short answer is yes, you can use MetaWear to do this.
-
What phone and OS are you using? Also, what firmware version was your board previously using?
-
http://projects.mbientlab.com/?p=619
-
The next app update will have an updated scanner that removes devices that are not metawear or metaboot from the list. We are using some code from Nordic Semiconductor to retrieve the service UUID from the onLeScan callback function. https://gith…
-
No, the functionality of the reconnect method hasn't changed; all that has happened is its moved to a more appropriate class. If you want to continually try to reconnect, then you can register a callback for receivedGattError and make a reconnect c…
-
Hrm...this is very odd. Would you happen to have a friend with an iOS device or other Android device that you can borrow?
-
Getting a null pointer exception at line 292 (https://github.com/mbientlab/Metawear-SampleAndroidApp/blob/2.3/src/com/mbientlab/metawear/app/AccelerometerFragment.java#L292) suggests that the Data Sampling component was not enabled. Try killing the …
-
I'm in the middle of overhauling the app to use the new API.
-
I will not be making the transition until after we have all the features for firmware v1.0 supported in the Android API. Another user has asked for Windows phone support, then decided to make his own library using the Android code as a reference.
-
Mm, unfortunately I don't think we can do what you want solely on the firmware at this time. I'll ping the firmware dev again about enhancements to the low pass filter, possibly making it more like the RMS filter, in its ability to perform a comput…
-
I will be moving the code over to Android Studio in the future, as Eclipse is no longer supported. The last time I tried using Android Studio (back in October), I was disappointed by the lack of basic IDE features (i.e. autocompleting imports, gene…
-
Would the RMS filter be something that you can use instead?
-
You need to add the metawear api to the java build path. Source and jar files are available here:https://github.com/mbientlab/Metawear-AndroidAPI/releases
-
Hrm...looks like the low pass filter does not handle signed inputs, which some of the other filters do (comparator, math, rms). Let me confirm this with the firmware dev.
-
Tap detection will do what you are looking for. You can enable it with enableTapDetection.
-
I don't have anything on the table atm. Is there anything specific I can help answer for you?