Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Kura » BLE sample on Rasberry Pi3(Unable to run the BLE sample on RPi 3)
BLE sample on Rasberry Pi3 [message #1734464] Wed, 08 June 2016 14:31 Go to next message
Anantha Boyapalle is currently offline Anantha BoyapalleFriend
Messages: 3
Registered: June 2016
Junior Member
I installed Kura on a Rasberry Pi 3 and paired a Ti Sensor tag CC26y50 to the Pi. When I run the hcitool from console, i am able to connect to the sensor and read the readings from it. But when I run the sample from Kura, the deployment package seems to be installed but doesn't run. From OSGI console, I did a "start <PID>" it doest seem to get started. But OSGI console shows the process when I do "ss"

I think the main culprit is setBluetoothService() and unsetBluetoothService() in the component.xml and BluetoothLe.java. If I remove those calls from component.xml, then the package starts perfectly.

I installed all the necessary packages on the Pi as described in the sample and am able to connect to sensor tag via console.
Do I need to do something for Kura to give a call back to setBluetoothService() and unsetBluetoothService()?
Can someone faced similar problem?
Re: BLE sample on Rasberry Pi3 [message #1734601 is a reply to message #1734464] Thu, 09 June 2016 18:32 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi Anantha,
what version of Kura are you using?
Currently the Raspberry Pi 3 is not officially supported and probably some features will not work as expected.
In this case I suppose the main issue could be the BlueZ stack installed. Which version is running on your Raspberry?

Could you also post the results of "ss" and "ls" commands executed in the OSGi console?

Thanks.
Matteo
Re: BLE sample on Rasberry Pi3 [message #1734604 is a reply to message #1734601] Thu, 09 June 2016 19:27 Go to previous messageGo to next message
Anantha Boyapalle is currently offline Anantha BoyapalleFriend
Messages: 3
Registered: June 2016
Junior Member
Hi Maiero,

Here are my versions:
Kura - 1.4.0(WebUI)
BlueZ -4.101

Here are the outputs of ls and ss. I see that ls shows the State as "Unsatisfied " for org.eclipse.kura.example.ble. I am not sure what that means.

Output of ss:
ss
"Framework is launched."

id State Bundle
0 ACTIVE org.eclipse.osgi_3.8.1.v20120830-144521
1 ACTIVE org.eclipse.jetty.servlet_8.1.3.v20120522
2 ACTIVE org.eclipse.kura.core.certificates_1.0.2
3 ACTIVE org.eclipse.jetty.server_8.1.3.v20120522
4 ACTIVE org.eclipse.equinox.util_1.0.400.v20120522-2049
5 ACTIVE org.eclipse.equinox.console_1.0.0.v20120522-1841
6 ACTIVE usb4java-javax_1.0.0
7 ACTIVE org.eclipse.soda.dk.comm_1.2.1
8 RESOLVED log4j.apache-log4j-extras_1.1.0
Master=18
9 ACTIVE org.eclipse.kura.emulator.watchdog_1.0.0
10 ACTIVE org.eclipse.equinox.http.jetty_3.0.0.v20120522-1841
11 ACTIVE org.eclipse.equinox.metatype_1.2.0.v20120522-1841
12 ACTIVE org.apache.commons.io_2.4.0
13 ACTIVE org.eclipse.osgi.util_3.2.300.v20120522-1822
14 ACTIVE org.eclipse.equinox.event_1.2.200.v20120522-2049
15 ACTIVE org.eclipse.kura.core.comm_1.0.2
16 ACTIVE org.apache.commons.fileupload_1.2.2.v20111214-1400
17 ACTIVE osgi.cmpn_4.3.0.201111022214
18 ACTIVE log4j_1.2.17
Fragments=8
19 ACTIVE org.usb4java_1.0.0
20 ACTIVE org.eclipse.kura.deployment.agent_1.0.5
21 ACTIVE org.eclipse.kura.example.ble_1.0.0.qualifier
22 ACTIVE slf4j.api_1.6.4
Fragments=28
23 ACTIVE org.eclipse.jetty.security_8.1.3.v20120522
24 ACTIVE com.gwt.user_0.2.0
25 ACTIVE org.eclipse.jetty.util_8.1.3.v20120522
26 ACTIVE org.eclipse.kura.emulator.gpio_1.0.1
27 ACTIVE javax.servlet_3.0.0.v201112011016
28 RESOLVED slf4j.log4j12_1.6.0
Master=22
29 ACTIVE org.eclipse.kura.web_1.0.7
30 ACTIVE org.eclipse.jetty.http_8.1.3.v20120522
31 ACTIVE org.eclipse.kura.core.configuration_1.0.6
32 ACTIVE org.eclipse.kura.core.net_1.0.7
33 ACTIVE org.eclipse.osgi.services_3.3.100.v20120522-1822
34 ACTIVE org.eclipse.kura.example.configurable_1.0.0.qualifier
35 ACTIVE org.eclipse.kura.emulator_1.0.5
36 ACTIVE org.eclipse.equinox.io_1.0.400.v20120522-2049
37 ACTIVE org.apache.felix.gogo.runtime_0.8.0.v201108120515
38 ACTIVE org.eclipse.kura.core_1.0.7
39 ACTIVE org.eclipse.equinox.http.servlet_1.1.300.v20120522-1841
40 ACTIVE org.eclipse.paho.client.mqttv3_1.0.1
41 ACTIVE com.google.protobuf_2.6.0
42 ACTIVE org.apache.felix.deploymentadmin_0.9.5
43 ACTIVE org.apache.commons.net_3.1.0.v201205071737
44 ACTIVE org.eclipse.equinox.ds_1.4.0.v20120522-1841
45 ACTIVE org.hsqldb.hsqldb_2.3.0
46 ACTIVE org.eclipse.kura.emulator.usb_1.0.0
47 ACTIVE org.eclipse.kura.api_1.0.7
48 ACTIVE org.json_1.0.0.v201011060100
49 ACTIVE org.eclipse.kura.emulator.position_1.0.0
50 ACTIVE org.apache.commons.lang3_3.4.0
51 ACTIVE org.apache.felix.dependencymanager_3.0.0
52 ACTIVE org.eclipse.equinox.cm_1.0.400.v20120522-1841
53 ACTIVE org.eclipse.kura.emulator.net_1.0.0
54 ACTIVE org.apache.felix.gogo.shell_0.8.0.v201110170705
55 ACTIVE org.eclipse.kura.core.crypto_1.0.3
56 ACTIVE org.eclipse.kura.core.status_1.0.1
57 ACTIVE org.eclipse.kura.emulator.clock_1.0.0
58 ACTIVE org.eclipse.kura.core.cloud_1.0.7
59 ACTIVE org.eclipse.jetty.continuation_8.1.3.v20120522
60 ACTIVE org.eclipse.jetty.io_8.1.3.v20120522

osgi> ls
All Components:
ID State Component Name Located in bundle
1 Active org.eclipse.kura.certificate.CertificatesService org.eclipse.kura.core.certificates(bid=2)
2 Active org.eclipse.kura.watchdog.WatchdogService org.eclipse.kura.emulator.watchdog(bid=9)
3 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=14)
4 Active org.eclipse.kura.core.comm.CommConnectionFactory org.eclipse.kura.core.comm(bid=15)
5 Active org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=20)
6 Unsatisfied org.eclipse.kura.example.ble.BluetoothLe org.eclipse.kura.example.ble(bid=21)
7 Active org.eclipse.kura.gpio.GPIOService org.eclipse.kura.emulator.gpio(bid=26)
8 Active org.eclipse.kura.web.Console org.eclipse.kura.web(bid=29)
9 Active org.eclipse.kura.configuration.ConfigurationService org.eclipse.kura.core.configuration(bid=31)
10 Unsatisfied org.eclipse.kura.example.configurable.ConfigurableExample org.eclipse.kura.example.configurable(bid=34)
11 Active org.eclipse.kura.emulator.Emulator org.eclipse.kura.emulator(bid=35)
12 Active org.eclipse.kura.data.DataService org.eclipse.kura.core(bid=38)
13 Active org.eclipse.kura.db.DbService org.eclipse.kura.core(bid=38)
14 Active org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport org.eclipse.kura.core(bid=38)
15 Active org.eclipse.kura.ssl.SslManagerService org.eclipse.kura.core(bid=38)
16 Active org.eclipse.kura.system.SystemService org.eclipse.kura.core(bid=38)
17 Active org.eclipse.kura.system.SystemAdminService org.eclipse.kura.core(bid=38)
18 Active org.eclipse.kura.usb.UsbService org.eclipse.kura.emulator.usb(bid=46)
19 Active org.eclipse.kura.position.PositionService org.eclipse.kura.emulator.position(bid=49)
20 Active org.eclipse.kura.net.NetworkService org.eclipse.kura.emulator.net(bid=53)
21 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kura.core.crypto(bid=55)
22 Active org.eclipse.kura.status.CloudConnectionStatusService org.eclipse.kura.core.status(bid=56)
23 Active org.eclipse.kura.clock.ClockService org.eclipse.kura.emulator.clock(bid=57)
24 Active org.eclipse.kura.cloud.CloudService org.eclipse.kura.core.cloud(bid=58)
25 Active org.eclipse.kura.cloud.CloudCallService org.eclipse.kura.core.cloud(bid=58)
26 Active org.eclipse.kura.cloud.app.command.CommandCloudApp org.eclipse.kura.core.cloud(bid=58)
Re: BLE sample on Rasberry Pi3 [message #1734754 is a reply to message #1734604] Sat, 11 June 2016 07:19 Go to previous messageGo to next message
Matteo Maiero is currently offline Matteo MaieroFriend
Messages: 423
Registered: July 2015
Location: Italy
Senior Member
Hi,
from what I see it seems you downloaded and installed the nn (no network) version which means that kura will not manage network interfaces.
All the networking and connection part is emulated in this version.
I think you should try the complete version with web ui that is available here: https://s3.amazonaws.com/kura_downloads/raspbian/release/1.4.0/kura_1.4.0_raspberry-pi-2_installer.deb

Thanks,
Matteo
Re: BLE sample on Rasberry Pi3 [message #1738649 is a reply to message #1734754] Thu, 21 July 2016 16:28 Go to previous message
Anantha Boyapalle is currently offline Anantha BoyapalleFriend
Messages: 3
Registered: June 2016
Junior Member
Hi,
I re-imaged by Pi-3 and installed network version with Web UI and Network version but the problem persists. Any ideas?

https://s3.amazonaws.com/kura_downloads/raspbian/release/1.4.0/kura_1.4.0_raspberry-pi-2_installer.deb

[Updated on: Thu, 21 July 2016 18:25]

Report message to a moderator

Previous Topic:Problem in connecting to sensor tag
Next Topic:org.osgi.framework.Bundle.getSignerCertificates() - where does kura look for "trusted" pub
Goto Forum:
  


Current Time: Tue Apr 23 13:51:29 GMT 2024

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

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

Back to the top