• [gentoo-user] Trying to get my ME936 LTE/HSDPA+ 4G modem running

    From hitachi303@21:1/5 to All on Wed Mar 8 15:40:01 2023
    Hello everyone,

    I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is
    build in the laptop.

    #lsusb | grep -i huawei
    Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936
    LTE/HSDPA+ 4G modem

    #lspci | grep -i huawei
    - nothing -

    #dmesg | grep -i huawei
    [ 0.869910] usbcore: registered new interface driver huawei_cdc_ncm
    [ 1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module
    [ 1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd.

    #ifconfig -a
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Lokale Schleife)
    RX packets 2096 bytes 167808 (163.8 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2096 bytes 167808 (163.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    sit0: flags=128<NOARP> mtu 1480
    sit txqueuelen 1000 (IPv6-nach-IPv4)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    [... some info about my wifi ...]

    wwp0s20f0u4c2: flags=4098<BROADCAST,MULTICAST> mtu 1500
    ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    ofono is set as a use flag

    I am using net-wireless/iw-5.9 for my wifi and as far as I understand
    this should be working with a modem as well.

    net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need
    them for data transfer?

    I didn't find a guid at the gentoo wiki. Where could I find something?
    Am I missing something obvious?

    Thanks for the help.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Security@21:1/5 to gentoo-user@konstantinhansen.de on Wed Mar 8 22:00:01 2023
    On Wed, 8 Mar 2023 15:31:02 +0100
    hitachi303 <gentoo-user@konstantinhansen.de> wrote:

    Hello everyone,

    I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is
    build in the laptop.

    #lsusb | grep -i huawei
    Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936 LTE/HSDPA+ 4G modem

    #lspci | grep -i huawei
    - nothing -

    #dmesg | grep -i huawei
    [ 0.869910] usbcore: registered new interface driver huawei_cdc_ncm
    [ 1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module
    [ 1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd.

    #ifconfig -a
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Lokale Schleife)
    RX packets 2096 bytes 167808 (163.8 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2096 bytes 167808 (163.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    sit0: flags=128<NOARP> mtu 1480
    sit txqueuelen 1000 (IPv6-nach-IPv4)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    [... some info about my wifi ...]

    wwp0s20f0u4c2: flags=4098<BROADCAST,MULTICAST> mtu 1500
    ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    ofono is set as a use flag

    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/
    my wifi and as far as I understand
    this should be working with a modem as well.

    net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need
    them for data transfer?

    I didn't find a guid at the gentoo wiki. Where could I find something?
    Am I missing something obvious?

    Thanks for the help.


    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.

    This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to test the concept.

    You will need to know you SIM PIN if used and certainly your APN for your Cell Provider.

    That ww* interface is auto-created and can be used with different configuration/managnement tools[3].

    Good Luck!

    [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem

    [2] https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/

    [3] https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From hitachi303@21:1/5 to All on Thu Mar 9 11:30:01 2023
    Am 08.03.23 um 21:51 schrieb Security:
    On Wed, 8 Mar 2023 15:31:02 +0100
    hitachi303 <gentoo-user@konstantinhansen.de> wrote:

    Hello everyone,

    I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is
    build in the laptop.

    #lsusb | grep -i huawei
    Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936
    LTE/HSDPA+ 4G modem

    #lspci | grep -i huawei
    - nothing -

    #dmesg | grep -i huawei
    [ 0.869910] usbcore: registered new interface driver huawei_cdc_ncm
    [ 1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module
    [ 1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd.

    #ifconfig -a
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Lokale Schleife)
    RX packets 2096 bytes 167808 (163.8 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2096 bytes 167808 (163.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    sit0: flags=128<NOARP> mtu 1480
    sit txqueuelen 1000 (IPv6-nach-IPv4)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    [... some info about my wifi ...]

    wwp0s20f0u4c2: flags=4098<BROADCAST,MULTICAST> mtu 1500
    ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    ofono is set as a use flag

    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/
    my wifi and as far as I understand
    this should be working with a modem as well.

    net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need
    them for data transfer?

    I didn't find a guid at the gentoo wiki. Where could I find something?
    Am I missing something obvious?

    Thanks for the help.


    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.

    This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to test the concept.

    You will need to know you SIM PIN if used and certainly your APN for your Cell Provider.

    That ww* interface is auto-created and can be used with different configuration/managnement tools[3].

    Good Luck!

    [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem

    [2] https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/

    [3] https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0



    Thanks for this.

    The wiki [1] showed I am missing
    <*> USB driver for GSM and CDMA modems

    So now there are /dev/ttyUSB0 to /dev/ttyUSB3

    Does this mean I don't need the mode_switching stuff, since the modem is already there?

    Also usb_modeswitch is in portage. This is not mentioned in the wiki.
    Might this part be outdated?

    /etc/wvdial.conf
    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ; Phone = <Target Phone Number>
    ISDN = 0
    ; Username = <Your Login Name>
    Init1 = ATZ
    ; Password = <Your Password>
    Modem = /dev/ttyUSB0
    Baud = 9600

    Does it matter it says "Analog Modem"?

    Does using wvdial result in no need to use minicom like mentioned in [2]?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From katphish@21:1/5 to gentoo-user@konstantinhansen.de on Thu Mar 9 17:50:01 2023
    On Thu, 9 Mar 2023 11:27:26 +0100
    hitachi303 <gentoo-user@konstantinhansen.de> wrote:

    Am 08.03.23 um 21:51 schrieb Security:
    On Wed, 8 Mar 2023 15:31:02 +0100
    hitachi303 <gentoo-user@konstantinhansen.de> wrote:

    Hello everyone,

    I am trying to get my Huawei ME936 LTE/HSDPA+ 4G modem running. It is
    build in the laptop.

    #lsusb | grep -i huawei
    Bus 003 Device 002: ID 12d1:15bb Huawei Technologies Co., Ltd. ME936
    LTE/HSDPA+ 4G modem

    #lspci | grep -i huawei
    - nothing -

    #dmesg | grep -i huawei
    [ 0.869910] usbcore: registered new interface driver huawei_cdc_ncm
    [ 1.960760] usb 3-4: Product: HUAWEI Mobile Broadband Module
    [ 1.962533] usb 3-4: Manufacturer: Huawei Technologies Co., Ltd.

    #ifconfig -a
    lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
    inet 127.0.0.1 netmask 255.0.0.0
    inet6 ::1 prefixlen 128 scopeid 0x10<host>
    loop txqueuelen 1000 (Lokale Schleife)
    RX packets 2096 bytes 167808 (163.8 KiB)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 2096 bytes 167808 (163.8 KiB)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    sit0: flags=128<NOARP> mtu 1480
    sit txqueuelen 1000 (IPv6-nach-IPv4)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

    wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
    [... some info about my wifi ...]

    wwp0s20f0u4c2: flags=4098<BROADCAST,MULTICAST> mtu 1500
    ether 02:2c:80:13:92:63 txqueuelen 1000 (Ethernet)
    RX packets 0 bytes 0 (0.0 B)
    RX errors 0 dropped 0 overruns 0 frame 0
    TX packets 0 bytes 0 (0.0 B)
    TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


    ofono is set as a use flag

    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/
    my wifi and as far as I understand
    this should be working with a modem as well.

    net-dialup/ppp-2.4.9-r8 is installed. smstools are not. Would I need
    them for data transfer?

    I didn't find a guid at the gentoo wiki. Where could I find something?
    Am I missing something obvious?

    Thanks for the help.


    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.

    This FAQ[2] walks you through a manual configuration of a Huawei WWWAN to test the concept.

    You will need to know you SIM PIN if used and certainly your APN for your Cell Provider.

    That ww* interface is auto-created and can be used with different configuration/managnement tools[3].

    Good Luck!

    [1] https://wiki.gentoo.org/wiki/USB_mobile_broadband_modem

    [2] https://techship.com/faq/how-to-activate-the-data-connection-for-huawei-cellular-modules-over-the-usb-network-interface-in-linux/

    [3] https://unix.stackexchange.com/questions/159086/difference-between-ppp0-vs-wwan0



    Thanks for this.

    The wiki [1] showed I am missing
    <*> USB driver for GSM and CDMA modems

    So now there are /dev/ttyUSB0 to /dev/ttyUSB3

    Does this mean I don't need the mode_switching stuff, since the modem is already there?


    Yeah, I would say you don't need it. The gentoo guide was written with external USB plugin adapters in mind. These generally have an install image on them that loads first, thus the need to switch the mode.

    Also usb_modeswitch is in portage. This is not mentioned in the wiki.
    Might this part be outdated?

    Most likely, the guide is talking about 3G adapters and was last updated in 2019 :)


    /etc/wvdial.conf
    [Dialer Defaults]
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = Analog Modem
    ; Phone = <Target Phone Number>
    ISDN = 0
    ; Username = <Your Login Name>
    Init1 = ATZ
    ; Password = <Your Password>
    Modem = /dev/ttyUSB0
    Baud = 9600

    Does it matter it says "Analog Modem"?


    No, that tells wvdial to expect a standard AT device. Despite it being digital there is still a legacy device interface to setup the connection.

    Does using wvdial result in no need to use minicom like mentioned in [2]?


    Yes, like most things in classic UNIX/Linux there is more than one way to do something.

    wvdial will run a chat script and set up the modem, make the call, and then hand off. Minicom is a terminal emulator and you would be connecting directly to the device and issuing commands. If the the wvdial script failed, you run the commands in minicom
    to test, for example.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)