snoran
About
- Username
- snoran
- Joined
- Visits
- 108
- Last Active
- Roles
- Member
Comments
-
Also, sorry for all the questions/comments, but is there anyway to know when logging is complete?
-
Update: It worked all the sudden. I'm a little worried though that it will be robust enough, seeing as it took this long and I didn't make any changes to my code.
-
What I mean is the subscriber for logging accelerometer data. It seems to be, but it is only ever called 4 times. Which is an improvement over exceptions, but I'm not sure why I'm unable to get any more data than that.
-
Is the subscriber intended to be called when downloading logs or do I have to access the data with the onSuccess() method?
-
I never got it working with any of the boards I have (I have about 10 of them). So that is a bit strange and seems to me that either I'm doing something wrong or there is an issue with my phone then.
-
I get this every time: java.lang.RuntimeException: Lost connection while downloading log data06-29 22:40:53.260 12360-12373/cs.umass.edu.metawearlogging W/System.err: at com.mbientlab.metawear.impl.LoggingImpl.disconnected(LoggingImpl.java:189) …
-
I also discovered that task.isFaulted() returns true, meaning it was unsuccessful.
-
Thanks Eric, that did help. It does take about 4-5 seconds for my application to connect to the board and start the accelerometer. Is this what you would expect?
-
Thanks, it's really not a critical component of my application. Also, I was actually using an S6, not an S5 in case you are looking into it further.
-
From the sample application, I get the following exception when I turn off Bluetooth while connected to the Metawear C. 06-27 14:57:37.651 20246-20260/? E/Flow﹕ IOException occurred when accepting connections java.io.IOException: read fai…
-
That's a clever idea. Thank you so much Eric, it works perfectly!
-
I have a workaround below that might suffice. The only issue I have with it is that I can't start the accelerometer in low power. Using an oscilloscope I do see a bit of power savings when I use startLowPower() in Bmi160Accelerometer as opposed to u…
-
It seems that if I use stream instead of monitor, then the void success(RouteManager result) method is properly called and I can respond to motion/no motions events, but I cannot respond to both because I cannot change the passthrough state, since I…
-
I think that I've correctly implemented what you suggested using branches and passthroughs to emulate an if else and setting each passthrough value according to whether we want to detect motion or no motion. The problem I'm having is (1) void succes…
-
That's a really good idea! Thanks Eric
-
It seems that I can enable both NO_MOTION and ANY_MOTION detection, but I must handle both in the same message handler, because they both require the enableMotionDetection() method. I don't know how to interpret the data values in the messages I am …
-
I see. startNoMotionDetection waits for no motion to occur and calls startMotionDetection which is the problem. But I need the board to react both to motion and no motion events, even when it is not connected. Is that possible?
-
I was able to get the example code working after a soft reset. By using stream() instead of monitor() I'm able to get the behavior I want, but only until I disconnect. I thought that was why I should have used monitor, but it does not work.
-
What's interesting and possibly relevant is that I took the example code from the Routing Sensor Data documentation at https://mbientlab.com/androiddocs/latest/routing_sensor_data.html. The LED turns on when I call the code that is in the onSignalAc…
-
You can ignore startNoMotionDetection - I get the same issue when I comment it out. But let me make a correction. The LED will turn on when I call turnOnLed() while connected to the phone. But the LED will not turn on from this call, whether or no…
-
Thank you Eric, my application works like a charm now. As a side note, I don't think the documentation makes it clear what the timeout is. It just now clicked that the timeout is the number of seconds after which advertisements stop.
-
I don't see a method in Settings.ConfigEditor that disables advertisement. Would I call setAdInterval? If so, what would be the correct arguments to disable it?
-
Okay great, thank you very much Eric for your help!
-
Galaxy s6, android 6.0.1.
-
I'm able to connect to it that way. Thank you! I also noticed, interestingly enough, it takes 3 advertisement cycles before the connection is made, which means for an adPeriod of 10 seconds, which is sufficiently frequent for my application, it will…
-
I tried reconnecting to the Bluetooth device by its address, and that did not work, but I have not yet tried reconnecting to a saved MetaWearBoard. It's not ideal but it will do - I'll give it a try, thanks!