Home » Eclipse Projects » Kura » Problem in connecting to sensor tag
Problem in connecting to sensor tag [message #1732902] |
Sun, 22 May 2016 16:57 |
Tejram Kotakonda Messages: 7 Registered: May 2016 |
Junior Member |
|
|
Hi all,
I'm developing a bundle which wants to integrate with a TI SensorTag via BLE, but I am having the following problem:
the log file:
2016-05-22 22:17:42,386 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:95:06 CC2650 SensorTag
2016-05-22 22:17:42,388 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - m_scanResult.add B0:B4:48:BD:95:06 - CC2650 SensorTag
2016-05-22 22:17:42,389 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.m.MyBluetoothSensorTag - Address B0:B4:48:BD:95:06 Name CC2650 SensorTag
2016-05-22 22:17:42,391 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.m.MyBluetoothSensorTag - TI SensorTag B0:B4:48:BD:95:06 found.
2016-05-22 22:17:42,392 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.e.m.MyBluetoothSensorTag - Found 1 SensorTags
2016-05-22 22:17:42,393 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.m.MyBluetoothSensorTag - Connecting to TiSensorTag...
2016-05-22 22:17:42,396 [BluetoothProcessExecutor] DEBUG o.e.k.l.b.u.BluetoothProcess - Executing: [gatttool, -b, B0:B4:48:BD:95:06, -I]
2016-05-22 22:17:42,402 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothGattImpl - Sending connect message...
2016-05-22 22:17:42,403 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothGattImpl - send command = connect
2016-05-22 22:17:48,916 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothGattImpl - send command = exit
In log file after executing "connect" command it also executing "exit" command. I don't know why it is executing "exit".
When I am trying from the termnal it is connecting without anyerror
gatttool -b B0:B4:48:BD:95:06 -I
[ ][B0:B4:48:BD:95:06][LE]> connect
[CON][B0:B4:48:BD:95:06][LE]>
I am new to KURA.Please help me where I am doing wrong.I followed it here eclipse.github.io/kura/doc/bluetooth-le-example.html
|
|
| | | | |
Re: Problem in connecting to sensor tag [message #1737744 is a reply to message #1732902] |
Tue, 12 July 2016 12:46 |
Serc Can Messages: 3 Registered: July 2016 |
Junior Member |
|
|
Hey all,
same problem here.
I used the BLE Java File from:
https://github.com/eclipse/kura/blob/develop/kura/examples/org.eclipse.kura.example.ble.tisensortag/src/main/java/org/eclipse/kura/example/ble/tisensortag/BluetoothLe.java
2016-07-12 14:23:52,685 [Component Resolve Thread (Bundle 6)] INFO o.e.k.e.b.t.BluetoothLe - Bluetooth adapter interface => hci0
2016-07-12 14:23:52,688 [Component Resolve Thread (Bundle 6)] INFO o.e.k.e.b.t.BluetoothLe - Bluetooth adapter address => XX:XX:XX:XX:XX
2016-07-12 14:23:52,690 [Component Resolve Thread (Bundle 6)] INFO o.e.k.e.b.t.BluetoothLe - Bluetooth adapter le enabled => true
2016-07-12 14:23:52,729 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - startLeScan
2016-07-12 14:23:52,766 [pool-14-thread-1] INFO o.e.k.l.b.l.BluetoothLeScanner - Starting bluetooth le scan...
2016-07-12 14:23:53,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:54,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:55,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:56,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:57,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:58,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:23:59,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:00,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:01,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:02,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:03,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:04,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:05,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:06,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:07,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:08,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:09,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:10,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:11,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:12,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:13,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:24:13,725 [pool-14-thread-1] INFO o.e.k.l.b.l.BluetoothLeScanner - Killing hcitool...
2016-07-12 14:24:13,992 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - LE Scan ...
2016-07-12 14:24:13,997 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XX (unknown)
2016-07-12 14:24:14,012 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XX CC2650 SensorTag
"XX Inserted by me"
2016-07-12 14:24:14,079 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - m_scanResult.add B0:B4:48:BD:XX:XX - CC2650 SensorTag
2016-07-12 14:24:14,096 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.b.t.BluetoothLe - Address B0:B4:48:BD:XX:XX Name CC2650 SensorTag
2016-07-12 14:24:14,099 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.b.t.BluetoothLe - TI SensorTag B0:B4:48:BD:XX:XX found.
2016-07-12 14:25:33,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - startLeScan
2016-07-12 14:25:33,733 [pool-14-thread-1] INFO o.e.k.l.b.l.BluetoothLeScanner - Starting bluetooth le scan...
2016-07-12 14:25:34,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 14:25:35,723 [pool-14-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
Is the name of the SensorTag important? I changed it days ago with the iOS App into "CC2650"
|
|
| |
Re: Problem in connecting to sensor tag [message #1738029 is a reply to message #1737925] |
Fri, 15 July 2016 08:17 |
Serc Can Messages: 3 Registered: July 2016 |
Junior Member |
|
|
Thanks for your reply. I logged also the debug, see below.
"Reads data from all the sensors onboard and writes the values in the log file" from https://eclipse.github.io/kura/doc/bluetooth-le-example.html#bundle_sensortag_1
But it doenst log
2016-07-12 16:55:29,443 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - LE Scan ...
2016-07-12 16:55:29,470 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XX (unknown)
2016-07-12 16:55:29,473 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothLeScanner - Device found: B0:B4:48:BD:XX:XX - (unknown)
2016-07-12 16:55:29,474 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XX CC2650 SensorTag
2016-07-12 16:55:29,477 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothLeScanner - Updating device: B0:B4:48:BD:XX:XX - CC2650 SensorTag
2016-07-12 16:55:29,478 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - m_scanResult.add B0:B4:48:BD:XX:XX - CC2650 SensorTag
2016-07-12 16:55:29,481 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.b.t.BluetoothLe - Address B0:B4:48:BD:XX:XX Name CC2650 SensorTag
2016-07-12 16:55:29,482 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.e.b.t.BluetoothLe - TI SensorTag B0:B4:48:XX:XX:XXfound.
2016-07-12 16:55:29,512 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.e.b.t.BluetoothLe - Found 1 SensorTags
2016-07-12 16:56:49,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - startLeScan
2016-07-12 16:56:49,314 [pool-19-thread-1] INFO o.e.k.l.b.l.BluetoothLeScanner - Starting bluetooth le scan...
2016-07-12 16:56:49,316 [pool-19-thread-1] DEBUG o.e.k.l.b.u.BluetoothUtil - Command executed : [hcitool, -i, hci0, lescan]
2016-07-12 16:56:49,322 [BluetoothProcessExecutor] DEBUG o.e.k.l.b.u.BluetoothProcess - Executing: [hcitool, -i, hci0, lescan]
2016-07-12 16:56:50,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:51,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:52,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:53,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:54,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:55,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:56,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:57,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:58,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:56:59,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:00,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:01,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:02,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:03,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:04,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:05,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:06,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:07,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:08,311 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:09,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:10,310 [pool-19-thread-1] INFO o.e.k.e.b.t.BluetoothLe - m_bluetoothAdapter.isScanning
2016-07-12 16:57:10,315 [pool-19-thread-1] INFO o.e.k.l.b.l.BluetoothLeScanner - Killing hcitool...
2016-07-12 16:57:10,324 [SafeProcessExecutor] DEBUG o.e.k.l.b.u.BluetoothSafeProcess - Executing: [pidof, hcitool]
2016-07-12 16:57:10,440 [SafeProcessExecutor] DEBUG o.e.k.l.b.u.BluetoothSafeProcess - Executing: [kill, -2, 701]
2016-07-12 16:57:10,464 [BluetoothProcess ErrorStream Gobbler] DEBUG o.e.k.l.b.u.BluetoothProcess - End of stream!
2016-07-12 16:57:10,471 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - LE Scan ...
2016-07-12 16:57:10,487 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XX(unknown)
2016-07-12 16:57:10,489 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothLeScanner - Device found: B0:B4:48:BD:XX:XX- (unknown)
2016-07-12 16:57:10,490 [BluetoothProcess Input Stream Gobbler] INFO o.e.k.l.b.l.BluetoothLeScanner - B0:B4:48:BD:XX:XXCC2650 SensorTag
2016-07-12 16:57:10,493 [BluetoothProcess Input Stream Gobbler] DEBUG o.e.k.l.b.l.BluetoothLeScanner - Updating device: B0:B4:48:BD:XX:XX- CC2650 SensorTag
then it starts over and over again...
my settings on the Kura BLE Package: see png attached
I dont want to publish the data to a cloud right now, thats what I filled that "needed" part with anything...
Thanks!
-
Attachment: kura.png
(Size: 35.10KB, Downloaded 136 times)
|
|
| | | |
Goto Forum:
Current Time: Fri Apr 26 11:29:09 GMT 2024
Powered by FUDForum. Page generated in 0.04124 seconds
|