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 just *99# which uses default settings?

I've tried both ways, it hasn't made any difference.

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 ucom(4)
ports, and I'm trying to run pppd on the third of those (having poked
all three by hand to see what they do), and the result is the same. 

pppd config:

-----
cuaU2
115200
debug
local
noauth
novj
noipdefault
nocrtscts
:
ipcp-accept-local
ipcp-accept-remote
nodefaultroute
persist
connect "/usr/sbin/chat -v -f /etc/ppp/chatscripts/mobile"
-----

Chat script:

-----
TIMEOUT 10
REPORT CONNECT
ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
'' AT OK AT OK
ATD*99# CONNECT
-----


Alex

--- /usr/src/sys/dev/usb/umsm.c.orig    Wed Jan 24 11:11:03 2024
+++ /usr/src/sys/dev/usb/umsm.c Thu Jan 25 15:00:21 2024
@@ -109,8 +109,9 @@
 #define        DEV_UMASS6      0x0200
 #define        DEV_UMASS7      0x0400
 #define        DEV_UMASS8      0x1000
+#define        DEV_UMASS9      0x2000
 #define DEV_UMASS      (DEV_UMASS1 | DEV_UMASS2 | DEV_UMASS3 | DEV_UMASS4 | \
-    DEV_UMASS5 | DEV_UMASS6 | DEV_UMASS7 | DEV_UMASS8)
+    DEV_UMASS5 | DEV_UMASS6 | DEV_UMASS7 | DEV_UMASS8 | DEV_UMASS9)
 };
 
 static const struct umsm_type umsm_devs[] = {
@@ -147,6 +148,8 @@
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_MU609 }, DEV_TRUINSTALL},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_K4510 }, DEV_UMASS5},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_K4511 }, DEV_UMASS5},
+#define USB_PRODUCT_HUAWEI_K5161H 0x1f1d
+       {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_K5161H }, DEV_UMASS9},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1750 }, DEV_UMASS5},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E1752 }, 0},
        {{ USB_VENDOR_HUAWEI,   USB_PRODUCT_HUAWEI_E3372 }, DEV_UMASS5},
@@ -711,6 +714,12 @@
                cbw.bCBWFlags = CBWFLAGS_OUT;
                cbw.CBWCDB[0] = 0x11;
                cbw.CBWCDB[1] = 0x06;
+               break;
+       case DEV_UMASS9:
+               cbw.bCBWFlags = CBWFLAGS_OUT;
+               cbw.CBWCDB[0] = 0x11;
+               cbw.CBWCDB[1] = 0x06;
+               cbw.CBWCDB[2] = 0x30;
                break;
        case DEV_UMASS6:        /* ZTE */
                USETDW(cbw.dCBWDataTransferLength, 0x20);

Reply via email to