Received: from gw1-wb.hafenthal.de (gw1-wb.hafenthal.de [212.185.86.82]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 65D522235CA for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 09:54:08 +0000 (UTC) Received: from MAILRELAY-RZ.hafenthal.de (localhost.localdomain [127.0.0.1]) by MAILRELAY-RZ.hafenthal.de (Postfix) with ESMTPS id 4CAA8A8023D for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 09:54:07 +0000 (UTC) Received: from GROUPWARE-S18.hafenthal.de (GROUPWARE-S18.hafenthal.de [10.18.8.20]) by gw1-wb.hafenthal.de (Postfix) with ESMTPS id 23D78A800CF for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 09:54:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by GROUPWARE-S18.hafenthal.de (Postfix) with ESMTP id A46862017E for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 10:54:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hafenthal.de; h= content-transfer-encoding:in-reply-to:from:references:to:subject :mime-version:date:message-id; s=dkim1; t=1767174845; x= 1768989246; bh=W2k/PTeY7yckSxmnsqcntKFfbUPUSC/EcygiZV4ds98=; b=r HL5SbbbBywG2aPZYwZ5pxkCKjhaqYbN8UekJkU4p0AB/3kt49BbRdsW1QYd9Q9Op JH1hDxiV5KTJZDfoDhptnFNjVJYQRQKabfw1Drvwl0jfvnsDOoHftFCNg+auZ8s4 2F3VLzyoFsjtcMcn8aFYFY4dLbQGvavIGJi51u73aI= Received: from GROUPWARE-S18.hafenthal.de ([127.0.0.1]) by localhost (groupware-s18.hafenthal.de [127.0.0.1]) (amavisd-new, port 10041) with ESMTP id lNsHysa2aejM for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 10:54:05 +0100 (CET) Received: from [10.18.16.35] (DTR15.hafenthal.de [10.18.16.35]) by GROUPWARE-S18.hafenthal.de (Postfix) with ESMTPSA id 2FDE320ADB for <~alpine/users@lists.alpinelinux.org>; Wed, 31 Dec 2025 10:54:05 +0100 (CET) Message-ID: <00da0379-4841-4ea3-9ea1-ce6b8a9f1a40@hafenthal.de> Date: Wed, 31 Dec 2025 09:54:04 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Setting up D Link DWM-156 on Alpine for Data To: ~alpine/users@lists.alpinelinux.org References: <1bafd974-eeea-48cf-8291-8a131de6fbde@riseup.net> <2b4b528f-8ea9-4263-ae4e-3b45e35e8ee9@riseup.net> Content-Language: en-US, de-DE From: Stefan Hartmann SH Organization: =?UTF-8?Q?Ingenieurb=C3=BCro_Hartmann_-_ib=2Ehafenthal=2Ede?= In-Reply-To: <2b4b528f-8ea9-4263-ae4e-3b45e35e8ee9@riseup.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I run an old DMM-222 connected via USB, on an Alpine RPI, diskless setup, headless, via qmi. Perhaps this ca be helpfull for you. Nb: sorry for formatting # cat /etc/network/interfaces #auto wwan0 # delay start with /etc/local.d/50-ifup-wwan0.start iface wwan0 use dhcp udhcpc_opts -S pre-up usb_modeswitch -v 0x2001 -p 0xab00 -K || echo "$$: pre-up ERROR: usb_modeswitch" pre-up i=0; until test -c /dev/cdc-wdm0; do sleep 1; i=$(( i + 1 )); if test $i -ge 16; then echo "$$: pre-up ERROR: timeout /dev/cdc-wdm0 not existent"; exit 1; fi; done pre-up j=0; until qmicli -d /dev/cdc-wdm0 --dms-get-operating-mode | grep -Eq "^\s+Mode: 'online'$"; do sleep 4; j=$(( j + 1 )); if test $j -ge 16; then echo "$$: pre-up ERROR: timeout qmicli dms-get-operating-mode not online"; exit 1; fi; done pre-up k=0; until qmicli -d /dev/cdc-wdm0 --nas-get-home-network >/dev/null 2>&1; do sleep 4; k=$(( k + 1 )); if test $k -ge 16; then echo "$$: pre-up ERROR: timeout qmicli nas-get-home-network not success"; exit 1; fi; done; sleep 10 pre-up qmi-network /dev/cdc-wdm0 start up ip link set dev $IFACE up post-up sysctl net.ipv6.conf.$IFACE.disable_ipv6=1 #post-up if qmicli -d /dev/cdc-wdm0 --wds-get-autoconnect-settings | grep -Eq "^\s+Status: 'disabled'$"; then qmicli -d /dev/cdc-wdm0 --wds-set-autoconnect-settings=enabled,home-only || echo "post-up WARN: wds-set-autoconnect-settings"; fi post-down qmi-network /dev/cdc-wdm0 stop -- Stefan Hartmann - ib.hafenthal.de On 12/31/25 07:40, Farooq Karimi Zadeh wrote: > On 12/22/25 19:52, Farooq Karimi Zadeh wrote: > >> Hello. >> >> I've bought an old D Link DWM-156 3G(or 3.75G?) USB modem for me PC. >> And I need some hints on setting it >> >> up for using it for Internet. >> >> >> The modem is found by ModemManager and `mmcli -m 1` reports: >> >> >> ``` >> >>   -------------------------------- >>   General  |                 path: /org/freedesktop/ModemManager1/Modem/1 >>            |            device id: >> 7423702de5132c5d2b887b2b5038bcd793c239a6 >>   -------------------------------- >>   Hardware |         manufacturer: MTK1 >>            |                model: MTK2 >>            |    firmware revision: 2.0.8 >>            |            supported: gsm-umts >>            |              current: gsm-umts >>            |         equipment id: 355619054965791 >>   -------------------------------- >>   System   |               device: /sys/devices/ >> pci0000:00/0000:00:08.1/0000:0c:00.3/usb3/3-1 >>            |              physdev: /sys/devices/ >> pci0000:00/0000:00:08.1/0000:0c:00.3/usb3/3-1 >>            |              drivers: cdc_mbim, option >>            |               plugin: generic >>            |         primary port: ttyUSB0 >>            |                ports: ttyUSB0 (at), ttyUSB1 (at), wwan0 >> (ignored) >>   -------------------------------- >>   Status   |                state: registered >>            |          power state: on >>            |          access tech: hspa >>            |       signal quality: 100% (recent) >>   -------------------------------- >>   Modes    |            supported: allowed: 2g, 3g; preferred: none >>            |              current: allowed: 2g, 3g; preferred: none >>   -------------------------------- >>   IP       |            supported: ipv4, ipv6, ipv4v6 >>   -------------------------------- >>   3GPP     |                 imei: .......... >>            |          operator id: 43235 >>            |        operator name: 43235 >>            |         registration: home >>            | packet service state: attached >>   -------------------------------- >>   SIM      |     primary sim path: /org/freedesktop/ModemManager1/SIM/1 >> ``` >> Also `mmcli -m 1 --simple-connect='apn=...'` gives this: >> >> >> ``` >> >> error: couldn't connect the modem: >> 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.NotFound: Not >> found: Couldn't validate update of profile '1': Profile '1' not found' >> >> ``` >> >> >> I wonder where am I wrong. >> >> >> Thanks in advance, >> >> Farooq. > > > Something which I've noticed comparing to Mint(in which the modem is > working) is that it has an extra port and wwan is no ignored: > >   -------------------------------- >   General  |                 path: /org/freedesktop/ModemManager1/Modem/0 >            |            device id: > d435bc4d0debc341fe543dad3dda8f00d4ef7364 >   -------------------------------- >   Hardware |         manufacturer: D-Link,Inc >            |                model: D-Link DWM-156 >            |    firmware revision: MOLY.WR8.W1231.DC.WG.MP.V3.P2 >            |         h/w revision: MTK2 >            |            supported: gsm-umts >            |              current: gsm-umts >            |         equipment id: ... >   -------------------------------- >   System   |               device: /sys/devices/ > pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-7 >            |              physdev: /sys/devices/ > pci0000:00/0000:00:01.3/0000:02:00.0/usb1/1-7 >            |              drivers: option, cdc_mbim >            |               plugin: generic >            |         primary port: cdc-wdm2 >            |                ports: cdc-wdm2 (mbim), ttyUSB0 (at), > ttyUSB1 (at), wwan0 (net) >   -------------------------------- >   Status   |       unlock retries: unknown (0) >            |                state: connected >            |          power state: on >            |          access tech: hsdpa, hsupa >            |       signal quality: 0% (cached) >   -------------------------------- >   Modes    |            supported: allowed: 2g, 3g; preferred: none >            |              current: allowed: 2g, 3g; preferred: none >   -------------------------------- >   IP       |            supported: ipv4, ipv6, ipv4v6 >   -------------------------------- >   3GPP     |                 imei: ... >            |        enabled locks: net-pers, net-sub-pers, provider- > pers, corp-pers >            |          operator id: 43220 >            |        operator name: 43220 >            |         registration: home >            | packet service state: attached >   -------------------------------- >   SIM      |     primary sim path: /org/freedesktop/ModemManager1/SIM/0 >   -------------------------------- >   Bearer   |                paths: /org/freedesktop/ModemManager1/Bearer/0 > > Also a firmware is loaded into the device it seems. Am I correct > assuming that the right firmware is not loaded onto the device on Alpine?