yabo国际娱乐对话框半导体客户支持十六进制 https://support.dialog-semiconductor.com/resource-keywords/hex 如何解释十六进制值从传感器? https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/how-interpret-hex-values-sensor < div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >我想读一些从DA14583我只是传感器数据得到的。为此,我使用树莓派3模型B,它将建立与传感器的连接。

使用gatttool on the Pi,我能够通过蓝牙连接到设备,我从温度传感器(其中0x20是相应传感器的处理器地址)得到一些值:

>
$ char-read-hnd 0x20
>10 21 00 06 24 40 3f 18 26 97 b0 bb 44 44 7d 70 89 a7 2e

问题是,我不知道如何从这个获得人类可读的温度值。

Over at IBM's I found some code snippet to convert hex into°C and°F。它是Python,但可以很容易地转换为,例如,JavaScript。

但这是一个不同的传感器,它只需要4十六进制块。 I've tried it with any sequence from the above 19 hex blocks, but none gave me a reasonable value.

So, does anyone know how to convert these 19 hex blocks into a temparature between 20°C and 25°C (which it assumingly represents)? I'd be really grateful!

Device: 
2017年4月23日星期日19:51:29 +0000 最惠国 23923年https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/forums/post/dialog-smartbond-bluetooth-low-energy-%E2%80%93-software/how-interpret-hex-values-sensor#comments