From: Shaun J. <sja...@ho...> - 2001-07-06 17:03:23
|
Hi, I've also been doing a libusb port of libnjb. It's coming along nicely (I can handshake, ping, download tracklists, control playback) but I don't have a lot of time right now as I'm in school. Perhaps we could avoid some duplication of effort and colaborate on this front? As for your ping problem, I'm seeing the exact same symtptom. The handshake fails every other time. I haven't started troubleshooting this yet. Cheers, Shaun On Friday 06 July 2001 05:56, Enigma wrote: > Hi > I have been looking at doing a port/hack/mix/break of seaguls njb stuff > for linux, i've got as far as doing a 'ping' during the handshake, this > sends a command and the receives 58 bytes of the bulk interface, this > seems to work, on alternate attemps, the first time it will work, the next > attemp it will fail with this error message > > Jul 2 19:42:00 hubble kernel: usb_control/bulk_msg: timeout > Jul 2 19:42:00 hubble kernel: usbdevfs: USBDEVFS_BULK failed dev 4 ep > 0x82 len 58 ret -110 > > the next attempt will work, then fail etc etc, > > my lib currently discovers the njb using usb_find_busses and > usb_find_devices, this always works > > then it does an open using usb_open usb_claim_interface and > usb_set_altinterface, this too works fine > > this i do the ping, this sends a control message using usb_control_msg, i > have checked the return value and this works too, then it does the > usb_bulk_read, which is the bit that fails on alternate attempts > > i then do a usb_close on the njb and quit, each run goes through every > step, the close always happens regardless of the failed read, this was > designed to be a simple test for me to see if i could get things working, > but it isn't at the moment, can anyone spot any obvious errors or give me > hints as to why i get the bulk timeout (timeout is 3000, so it shouldn't > be too short) > > Thanks in advance > > > ________________________________________________________ > > 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. > > > _______________________________________________ > Libusb-devel mailing list > Lib...@li... > http://lists.sourceforge.net/lists/listinfo/libusb-devel |