ST意法半导体
直播中

王一凡

8年用户 242经验值
私信 关注
[问答]

Linux与sensortile进行交互怎么才能有Gatt表

你好
刚开始通过Linux与sensortile进行交互,如果任何机构可以帮我一个忙,我将非常感激
让我有gatt表,uuid等。
问候
Hesan

以上来自于谷歌翻译


以下为原文




Hello
Just starting to interact with sensortile through Linux, would be very appreciated if any body could do me a favor
and let me have the gatt table, uuid,etc..
Regards
Hesan

回帖(3)

王一凡

2018-9-11 17:00:20
有没有人可以提供帮助?请

以上来自于谷歌翻译


以下为原文




Is there any one who could help? please
举报

徐凤

2018-9-11 17:08:29
sensortile是一种多传感器设备,为我们提供了许多物理数据,如加速度,温度等。您可以在官方网站上找到更多有关sensortile的信息:
 
/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fen%2Fevaluation-tools%2Fsteval-stlkt01v1.html
 
还有一个示例应用程序(android / ios)用于接收和监控sensortile数据。 Android SDK和示例应用程序源代码在github上可用:
/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FSTMicroelectronics-CentralLabs%2FSTBlueMS_Android
在尝试使用sensortile捕获一些物理数据时(在一个不是android的平台上)我发现没有使用敏感BLE的数据表或GATT表;但是有一些标准规则。我会在几天内附上一个示例python脚本(使用bluepy),这样你就会看到原始数据......
所以这是关贸总协定表:
ProximityGesture ::运动强度:
 
handle:0x000d,char属性:0x12,char值句柄:0x000e,uuid:00140000-0001-11e1-ac36-0002a5d5c51b
FeatureAcceleration :: FeatureGyroscope :: FeatureMagnetometer:
handle:0x0010,char属性:0x10,char值句柄:0x0011,uuid:00e00000-0001-11e1-ac36-0002a5d5c51b
FeatureAccelerationEvent:
handle:0x0013,char属性:0x12,char值句柄:0x0014,uuid:00000400-0001-11e1-ac36-0002a5d5c51b
FeatureMicLevel:
handle:0x0016,char属性:0x10,char值句柄:0x0017,uuid:04000000-0001-11e1-ac36-0002a5d5c51b
FeatureMemsSensorFusionCompact:
handle:0x0019,char属性:0x10,char值句柄:0x001a,uuid:00000100-0001-11e1-ac36-0002a5d5c51b
FeatureCompass:
handle:0x001c,char属性:0x10,char值句柄:0x001d,uuid:00000040-0001-11e1-ac36-0002a5d5c51b
FeatureActivity:
handle:0x001f,char属性:0x12,char值句柄:0x0020,uuid:00000010-0001-11e1-ac36-0002a5d5c51b
FeatureCarryPosition:
handle:0x0022,char属性:0x12,char值句柄:0x0023,uuid:00000008-0001-11e1-ac36-0002a5d5c51b
FeatureMemsGesture:
handle:0x0025,char属性:0x12,char值句柄:0x0026,uuid:00000002-0001-11e1-ac36-0002a5d5c51b
FeatureAudioADPCM:
handle:0x0028,char属性:0x10,char值句柄:0x0029,uuid:08000000-0001-11e1-ac36-0002a5d5c51b
FeatureAudioADPCMSync:
handle:0x002b,char属性:0x10,char值句柄:0x002c,uuid:40000000-0001-11e1-ac36-0002a5d5c51beach特性包含3个描述。您必须将值0x0100写入每个char的第一个描述(这是一种标准方法)。然后sensortile将作为通知连续发送数据。您可以同时启用多个通知。通知将作为特征值到达。所以你可以区分通知。
注1:
 
对于两个第一个字符,数据有以下patern:
2字节<时间戳> 2byte< acc data x> 2byte< acc data y> ... 2byte< mag数据间距>
在SDK git页面上有一些关于数据结构和uuid前缀的更多信息:
https://github.com/STMicroelectronics-CentralLabs/BlueSTSDK_Android/tree/b490d4d382e6f8dddbf9ce6e02414a53d576cd58
笔记2:
 
每个char数据都有两个第一个字节的时间戳,流数据(音频)除外
 注意:原始帖子包含大量线程对话,只能迁移到第9级

以上来自于谷歌翻译


以下为原文




sensortile is a multi-sensor device, giving us many physical data such as acceleration, temprature, etc. you can find out more about sensortile on official website:

/external-link.jspa?url=http%3A%2F%2Fwww.st.com%2Fen%2Fevaluation-tools%2Fsteval-stlkt01v1.html

there is also an example application (android/ios) for recieving and monitoring sensortile data. the android SDK and example app source code are available on github:
/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FSTMicroelectronics-CentralLabs%2FSTBlueMS_Android
while trying to use sensortile to catch some physical data (on a platform that's not android) i found out there is no datasheet or GATT table for using sensortile BLE; however there is some standard rules. i will attach a sample python script (uses bluepy) in a few days so you will see the raw data...
so here is the GATT table:

ProximityGesture::Motion Intensity:

handle: 0x000d, char properties: 0x12, char value handle: 0x000e, uuid: 00140000-0001-11e1-ac36-0002a5d5c51b
FeatureAcceleration::FeatureGyroscope::FeatureMagnetometer:
handle: 0x0010, char properties: 0x10, char value handle: 0x0011, uuid: 00e00000-0001-11e1-ac36-0002a5d5c51b
FeatureAccelerationEvent:
handle: 0x0013, char properties: 0x12, char value handle: 0x0014, uuid: 00000400-0001-11e1-ac36-0002a5d5c51b
FeatureMicLevel:
handle: 0x0016, char properties: 0x10, char value handle: 0x0017, uuid: 04000000-0001-11e1-ac36-0002a5d5c51b
FeatureMemsSensorFusionCompact:
handle: 0x0019, char properties: 0x10, char value handle: 0x001a, uuid: 00000100-0001-11e1-ac36-0002a5d5c51b
FeatureCompass:
handle: 0x001c, char properties: 0x10, char value handle: 0x001d, uuid: 00000040-0001-11e1-ac36-0002a5d5c51b
FeatureActivity:
handle: 0x001f, char properties: 0x12, char value handle: 0x0020, uuid: 00000010-0001-11e1-ac36-0002a5d5c51b
FeatureCarryPosition:
handle: 0x0022, char properties: 0x12, char value handle: 0x0023, uuid: 00000008-0001-11e1-ac36-0002a5d5c51b
FeatureMemsGesture:
handle: 0x0025, char properties: 0x12, char value handle: 0x0026, uuid: 00000002-0001-11e1-ac36-0002a5d5c51b
FeatureAudioADPCM:
handle: 0x0028, char properties: 0x10, char value handle: 0x0029, uuid: 08000000-0001-11e1-ac36-0002a5d5c51b
FeatureAudioADPCMSync:
handle: 0x002b, char properties: 0x10, char value handle: 0x002c, uuid: 40000000-0001-11e1-ac36-0002a5d5c51beach characteristic contains 3 description. you must write value 0x0100 to first description of each char (this is an standard method). then sensortile will send you data continuously as notification. you could enable multiple notifications at the same time. notifications will arrive as characteristic value. so you can distinguish notifications.
note1:

for two first chars, data has following patern:
2byte

李辰圻

2018-9-11 17:26:18
我试图连续读取传感器融合值,但值不会根据传感器的方向而改变。
我确信传感器运行正常,因为它与BlueMS应用程序完美配合。
你可以分享你在上一篇文章中提到的Python脚本吗?

以上来自于谷歌翻译


以下为原文




I tried to read the Sensor fusion values continuously but the values are not changing in correspondence to the sensor's orientation.
I am sure that the sensor is functioning properly as it is working perfectly with BlueMS app.
Can you please share the Python script which u have been mentioning in the previous post.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分