JpEncausse
About
- Username
- JpEncausse
- Joined
- Visits
- 357
- Last Active
- Roles
- Member
Comments
-
When you call the DownloadHandler it will call the LogHandlers you set before. So you have to fill your ArrayList in your LogHandler: @Override public void process(Message message) { messageList.add(message); valueList…
-
A little Bug ? Here is the latest version of my fragment: https://gist.github.com/JpEncausse/a7d1e7067ca9117a8a06 You can see on click I call setup() that will plug a logger on each "sensor": motion, tap, shake, switch, orientation. I stream…
-
Orientation logging and streaming works. How do you debug with LED ? (I dont understand the use of a macro in the Exemple) I try something stupid like that: final Led ledModule = board.getModule(Led.class); ledModule.configureColorChannel(Led.…
-
Okkayyyy on method description of serializeState() you should explain the byte[] is a JSON and it's legal to do new String(serial). I understand that watching the exemple code. In you exemple you do it onComplete() but if we have multiple sensor I…
-
Ok so I added a button to explicitly serialize the board and it seems to work. My understanding: mma8452qModule.routeData().fromOrientation().log("orientation_log").commit().onComplete(new AsyncOperation.CompletionHandler() { @Override …
-
Hi, I do something like this: String mac = board.getMacAddress(); SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE); String serial = sharedPref.getString(mac, null); board.deserializeState(Base64.decode(se…
-
Ok I tried something like this
final IBeacon iBeaconModule= board.getModule(IBeacon.class); mma8452qModule.routeData().fromOrientation().monitor(new DataSignal.ActivityHandler() { @Override …
-
Hi,I get an Error with Graddle script : > Could not resolve com.android.support:appcompat-v7:22.2.1. > Could not get resource 'http://ivyrep.mbientlab.com/com.android.support/appcompat-v7/22.2.1/ivy-22.2.1.xml'. …
-
@gtarbell could you please share your app if you sucessfully talk to MetaWare from windows ? Thanks !
-
Hum, so on Disconect I must serialize the board. And it works with your Inner class ?
ArrayList messages = new ArrayList(); ... mma8452qModule.routeData().fromOrientation().log("orientation_log").commit().onComplete(new AsyncOperation.C…
-
Agreed, - I understand how to change iBeacon parameter - I understand DataProcessor will filter or update the data - I understand Macro will run on board some MetaWare command But how can I change Minor version of the iBeacon when the Accele…
-
Ok so - I find why it do not log accelerometer I'm so stupid and forget the mma8452qModule.start(); - I start to understand why after disconnect it lost logs https://gist.github.com/JpEncausse/a7d1e7067ca9117a8a06 1. 1.On connect I create a Logg…
-
Ok following my previous commont I manage a more simple task:https://gist.github.com/JpEncausse/a7d1e7067ca9117a8a06 I try to log offline the switch: * If I Connect > Setup > Click > Stop > Download IT WORKS * If I Connect >…
-
When log download crash, it crash the board and I have to reset it (I use 2 MetaWare, one without battery attach but it's not very convenient) I have a java.lang.RuntimeException: Cannot instantiate message class on DefaultMetaWearBoard$Loggabl…
-
Hi Eric,I have rewrite my code to be compatible with v2.5.26 (many changes ! but better API) I'm in Firmware 1.0.3 and Hardware 0.2 I have an error when updating to 1.0.4 Here is my latest version: https://gist.github.com/JpEncausse/a7d1e7…
-
Hello,Thanks Eric, I'll try that ASAP. Some feedbacks: Here is my latest "logging" code with "old Android Sample App" https://gist.github.com/JpEncausse/a7d1e7067ca9117a8a06 - I added an Android Persistant Storage of Trigger Ids becau…
-
Hi Eric, I tried : accelController.enableAutoSleepMode(); accelController.startComponents(); But I only log switch not the orientation / motion. Then I tried accelController.enableAutoSleepMode(Accelerometer.SleepModeRate.SMR_50…
-
Hi, I have upgraded my code from previous AndroidApp to this AndroidApp and the code breaks: I was calling: loggingController.readReferenceTick(); But in this version the public void receivedReferenceTick(Logging.ReferenceTick reference) Is no…
-
I don't know what is a period of inactivity :-) My MetaWear is not put on a sport device and activated by mobile app when doing sport My MetaWear is put on a fridge door to log when there is some activity during past 2 weeks. I need to know th…
-
@Eric could you explain to me the sub layer of the API ? I create a trigger for activity (aka FreeFall): loggingController.addTrigger(new Logging.Trigger() { ... } Then I enable motion detection with a Threashold (for sensitivity) and wi…
-
Many Thanks Eric ! 3) Okkkkk so it's the accelerometer "job" that kills the battery I thought it would live month without motions like sen.se product. I assume I'll have to set a polling frequency larger to get longer battery life ? Something…
-
Thanks ! 2. TRANSIENT_STATUS ? That's a strange name for shake ? 3. Ok so if the logging depends on user activity user willl have to "open the door" 16K times thats ok ? I do not want to log the battery only keep the MetaWear "alive" for…
-
Hello, Here is a new version of my code; https://gist.github.com/JpEncausse/b9f526cf853be3829034 I'd like to ask have few more questions: 1. What data can I retrieve in processData() from LogEntry for Activity ? For my log I only writ…
-
Thanks Laura ! My idea is to keep track of Beacon in motion using a Raspberry Pi to do Geofencing / Logging. The NodeJS library node-bleacon already works with estimote stickers (BTW a SDK for NodeJS would be great to handle many MetaWear)
-
Is there a trick to add some proprietary data in iBeacon UUID when it is in motion ? For instance when there is an activity set Minor to 1 (otherwise 0) for X seconds
-
Yes ! Thanks it working great !The NodeJS node-bleacon see it too !
-
Would be great to have this on default board !
-
Thanks !
-
Ok I'll do more test. It seems the board needs to have a strong acceleration to match a motion