[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: AW: [equinox-dev] regarding OSGI Device Access (Problem with Drivers)


Can you please open a bug and attach a test case which demonstrates the problem?
--

BJ Hargrave
Senior Technical Staff Member, IBM
OSGi Fellow and CTO of the
OSGi Alliance
hargrave@xxxxxxxxxx

office: +1 386 848 1781
mobile: +1 386 848 3788





From: "Daniel Felsing" <daniel.felsing@xxxxxxxx>
To: "'Equinox development mailing list'" <equinox-dev@xxxxxxxxxxx>
Date: 2008/06/27 06:30 AM
Subject: AW: [equinox-dev] regarding OSGI Device Access (Problem with Drivers)





Hmmm this behavior described below is only true if i start/stop the bridge driver (which exports the devices)
and the base driver already has some devices exported to the registry.
 
 
If the bridge driver is running and i start/stop the basedriver (which removes/registers the devices which should get exported)
everything works fine.
 
Kind regards,
Daniel
 
 
Von: equinox-dev-bounces@xxxxxxxxxxx [mailto:equinox-dev-bounces@xxxxxxxxxxx] Im Auftrag von Daniel Felsing
Gesendet:
Freitag, 27. Juni 2008 11:59
An:
equinox-dev@xxxxxxxxxxx
Betreff:
[equinox-dev] regarding OSGI Device Access (Problem with Drivers)

 
Dear All,
 
I really need help :-(

Let us say, I have a Base Driver, which creates Motion Sensor and Simple Light Devices (OSGI Devices).. and I have another bundle

which acts as a motion sensor/ simple light bridging driver. The driver will create new UPnP devices which use my motion sensor / simple light devices as model (e.g. creates a new upnplightdevice for each simple light found).
 

When the bridge driver bundle is installed/started in the framework, it registers itsself (OSGI Driver service).

The basedriver registering the motion sensor / simple light devices gets started and registers the found devices in the registry

Now the OSGI DeviceManager look for all "Drivers" and calls the  match method of my upnpbridge driverâ

In best case my bundle is successful and registers the upnp device implementations to the registry which lets the upnp base driver (from niche) export them successfully.


Now my questionâ.

 
I tried to test the behavior of my base and bridge driver by starting and stopping them in random order while the framework is running.
Most of the time all runs fineâand attach and match methods get called on my driver
 
so my bridge driver says:
-       Motionsensor1 successfully exported
-       Light1 successfully exported
 
BUT SOMETIMES SOMEHOWâ(i cannot explain whyâ)
 
The bridgedrivers (which should export the devices) match method is only called for one of the devices (this behavior is random) and the other deviceâs ânoDriverFound()â method gets called immediatelyâ?
Thats a strange behaviorâsince the match method of the driver should be calledâ..and sometimes it doesnt!
 
I use eclipse equinox version 3.2 and already tried the device bundle from 3.4 â but no success either.
 
 
Kind regards,
Daniel_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev