Download sensor value error
Hi,
I'm using metatracker to log sensor data
- temperature with 30 minutes timer
- humidity with 30 minutes timer
- light with threshold at 10 lux
- accelometer (odr 25) with threshold
Sometimes I have errors in download data:
- I don't receive temperature and humidity data
- all temperature value at - 3000 or humidity at 0 and light at 0.
I have tried its with different devices and different smartphones.
Can you help me?
I'm using metatracker to log sensor data
- temperature with 30 minutes timer
- humidity with 30 minutes timer
- light with threshold at 10 lux
- accelometer (odr 25) with threshold
Sometimes I have errors in download data:
- I don't receive temperature and humidity data
- all temperature value at - 3000 or humidity at 0 and light at 0.
I have tried its with different devices and different smartphones.
Can you help me?
This discussion has been closed.
Comments
Post your code and we can try it out on our end.
My setup Temperature and humidity sensor code :
I've setup a test to read temp and humidity every 30 min. A few questions for you:
Hi,
I have other info for you, maybe they can help:
1) We have sniffed the ble packages and we have tested that:
2) We have tested it with iphone and in that case we never lost the values but some time we read some wrong Temperature value at 0. Maybe is it the same error but with different interpratation?
Thanks
Alberto
Sorry: Hardware revision r0.2 I think and firmware 1.3.6
Can you also post the code for the light and accelerometer?
Also, what Android devices / OS are you testing with?
We have used:
Iphone 6 and 7
Huawei p9 e p8, samsung s8 plus, note 3, samsung j7 and other
My accelorometer and light setup code:
accelerometer.configure ().odr ( 25.0f ).commit ();
Another info: Sometimes I have the some problem also with your metabase app.
I use metatracker in this way; maybe it can help:
After doing some tests, I suspect the root cause of these issues is that the battery is low on charge. How long have you been using the current batteries in your devices? If you put in a fresh CR2450 battery, do these issues arise?
we have tested it also with new battery.
https://mbientlab.com/androiddocs/latest/settings.html#battery-state
HI,
I post an example of data reads with your app metabase:
TEMPERATURE with timing at 30 seconds (Only the final values are rights, the other have wrong times and values):
epoch (ms),time (01:00),elapsed (s),temperature (C)
1538641158488,2018-10-04T10:19:18.488,0.000,4.000
1538647890750,2018-10-04T12:11:30.750,6732.262,4.000
1538647899435,2018-10-04T12:11:39.435,6740.947,4.000
1538648284831,2018-10-04T12:18:04.831,7126.343,4.000
1538648284851,2018-10-04T12:18:04.851,7126.363,4.000
1538653712270,2018-10-04T13:48:32.270,12553.782,4.000
1538655550541,2018-10-04T14:19:10.541,14392.053,4.000
1538655975637,2018-10-04T14:26:15.637,14817.149,4.000
1538705888714,2018-10-05T04:18:08.714,64730.223,4.000
1538734266123,2018-10-05T12:11:06.123,93107.633,4.000
1544990932563,2018-12-16T21:08:52.563,6349774.000,4.000
1545019813689,2018-12-17T05:10:13.689,6378655.000,4.000
1545019813708,2018-12-17T05:10:13.708,6378655.000,4.000
1545023307055,2018-12-17T06:08:27.055,6382148.500,384.000
1544932552566,2018-12-16T04:55:52.566,6291394.000,17.875
1544932582564,2018-12-16T04:56:22.564,6291424.500,17.875
1544932612564,2018-12-16T04:56:52.564,6291454.000,17.875
1544932642566,2018-12-16T04:57:22.566,6291484.000,17.875
1544932672566,2018-12-16T04:57:52.566,6291514.000,17.875
1544932702566,2018-12-16T04:58:22.566,6291544.000,17.875
in this case I have the HUMIDITY and LIGHT mixed
How long were you sampling data in that CSV file? It looks like there are lingering data points from previous logged data.
I'll have more time to do another batch of tests tomorrow.