Skip to main content



      Home
Home » Eclipse Projects » Kura » TI sensortag CC2650 kura example issue(Problem with reading values from sensortag)
TI sensortag CC2650 kura example issue [message #1756229] Tue, 14 March 2017 06:17 Go to next message
Eclipse UserFriend
Hi. I have problem, and I think that problem is with Kura example.
I am using Raspberry Pi 3 with TI sensortag CC2650. (connected via bluetooth).

When I enable all sensors , and I want to read values from them, I got only Temperature and accelerometer values. Looks like that sensortag resets after that and then starts from beggining.

I used BlueZ tool also, and I can read values from any sensor.
I can read with Kura also, but I cann't read them all together. I tried with mobile app to read from sensortag, and it reads good.
I am using Kura 2.1.
Does anybody have idea what could go wrong? ( Collegue of mine is getting all values good, with same hardware and software setup. I tried his deployment package, but I had same result.)
Could it be something with Raspberry Pi bluetooth module?

I am using org.eclipse.kura.example.ble.tisensortag example.

I am sending you few printscreens also, from kura panel and terminal log, in the attachment.

index.php/fa/28754/0/
index.php/fa/28753/0/
Re: TI sensortag CC2650 kura example issue [message #1756332 is a reply to message #1756229] Wed, 15 March 2017 10:08 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

what is the firmware version of the SensorTag you are using? Is the same version of your colleagues' devices?

It seems to me that also the temperature and accelerometer data you are getting form the SensorTag are wrong (79°C, 0.03°C and 64g)...

Best,
Pier
Re: TI sensortag CC2650 kura example issue [message #1756336 is a reply to message #1756332] Wed, 15 March 2017 10:18 Go to previous messageGo to next message
Eclipse UserFriend
I will check with my colleague for his fw version. FW revision of my cc2650 sensortag is 1.2.1. Hardware revision is 1.3.2
Hm... I think that I red somewhere that values from sensor are not in °C, and needs to be converted... Confused
Re: TI sensortag CC2650 kura example issue [message #1756337 is a reply to message #1756336] Wed, 15 March 2017 10:31 Go to previous messageGo to next message
Eclipse UserFriend
Yes, but the Kura example bundle does the conversion for you.

Best,
Pier
Re: TI sensortag CC2650 kura example issue [message #1756340 is a reply to message #1756337] Wed, 15 March 2017 11:09 Go to previous messageGo to next message
Eclipse UserFriend
Yes, you are right, I've just checked code. Smile
And my colleague has FW revision 1.20 (FROM JUNE 11th 2016), and on my TI sensor tag write that FW rev is 1.2.1, and when I connect from Mobile app (iOS), it says Firmware rev : 1.30 (May 23 2016).

Hm... Looks to me that revision is making problems here ...


Re: TI sensortag CC2650 kura example issue [message #1756342 is a reply to message #1756340] Wed, 15 March 2017 11:47 Go to previous messageGo to next message
Eclipse UserFriend
I agree, probably the new firmware changed something on the characteristics and handles.
Could you send us the output of the "primary" and "characteristics" commands from gatttool?
Re: TI sensortag CC2650 kura example issue [message #1756395 is a reply to message #1756342] Thu, 16 March 2017 07:35 Go to previous messageGo to next message
Eclipse UserFriend
Yes, I can. This is output of primary:

http://prntscr.com/ekn0c7

Characteristics :

http://prntscr.com/ekn0sf
Re: TI sensortag CC2650 kura example issue [message #1758383 is a reply to message #1756395] Tue, 28 March 2017 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

thank you for the screeshots!
The handles, indeed, are different compared with the values listed in TiSensorTagGatt.java file.

I suggest to modify the org.eclipse.kura.example.ble.tisensortag.TiSensorTagGatt file updating the handles for the sensors and you should be able to correctly read from the SensorTag.

Best,
Pier
Re: TI sensortag CC2650 kura example issue [message #1758664 is a reply to message #1758383] Fri, 31 March 2017 07:55 Go to previous messageGo to next message
Eclipse UserFriend
What exactly do you mean? When I compared values from http://www.ti.com/ww/en/wireless_connectivity/sensortag/tearDown.html#main and TiSensorTagGatt.java I didn't find missmatch, but there are missmatchs when I compare characteristics output with TiSensorTagGatt. And how I will know for what register is certain line from characteristics output. I don't know if you understand me, but for example, for handle : 0x0036 from characteristics, how can I check that it's for HANDLE_PRE_SESNOR_PERIOD_2650 from TiSensorTagGatt?
Re: TI sensortag CC2650 kura example issue [message #1758668 is a reply to message #1758664] Fri, 31 March 2017 09:29 Go to previous message
Eclipse UserFriend
I'll give you an example.
The pressure sensor GATT service has UUID f000aa40-0451-4000-b000-000000000000, while the UUID for the sampling period of the sensor is f000aa44-0451-4000-b000-000000000000.
The handle corresponding to this UUID is 0x0039 according to your screenshot: "handle: 0x0038, char properties: 0x0a, char value handle: 0x039, uuid: f000aa44-0451-4000-b000-000000000000"
But in TiSensorTagGatt.java the same handle is set to 0x0036. So, I suspect that in the new firmware the handles were changed.

To understand the relationship between the UUID and the handles, find the UUIDs in TiSensorTagGatt.java (i.e. UUID_PRE_SENSOR_VALUE = f000aa41-0451-4000-b000-000000000000 is the one for the pressure value) and check in the output of the characteristics which "char value handle" is reported to the corresponding UUID.

I hope this can help you.
Previous Topic:Kura for Virtual Machine
Next Topic:install dp from the command line
Goto Forum:
  


Current Time: Wed Jul 09 09:50:34 EDT 2025

Powered by FUDForum. Page generated in 0.29667 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top