On Wed, Jun 15, 2016 at 5:51 PM, Alan Stern <st...@rowland.harvard.edu> wrote:
> On Wed, 15 Jun 2016, Sedat Dilek wrote:
>
>> Hi Alan,
>>
>> I updated my usb-ids on my Ubuntu 12.04 LTS (AMD64).
>> Background was my ASMedia ASM-104x USB-3.0 controller/hub shows no
>> human-readable vendor-string etc.
>>
>> While checking parallelelly a new usbutils release, I saw your
>> "usbreset" example program in the corresponding GitHub repo [1].
>>
>> Sometimes my Internet connection does not get established and I do not
>> want to plug-off it from my hardware (usb-2 port).
>> I hope your usbrest program can do the trick software-technically.
>>
>> So how do I reset my Internet stick?
>>
>> $ lsusb | grep -i huawei
>> Bus 001 Device 005: ID 12d1:1436 Huawei Technologies Co., Ltd. Broadband 
>> stick
>>
>> [ Excerpts from my dmesg-outputs ]
>>
>> [   22.352232] cdc_ether 1-1.2:1.1 wwan0: register 'cdc_ether' at
>> usb-0000:00:1a.0-1.2, Mobile Broadband Network Device,
>> 02:50:f3:00:00:00
>> [   22.395891] option 1-1.2:1.0: GSM modem (1-port) converter detected
>> [   22.399676] usb 1-1.2: GSM modem (1-port) converter now attached to 
>> ttyUSB0
>> [   22.399997] option 1-1.2:1.3: GSM modem (1-port) converter detected
>> [   22.400557] usb 1-1.2: GSM modem (1-port) converter now attached to 
>> ttyUSB1
>> [   22.400639] option 1-1.2:1.4: GSM modem (1-port) converter detected
>> [   22.401041] usb 1-1.2: GSM modem (1-port) converter now attached to 
>> ttyUSB2
>>
>> Not sure how to usbreset - all three /dev/ttyUSB[0-2] ?
>>
>> $ sudo ./usbreset $DEVFN
>> Usage: usbreset device-filename
>>
>> If you need more informations if my attached linux-config,
>> dmesg-output and 'lsusb -vvv' outputs don't help, please let me know.
>
> sudo ./usbreset /dev/bus/usb/001/005
>
> 001 and 005 are the Bus and Device numbers from the lsusb output.
>

Thanks, Alan.

I will look and test this (or adapt your) line as soon as I get in
front of my machine.

I have seen that the corresponding "usb-port" provides a usb3-hub and
a usb2-hub, so I think I have to reset both?
Are those hubs independent?
I will re-check my outputs which I had sent here.

Can you add an example-line to the "help-text" when invoking usbreset
with no (or wrong) device-filename argument?

Thanks in advance.

- Sedat Dilek -
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to