Discussion:
Huawei E3131h-2
Atanas Vladimirov
2016-02-15 14:59:10 UTC
Permalink
Hi,

With the diff bellow I tried to enable Huawei E3131h-2 but I got
umsm1: missing endpoint and my "magic" ends here.

Any help is appreciated.
Thanks.

Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.104
diff -u -p -r1.104 umsm.c
--- umsm.c 29 Sep 2015 08:34:28 -0000 1.104
+++ umsm.c 15 Feb 2016 14:23:18 -0000
@@ -137,6 +137,8 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E510 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E392_INIT }, DEV_UMASS5},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131 }, 0},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131_INIT }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W }, 0},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, DEV_UMASS5},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.662
diff -u -p -r1.662 usbdevs
--- usbdevs 8 Jan 2016 09:31:32 -0000 1.662
+++ usbdevs 15 Feb 2016 14:23:19 -0000
@@ -2200,6 +2200,8 @@ product HUAWEI E353_INIT 0x14fe HUAWEI M
product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial
product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial
product HUAWEI MU609 0x1573 HUAWEI Mobile ME906
+product HUAWEI E3131 0x1506 HUAWEI Mobile E3131
+product HUAWEI E3131_INIT 0x15ca HUAWEI Mobile E3131 Initial
product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s
product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial
product HUAWEI E303 0x1f01 HUAWEI Mobile E303


umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm0 detached
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom0 at umsm0
umsm1 at uhub5 port 3 configuration 1 interface 1 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm1: missing endpoint
umsm2 at uhub5 port 3 configuration 1 interface 2 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom1 at umsm2
umsm3 at uhub5 port 3 configuration 1 interface 3 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
ucom2 at umsm3
umass0 at uhub5 port 3 configuration 1 interface 4 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass0: using SCSI over Bulk-Only
scsibus5 at umass0: 2 targets, initiator 0
umass1 at uhub5 port 3 configuration 1 interface 5 "HUAWEI Technologies
HUAWEI Mobile E3131" rev 2.00/1.02 addr 2
umass1: using SCSI over Bulk-Only
scsibus6 at umass1: 2 targets, initiator 0

#usbdev -v

Controller /dev/usb0:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 powered
port 4 powered
Controller /dev/usb1:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
port 3 addr 2: high speed, power 500 mA, config 1, HUAWEI Mobile
E3131(0x1506), HUAWEI Technologies(0x12d1), rev 1.02
port 4 powered
port 5 powered
port 6 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 addr 2: low speed, power 100 mA, config 1, USB Optical
Mouse(0xc05a), Logitech(0x046d), rev 63.00
Controller /dev/usb4:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Controller /dev/usb5:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000),
Intel(0x8086), rev 1.00
port 1 powered
port 2 powered
Atanas Vladimirov
2016-02-16 09:34:00 UTC
Permalink
Post by Atanas Vladimirov
Hi,
With the diff bellow I tried to enable Huawei E3131h-2 but I got
umsm1: missing endpoint and my "magic" ends here.
Any help is appreciated.
Thanks.
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.104
diff -u -p -r1.104 umsm.c
--- umsm.c 29 Sep 2015 08:34:28 -0000 1.104
+++ umsm.c 15 Feb 2016 14:23:18 -0000
@@ -137,6 +137,8 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E510 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618 }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E392_INIT }, DEV_UMASS5},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131 }, 0},
+ {{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E3131_INIT }, DEV_UMASS5},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_EM770W }, 0},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_Mobile }, DEV_HUAWEI},
{{ USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_K3765_INIT }, DEV_UMASS5},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.662
diff -u -p -r1.662 usbdevs
--- usbdevs 8 Jan 2016 09:31:32 -0000 1.662
+++ usbdevs 15 Feb 2016 14:23:19 -0000
@@ -2200,6 +2200,8 @@ product HUAWEI E353_INIT 0x14fe HUAWEI M
product HUAWEI E392_INIT 0x1505 HUAWEI Mobile E392 Initial
product HUAWEI K3765_INIT 0x1520 HUAWEI Mobile K3765 Initial
product HUAWEI MU609 0x1573 HUAWEI Mobile ME906
+product HUAWEI E3131 0x1506 HUAWEI Mobile E3131
+product HUAWEI E3131_INIT 0x15ca HUAWEI Mobile E3131 Initial
product HUAWEI E173S 0x1c05 HUAWEI Mobile E173s
product HUAWEI E173S_INIT 0x1c0b HUAWEI Mobile E173s Initial
product HUAWEI E303 0x1f01 HUAWEI Mobile E303
I have some progress.
I attached the modem to Windows and enable only modem mode with
AT^SETPORT="A1,A2;1,3,2" command.
Then missing endpoint error disappeared.
pppd is attaching to cuaU0 and I have internet access via Vivacom
(Bulgaria).

umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
umsm0 detached
umsm0 at uhub5 port 3 configuration 1 interface 0 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom0 at umsm0
umsm1 at uhub5 port 3 configuration 1 interface 1 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom1 at umsm1
umsm2 at uhub5 port 3 configuration 1 interface 2 "HUAWEI HUAWEI Mobile"
rev 2.00/1.02 addr 2
ucom2 at umsm2
umsm0: this device is not using CDC notify message in intr pipe.
Please send your dmesg to <***@openbsd.org>, thanks.
umsm0: intr buffer 0xc1 0x1 0x3 0x0 0x0 0x0 0x0
umsm0: this device is not using CDC notify message in intr pipe.
Please send your dmesg to <***@openbsd.org>, thanks.
umsm0: intr buffer 0xc1 0x1 0x3 0x0 0x0 0x0 0x0

# vivacom-chat

ABORT BUSY
ABORT 'NO CARRIER'
ABORT ERROR
REPORT CONNECT
TIMEOUT 12
"" "AT&F"
OK "ATE1"
OK 'AT+CGDCONT=1,"IP","internet.vivacom.bg"'
ABORT 'NO CARRIER'
TIMEOUT 15
OK "ATD*99#"
CONNECT ' '

# chap-secrets

# Secrets for authentication using CHAP
# client server secret IP addresses
VIVACOM * VIVACOM *

# peer/e3131

cuaU0
921600
debug
noauth
:10.0.0.1
ipcp-accept-local
ipcp-accept-remote
defaultroute
user VIVACOM
persist
idle 600
connect "/usr/sbin/chat -v -f /etc/ppp/vivacom-chat"

# dmesg

OpenBSD 5.9 (GENERIC.MP) #7: Wed Feb 10 17:20:09 EET 2016
***@lp.my.domain:/sys/arch/amd64/compile/GENERIC.MP
real mem = 1048248320 (999MB)
avail mem = 1012338688 (965MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xf25f6 (25 entries)
bios0: vendor Hewlett-Packard version "68MDU Ver. F.09" date 01/10/2008
bios0: Hewlett-Packard 30D8
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT
SSDT
acpi0: wakeup devices C0B1(S5) C109(S3) C110(S3) C111(S3) C112(S3)
C11A(S3) C11C(S3) C132(S5) C2A1(S5) C135(S5) C2A2(S5) C138(S5) C23D(S5)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpihpet0 at acpi0: 14318179 Hz
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz, 1995.33 MHz
cpu0:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: smt 0, core 0, package 0
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 199MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 Duo CPU T5670 @ 1.80GHz, 1795.50 MHz
cpu1:
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,NXE,LONG,LAHF,PERF,SENSOR
cpu1: 2MB 64b/line 8-way L2 cache
cpu1: smt 0, core 1, package 0
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 1
acpimcfg0 at acpi0 addr 0xf8000000, bus 0-63
acpiprt0 at acpi0: bus 2 (C0B1)
acpiprt1 at acpi0: bus 8 (C11E)
acpiprt2 at acpi0: bus 16 (C132)
acpiprt3 at acpi0: bus 40 (C135)
acpiprt4 at acpi0: bus 0 (C003)
acpiec0 at acpi0
acpicpu0 at acpi0: !C2(***@17 ***@0x20), C1(***@1 mwait.1), PSS
acpicpu1 at acpi0: !C2(***@17 ***@0x20), C1(***@1 mwait.1), PSS
acpipwrres0 at acpi0: C272, resource for C26D
acpipwrres1 at acpi0: C27F, resource for C273
acpipwrres2 at acpi0: C29B, resource for C299
acpipwrres3 at acpi0: C1C6, resource for C137
acpipwrres4 at acpi0: C3B2, resource for C3B7
acpipwrres5 at acpi0: C3B3, resource for C3B8
acpipwrres6 at acpi0: C3B4, resource for C3B9
acpipwrres7 at acpi0: C3B5, resource for C3BA
acpipwrres8 at acpi0: C3B6, resource for C3BB
acpitz0 at acpi0: critical temperature is 105 degC
acpitz1 at acpi0: critical temperature is 108 degC
acpitz2 at acpi0: critical temperature is 110 degC
acpitz3 at acpi0: critical temperature is 256 degC
acpitz4 at acpi0: critical temperature is 108 degC
acpibat0 at acpi0: C23B model "Primary" serial 01466 2008/05/23 type
LIon oem "Hewlett-Packard"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: C2B4
acpibtn1 at acpi0: C154
acpivideo0 at acpi0: C099
acpivout0 at acpivideo0: C1AE
cpu0: Enhanced SpeedStep 1995 MHz: speeds: 1801, 1800, 1200, 800 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "Intel GME965 Host" rev 0x0c
inteldrm0 at pci0 dev 2 function 0 "Intel GME965 Video" rev 0x0c
drm0 at inteldrm0
intagp0 at inteldrm0
agp0 at intagp0: aperture at 0xd0000000, size 0x10000000
inteldrm0: msi
inteldrm0: 1280x800
wsdisplay0 at inteldrm0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1-5 added (std, vt100 emulation)
"Intel GME965 Video" rev 0x0c at pci0 dev 2 function 1 not configured
em0 at pci0 dev 25 function 0 "Intel ICH8 IFE GT" rev 0x03: msi, address
00:1b:29:80:e7:4a
uhci0 at pci0 dev 26 function 0 "Intel 82801H USB" rev 0x03: apic 1 int
16
ehci0 at pci0 dev 26 function 7 "Intel 82801H USB" rev 0x03: apic 1 int
18
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
azalia0 at pci0 dev 27 function 0 "Intel 82801H HD Audio" rev 0x03: msi
azalia0: codecs: Analog Devices AD1981HD, AT&T/Lucent/0x1040, using
Analog Devices AD1981HD
audio0 at azalia0
ppb0 at pci0 dev 28 function 0 "Intel 82801H PCIE" rev 0x03
pci1 at ppb0 bus 8
ppb1 at pci0 dev 28 function 1 "Intel 82801H PCIE" rev 0x03: msi
pci2 at ppb1 bus 16
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02:
msi, MoW2, address 00:1f:3c:58:08:84
ppb2 at pci0 dev 28 function 4 "Intel 82801H PCIE" rev 0x03: msi
pci3 at ppb2 bus 40
uhci1 at pci0 dev 29 function 0 "Intel 82801H USB" rev 0x03: apic 1 int
20
uhci2 at pci0 dev 29 function 1 "Intel 82801H USB" rev 0x03: apic 1 int
21
uhci3 at pci0 dev 29 function 2 "Intel 82801H USB" rev 0x03: apic 1 int
18
ehci1 at pci0 dev 29 function 7 "Intel 82801H USB" rev 0x03: apic 1 int
20
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "Intel EHCI root hub" rev 2.00/1.00 addr 1
ppb3 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xf3
pci4 at ppb3 bus 2
pcib0 at pci0 dev 31 function 0 "Intel 82801HBM LPC" rev 0x03
pciide0 at pci0 dev 31 function 1 "Intel 82801HBM IDE" rev 0x03: DMA,
channel 0 configured to compatibility, channel 1 configured to
compatibility
atapiscsi0 at pciide0 channel 0 drive 0
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <HL-DT-ST, DVDRAM GSA-T20L, NC08> ATAPI
5/cdrom removable
cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ahci0 at pci0 dev 31 function 2 "Intel 82801HBM AHCI" rev 0x03: msi,
AHCI 1.1
ahci0: port 0: 1.5Gb/s
scsibus2 at ahci0: 32 targets
sd0 at scsibus2 targ 0 lun 0: <ATA, Hitachi HTS54251, BB2O> SCSI3
0/direct fixed naa.5000cca536eb6be0
sd0: 114473MB, 512 bytes/sector, 234441648 sectors
usb2 at uhci0: USB revision 1.0
uhub2 at usb2 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb3 at uhci1: USB revision 1.0
uhub3 at usb3 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb4 at uhci2: USB revision 1.0
uhub4 at usb4 "Intel UHCI root hub" rev 1.00/1.00 addr 1
usb5 at uhci3: USB revision 1.0
uhub5 at usb5 "Intel UHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (6f9d00a727742584.a) swap on sd0b dump on sd0b

Loading...