|
From: Enigma <en...@cu...> - 2001-07-07 15:37:04
|
> > On Fri, 6 Jul 2001 se...@ar... wrote: > > > > i suspect others are much further through this than i am, all i can > > do is ping and get lib counter atm (although it returns 0x00000000, which > > looks wrong) > > I have all of the NJB code working under libusb on FreeBSD. It should be > a really short step to getting it working under Linux at this point. > > Theoretically, anyway. :) > in that case if you send me what you've got i will see if i can get it to go under linux if you want? > > when you say released to you mean using the njb release or just usb_close > > ? > > I mean njb_release. not got that far yet :) > > > as i haven't completed the handshake i havn't done the njb capture stuff > > yet, this is just the trying to get the handshake working, > > Depends on the functions you are calling. NJB_Handshake() does call > njb_capture() > i was rewritting it as i thought that would be easier to me (and help me understand it better) than just tring to port it, but if you have something that works with libusb then it would be much easier to port (seing as it should just work :P) > > > although it could well be as the first read > > is 58 bytes not 64, usb stuff sin't my strong point, only been looking at > > it a week :) > > Okay...sounds like libusb under Linux also does not handle short reads > properly. Almost all of the bulk pipe communications on the NJB are > short (less than the max packet value for the endpoint, which is 64 > bytes). I ran into this with FreeBSD, and have a cheap hack that fixes > the problem in that OS. I'm not familiar with Linux's USB stack yet, > so it may take some reading before I have a solution. i could have a look at this > > before i forget, thanks for the protocol information on your site :) > > You are welcome. By the way, there's a bug in songid.c that I just found > last night: in songid_unpack(): > > memcpy(&nframes, dp, 4); > > should be: > > memcpy(&nframes, dp, 2); > ________________________________________________________ PGP key is here -> http://www.computerbooth.com/pgp.html * If debugging is the process of removing bugs, then programming must be the process of putting them in. |