Ah.  You can create an instance yourself, e.g.:

UsbInterfacePolicy uiP = new UsbInterfacePolicy()
  { public boolean forceClaim() { return true; } };

or create your own class that implements the interface.  


On Tue, 15 Jun 2004, Sathya Peri wrote:

>Hi,
>
> Thanks for your suggestion. Well what I wanted is, how to get an access to
>an object of UsbInterfacePolicy Interface. (The previous question was a
>typo). The reason why I want an object for this class is that, once I can an
>instance I can use the forceClaim() function call. Any suggestions?
>
>Sathya
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Monday, June 14, 2004 10:48 PM
>To: [EMAIL PROTECTED]
>Subject: javax-usb-devel digest, Vol 1 #182 - 1 msg
>
>
>Send javax-usb-devel mailing list submissions to
>       [EMAIL PROTECTED]
>
>To subscribe or unsubscribe via the World Wide Web, visit
>       https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>or, via email, send a message with subject or body 'help' to
>       [EMAIL PROTECTED]
>
>You can reach the person managing the list at
>       [EMAIL PROTECTED]
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of javax-usb-devel digest..."
>
>
>Today's Topics:
>
>   1. Re: interface claim problem (Dan Streetman)
>
>--__--__--
>
>Message: 1
>Date: Mon, 14 Jun 2004 01:42:04 -0400 (EDT)
>From: Dan Streetman <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Sathya Peri <[EMAIL PROTECTED]>
>cc: [EMAIL PROTECTED]
>Subject: Re: [javax-usb-devel] interface claim problem
>
>
>It sounds like there is already a driver driving your device (in the 2.6
>kernel at least).  In the file /proc/bus/usb/devices, if you find your
>device, does the I: line say that it has a driver?  If so, you need to
>remove the driver if you want to drive it via javax.usb.  If you use the
>UsbInterfacePolicy with the forceClaim() option set to true, you can kick
>the existing driver off and drive it yourself.  You need a kernel version
>2.4.23 or later (including 2.6).
>
>On Thu, 10 Jun 2004, Sathya Peri wrote:
>
>>Hello Everyone,
>>
>>
>>  I installed JSR on my system. I have a USB device Mag-Tek card reader
>with
>>which Iam trying to communicate using JSR javax.usb. But Iam having problem
>>with Interface claim. My device has only one interface under the active
>>configuration. Now whenever Iam trying to claim this interface, it is
>>failing. The exception that I get is :- Interface claim error:  Device or
>>resource busy.
>>
>>  Iam running this program on Fedora Core relase 2 (Tettnang). My Linux
>>kernel version is 2.6.5-1.3.58. But interestingly the same program if I run
>>in Mandrake Linux 9.2 and kernel version 2.4.22, it is working. The program
>>is able to claim the interface.
>>
>>  So what do you think I should do? Any suggestions?
>>
>>Thanks
>>Sathya
>End of javax-usb-devel Digest
>
>
>
>-------------------------------------------------------
>This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
>Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
>Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
>REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
>_______________________________________________
>javax-usb-devel mailing list
>[EMAIL PROTECTED]
>https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>

-- 
Dan Streetman
[EMAIL PROTECTED]
---------------------
186,272 miles per second:
It isn't just a good idea, it's the law!


-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
javax-usb-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel

Reply via email to