tbfs25

About

Username
tbfs25
Joined
Visits
96
Last Active
Roles
Member

Comments

  • public void retrieveBoard() { final BluetoothManager btManager= (BluetoothManager) getSystemService(Context.BLUETOOTH_SERVICE); final BluetoothDevice remoteDevice= btManager.getAdapter().getRemoteDevice(MW_MAC_ADDRESS…
  • In the oncreate function @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); //**** some code ***** handler.post(tickUi); private final Runnable tickUi = new Runnable() { @Override p…
  • I'm also having trouble when restarting the app. I get the same error as before (probably because the timer was already implemented once?)
  • Now it works! Thanks a lot! This is probably a silly question, but if the function timer start is in the timerDelegate, how do I stop the timer? 
  • I was able to connect the metamotionR to an arduino device which can again read the signal of the sensor. Everything is implemented with the i2c connection and works perfectly fine
  • Thanks anyway Eric! If that's the case I am probably going to use an analog distance sensor. If you have any other suggestions of digital distance sensors that already work with your MetaMotion or if you already experimented with some, I would be gl…
  • I reseted the MetamotionR and by using the Starter App I was able to read the register from the BMP280 sensor. Thanks Eric! Still, by just reading the first regiter I need from my distance sensor I got the same error as before ('Reading i2c data t…
  • The example code doesn't work. Here my code (I tried it with both, the id-register from the Barometer and the WHO_AM_I register from the accelerometer): var serialPassthrough = metawear.GetModule(); byte[] result = await serialPassthrough.ReadI2CAs…
  • sorry the code I send in the last comment was wrong. Here the correct version: public async Task readReg(ushort reg)         {             try             {                 byte regHigh = (byte)(reg >> 8 & 0xFF);                 byte regLo…
  • Thank you Eric! I will try to rewrite my functions as asynchronous Tasks with results. By the way I took a look on the new c# SDK and realised that the i2c connection (as well as many other things) is much easier to implement with this API. So I t…
  • Is there any way I could await the result of this function before returning the value? I tried to get different results by changing the sequence of these functions( i.e. by putting the write and read_with_parameters_function before the i2cDataHandle…
  • The function should read the value of the register, instead if I print the ReadValue it never changes it is always 0. So there is no difference between if I connect the  VL1680x sensor and if I disconnect it, the ReadValue remains the same. I checke…
  • I tried to use the existing Arduino library for the VL6180x as a template for my code, but I'm still having trouble with the read function though. My read function looks like this: public byte readReg(ushort reg)         {             var i2c_sign…
  • I'm using the pololu VL6180X Time-of-Flight Distance Sensor As you can see in the description of the quick setup guide, I have to write to register adresses that exceed the range of a byte. https://www.pololu.com/product/2489/resources
  • Thanks Eric! Now there are no error messages so it should work. Still there is a problem. I have to write to a register with the adress 0x208. If I'm correct this value exceeds the range of a byte, nevertheless the function mbl_mw_i2c_write only acc…
  • By changing the sensor parameters and changing the connection min and max intervals to 20 and 50 ms I get a pretty good data stream. I noticed that the accelerometer and gyro data stream are able to be streamed much faster than the sensor fusion. Bu…
  • By changing the time for response it finally works! Thank you very much! I can stream the sensor data too, but there is quite a delay when streaming on the raspi 3 (about half a sec). I tried to change the connection parameters and changed the conn…
  • Sorry for the misunderstanding. Is it correct that the managedArray is an array with two entries? I get the same content for both raspi and computer: 1,128  2,128  3,128  4,128  5,128  6,128  7,128  8,128  9,128  10,128  11,128  12,128  13,128  15,1…
  • Computer managed array 212836064 212836056 212836112 212836008 212836088 212836000 212836016 212836032 212836248 212836168 212836176 212836128 212836136 212836216 212836144 212836200 212836224 212836184 212836160 212836192 212836208  212836232   2…
  • Thank you for the quick response! When running the code on the computer I get the status 0 at the initialize function. While for the managed Array I get 26 characters. While when running on the raspi3 I get the status 16 first. So basically I get …