Open HiroyukiKashima opened 2 years ago
Hello @HiroyukiKashima , Thank you for reaching out! The notification data from this sample code only shows the raw hex string. In the example, the movement data notification was enabled, so there should be only movement information. To parse the hex string, TI has documentation on this, but they have removed it from their official websites (or at least I cannot find them). Luckily, other websites have copies of it and I also have a copy.
I will work on providing you more information regarding parsing the hex string.
Thank you, Kevin Y.
Dear Kevin,
Thanks for your replies. I am looking forward to your sample python code about how to parsing the hex string.
Best regards, H.Kashima
Hi @HiroyukiKashima ,
Just to update you, we are still working on this topic. I'll update you with sample code as soon as it is ready.
Thank you for your patience, Kevin
Hi Kevin,
Thank you very much for notifying me.
Best regards, Hiroyuki Kashima
His @HiroyukiKashima ,
We weren't able to get a working example in time, but I wanted to provide you a web app that we made that contains examples on how to parse the TI SensorTag data.
Please see this example here: https://github.com/CassiaNetworks/TI-SensorTag-CC2650-Demo/blob/master/js/index.js
Example reading data using the TI Sensortag GATT profile.
BLE Payload Data: dadf095efe1f027001290994ef52ff76ff65fe *
ATT Opcode: da
Data read: df-09-5e-fe-1f-02-70-01-29-09-94-ef-52-ff-76-ff-65-fe
Data is read in little-endian-like format.
Gyro is bytes(字节) 0-5
GyroX : 09df
GyroY : fe5e
GyroZ : 021f
Acc is bytes(字节) 6-11
AccX : 0170
AccY : 0929
AccZ : ef94
Mag is bytes(字节) 7-12
MagX : 2901
MagY : ff76
MagZ : fe65
Here is the documentation I found on how to parse TI SensorTags: https://home.mycloud.com/action/share/c6633833-ef66-4921-a772-06b26b1643fd
Let me know if you have any questions!
Hi Kevin,
Thanks for your replies. I will look into the documentation and the JavaScript code. Then I will try to make the python code by myself maybe after October of 2022.
Best regards, Hiroyuki Kashima
Hi @HiroyukiKashima , Okay, great! Thank you for understanding. I will keep you notified if I have any updates on this. Let me know if you have any additional questions!
When I ran ”python3 container_ti_sensortag_example.py”, I got Notification data Hex code string but not individual sensor text data. I expect that I can get data as following picture. Could you please kindly provide a working python sample code or teach me how to exchange the hex data to individual sensor text data ?
Best regards, kashima-h@macnica.co.jp