Results 1 to 5 of 5

Thread: USBIP looks messy

  1. #1
    Join Date
    Jun 2016
    Location
    Ireland
    Posts
    246

    Default USBIP looks messy

    Hi,

    I try to install an USB device installed on router through USB over IP.
    I installed usbip package from Opensuse version 1.1.1-25.1
    Man usbip says
    HTML Code:
    SYNOPSIS
           usbip [options]
    
    DESCRIPTION
           Devices exported by USB/IP servers can be listed, attached and detached using this program.
    
    OPTIONS
           -a, --attach <host> <bus_id>
                  Attach a remote USB device.
    
           -x, --attachall <host>
                  Attach all remote USB devices on the specific host.
    
           -d, --detach <ports>
                  Detach an imported USB device.
    
           -l, --list <hosts>
                  List exported USB devices.
    
           -p, --port
                  List virtual USB port status.
    
           -D, --debug
                  Print debugging information.
    
           -v, --version
                  Show version.
    
    EXAMPLES
               client:# usbip --list server
                   - List exportable usb devices on the server.
    
               client:# usbip --attach server 1-2
                   - Connect the remote USB device.
    
               client:# usbip --port
                   - Show virtual port status.
    
               client:# usbip --detach 0
                   - Detach the usb device.
    When I enter
    HTML Code:
    ~ # usbip -a 192.168.0.1 1-1
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    ~ # usbip --attach 192.168.0.1 1-1
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    
    ~ # usbip -l 192.168.0.1
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    
    ~ # usbip --list 192.168.0.1
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    
    ~ # usbip -p
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    ~ # usbip --port
    usbip: invalid option
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    Is it my mistake? IP address and bus_id are valid. Is it doc mistake?
    I found lot of different syntaxes but not one can attach my device.

    Thanks to enlighten me.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,831

    Default Re: USBIP looks messy

    I kn ow nothing about USB over IP, nor about the usbip tool, apart from the (part of the) man page you show.

    But the error messages do not complain about your parameters (<host> and/or <bus-id>) but about the options themselves. You first have to find out why it does not accept options like -a (invalid option).

    What I detect as strange is that the tool then displays a usage message that is only in part the same as what the man page says.

    Are you sure you have the man page that belongs to (your version of) the tool?

    And what when you try
    Code:
    usbip help
    And maybe you can add some explanation on your setup.
    Apparently you use the usbip command on a USBIP client, but that is only my assumption, not because you explained that. And the USBIP server seems to be on 192.168.0.1, but you fail to provide any information about it. Is it also openSUSE, are you sure the server is running? What port(s) is the server listening on? Are there any firewalls that are to be opened for that traffic?
    Last edited by hcvv; 11-Mar-2018 at 06:26.
    Henk van Velden

  3. #3
    Join Date
    Jun 2016
    Location
    Ireland
    Posts
    246

    Default Re: USBIP looks messy

    More info
    I did the install in the router (as server) following this howto https://wiki.openwrt.org/doc/howto/usb.iptunnel
    This is OK
    Now client side I installed usbip.
    After try and fail, I found how to use it
    Code:
    ~ # usbip
    usage: usbip [--debug] [--log] [version]
                 [help] <command> <args>
    
      attach     Attach a remote USB device
      detach     Detach a remote USB device
      list       List exportable or local USB devices
      bind       Bind device to usbip-host.ko
      unbind     Unbind device from usbip-host.ko
    
    ~ # usbip attach
    usage: usbip attach <args>
        -h, --host=<host>      The machine with exported USB devices
        -b, --busid=<busid>    Busid of the device on <host>
    
    ~ # usbip list
    usage: usbip list [-p|--parsable] <args>
        -p, --parsable         Parsable list format
        -r, --remote=<host>    List the exportable USB devices on <host>
        -l, --local            List the local USB devices
    
    ~ # usbip list -r 192.168.0.1
    Exportable USB devices
    ======================
     - 192.168.0.1
            1-1: Brother Industries, Ltd : DCP-7055 scanner/printer (04f9:0248)
               : /sys/devices/platform/10000000.fpi/1e101000.ifxhcd/usb1/1-1
               : (Defined at Interface level) (00/00/00)
    
    ~ # usbip attach -h 192.168.0.1 -b 1-1
    The last command has not output, so is good
    What is confusing is the option differ regarding second part of the command.
    This thread is solved.

    I have 2 computers with Leap 42.3 connected to the router. Both USBIP don't want to work.
    I'll investigate further and let people know for ref.

    Anyway thanks for your help

  4. #4
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    29,831

    Default Re: USBIP looks messy

    Nice you found out how to do it.

    But what works is quite different from the man page you show.

    E.g. the man page says that for attaching you need the --attach option, but in fact you need the attach command.
    Henk van Velden

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,925
    Blog Entries
    14

    Default Re: USBIP looks messy

    Quote Originally Posted by hcvv View Post
    Nice you found out how to do it.

    But what works is quite different from the man page you show.

    E.g. the man page says that for attaching you need the --attach option, but in fact you need the attach command.
    And that is asking for an upstream bug-report
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •