Deepak010

About

Username
Deepak010
Joined
Visits
114
Last Active
Roles
Member

Comments

  • Hello Eric, I have been trying to do this, but the issue I am facing now is when I run the logging for the first time, I am able to get the intended number of logs while downloading, after this, when I disconnect my board, reconnect after a few sec…
  • Hey Eric, Thanks for that information. Can you tell me what is the way I can clear the logged data from the board? Do I just have to call just the logModule.clearEntries() method or is there any other call to any method too that I have to make? P…
  • Tried that. Same result. Only the first board returns values. The second one doesn't.
  • I was able to get 3 axes working with sample size of 50. Next, in our application we need both gyro and accel data with the same spec. Is there any customization of the board that we can do to achieve that? I am assuming that the current board su…
  • Is there any way to get the details of this error message? "java.lang.RuntimeException: onConnectionStateChanged reported non-zero status: 8" After starting the scanning and waiting for around 20 seconds, the board is automatically disconnecting an…
  • contd.. accelCtrllr.routeData().fromZAxis() .process(new Sample(sampleSize)) .process(streamKeyZPassthrough, new Passthrough(Passthrough.Mode.COUNT, (short) 0)) .stream(streamKeyZ).commit().onComplete(new AsyncOperation.Comp…
  • I tried to do what you said but still got some issues. The code I have is : accelCtrllr.routeData().fromXAxis() .process(new Sample(sampleSize)) .process(streamKeyXPassthrough, new Passthrough(Passthrough.Mode.COUNT, (short) 0)) …
  • Whenever I try to run this code, I get a message saying "I/Failure﹕ Processor configuration key 'z_axis_event_data_passthrough' already present" but the app doesn't crash. Instead, it continues to scan. Later on when I stop the scanning, after a …
  • I tried that too but after so much trying, I am still stuck. I used the code in my second comment and tried tweaking it a bit. Finally I ended up with this : final String streamKeyX= "x_axis_event_data"; final String streamKeyY= "y_axis_event_data";…
  • Oh! Thanks for the clarification. The documentation you have for sample shows that we can use sample filter with routeData().fromAxes().  Can you tell me if there is any other filter that can hold 200 odd xyz data prior to the trigger? Or atleast …
  • When I logged out the error, I got this message : Cannot attach sample filter to data longer than 4 bytes.
  • I also tried using this but failed to get any data from the board. accelCtrllr.routeData().fromXAxis() .process(new Sample(sampleSize)) .process(streamKeyX, new Passthrough(Passthrough.Mode.COUNT, (short) 0)) .log(streamKeyX)…
  • Hey Eric, I have been trying out various stuff and it looked like I cannot even log X axis, y axis and z axis separately. So, I am trying to do something like this accelCtrllr.routeData().fromAxes() .process(new Sample((byte) sampleSize)) …
  • Extra info: I have tried using this app in Android Kitkat, Lollipop, Marshmallow. None of them worked. I am using the RG board with firmware version 1.0.4.
  • Hi, Has this feature been included in the latest android API? If yes, can you tell me how to use it? Thanks, Deepak
  • Hey Eric, I made some changes to my code and made it in this way: if (mwBoard.isConnected()) { accelCtrllr.start(); } else{ Log.i("mwBoard", "Not Connected"); } and public void onServiceConnected(ComponentName name, IBinder service) { …
  • The mwBoard.isConnected() is returning true. And that's the reason a call to the accelCtrllr.start() is being made. And another reason for me to believe that it is connected is because I have added an else condition that logs a message saying mwBoar…
  • Hey Eric, I tried the above method. I put the mwBoard.connect(); method before the code and then this seems to do the work inside the onServiceConnected method. But I am now getting a Null Pointer Exception at accelCtrllr.start(); which is called on…
  • I am using the same method that I was using with the old API. I am giving the bluetooth device connection to the activity using parcelable data. This was working fine in the kitkat phone but with the new API, it is not working anymore
  • The code flow goes like this public void onServiceConnected(ComponentName name, IBinder service) { Log.i("Service", "Connected"); serviceBinder = (MetaWearBleService.LocalBinder) service; mwBoard= serviceBinder.getMetaWearBoard(MW_Board…
  • There's absolutely nothing in between both of them. Both are coded together. But I am getting a NullPointerException when I call the setOutPutDataRate.
  • Hey Eric, I managed to come out of this issue. But bumped into another issue. The app now works fine with android lollipop. But when I run it on a phone running Android Kitkat, I get a NullPointerException at accelCtrllr.setOutputDataRate(100.f); …
  • I am having an active BLE connection with the MetaWear R board before calling the getModule. I am connecting to the board in the previous activity and passing it on to the accelerometer activity.
  • Hey Eric, I changed my gradle file to upgrade the API in my app to 2.0.7 but when I sync the gradle files and rebuild the project, I am getting an error saying "package com.mbientlab.metawear.api does not exist". Have these files been modified in th…
  • May I know where I can find the documentation to use the Gyro sensor? And in which fragment is the Gyro sensor being used?
  • Thanks a lot Eric! That helped me a lot!