分析来自android hdp设备的数据(API 15)
我使用的是HDP样本,我有一个血压传感器(http://www.andonline.com/medical/products/details.php?catname=&product_num=UA-767PBT-C)。我从中获取数据,但我不知道如何将其解析为人类可读的内容 这就是我迄今为止一直尝试的方法,比如:分析来自android hdp设备的数据(API 15),android,parsing,android-4.0-ice-cream-sandwich,android-sensors,health-monitoring,Android,Parsing,Android 4.0 Ice Cream Sandwich,Android Sensors,Health Monitoring,我使用的是HDP样本,我有一个血压传感器(http://www.andonline.com/medical/products/details.php?catname=&product_num=UA-767PBT-C)。我从中获取数据,但我不知道如何将其解析为人类可读的内容 这就是我迄今为止一直尝试的方法,比如: while(fis.read(data) > -1) { String value = null; BigInteger bi = new BigInteger(d
while(fis.read(data) > -1) {
String value = null;
BigInteger bi = new BigInteger(data);
// for(byte b:data){
// value+=b;
// }
Log.d("read data binary", "the data "+bi.toString(2));
Log.d("read data decimal", "the data "+bi.toString());
Log.d("read data hexa", "the data "+bi.toString(16));
Log.d("read data pure", "the data "+data);
// Log.d("read data in for", "the data "+value);
我得到的结果是:
while(fis.read(data) > -1) {
String value = null;
BigInteger bi = new BigInteger(data);
// for(byte b:data){
// value+=b;
// }
Log.d("read data binary", "the data "+bi.toString(2));
Log.d("read data decimal", "the data "+bi.toString());
Log.d("read data hexa", "the data "+bi.toString(16));
Log.d("read data pure", "the data "+data);
// Log.d("read data in for", "the data "+value);
05-01 20:17:56.208:D/读取数据hexa(4760):数据
-1DFFFCD7FFFFFFFFD5AF86FFD97FFFFFFFFF7FFFFFFFFFFFFFF7FFF6E000017FE6C9FD43FF7FFFFFFFFFFFFFFD5AF86FFD7FFFFFFFFFFF7FFFFFFFFFFFF7FFFFFFFFFF7FFFFFFFF7FFFFF6E000017FE6C9FD43FF7FFFFFFFFFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
05-01 20:17:56.208:D/读取纯数据(4760):数据[B@40d67e70 05-01
20:18:04.626:D/读取数据二进制文件(4760):数据
-110011111111111111111111111011111111111111101111111111111111111111111111111101111111111010101101011111000011011111111110110010111111111111111111111111111111101111111111111110111111111111111111111111111111111111111111111111111111111111111111111110111111111111111111111111111111111110111111111111111011011100000000000000000000101111111111001101100100111111101010000111111111101111110111111110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000