Re: Reset hanging Huawei USB-2.0 Internet stick

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 16, 2016 at 12:17 PM Bjørn Mork <bjorn@xxxxxxx> wrote:
>
> Sedat Dilek <sedat.dilek@xxxxxxxxx> writes:
> > On Wed, Jun 15, 2016 at 5:51 PM, Alan Stern <stern@xxxxxxxxxxxxxxxxxxx> 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 ;)
>

Hi Bjørn and Alan,

I remembered this thread as I still want to reset my Huawei UMTS/3G
USB Internet stick via CLI.

Downloaded usbreset.c file from new OpenWrt Git repo (see [1])...

$ wget "https://raw.githubusercontent.com/openwrt/openwrt/master/package/utils/usbreset/src/usbreset.c";

...compiled it successfully:

$ gcc-10 -o usbreset usbreset.c

$ sudo lsusb | grep -i huawei
Bus 001 Device 005: ID 12d1:1436 Huawei Technologies Co., Ltd. Broadband stick

# LC_ALL=C ll /dev/bus/usb/001/005
crw-rw-r-- 1 root root 189, 4 Dec 26 10:46 /dev/bus/usb/001/005

Via /dev/bus/BBB/DDD it did NOT work...

$ sudo ./usbreset /dev/bus/usb/001/005
No such device found

...but via VID:PID:

$ sudo ./usbreset 12d1:1436
Resetting HUAWEI Mobile ... ok

I tested this with the Linux v5.10.2 from Debian/experimental.

Any hints why BBB/DDD does not work here?

Thanks.

Happy Xmas,
- Sedat -

[1] https://raw.githubusercontent.com/openwrt/openwrt/master/package/utils/usbreset/src/usbreset.c




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux