Mike Crowe | 6 Jul 2010 19:07
Favicon

Re: Renewing effort on javax-libusb

Hi Trygve!

Very interesting, you are not using SWIG as part of your JNI karma.
Why did you move away from it?

I checked out your git javax-sb-libusb1 tree.  I got it to compile, but
ran into 32/64 bit issues.  I resolved them at the compile phase, but
then got strange runtime errors. such as these;

FATAL ERROR in native method: Field type (instance) mismatch in JNI
get/set field operations
	at javalibusb1.libusb1.set_debug(Native Method)
	at javalibusb1.Libusb1UsbServices.<init>(Libusb1UsbServices.java:77)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
	at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
	at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

 ...

Any ideas?

On Tue, 2010-06-29 at 23:25 +0200, Trygve Laugstøl wrote:
> On 6/29/10 7:53 PM, Trygve Laugstøl wrote:
> > On 6/29/10 5:40 PM, Mike Crowe wrote:
> >> On Sun, 2010-06-27 at 11:13 +0200, Trygve Laugstøl wrote:
> >>> On 6/15/10 12:16 AM, Mike Crowe wrote:
> >>>> Hello
(Continue reading)

Dan Streetman | 6 Jul 2010 19:23
Picon

Re: Renewing effort on javax-libusb

Hello,

Brian Weischedel is now the official maintainer of javax-usb (not me
any longer) but I am still the sf.net admin for the project (for now
at least).

If you want, I can add you as a sf.net developer to the project so you
can manage the code in git there, assuming Brian doesn't have a
problem with it (Brian, speak up if you do).

Let me know what your sf id is and I'll add you in.

2010/6/29 Trygve Laugstøl <trygvis <at> inamo.no>:
> On 6/29/10 7:53 PM, Trygve Laugstøl wrote:
>> On 6/29/10 5:40 PM, Mike Crowe wrote:
>>> On Sun, 2010-06-27 at 11:13 +0200, Trygve Laugstøl wrote:
>>>> On 6/15/10 12:16 AM, Mike Crowe wrote:
>>>>> Hello
>>>>> I did some rough coding to get javax-usb to work with libusb-0.1 about
>>>>> two years ago.  There has been some recent great work being done to port
>>>>> libusb-1.0 to windows XP and newer.  Is anyone working at this on moving
>>>>> javax-libusb from 0.1 to 1.0?
>>>>
>>>> I'm working on a new implementation based on 1.0. I haven't published it
>>>> yet as it's very much still a PoC. I can send and receive some packets
>>>> (was able to control a LED on a ftdi chip), but there's lots of work left.
>>>>
>>>> I've done some work on getting the TCK to pass, but libusb right now
>>>> misses at least the negotiated speed so parts of the TCK fails. I'm also
>>>> not very happy with all parts of the TCK so I'd like to discuss that
(Continue reading)

Dan Streetman | 6 Jul 2010 19:45
Picon

Re: Renewing effort on javax-libusb

FYI Mike, you do appear to still have developer access to javax.usb,
including cvs and now git access.

2010/7/6 Dan Streetman <ddstreet <at> ieee.org>:
> Hello,
>
> Brian Weischedel is now the official maintainer of javax-usb (not me
> any longer) but I am still the sf.net admin for the project (for now
> at least).
>
> If you want, I can add you as a sf.net developer to the project so you
> can manage the code in git there, assuming Brian doesn't have a
> problem with it (Brian, speak up if you do).
>
> Let me know what your sf id is and I'll add you in.
>
> 2010/6/29 Trygve Laugstøl <trygvis <at> inamo.no>:
>> On 6/29/10 7:53 PM, Trygve Laugstøl wrote:
>>> On 6/29/10 5:40 PM, Mike Crowe wrote:
>>>> On Sun, 2010-06-27 at 11:13 +0200, Trygve Laugstøl wrote:
>>>>> On 6/15/10 12:16 AM, Mike Crowe wrote:
>>>>>> Hello
>>>>>> I did some rough coding to get javax-usb to work with libusb-0.1 about
>>>>>> two years ago.  There has been some recent great work being done to port
>>>>>> libusb-1.0 to windows XP and newer.  Is anyone working at this on moving
>>>>>> javax-libusb from 0.1 to 1.0?
>>>>>
>>>>> I'm working on a new implementation based on 1.0. I haven't published it
>>>>> yet as it's very much still a PoC. I can send and receive some packets
>>>>> (was able to control a LED on a ftdi chip), but there's lots of work left.
(Continue reading)

Trygve Laugstøl | 7 Jul 2010 11:18
Picon

Re: Renewing effort on javax-libusb

On 7/6/10 7:23 PM, Dan Streetman wrote:
> Hello,
>
> Brian Weischedel is now the official maintainer of javax-usb (not me
> any longer) but I am still the sf.net admin for the project (for now
> at least).
>
> If you want, I can add you as a sf.net developer to the project so you
> can manage the code in git there, assuming Brian doesn't have a
> problem with it (Brian, speak up if you do).
>
> Let me know what your sf id is and I'll add you in.

Thanks!

My sf.net ID is "trygvis".

If you're first going to move to Git I would suggest moving to github 
and update/move the home page there to their wiki. I don't think the 
current home page attracts lots of new users as it is :)

--
Trygve

> 2010/6/29 Trygve Laugstøl<trygvis <at> inamo.no>:
>> On 6/29/10 7:53 PM, Trygve Laugstøl wrote:
>>> On 6/29/10 5:40 PM, Mike Crowe wrote:
>>>> On Sun, 2010-06-27 at 11:13 +0200, Trygve Laugstøl wrote:
>>>>> On 6/15/10 12:16 AM, Mike Crowe wrote:
>>>>>> Hello
(Continue reading)

Kustaa Nyholm | 7 Jul 2010 13:05
Favicon

Re: Renewing effort on javax-libusb


> Hello
> I did some rough coding to get javax-usb to work with libusb-0.1 about
> two years ago.  There has been some recent great work being done to port
> libusb-1.0 to windows XP and newer.  Is anyone working at this on moving
> javax-libusb from 0.1 to 1.0?
> 
> Thanks
> Mike

> Hello
> I did some rough coding to get javax-usb to work with libusb-0.1 about
> two years ago.  There has been some recent great work being done to port
> libusb-1.0 to windows XP and newer.  Is anyone working at this on moving
> javax-libusb from 0.1 to 1.0?
> 
> Thanks
> Mike
> 
> 

Mike,

I suppose you used JNI to interface to libusb?

May I suggest that you check out if JNA would be a viable alternative?

I did some some libusb-0.1 stuff using JNA and it was a pleasure,
it took me about two hours to implement a full pure Java API for libusb,
no C code or compiler in sight!
(Continue reading)

Trygve Laugstøl | 7 Jul 2010 14:33
Picon

Re: Renewing effort on javax-libusb

On 7/6/10 7:07 PM, Mike Crowe wrote:
> Hi Trygve!
>
> Very interesting, you are not using SWIG as part of your JNI karma.
> Why did you move away from it?

I didn't, I've started from scratch with my own stuff. The libusb api is 
quite simple and I didn't find the generated stuff any easier to use. 
Being able to have some smarts in the objects/code was also quite handy 
in a couple of places.

It's not set in stone that this is the way it has to be, it just the way 
I initially though was the easiest and it's worked for me this far.

> I checked out your git javax-sb-libusb1 tree.  I got it to compile, but
> ran into 32/64 bit issues.  I resolved them at the compile phase, but
> then got strange runtime errors. such as these;

I'd like to integrate those patches if you'll offer them.

> FATAL ERROR in native method: Field type (instance) mismatch in JNI
> get/set field operations
> 	at javalibusb1.libusb1.set_debug(Native Method)
> 	at javalibusb1.Libusb1UsbServices.<init>(Libusb1UsbServices.java:77)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> Method)
> 	at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
> 	at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
(Continue reading)

Dan Streetman | 7 Jul 2010 20:28
Picon

Re: Renewing effort on javax-libusb

You're added as a developer and you should have read/write access to
the cvs and (still empty) git repositories.

I'll leave it up to Brian as far as whether he wants to move the
project over to github or stay on sourceforge, but I think they
probably will want to stay on sourceforge.

2010/7/7 Trygve Laugstøl <trygvis <at> inamo.no>:
> On 7/6/10 7:23 PM, Dan Streetman wrote:
>>
>> Hello,
>>
>> Brian Weischedel is now the official maintainer of javax-usb (not me
>> any longer) but I am still the sf.net admin for the project (for now
>> at least).
>>
>> If you want, I can add you as a sf.net developer to the project so you
>> can manage the code in git there, assuming Brian doesn't have a
>> problem with it (Brian, speak up if you do).
>>
>> Let me know what your sf id is and I'll add you in.
>
> Thanks!
>
> My sf.net ID is "trygvis".
>
> If you're first going to move to Git I would suggest moving to github and
> update/move the home page there to their wiki. I don't think the current
> home page attracts lots of new users as it is :)
>
(Continue reading)

Marcus Veloso | 28 Jul 2010 04:15
Picon

Where is Java USB going?

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share 
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
Dan Streetman | 28 Jul 2010 17:42
Picon

Re: Where is Java USB going?

The FAQ is out of date; javax.usb has been updated to access the usb
nodes at /dev/bus/usb/NNN/NNN.  You don't need /proc/bus/usb mounted
anymore as long as you have the usb dev nodes in /dev/bus/usb.

On Tue, Jul 27, 2010 at 10:15 PM, Marcus Veloso <mveloso.java <at> gmail.com> wrote:
> Hi,
> Since usbfs is marked
> deprecated (bugs.launchpad.net/ubuntu/+source/linux/+bug/488274).
> And "The Linux implementation uses the usbfs filesystem to
> access USB devices directly... you must have Linux kernel support for the
> usbfs filesystem, and it must be mounted (at /proc/bus/usb)."
> (javax-usb.org/faq.html)
> What would we do?
> Marcus
>
> ------------------------------------------------------------------------------
> The Palm PDK Hot Apps Program offers developers who use the
> Plug-In Development Kit to bring their C/C++ apps to Palm for a share
> of $1 Million in cash or HP Products. Visit us here for more details:
> http://ad.doubleclick.net/clk;226879339;13503038;l?
> http://clk.atdmt.com/CRS/go/247765532/direct/01/
> _______________________________________________
> javax-usb-devel mailing list
> javax-usb-devel <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
>
>

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
javax-usb-devel mailing list
javax-usb-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/javax-usb-devel
Trygve Laugstøl | 30 Jul 2010 01:37
Picon

javax.usb + libusb update

Hello

I have recently accomplished a milestone in running the TCK for my 
libusb javax.usb implementation. I have implemented a working firmware 
for the FX2 card I have and I'm now able to get 
CONFIG1_TOPOLOGY_B6_IMAGE to pass.

Some notes:

I had to more less re-implement TopologyTestConfig1 as I don't have a 
full speed-only hub on my laptop. I also have other build-in devices 
that I can't get away from. I have implemented a XML-based DSL for 
setting up the asserts to perform and I think what I have is in 
principal the same as TopologyTestConfig1.

The firmware is not complete but it's working and I can see the expected 
data with lsusb/USB Prober on Linux/OS X. Getting a complete topology 
firmware going should be quite easy now.

The firmware is based on fx2lib [1] and sdcc [2] which should make the 
firmware buildable for a long time as the compiler and library are free, 
open source and builds on a whole lot of platforms. Implementing the 
functionality (and not just returning the expected descriptors) 
shouldn't be too hard with the current setup.

[1]: http://github.com/mulicheng/fx2lib
[2]: http://sdcc.sf.net

--
Trygve

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm

Gmane