mikesv
About
- Username
- mikesv
- Joined
- Visits
- 112
- Last Active
- Roles
- Member
Comments
-
Hi, I am actually using Eric's link from above . It is not a service but scheduled task. It works great for my project. I have a dedicated Android phone that uploads data from sensor's log when it is in close proximity. I use MQTT and Node-Red to s…
-
Thank you Eric for the quick response. "you should treat the at rest RMS values as a reference point not as an absolute value" - how do I exactly do that if I want to compare two boxers for example. Horizontal punches will be 20% different from ver…
-
Hi Eric, Thank you for all your help. Here is an example how xyz values look like when I flipped the board: http://imgur.com/a/UtJIY I am trying to identify the "energy" of the movement. When a sensor turns I don't want to see 20% spike. …
-
Hi Eric, I finally got the boards back and used your code but the results are better but still different . One sensor is showing .571 and another is .591 although both are lying still on the table for several hours. I guess I have to live with …
-
Thank you Eric, I will try this code and the scheduling piece next week when I get boards back. Even with these issues we are getting great results supporting our idea and planning to buy few more boards to expand our testing base. Do you know if "M…
-
Our testers are wearing both sensors now, when I get them back I will post raw numbers. Could it be related to the board orientation? They weren't flat on the table. Also do you think I should use High Pass Filter to get a better accuracy by remov…
-
the rate is 12.5. here is my code: accModule.setOutputDataRate(12.5f); accModule.setAxisSamplingRange(2); Log.i("tutorial", "programmed"); final float tot=0; mwBoard.removeRoutes(); accModule.routeData() .fromAxe…
-
Thank you Eric. So back to my original question if my code above is in fact correct. When MetaWearBoard.ConnectionStateHandler() is connected I download log off the board and then disconnect in "connected()" method and only connect again on ever…
-
As you have advised I disconnect after I finish log download. I do that in my downloadLog() method. I am using your starter sample. Also what's the most frustrating is that the log gets wiped out if I restart the app. How do I preserve it and downl…
-
It is still not working for me. Even when Runnable reports that the board is connected the ConnectionStateHandler connected() event is not firing. android.os.Handler handler = new android.os.Handler(); private final Runnable sendData = new…
-
Sorry, can you elaborate a bit more? You mean I don't need to run connectDevice(); every time when I download the log? I need the board to reconnect and download when the board is in close proximity from the phone and on WiFi.I can't find any examp…
-
public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); handler.postDelayed(sendData, 900000);//15*60*1000=900000 debug 1min =60000 } //------------------------------------------------------------------------…
-
Thank you Eric. It works but it is very inconsistent. The app is crashing while trying to reconnect and i am losing stored logs. Should I do soft reset, stop and start logging? Here is my code:
-
Thank you Eric. It works but it is very inconsistent. The app is crashing while trying to reconnect and i am losing stored logs. Should I do soft reset, stop and start logging? Here is my code:
-
For some reason the board doesn't re-connect. Works only the first time around. Should I also reset BLE? Thanks! android.os.Handler handler = new android.os.Handler(); private final Runnable sendData = new Runnable(){ public void ru…
-
Thank you Eric. I will try this. Seems like it should work even when the app is not active.
-
if you need date/time : java.sql.Date date = new java.sql.Date(msg.getTimestamp().getTimeInMillis());
-
you mean this: float fRMS = msg.getData(Float.class);
-
you mean this:float fRMS = msg.getData(Float.class);
-
Worked! Thank you Eric.
-
Thank you Eric for the suggestion but I am getting a very strange results now. RMS was in 0.5-0.6 range. When I totaled it over 3 seconds I was expecting to get 3*12.5*0.5= 18.75, I am seeing 2-3 and numbers are changing without me touching the se…
-
-
That worked! Thanks a lot! If I may to ask another question here. I need to upload RMS average over 15 minutes but the "average" module only accept 128 sample points. If I use 12.5 sampling rate for 15 min * 60 = 900 seconds my average over 9…
-
Thank you Eric. Can you tell me why I don't get any output please? private Bmi160Accelerometer accModule = null; // on ready accModule = mwBoard.getModule(Bmi160Accelerometer.class); accModule.setOutputDataRate(5.f); accModule.setAxisSamplingRa…
-
Hi Eric, I am trying to repurpose your fitness tracking application. I thought I would be able to extract data from MetaWareController class, calculate RMS and then instead of writing to SQLiteDatabase upload to IBM cloud where I can utilize Node…