一个小游戏/测验:你看我的价值观? (国际米兰preting十六进制值) [英] A little Game/Quiz: Do you see my values? (Interpreting Hex-Values)
问题描述
好吧,我需要一些帮助......我有一个蓝牙LE-体重秤。我可以把树莓派连接到这个规模,并得到了一些数据。但它不容易的,我在这个十六进制沙拉阅读我的价值观。
Okay I need some Help... I got a bluetooth-le-weight-scale. I can connect my Raspberry Pi to this scale and get some data. But its not easy for me to read my values in this hex-salad.
在每次测量后,我得到信息的两行,它应该包含我的价值观
After every measurement I get two lines of Information, which should contain my values
的(我模拟所有测量... 5人只是我推我的手秤上..人2 + 3就是我穿的袜子规模,所以没必要给我一些建议医生如果您发现一些不切实际的值:D)的
规模:5.0千克开始(officaly,但我可以看到一个4.9作为起点),最大180公斤(这可能只是一个安全提示其玻璃的规模。),D =100克
Scale: starts with 5.0kg(officaly, but i can see a 4.9 as starting point), Max 180kg (this could be just a safety note. its a glass-scale), d = 100g
我从显示屏注意的是:
# | Person | m kg| Fat % | TbW % | Mus % | Bone kg | kcal | BMI
1 | 5 |13,3 | 5 | 72,7 | 60,1 | 0,8 | 1056 | 13,3
2 | 3 |73,6 | 26,3 | 51,1 | 34,2 | 3,5 | 2428 | 24,3
3 | 2 |76,8 | 18,5 | 61,1 | 41,9 | 3,4 | 2741 | 24,8
4 | 5 |15,0 | 5 | 70,3 | 58,4 | 0,9 | 1092 | 15,0
5 | 6 | 5,1 | 5 | 73 | 66,5 | 0,5 | 881 | 5,1
我通过蓝牙收到什么:
What I received via Bluetooth:
# | handle | Byte 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
-----------------------------------------------------------------------------
1 | 0x001b | value: 1d 32 05 00 fe 0f 13 11 11 01 12 00 ff 05 09 00 00 00 00
1 | 0x001e | value: 6f 0f 13 11 11 05 20 04 32 f0 d7 f2 59 f2 08 f0 00 00 00
-----------------------------------------------------------------------------
2 | 0x001b | value: 1d c0 1c 00 fe 45 06 00 00 7a 13 00 ff 03 09 00 00 00 00
2 | 0x001e | value: 6f 45 06 00 00 03 7c 09 07 f1 ff f1 56 f1 23 f0 00 00 00
-----------------------------------------------------------------------------
3 | 0x001b | value: 1d 00 1e 00 fe 37 01 00 00 d7 12 00 ff 02 09 00 00 00 00
3 | 0x001e | value: 6f 37 01 00 00 02 b5 0a b9 f0 63 f2 a3 f1 22 f0 00 00 00
-----------------------------------------------------------------------------
4 | 0x001b | value: 1d dc 05 00 fe 80 14 11 11 83 18 00 ff 05 09 00 00 00 00
4 | 0x001e | value: 6f 80 14 11 11 05 44 04 32 f0 bf f2 48 f2 09 f0 00 00 00
-----------------------------------------------------------------------------
5 | 0x001b | value: 1d fe 01 00 fe 5c 15 11 11 ac 16 00 ff 06 09 00 00 00 00
5 | 0x001e | value: 6f 5c 15 11 11 06 71 03 32 f0 da f2 99 f2 05 f0 00 00 00
请注意:
接收值之前每一次,我一定要送我一个规模Unix的时间戳..大部分的时间,我刚刚发送1111111111 0000000000或或类似的东西..但我并没有注意到我送..抱歉..
Note: Each time before receiving the values, I have to send my scale a Unix-timestamp.. most of the times, I had just send 1111111111 or 0000000000 or something like that.. but I did not note what I send.. sorry..
,总还有一个进线,我看准了用户的值,存储的规模。所以,我觉得这些都是不重要的,但也许我错了
there is always another incoming line where I spotted the user values, that are stored in the scale. So I think these are unimportant but maybe I'm wrong
P2,男,身高:176cm,年龄:34
P2, male, Height: 176cm, Age: 34
P3,女,身高:174厘米,年龄:23
P3, female, Height: 174cm, Age: 23
P5,男,身高:100厘米,年龄:10
P5, male, Height: 100cm, Age: 10
所以也许有人能告诉我,像我在哪里可以找到重新presents我的体重信息。我只是看上的人数量
so maybe someone could tell me, like where I can find the Information that represents my weight. I just have spotted the person numbers
感谢帮助和放大器;来自德国的问候
thanks for helping & greetings from germany
推荐答案
OK OK ..我解决它...
ok ok.. I solved it...
0x1b:
重量:字节:1安培; 2
weight: byte: 1 & 2
时间戳:字节5-8
人:字节13
0X1E:
时间戳:字节1-4
人:5
千卡:6和; 7
脂肪:8安培; 9
TBW:10安培; 11
tbw: 10 & 11
肌肉:12安培; 13
muscle: 12 & 13
骨:14安培; 15
bone: 14 & 15
这篇关于一个小游戏/测验:你看我的价值观? (国际米兰preting十六进制值)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!