Tuesday, January 23, 2024

Re: Huawei K5161h 4G dongle

On Tue, Jan 23, 2024 at 11:52:01AM +0000, Alex Frolkin wrote:
> Hi all,
>
> Has anyone had any success with getting a Huawei (Vodafone-branded)
> K5161h 4G dongle working on OpenBSD?
>
> It looks like it should work with the umb(4) driver, but the problem is
> getting it into the right mode. When I plug it in, it appears as a USB
> CD drive, and there are magic commands you can send to it to make it
> appear either as an Ethernet interface (where it does NAT and DHCP for
> you, should be supported by the cdce(4) driver) or as an MBIM device
> plus three USB serial ports (which should be supported by umb(4) and
> hopefully ucom(4)).
>
> On FreeBSD and Linux, the mode switching is done by usb_modeswitch,
> which supports switching it to either mode. usb_modeswitch compiles
> fine on OpenBSD, but fails to actually send the magic command, and the
> error code (from the usb_bulk_io function in libusb) says "unsupported
> on this platform".
>
> The other approach is to find a magic AT command that would switch it to
> MBIM mode permanently, but I've failed to find anything online for this
> model, and AT commands that I've found for other models don't work on
> this one.
>

This may sound silly, but does ejecting it (e.g. "eject /dev/cd0") make
a difference? I seem to recall some devices that (temporarily) switched
mode after being ejected.

--

No comments:

Post a Comment