http://www.heartsome.de/android/tisensorapp-release.apk
I changed the follwoing:
a) Sensor service can be started and terminated with Connect to service
b) Sensor values can be stored in a csv file "Start saving values"
c) Sensors to be read can be activated with check boxes, red indicates not active, green active
d) frequency can be set for accelerometer, magnetometer and gyroscope (10-255)
e) gyroscope axis can be set (1-7)
f) Output displayed can be defined with Raw (raw data values), Conv (converted to physical measures), CSV string and Time can be displayed
g) Store only does not display values, but only writes to file (if activated)
h) Get Baro Calibration Data reads the sensors baro Calibration data for conversion
CSV output looks like this:
Code: Select all
SavedLine;SensorCode;Called;Date;TimeMs;DTimeMS;DiffTimeMS;data1;data2;data3;data4;data5;data6;data7;data8;data9;data10;data11;data12;data13;data14
12;H;13;25.9.2014 18:35:14;1411662914562;35306;134;4;105;-21;103;44.7354736328125;25.23338134765624
13;A;14;25.9.2014 18:35:14;1411662914953;35697;391;0;1;16;0;0.0625;-1;0;0.613125;-9.81
15;T;16;25.9.2014 18:35:15;1411662915037;35781;66;-100;-2;-128;12;25;21.05870147231468
16;B;17;25.9.2014 18:35:15;1411662915382;36126;345;4;-3;104;-121;104;958.7684029600323;-764;28.041163444519043;-19431.013358501717;17729286.903381348
17;M;18;25.9.2014 18:35:15;1411662915435;36179;53;112;-7;17;-5;87;-15;51.26953125;38.543701171875;-114.532470703125
18;H;19;25.9.2014 18:35:15;1411662915616;36360;181;4;105;-22;103;44.7354736328125;25.23338134765624
Now the drawbacks/problems:
a) I have the impression that the frequency rates is not really working well, if one looks at the csv file only 3 or 4 sensor measures are made per second. Maybe due to my bad implementation?
b) The conversion for barometer is not really looking good, values are sometimes not correkt compared with other tools. This could be due to the conversion functions which I based on TIs algorithms. Maybe I misunderstood something and made wrong assumptions, mixing up signed and unsigned bytes? But here TI info is not really helpfull as there is a difference between C and Java code shown there. Any ideas corrections are welcome.
c) The accelerometer values are based on a range from -8 - 8g and not -2 - 2g as TI wrote. At least this is my impression.
I can provide the source code no problem. If you want either in GitHub or where needed.
Klemens