Re: Huawei K5161h 4G dongle

2024-01-26 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:01:23PM +, Alex Frolkin wrote: > Okay, I got this wrong. What I thought was MBIM mode is actually CDC > NCM mode, which is not supported in OpenBSD. I also had a go at patching the driver to make it enable CDC Ethernet mode instead. Enabling it works, cdce(4)

Re: Huawei K5161h 4G dongle

2024-01-25 Thread Alex Frolkin
On Thu, Jan 25, 2024 at 02:36:34PM -0300, Crystal Kolipe wrote: > So, testing with a terminal program rather than pppd, after issuing the > ATD*99# command, are you are seeing the 'CONNECT' string returned, but then > not seeing the characteristic start of the PPP session, (which looks like > line

Re: Huawei K5161h 4G dongle

2024-01-25 Thread Crystal Kolipe
On Thu, Jan 25, 2024 at 03:44:07PM +, Alex Frolkin wrote: > All I get from pppd is "LCP: timeout sending Config-Requests", after > the "CONNECT". > > I've also discovered yet another mode of this device (using the patch > below), to turn it into product ID 1001, which comes up as three

Re: Huawei K5161h 4G dongle

2024-01-25 Thread Alex Frolkin
On Thu, Jan 25, 2024 at 04:26:40AM -0300, Crystal Kolipe wrote: > Are you sure that the APN and PDP context are correctly set for the ISP you > are trying to connect to? Yes, I'm pretty sure it's correct. > Why are you using *99***1# as the dial string to explicitly select context 1 > instead of

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Crystal Kolipe
On Wed, Jan 24, 2024 at 11:01:23PM +, Alex Frolkin wrote: > On Wed, Jan 24, 2024 at 10:03:00PM +, Alex Frolkin wrote: > > In any case, I think the right answer is to make it work with umb(4). > > I'll see if I can make any progress with this. > > Okay, I got this wrong. What I thought

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 10:03:00PM +, Alex Frolkin wrote: > In any case, I think the right answer is to make it work with umb(4). > I'll see if I can make any progress with this. Okay, I got this wrong. What I thought was MBIM mode is actually CDC NCM mode, which is not supported in OpenBSD.

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 03:17:39PM +, Alex Frolkin wrote: > On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > > +#define USB_PRODUCT_HUAWEI_K5161H 0x1f1d > > + {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K5161H }, DEV_UMASS5}, > So, this works. Or rather, it works insofar as I

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > Index: sys/dev/usb/umsm.c > === > RCS file: /cvs/src/sys/dev/usb/umsm.c,v > diff -u -p -r1.125 umsm.c > --- sys/dev/usb/umsm.c2 Apr 2023 23:57:57 -

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Jonathan Gray
On Wed, Jan 24, 2024 at 08:37:18AM +, Alex Frolkin wrote: > On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > > umsm(4) does the equivalent in the kernel. DEV_UMASS5 seems most > > likely, but there are other methods to try as well. > > Ah, interesting, I'll give that a go.

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Tue, Jan 23, 2024 at 07:17:04PM +, Zé Loff wrote: > 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. Thanks, I'd try that, but the cd0 device doesn't actually

Re: Huawei K5161h 4G dongle

2024-01-24 Thread Alex Frolkin
On Wed, Jan 24, 2024 at 11:47:53AM +1100, Jonathan Gray wrote: > umsm(4) does the equivalent in the kernel. DEV_UMASS5 seems most > likely, but there are other methods to try as well. Ah, interesting, I'll give that a go. Looking at the code, though, it looks like it might be doing what

Re: Huawei K5161h 4G dongle

2024-01-23 Thread Jonathan Gray
On Tue, Jan 23, 2024 at 11:52:01AM +, 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.

Re: Huawei K5161h 4G dongle

2024-01-23 Thread Zé Loff
On Tue, Jan 23, 2024 at 11:52:01AM +, 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.

Huawei K5161h 4G dongle

2024-01-23 Thread Alex Frolkin
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