Re: Reset hanging Huawei USB-2.0 Internet stick
On Wed, Jun 15, 2016 at 5:51 PM, Alan Sternwrote: > 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-: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.37] 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. > Yes, that worked... $ sudo usbreset /dev/bus/usb/001/005 Resetting USB device /dev/bus/usb/001/005 Reset successful ...and I liked it. - Sedat - -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
On Thu, 16 Jun 2016, Sedat Dilek wrote: > > 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? Why do you want to reset the hubs? I thought you just wanted to reset the Huawei Internet stick. > 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? There's no point. If you specify the wrong device-filename argument, the program will reset the wrong device. Or it will give you an error message. Besides, you can try those experiments yourself and see what happens. Alan Stern -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
On Thu, Jun 16, 2016 at 12:16 PM, Bjørn Morkwrote: > Sedat Dilek writes: >> On Wed, Jun 15, 2016 at 5:51 PM, Alan Stern >> wrote: >> >>> 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? > > I noticed a while ago that the OpenWrt guys have made a few useful > changes to this utility, including the ability to name the device by > VID:PID. This makes it a lot easier to use: > http://git.openwrt.org/?p=openwrt.git;a=blob;f=package/utils/usbreset/src/usbreset.c > > I've been planning to get that diff submitted to usbutils, but haven't > gotten around to it yet. Yes, I move slowly ;) > Go Bjørn, go! - sed@ - -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
Sedat Dilekwrites: > On Wed, Jun 15, 2016 at 5:51 PM, Alan Stern wrote: > >> 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? I noticed a while ago that the OpenWrt guys have made a few useful changes to this utility, including the ability to name the device by VID:PID. This makes it a lot easier to use: http://git.openwrt.org/?p=openwrt.git;a=blob;f=package/utils/usbreset/src/usbreset.c I've been planning to get that diff submitted to usbutils, but haven't gotten around to it yet. Yes, I move slowly ;) Bjørn -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
On Wed, Jun 15, 2016 at 5:51 PM, Alan Sternwrote: > 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-: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.37] 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
Re: Reset hanging Huawei USB-2.0 Internet stick
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-: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.37] 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. Alan Stern -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
On Wed, Jun 15, 2016 at 1:53 PM, Greg Kroah-Hartmanwrote: > On Wed, Jun 15, 2016 at 08:22:44AM +0200, 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-: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.37] 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] ? > > Nope, you need to point it at your hub. > > But be aware that usbreset does not always work, at all, as not all > hardware hubs support this additional feature. > > good luck! > Thanks for the feedback. How do I identify the usb-hub where my Internet stick is plugged in? IOW, what concrete "device-filename" do I have to pass to usbreset? - Sedat - -- 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
Re: Reset hanging Huawei USB-2.0 Internet stick
On Wed, Jun 15, 2016 at 08:22:44AM +0200, 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-: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.37] 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] ? Nope, you need to point it at your hub. But be aware that usbreset does not always work, at all, as not all hardware hubs support this additional feature. good luck! greg k-h -- 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