Gentoo Archives: gentoo-user

From: hitachi303 <gentoo-user@××××××××××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running
Date: Thu, 09 Mar 2023 10:27:03
Message-Id: 4434da30-15de-9aaa-4a46-486440c6d689@konstantinhansen.de
In Reply to: Re: [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running by Security
1 Am 08.03.23 um 21:51 schrieb Security:
2 > On Wed, 8 Mar 2023 15:31:02 +0100
3 > hitachi303 <gentoo-user@××××××××××××××××.de> wrote:
4 >
5 >> Hello everyone,
6 >>
7 >> I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is
8 >> build in the laptop.
9 >>
10 >> #lsusb | grep -i huawei
11 >> Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936
12 >> LTE/HSDPA+ 4G modem
13 >>
14 >> #lspci | grep -i huawei
15 >> - nothing -
16 >>
17 >> #dmesg | grep -i huawei
18 >> [ 0.869910] usbcore: registered new interface driver huawei_cdc_ncm
19 >> [ 1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module
20 >> [ 1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd.
21 >>
22 >> #ifconfig -a
23 >> lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
24 >> inet 127.0.0.1 netmask 255.0.0.0
25 >> inet6 ::1 prefixlen 128 scopeid 0x10<host>
26 >> loop txqueuelen 1000 (Lokale Schleife)
27 >> RX packets 2096 bytes 167808 (163.8 KiB)
28 >> RX errors 0 dropped 0 overruns 0 frame 0
29 >> TX packets 2096 bytes 167808 (163.8 KiB)
30 >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
31 >>
32 >> sit0: flags=128<NOARP> mtu 1480
33 >> sit txqueuelen 1000 (IPv6-nach-IPv4)
34 >> RX packets 0 bytes 0 (0.0 B)
35 >> RX errors 0 dropped 0 overruns 0 frame 0
36 >> TX packets 0 bytes 0 (0.0 B)
37 >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
38 >>
39 >> wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
40 >> [... some info about my wifi ...]
41 >>
42 >> wwp0s20f0u4c2: flags=4098<BROADCAST,MULTICAST> mtu 1500
43 >> ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
44 >> RX packets 0 bytes 0 (0.0 B)
45 >> RX errors 0 dropped 0 overruns 0 frame 0
46 >> TX packets 0 bytes 0 (0.0 B)
47 >> TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
48 >>
49 >>
50 >> ofono is set as a use flag
51 >>
52 >> I am using net-wireless/iw-5.9 for https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/
53 > my wifi and as far as I understand
54 >> this should be working with a modem as well.
55 >>
56 >> net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need
57 >> them for data transfer?
58 >>
59 >> I didn't find a guid at the gentoo wiki. Where could I find something?
60 >> Am I missing something obvious?
61 >>
62 >> Thanks for the help.
63 >>
64 >
65 > Did you check out the generic guide[1] for USB WWAN modems? It looks pretty consistent from when I set up a Gobi 3G card years ago. I got lazy and use tethering.
66 >
67 > This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to test the concept.
68 >
69 > You will need to know you SIM PIN if used and certainly your APN for your Cell Provider.
70 >
71 > That ww* interface is auto-created and can be used with different configuration/managnement tools[3].
72 >
73 > Good Luck!
74 >
75 > [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem
76 >
77 > [2] https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/
78 >
79 > [3] https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0
80 >
81
82
83 Thanks for this.
84
85 The wiki [1] showed I am missing
86 <*> USB driver for GSM and CDMA modems
87
88 So now there are /dev/ttyUSB0 to /dev/ttyUSB3
89
90 Does this mean I don't need the mode_switching stuff, since the modem is
91 already there?
92
93 Also usb_modeswitch is in portage. This is not mentioned in the wiki.
94 Might this part be outdated?
95
96 /etc/wvdial.conf
97 [Dialer Defaults]
98 Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
99 Modem Type = Analog Modem
100 ; Phone = <Target Phone Number>
101 ISDN = 0
102 ; Username = <Your Login Name>
103 Init1 = ATZ
104 ; Password = <Your Password>
105 Modem = /dev/ttyUSB0
106 Baud = 9600
107
108 Does it matter it says "Analog Modem"?
109
110 Does using wvdial result in no need to use minicom like mentioned in [2]?

Replies

Subject Author
Re: [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running katphish <security@××××.com>