all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* internal 3g modem
@ 2019-09-27 10:35 Divan Santana
  2019-09-27 17:15 ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 4+ messages in thread
From: Divan Santana @ 2019-09-27 10:35 UTC (permalink / raw)
  To: Help guix

Hi Guix,

Hopefully someone knowledgeable with these things here can help out. :)

I'm trying to get the internal 3g modem to work in my Dell laptop
running guix.

Ideally with networkmanager/modemmanager would be great.

Using nm-connection-editor and selecting mobile broadband, it says
can't find any device.

Creating the connection manually and running it says:

ds@swift ~ $ sudo nmcli con up modem-internal
Error: Connection activation failed: No suitable device found for this connection.

Creating this file and trying to start the connecting with mbim-network results in this:

ds@swift ~ $ cat /etc/mbim-network.conf
APN=internet

ds@swift ~ $ ll /dev/cdc-wdm1
crw------- 1 root root 180, 1 2019-09-27 12:09:35 /dev/cdc-wdm1

ds@swift ~ $ sudo mbim-network /dev/cdc-wdm1 start
Loading profile at /etc/mbim-network.conf...
    APN: internet
    APN auth protocol: unset
    APN user: unset
    APN password: unset
    mbim-proxy: no
Querying subscriber ready status 'mbimcli -d /dev/cdc-wdm1 --query-subscriber-ready-status --no-close '...
[/dev/cdc-wdm1] Subscriber ready status retrieved: Ready state: 'initialized' Subscriber ID: '655071911202447' SIM ICCID: '89270761914025156856' Ready info: 'none' Telephone numbers: (0) 'unknown' [/dev/cdc-wdm1] Session not closed: TRID: '3'
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 3)
Querying registration state 'mbimcli -d /dev/cdc-wdm1 --query-registration-state --no-open=3 --no-close '...
[/dev/cdc-wdm1] Registration status: Network error: 'unknown' Register state: 'home' Register mode: 'automatic' Available data classes: 'umts, hsdpa, hsupa' Current cellular class: 'gsm' Provider ID: '65507' Provider name: 'FNB' Roaming text: 'unknown' Registration flags: 'packet-service-automatic-attach' [/dev/cdc-wdm1] Session not closed: TRID: '4'
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 4)
Attaching to packet service with 'mbimcli -d /dev/cdc-wdm1 --attach-packet-service --no-open=4 --no-close '...
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 5)
Starting network with 'mbimcli -d /dev/cdc-wdm1 --connect=apn='internet' --no-open=5 --no-close '...
Network started successfully
Saving state at /tmp/mbim-network-state-cdc-wdm1... (TRID: 7)

ds@swift ~ $ sudo mbimcli -d /dev/cdc-wdm1 --query-ip-configuration --no-open=11 --no-close

[/dev/cdc-wdm1] IPv4 configuration available: 'address, gateway, dns, mtu'
     IP [0]: '10.122.106.8/28'
    Gateway: '10.122.106.9'
    DNS [0]: '41.50.20.29'
    DNS [1]: '41.50.20.61'
        MTU: '1500'

[/dev/cdc-wdm1] IPv6 configuration available: 'none'
[/dev/cdc-wdm1] Session not closed:
            TRID: '12'

ds@swift ~ $ sudo ip link set wwan0 up
ds@swift ~ $ sudo dhclient -v wwan0
Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wwan0/52:da:30:0c:9c:de
Sending on   LPF/wwan0/52:da:30:0c:9c:de
Sending on   Socket/fallback
DHCPDISCOVER on wwan0 to 255.255.255.255 port 67 interval 6
times out.

I think this is the internal modem device:

Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragonâ„¢ X7 LTE
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               3.00
  bDeviceClass            0
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0         9
  idVendor           0x413c Dell Computer Corp.
  idProduct          0x81b6
  bcdDevice            0.06
  iManufacturer           1 Sierra Wireless, Incorporated
  iProduct                2 DW5811e Snapdragonâ„¢ X7 LTE
  iSerial                 3 LF81212090021022
  bNumConfigurations      1

It seems from the above it's /almost/ working using mbimcli.

I'm not sure why MM doesn't detect it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: internal 3g modem
  2019-09-27 10:35 internal 3g modem Divan Santana
@ 2019-09-27 17:15 ` pelzflorian (Florian Pelz)
  2019-09-28 13:59   ` Divan Santana
  0 siblings, 1 reply; 4+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-09-27 17:15 UTC (permalink / raw)
  To: Divan Santana; +Cc: Help guix

On Fri, Sep 27, 2019 at 12:35:38PM +0200, Divan Santana wrote:
> Hi Guix,
> 
> Hopefully someone knowledgeable with these things here can help out. :)
> 
> I'm trying to get the internal 3g modem to work in my Dell laptop
> running guix.
> […]
> I think this is the internal modem device:
> 
> Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragonâ„¢ X7 LTE

ModemManager has a list of supported devices.  Your modem is not
listed there, but older similar modems “Should work”, it says.  Did it
work on another distro before?

I have no experience with dial-up modems, but apparently ppp can be
used somehow to connect with those.  Network-manager can be made to
use ppp, but I do not know if that works in Guix right now.

Regards,
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: internal 3g modem
  2019-09-27 17:15 ` pelzflorian (Florian Pelz)
@ 2019-09-28 13:59   ` Divan Santana
  2019-09-28 14:38     ` pelzflorian (Florian Pelz)
  0 siblings, 1 reply; 4+ messages in thread
From: Divan Santana @ 2019-09-28 13:59 UTC (permalink / raw)
  To: pelzflorian (Florian Pelz); +Cc: Help guix

pelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de> writes:

> On Fri, Sep 27, 2019 at 12:35:38PM +0200, Divan Santana wrote:
>> Hi Guix,
>>
>> Hopefully someone knowledgeable with these things here can help out. :)
>>
>> I'm trying to get the internal 3g modem to work in my Dell laptop
>> running guix.
>> […]
>> I think this is the internal modem device:
>>
>> Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragonâ„¢ X7 LTE
>
> ModemManager has a list of supported devices.  Your modem is not
> listed there, but older similar modems “Should work”, it says.  Did it
> work on another distro before?
>
> I have no experience with dial-up modems, but apparently ppp can be
> used somehow to connect with those.  Network-manager can be made to
> use ppp, but I do not know if that works in Guix right now.

Good point. I booted up a live ubuntu 18.08.3 disk and it detected the
modem and just worked.

I'm not quite sure how to troubleshoot this further. I'll have a think
about it.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: internal 3g modem
  2019-09-28 13:59   ` Divan Santana
@ 2019-09-28 14:38     ` pelzflorian (Florian Pelz)
  0 siblings, 0 replies; 4+ messages in thread
From: pelzflorian (Florian Pelz) @ 2019-09-28 14:38 UTC (permalink / raw)
  To: Divan Santana; +Cc: Help guix

On Sat, Sep 28, 2019 at 03:59:41PM +0200, Divan Santana wrote:
> pelzflorian (Florian Pelz) <pelzflorian@pelzflorian.de> writes:
> 
> > On Fri, Sep 27, 2019 at 12:35:38PM +0200, Divan Santana wrote:
> >> Hi Guix,
> >>
> >> Hopefully someone knowledgeable with these things here can help out. :)
> >>
> >> I'm trying to get the internal 3g modem to work in my Dell laptop
> >> running guix.
> >> […]
> >> I think this is the internal modem device:
> >>
> >> Bus 002 Device 003: ID 413c:81b6 Dell Computer Corp. DW5811e Snapdragonâ„¢ X7 LTE
> >
> > ModemManager has a list of supported devices.  Your modem is not
> > listed there, but older similar modems “Should work”, it says.  Did it
> > work on another distro before?
> >
> > I have no experience with dial-up modems, but apparently ppp can be
> > used somehow to connect with those.  Network-manager can be made to
> > use ppp, but I do not know if that works in Guix right now.
> 
> Good point. I booted up a live ubuntu 18.08.3 disk and it detected the
> modem and just worked.
> 
> I'm not quite sure how to troubleshoot this further. I'll have a think
> about it.

That it works on Ubuntu is interesting.  Doing a websearch for
413c:81b6 yields
<http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=16638>.
This leads to <https://bugzilla.kernel.org/show_bug.cgi?id=92101>.
Maybe Ubuntu does runs similar commands automatically?

Regards,
Florian

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-09-28 14:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-27 10:35 internal 3g modem Divan Santana
2019-09-27 17:15 ` pelzflorian (Florian Pelz)
2019-09-28 13:59   ` Divan Santana
2019-09-28 14:38     ` pelzflorian (Florian Pelz)

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.