Re: [javax-usb-devel] question about javax.usb
The Windows code in CVS is in pre-alpha state, it needs a kernel driver. It won't work without that, so unless you would like to write a Windows kernel driver you won't be able to get it to work :( If you are interested, I believe IBM has a closed-source for-license Windows implementation, although I do not know the state of it or details on its quality. On Wed, 6 Jul 2005, chen xinzhe wrote: >Hi >I am trying to run the javaxusb samples on windows XP. But I got an >error:java.lang.RuntimeException: Error : Error while loading shared >library JavaxUsb.dll : no JavaxUsb in java.library.path >Where can I get this "JavaxUsb.dll"? >Waiting for your reply. >Any help would be greatful. > > > > >--- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >___ >javax-usb-devel mailing list >javax-usb-devel@lists.sourceforge.net >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! --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
Re: [javax-usb-devel] speed of submitting UsbIrp to an iso pipe
You aren't going to improve on turnaround time. You need to add more IRPs so your math comes out to a better number :) i.e. I irps * B bytes/irp = sample rate (bytes/sec) turnaround time (sec) you tried 1 irp with 200 bytes, for: 1 irp * 200 b/irp ---= 16.7k bytes/sec .012 sec now try 12 irps with 200 bytes, for: 12 irps * 200 b/irp ---= 200k bytes/sec .012 sec You can of course use more IRPs, but (assuming USB 1.1) since you only get 1 isochronous IRP per frame, and each frame is 1ms, you aren't going to get more than 1 IRP per ms ;-) However queueing up IRPs is always the best thing to do. Try using maybe 20 or so. Keep in mind your driver is in userspace, so this is a different world than kernel drivers (where you can handle data in hardware interrupts, i.e. 0 latency). On Tue, 5 Jul 2005, Charles Chen wrote: >I am trying to retrieve data from a microphone that connected to iMic USB, >and I found the time of submitting a usbIrp to an isochronous pipe is about >12 ms (synd or async). iMic USB has three wMaxPacketSize settings, and the >largest one is 200 bytes, that amounts to 8.3k samples/second (for a two >byte sample). But the standard audio sample rate is 44.1k, so 8.3k is way >too slow. Is there any way to enhance the speed? I noticed iMic USB works >fine under Windows with 44.1 k sample rate. Any help will be appreciated. > >Charles Chen > >_ >Express yourself instantly with MSN Messenger! Download today - it's FREE! >http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > > > >--- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >___ >javax-usb-devel mailing list >javax-usb-devel@lists.sourceforge.net >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! --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
Re: [javax-usb-devel] question about javax.usb
> It won't work without that, so unless you would like to write a Windows > kernel driver you won't be able to get it to work :( Doesn't libusb-win32 provide a generic USB kernel driver ? I am coding for a device ( the Polar USB IR interface used to connect a watch to a PC ). jUSB ( an old java/usb toolkit) complained about the lack of a specific kernel driver. With libusb-win32, I wrote a .INF driver file with the infos from the USB device ( vendor ID and the likes ), install the libusb-win32 kernel driver and I was up and running. I then wrapped a bit of C code with JNI. It is working fine see http://www.heartbit.fr --philippe On 7/6/05, Dan Streetman <[EMAIL PROTECTED]> wrote: > > The Windows code in CVS is in pre-alpha state, it needs a kernel driver. > It won't work without that, so unless you would like to write a Windows > kernel driver you won't be able to get it to work :( > > If you are interested, I believe IBM has a closed-source for-license > Windows implementation, although I do not know the state of it or details > on its quality. > > On Wed, 6 Jul 2005, chen xinzhe wrote: > > >Hi > >I am trying to run the javaxusb samples on windows XP. But I got an > >error:java.lang.RuntimeException: Error : Error while loading shared > >library JavaxUsb.dll : no JavaxUsb in java.library.path > >Where can I get this "JavaxUsb.dll"? > >Waiting for your reply. > >Any help would be greatful. > > > > > > > > > >--- > >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > >from IBM. Find simple to follow Roadmaps, straightforward articles, > >informative Webcasts and more! Get everything you need to get up to > >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > >___ > >javax-usb-devel mailing list > >javax-usb-devel@lists.sourceforge.net > >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! > > > --- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > ___ > javax-usb-devel mailing list > javax-usb-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/javax-usb-devel > --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click ___ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
Re: [javax-usb-devel] question about javax.usb
On Wed, 6 Jul 2005, Philippe BARTHELEMY wrote: >> It won't work without that, so unless you would like to write a Windows >> kernel driver you won't be able to get it to work :( > >Doesn't libusb-win32 provide a generic USB kernel driver ? Yes it does, and I have thought about creating a libusb implementation for javax.usb :) I haven't got around to it yet, but anyone out there is of course free to create one... > >I am coding for a device ( the Polar USB IR interface used to connect >a watch to a PC ). >jUSB ( an old java/usb toolkit) complained about the lack of a >specific kernel driver. > >With libusb-win32, I wrote a .INF driver file with the infos from the >USB device ( vendor ID and the likes ), install the libusb-win32 >kernel driver and I was up and running. >I then wrapped a bit of C code with JNI. It is working fine >see http://www.heartbit.fr > >--philippe > > > > >On 7/6/05, Dan Streetman <[EMAIL PROTECTED]> wrote: >> >> The Windows code in CVS is in pre-alpha state, it needs a kernel driver. >> It won't work without that, so unless you would like to write a Windows >> kernel driver you won't be able to get it to work :( >> >> If you are interested, I believe IBM has a closed-source for-license >> Windows implementation, although I do not know the state of it or details >> on its quality. >> >> On Wed, 6 Jul 2005, chen xinzhe wrote: >> >> >Hi >> >I am trying to run the javaxusb samples on windows XP. But I got an >> >error:java.lang.RuntimeException: Error : Error while loading shared >> >library JavaxUsb.dll : no JavaxUsb in java.library.path >> >Where can I get this "JavaxUsb.dll"? >> >Waiting for your reply. >> >Any help would be greatful. >> > >> > >> > >> > >> >--- >> >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> >from IBM. Find simple to follow Roadmaps, straightforward articles, >> >informative Webcasts and more! Get everything you need to get up to >> >speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> >___ >> >javax-usb-devel mailing list >> >javax-usb-devel@lists.sourceforge.net >> >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! >> >> >> --- >> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >> from IBM. Find simple to follow Roadmaps, straightforward articles, >> informative Webcasts and more! Get everything you need to get up to >> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click >> ___ >> javax-usb-devel mailing list >> javax-usb-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel >> > > >--- >SF.Net email is sponsored by: Discover Easy Linux Migration Strategies >from IBM. Find simple to follow Roadmaps, straightforward articles, >informative Webcasts and more! Get everything you need to get up to >speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opÌk >___ >javax-usb-devel mailing list >javax-usb-devel@lists.sourceforge.net >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! --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click ___ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
[javax-usb-devel] speed of submitting UsbIrp to an iso pipe
Hi, Dan, Do you mean I should use Irp list? Here is my code below, but the time for submitting the list is 240ms. Do I misunderstand something? Thanks for help. List usbIrpList = new ArrayList(); int nBuffer = 20; for (int i = 0; i < nBuffer; i++) { byte[] buffer = new byte[wMaxPacketSize]; UsbIrp usbIrp = pipe.createUsbIrp(); usbIrp.setData(buffer); usbIrpList.add(usbIrp); } long startT = System.currentTimeMillis(); pipe.syncSubmit(usbIrpList); long endT = System.currentTimeMillis(); System.out.println("count=" + count + ", time=" + (endT - startT)); Charles Chen _ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ javax-usb-devel mailing list javax-usb-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/javax-usb-devel