Howdy,
I'm using version 2.0.1 of DataService and have a couple of questions:
1) I see that the DataService API has changed a little...e.g. deprecating org.eclipse.kura.data.DataServiceListener in favor
of org.eclipse.kura.data.listener.DataServiceListener (and the associated DataService.add/removeDataServiceListener). I had been using the looking at the discussion/example usage here [1] . I don't see any DataService example in the kura/examples area of
source. Are there examples from Kura or elsewhere that use the 2.0.1 approach?
2) How does one configure the mqtt DataService implementation? For example, what is the default Mqtt broker URL that's used, and is it possible to configure the broker URL?
3) I'm using the developer workspace available here [2] on Windows (currently) and running a test bundle that references the DataService with the target platform set to /target-definition/kura-equinox_3.8.1.target. Launching directly from Eclipse results
in a number of services not being satisfied...see below for output of 'ls' and 'comp' command from OSGi console.
Is this (launching from Eclipse with target platform on windows) possible (e.g. for testing, etc)? If so how is that done for use of the DataService specifically?
4) Is there some docs on the various Kura services (e.g. DbService, DataTransferService, CloudConnectionStatusService) etc along with info about the dependencies between them? Obviously I'm particularly interested in resolving the required dependencies for
the org.eclipse.kura.core.data.DataServiceImpl component (22 in console output below).
5) I haven't been able to download/install the mToolkit, and it seems that the kura-equinox_3.8.1.target platform expects to use/startup the mToolkit (in the dev workspace anyway). Is there some way to work around this (e.g. removing bundles dependent upon
the mToolkit lib)?
Thanksinadvance,
Scott
[1]
http://stackoverflow.com/questions/33810131/kura-how-to-receive-mqtt-messages-using-the-dataservice
[2]
https://www.eclipse.org/kura/downloads.php
---- output from ls and comp commands---
...
osgi> ls
All Components:
ID State Component Name Located in bundle
1 Active com.intel.kurapoc.eventdist.example.producer.MqttDataProducer com.intel.kurapoc.eventdist.example.producer(bid=4)
2 Unsatisfied com.intel.kurapoc.example.dataservicelistener.DataServiceListenerComponent com.intel.kurapoc.example.dataservicelistener(bid=9)
3 Registered org.eclipse.kura.position.PositionService org.eclipse.kura.emulator.position(bid=86)
4 Active org.eclipse.kura.usb.UsbService org.eclipse.kura.emulator.usb(bid=87)
5 Unsatisfied org.eclipse.kura.watchdog.WatchdogService org.eclipse.kura.emulator.watchdog(bid=91)
6 Active org.eclipse.equinox.event org.eclipse.equinox.event(bid=98)
7 Active org.eclipse.kura.core.comm.CommConnectionFactory org.eclipse.kura.core.comm(bid=103)
8 Unsatisfied org.eclipse.kura.deployment.agent org.eclipse.kura.deployment.agent(bid=104)
9 Unsatisfied org.eclipse.kura.status.CloudConnectionStatusService org.eclipse.kura.core.status(bid=110)
10 Unsatisfied org.eclipse.kura.core.cloud.factory.DefaultCloudServiceFactory org.eclipse.kura.core.cloud(bid=123)
11 Unsatisfied org.eclipse.kura.cloud.app.command.CommandCloudApp org.eclipse.kura.core.cloud(bid=123)
12 Unsatisfied org.eclipse.kura.cloud.CloudCallService org.eclipse.kura.core.cloud(bid=123)
13 Unsatisfied org.eclipse.kura.cloud.CloudService org.eclipse.kura.core.cloud(bid=123)
14 Registered org.eclipse.kura.gpio.GPIOService org.eclipse.kura.emulator.gpio(bid=136)
15 Active org.eclipse.kura.crypto.CryptoService org.eclipse.kura.core.crypto(bid=144)
16 Active org.eclipse.kura.certificate.CertificatesService org.eclipse.kura.core.certificates(bid=145)
17 Unsatisfied org.eclipse.kura.clock.ClockService org.eclipse.kura.emulator.clock(bid=148)
18 Unsatisfied org.eclipse.kura.core.configuration.CloudConfigurationHandler org.eclipse.kura.core.configuration(bid=152)
19 Unsatisfied org.eclipse.kura.configuration.ConfigurationService org.eclipse.kura.core.configuration(bid=152)
20 Unsatisfied org.eclipse.kura.core.data.transport.mqtt.MqttDataTransport org.eclipse.kura.core(bid=153)
21 Unsatisfied org.eclipse.kura.system.SystemService org.eclipse.kura.core(bid=153)
22 Unsatisfied org.eclipse.kura.data.DataService org.eclipse.kura.core(bid=153)
23 Unsatisfied org.eclipse.kura.ssl.SslManagerService org.eclipse.kura.core(bid=153)
24 Unsatisfied org.eclipse.kura.db.DbService org.eclipse.kura.core(bid=153)
25 Active org.eclipse.kura.system.SystemAdminService org.eclipse.kura.core(bid=153)
26 Unsatisfied org.eclipse.kura.web.Console org.eclipse.kura.web(bid=155)
osgi> comp 22
Component[
name = org.eclipse.kura.data.DataService
activate = activate
deactivate = deactivate
modified = updated
configuration-policy = require
factory = null
autoenable = true
immediate = false
implementation = org.eclipse.kura.core.data.DataServiceImpl
state = Unsatisfied
properties =
serviceFactory = false
serviceInterface = [org.eclipse.kura.configuration.ConfigurableComponent, org.eclipse.kura.data.DataService]
references = {
Reference[name = DbService, interface = org.eclipse.kura.db.DbService, policy = static, cardinality = 1..1, target = null, bind = setDbService, unbind = unsetDbService]
Reference[name = DataTransportService, interface = org.eclipse.kura.data.DataTransportService, policy = static, cardinality = 1..1, target = null, bind = setDataTransportService, unbind = unsetDataTransportService]
Reference[name = CloudConnectionStatusService, interface = org.eclipse.kura.status.CloudConnectionStatusService, policy = static, cardinality = 1..1, target = null, bind = setCloudConnectionStatusService, unbind = unsetCloudConnectionStatusService]
Reference[name = DataServiceListener, interface = org.eclipse.kura.data.DataServiceListener, policy = dynamic, cardinality = 0..n, target = null, bind = null, unbind = null]
}
located in bundle = org.eclipse.kura.core_1.0.9 [153]
]
Dynamic information :
*The component is NOT satisfied
The following references are not satisfied:
Reference[name = DbService, interface = org.eclipse.kura.db.DbService, policy = static, cardinality = 1..1, target = null, bind = setDbService, unbind = unsetDbService]
Reference[name = DataTransportService, interface = org.eclipse.kura.data.DataTransportService, policy = static, cardinality = 1..1, target = null, bind = setDataTransportService, unbind = unsetDataTransportService]
Reference[name = CloudConnectionStatusService, interface = org.eclipse.kura.status.CloudConnectionStatusService, policy = static, cardinality = 1..1, target = null, bind = setCloudConnectionStatusService, unbind = unsetCloudConnectionStatusService]
Reference[name = DataServiceListener, interface = org.eclipse.kura.data.DataServiceListener, policy = dynamic, cardinality = 0..n, target = null, bind = null, unbind = null]
Component configurations :
osgi>
_______________________________________________
kura-dev mailing list
kura-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/kura-dev