Re: Problem with usb in FreeBSD 4.8....help!!!

From: jitendra pande (jpande_techinfo_at_yahoo.com)
Date: 03/29/04

  • Next message: Dan Nelson: "Re: MS_ASYNC with MS_INVALIDATE"
    Date: Mon, 29 Mar 2004 06:15:56 -0800 (PST)
    To: freebsd-hackers@freebsd.org
    
    

    Hi Toni,
     
    Thanks a lot for the information.
     
    My device is the one which supports control transfers only thus i understand that for a second device i need to use /dev/ugen1 and so on.
     
    Does that mean, i need to explictly make a node /dev/ugen1 and /dev/ugen2 and so on for every newly added USB device using MAKEDEV script.
     
    Please advise me , if there exist some better way of handling the situation. Is there some sort of modification that i can make to libusb to handle the situation.
     
    Thanks and regards
    Jitendra
     
    Toni Andjelkovic <toni@soth.at> wrote:
    On Sun, Mar 28 2004 (02:51:56 -0800), jitendra pande wrote:
    > My application uses libusb for iinteracting with the usb devices...
    > libusb on freeBSD 4.8 tries to find /debv/ugen0, /dev/ugen1 and so
    > on....hence couldn't able to detect more then one device.
    ...
    > FreeBSD 4.8 and FreeBSD 5.0

    Note that the port version of libusb (0.1.7_1) ignores device endpoints
    (/dev/ugenX.Y), so it may be necessary to find and open them by yourself.

    Also note that opening the control endpoint (/dev/ugen0) instead
    will prevent libusb from finding the device, because FreeBSD allows
    the control endpoint to be open only once:

    usb_os_find_devices: couldn't open device /dev/ugen0: Device busy

    Also note that on 5.x (or -CURRENT) there are other problems to
    watch out for:

    http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/63375

    Cheers,
    Toni
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

    ---------------------------------
    Do you Yahoo!?
    Yahoo! Finance Tax Center - File online. File on time.
    _______________________________________________
    freebsd-hackers@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
    To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"


  • Next message: Dan Nelson: "Re: MS_ASYNC with MS_INVALIDATE"

    Relevant Pages

    • Re: Looking for a Tcl wrapper for libusb-win32
      ... The reason is I'd need the equivalent of Perl's Device::USB glue over ... libusb, to control a device (Lego Mindstorms) for which I don't have ...
      (comp.lang.tcl)
    • Looking for a Tcl wrapper for libusb-win32
      ... The reason is I'd need the equivalent of Perl's Device::USB glue over ... libusb, to control a device (Lego Mindstorms) for which I don't have ...
      (comp.lang.tcl)
    • Re: [9fans] just checking ...
      ... usb/usbd with the new libusb. ... My libusb was locally manufactured and consequently ... Mind you, does it not fall outside replica/pull's ...
      (comp.os.plan9)
    • Re: Problem with usb in FreeBSD 4.8....help!!!
      ... > My application uses libusb for iinteracting with the usb devices... ... Note that the port version of libusb ignores device endpoints ... Also note that opening the control endpoint instead ...
      (freebsd-hackers)