Thanks Christopher,

I got it. Some device interfaces might be needed to be specified.

Best regards,

Ikuo

On Thu, 18 Feb 2010 12:56:37 +0000
Christopher Armstrong <[email protected]> wrote:

Christopher> You're right, there's no standard API, so you must design one 
yourself.
Christopher> 
Christopher> The spec is quite clear that it is outside the requirements of the 
specification to define APIs for certain device classes because that would 
reduce flexibility. The spec would also need to be updated for changes and 
advances in technology.
Christopher> 
Christopher> Cheers
Christopher> 
Christopher> Christopher Armstrong
Christopher> [email protected]
Christopher> ----- Original message -----
Christopher> > Christopher and Miguel
Christopher> >
Christopher> > Thank you for your comments.
Christopher> >
Christopher> > What I would like to realize is:
Christopher> > ??? the client bundle, which would like to use USB disk as a 
storage,
Christopher> > ??? calls Java API (OSGi Service) indepnedent of OS.
Christopher> >
Christopher> > As far as I know, there is no such API standardized.
Christopher> > Therefore, people would define such API by themselves.
Christopher> > It results in lack of portability; the client bundle can work 
with only
Christopher> > their environment.
Christopher> >
Christopher> > Don't we need to have such standardized Java API(OSGi Service) 
for it ?
Christopher> >
Christopher> > Best regards,
Christopher> >
Christopher> > Ikuo
Christopher> >
Christopher> > On Tue, 16 Feb 2010 08:10:42 +0100
Christopher> > Miguel <[email protected]> wrote:
Christopher> >
Christopher> > Miguel> other faster solution on linux is to use udev 
rules(m...@mcm:~$ ls
Christopher> > Miguel> /etc/udev/rules.d/). This way you can add a rule which 
runs a script
Christopher> > when a Miguel> usb dongle is switch on.
Christopher> > Miguel>
Christopher> > Miguel> Miguel
Christopher> > Miguel>
Christopher> > Miguel>
Christopher> > Miguel> On Tue, Feb 16, 2010 at 7:20 AM, Christopher Armstrong <
Christopher> > Miguel> [email protected]> wrote:
Christopher> > Miguel>
Christopher> > Miguel> >
Christopher> > Miguel> > No, no such API exists. You will need to implement a 
driver for USB
Christopher> > events Miguel> > and devices yourself.
Christopher> > Miguel> >
Christopher> > Miguel> > On Linux, it is possible to incorporate DBus-Java into 
a bundle and
Christopher> > talk to Miguel> > the HAL daemon for events. HAL has device 
nodes specifically
Christopher> > for USB Miguel> > devices, storage devices and also for 
"volumes" that appear on
Christopher> > a disk. It Miguel> > has a specific interface 
(org.freedesktop.Hal.Device.Volume
Christopher> > IIRC) for volume Miguel> > devices that lets you mount/unmount 
and lock the
Christopher> > volume. Miguel> >
Christopher> > Miguel> > On Windows, you might be able to write something that 
talks to the
Christopher> > Windows Miguel> > driver layer.
Christopher> > Miguel> >
Christopher> > Miguel> > Cheers
Christopher> > Miguel> > Chris
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> > On 16/02/2010, at 10:58 AM, Ikuo Yamasaki wrote:
Christopher> > Miguel> >
Christopher> > Miguel> >? Hi all,
Christopher> > Miguel> >>
Christopher> > Miguel> >> As far as I know, there is no OSGi Service API for 
USB Device (like
Christopher> > UPnP Miguel> >> Device Service Spec.), while Device Access Spec. 
mentions about
Christopher> > USB Miguel> >> Device, just an example.
Christopher> > Miguel> >>
Christopher> > Miguel> >> I wonder if there is any common way to handle USB 
Device of
Christopher> > Miguel> >> storage device (USB disk) in OSGi.
Christopher> > Miguel> >>
Christopher> > Miguel> >> What the client bundle needs to do is
Christopher> > Miguel> >>
Christopher> > Miguel> >> - notified events of attachement or detachement of a 
USB disk.
Christopher> > Miguel> >>? ? - with the knowledge of the file path of the top 
node of the USB
Christopher> > Miguel> >>? ? ? ? ? ? ? disk.
Christopher> > Miguel> >>
Christopher> > Miguel> >> Best regards,
Christopher> > Miguel> >>
Christopher> > Miguel> >> ---------------------
Christopher> > Miguel> >> NTT Cyber Solutions Laboratories
Christopher> > Miguel> >>
Christopher> > Miguel> >>? ? ? Ikuo YAMASAKI
Christopher> > Miguel> >>? ? ? ? ? ? E-mail: [email protected]
Christopher> > Miguel> >> TEL +81-46-859-8537? FAX +81-46-855-1282
Christopher> > Miguel> >>
Christopher> > Miguel> >>
Christopher> > Miguel> >> _______________________________________________
Christopher> > Miguel> >> OSGi Developer Mail List
Christopher> > Miguel> >> [email protected]
Christopher> > Miguel> >> https://mail.osgi.org/mailman/listinfo/osgi-dev
Christopher> > Miguel> >>
Christopher> > Miguel> >
Christopher> > Miguel> > --------
Christopher> > Miguel> > Christopher Armstrong
Christopher> > Miguel> > [email protected]
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> >
Christopher> > Miguel> > _______________________________________________
Christopher> > Miguel> > OSGi Developer Mail List
Christopher> > Miguel> > [email protected]
Christopher> > Miguel> > https://mail.osgi.org/mailman/listinfo/osgi-dev
Christopher> > Miguel> >
Christopher> >
Christopher> >
Christopher> >
Christopher> > _______________________________________________
Christopher> > OSGi Developer Mail List
Christopher> > [email protected]
Christopher> > https://mail.osgi.org/mailman/listinfo/osgi-dev
Christopher> 
Christopher> _______________________________________________
Christopher> OSGi Developer Mail List
Christopher> [email protected]
Christopher> https://mail.osgi.org/mailman/listinfo/osgi-dev
Christopher> 
Christopher> 



_______________________________________________
OSGi Developer Mail List
[email protected]
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to