Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » Bluetooth interface is not found(bluetooth interface;driver)
Bluetooth interface is not found [message #1777971] Thu, 07 December 2017 06:09 Go to next message
fatih ayvaz is currently offline fatih ayvazFriend
Messages: 10
Registered: October 2017
Junior Member
I am installing org.eclipse.kura.driver.ble.sensortag bundle and it is shown in kura.log my bluetooth interface is not found as shown below:


2017-12-07 06:00:39,838 [qtp3036879-42] INFO o.e.k.w.s.s.FileServlet - Copying uploaded package file to file: /tmp/org.eclipse.kura.driver.ble.sensortag-1.0.0.dp
2017-12-07 06:00:39,847 [qtp3036879-42] INFO o.e.k.w.s.s.FileServlet - Installing package...
2017-12-07 06:00:39,851 [DeploymentAgent] INFO o.e.k.d.a.i.DeploymentAgent - About to install package at URL file:/tmp/org.eclipse.kura.driver.ble.sensortag-1.0.0.dp
2017-12-07 06:00:49,469 [Component Resolve Thread (Bundle 7)] INFO o.e.k.c.c.ConfigurationServiceImpl - Registering metatype pid: org.eclipse.kura.driver.ble.sensortag ...
2017-12-07 06:00:49,874 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.d.b.s.SensorTagDriver - Bluetooth adapter hci0 not found.
2017-12-07 06:00:49,879 [Component Resolve Thread (Bundle 7)] INFO o.e.k.c.c.ConfigurationServiceImpl - Registering ConfigurableComponent - Driver-1....
2017-12-07 06:00:49,972 [Component Resolve Thread (Bundle 7)] INFO o.e.k.c.c.ConfigurationServiceImpl - Seeding updated configuration for pid: Driver-1
2017-12-07 06:00:49,976 [Component Resolve Thread (Bundle 7)] INFO o.e.k.c.c.ConfigurationServiceImpl - Registering ConfigurableComponent - Driver-1....Done
2017-12-07 06:00:49,992 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.a.p.DriverTrackerCustomizer - Driver has been found by the driver tracker....==> adding service
2017-12-07 06:00:50,285 [DeploymentAgent] INFO o.e.k.d.a.i.DeploymentAgent - Posting INSTALLED event for package at URL file:/tmp/org.eclipse.kura.driver.ble.sensortag-1.0.0.dp: successful
2017-12-07 06:00:50,501 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.d.b.s.SensorTagDriver - Bluetooth adapter hci0 not found.
2017-12-07 06:00:50,526 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.a.p.DriverTrackerCustomizer - Driver has been removed by the driver tracker...org.eclipse.kura.internal.driver.ble.sensortag.SensorTagDriver@19af249
2017-12-07 06:00:50,531 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.a.p.DriverTrackerCustomizer - Driver has been found by the driver tracker....==> adding service




However, I am seeing my interface connected as shown below:


pi@gateway:~ $ sudo hciconfig -a
hci0: Type: BR/EDR Bus: USB
BD Address: 00:1A:7D:DA:71:0E ACL MTU: 310:10 SCO MTU: 64:8
UP RUNNING PSCAN
RX bytes:1467 acl:0 sco:0 events:70 errors:0
TX bytes:1085 acl:0 sco:0 commands:70 errors:0
Features: 0xff 0xff 0x8f 0xfe 0xdb 0xff 0x5b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH HOLD SNIFF PARK
Link mode: SLAVE ACCEPT
Name: 'gateway-0'
Class: 0x400100
Service Classes: Telephony
Device Class: Computer, Uncategorized
HCI Version: 4.0 (0x6) Revision: 0x22bb
LMP Version: 4.0 (0x6) Subversion: 0x22bb
Manufacturer: Cambridge Silicon Radio (10)

What is wrong in my trial?

thanks,
-fatih
Re: Bluetooth interface is not found [message #1777993 is a reply to message #1777971] Thu, 07 December 2017 12:50 Go to previous messageGo to next message
fatih ayvaz is currently offline fatih ayvazFriend
Messages: 10
Registered: October 2017
Junior Member
I think my problem is coming from that error. How can I fix it? Many thanks

2017-12-07 12:17:28,017 [Component Resolve Thread (Bundle 7)] INFO o.e.k.i.b.BluetoothLeServiceImpl - Activating Bluetooth Le Service...
2017-12-07 12:18:21,631 [Component Resolve Thread (Bundle 7)] ERROR o.e.k.i.b.BluetoothLeServiceImpl - Failed to start bluetooth service
java.lang.RuntimeException: Error getting object manager client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "GetManagedObjects" with signature "" on interface "org.freedesktop.DBus.ObjectManager" doesn't exist

at tinyb.BluetoothManager.getNativeAPIVersion(Native Method)
at tinyb.BluetoothManager.getBluetoothManager(BluetoothManager.java:217)
at org.eclipse.kura.internal.ble.BluetoothLeServiceImpl.activate(BluetoothLeServiceImpl.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:235)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146)
at org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:345)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:620)
at org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:197)
at org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:473)
at org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:217)
at org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:816)
at org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:783)
at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89)
at org.eclipse.equinox.internal.util.impl.tpt.threadpool.Executor.run(Executor.java:70)
Re: Bluetooth interface is not found [message #1778001 is a reply to message #1777993] Thu, 07 December 2017 14:21 Go to previous messageGo to next message
Pierantonio Merlino is currently offline Pierantonio MerlinoFriend
Messages: 35
Registered: March 2016
Member
Hi,

since Kura 3.1.0 the Bluetooth Service is based on the TinyB library and the BLE driver can be used only with this new lib.
It seems from the logs that the native library is not correctly loaded and this causes your exception.

What version of Kura are you using? On what device? Not every device is currently supported by TinyB because the lib has to be compiled for that specific hardware architecture.

Best,
Pier
Re: Bluetooth interface is not found [message #1778038 is a reply to message #1778001] Fri, 08 December 2017 12:53 Go to previous message
fatih ayvaz is currently offline fatih ayvazFriend
Messages: 10
Registered: October 2017
Junior Member
thanks Pier for your reply.

I am using Kura 3.1.0 on raspberry pi 2. I guess TinyB is supported for raspberry pi 2?
Previous Topic:MQTT configure application /CONF-V1/PUT
Next Topic:Modbus RTU
Goto Forum:
  


Current Time: Tue Sep 25 08:44:26 GMT 2018

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

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

Back to the top