Re: Unexpected COPS format
> On 17 March 2017 at 19:56 Aleksander Morgadowrote: > > On Fri, Mar 17, 2017 at 6:40 PM, Dan Williams wrote: > > > I ended up with something like: > > > > void > > mm_3gpp_normalize_operator_id (gchar **id, > > MMModemCharset cur_charset) > > { > > g_assert (id); > > > > /* Some modems return the operator name as a hexadecimal string of the > > > > * bytes of the operator name as encoded by the current character set. > > */ > > > > if (*id && !mm_3gpp_parse_operator_id (id, NULL, NULL, NULL)) { > > *id = mm_charset_take_and_convert_to_utf8 (*id, cur_charset); > > if (!mm_3gpp_parse_operator_id (id, NULL, NULL, NULL)) > > g_clear_pointer (id, g_free); > > } > > } > > > > but didn't get as far as writing testcases for it in src/tests/test- > > modem-helpers.c. Testcases would be great, obviously. > > This would be very similar to mm_3gpp_normalize_operator_name() > already; maybe we could just have a single method for both? > Happy to submit the patch below. Unsure about a testcase - I'm cross-building for a different target and haven't looked at building native and running tests. If it helps, the modem is giving '+COPS: 0,2,"00320033003400310030",2' for '23410' > Colin, what's the AT+CSCS? return value that you're getting before any > of this happens? Are you getting it reported as UCS2? > The CSCS exchanges are: --> 'AT+CSCS=?' <-- '+CSCS: ("GSM","UCS2")' <-- 'OK' --> 'AT+CSCS="UCS2"' <-- 'OK' --> 'AT+CSCS?' <-- '+CSCS: "UCS2"' <-- 'OK' diff -Nur a/src/mm-broadband-modem.c b/src/mm-broadband-modem.c --- a/src/mm-broadband-modem.c 2017-03-20 06:36:45.210171801 + +++ b/src/mm-broadband-modem.c 2017-03-20 07:12:16.865399207 + @@ -3484,7 +3484,9 @@ error)) return NULL; -mm_dbg ("loaded Operator Code: %s", operator_code); +mm_3gpp_normalize_operator_string (_code, MM_BROADBAND_MODEM (self)->priv->modem_current_charset); +if (operator_code) +mm_dbg ("loaded Operator Code: %s", operator_code); return operator_code; } @@ -3525,7 +3527,7 @@ error)) return NULL; -mm_3gpp_normalize_operator_name (_name, MM_BROADBAND_MODEM (self)->priv->modem_current_charset); +mm_3gpp_normalize_operator_string (_name, MM_BROADBAND_MODEM (self)->priv->modem_current_charset); if (operator_name) mm_dbg ("loaded Operator Name: %s", operator_name); return operator_name; diff -Nur a/src/mm-modem-helpers.c b/src/mm-modem-helpers.c --- a/src/mm-modem-helpers.c2017-03-20 06:36:44.890171799 + +++ b/src/mm-modem-helpers.c2017-03-20 08:00:34.426196108 + @@ -2980,12 +2980,12 @@ /*/ void -mm_3gpp_normalize_operator_name (gchar **operator, - MMModemCharset cur_charset) +mm_3gpp_normalize_operator_string (gchar **operator_string, + MMModemCharset cur_charset) { -g_assert (operator); +g_assert (operator_string); -if (*operator == NULL) +if (*operator_string == NULL) return; /* Some modems (Option & HSO) return the operator name as a hexadecimal @@ -2994,19 +2994,19 @@ */ if (cur_charset == MM_MODEM_CHARSET_UCS2) { /* In this case we're already checking UTF-8 validity */ -*operator = mm_charset_take_and_convert_to_utf8 (*operator, MM_MODEM_CHARSET_UCS2); +*operator_string = mm_charset_take_and_convert_to_utf8 (*operator_string, MM_MODEM_CHARSET_UCS2); } /* Ensure the operator name is valid UTF-8 so that we can send it * through D-Bus and such. */ -else if (!g_utf8_validate (*operator, -1, NULL)) -g_clear_pointer (operator, g_free); +else if (!g_utf8_validate (*operator_string, -1, NULL)) +g_clear_pointer (operator_string, g_free); /* Some modems (Novatel LTE) return the operator name as "Unknown" when * it fails to obtain the operator name. Return NULL in such case. */ -if (*operator && g_ascii_strcasecmp (*operator, "unknown") == 0) -g_clear_pointer (operator, g_free); +if (*operator_string && g_ascii_strcasecmp (*operator_string, "unknown") == 0) +g_clear_pointer (operator_string, g_free); } /*/ diff -Nur a/src/mm-modem-helpers.h b/src/mm-modem-helpers.h --- a/src/mm-modem-helpers.h2017-03-20 06:36:44.890171799 + +++ b/src/mm-modem-helpers.h2017-03-20 08:01:06.514196263 + @@ -291,8 +291,8 @@ MMModemAccessTechnology mm_string_to_access_tech (const gchar *string); -void mm_3gpp_normalize_operator_name (gchar **operator, - MMModemCharset cur_charset); +void mm_3gpp_normalize_operator_string (gchar **operator_string, +
Re: AW: MC7455 not listed as usb device any more after reboot
On Mon, 2017-03-20 at 09:45 +, Thomas Lang wrote: > Hi Dan, > thanks for your comments. > I have included a trace of the working start and the reboot. I > noticed that in the reboot case the usb 3-1.3 device is not detected > anymore. The usb 3-1 is an ehci-pci. Would it help to reset the ehci- > pci? And if so how would I do this. If you rmmod anything related to ehci-hcd and then re-mode probe it and anything else you unloaded, does that make it show up? If so, that would indicate a bug in the ehci driver and/or your platform support. Dan > Thanks a lot for any coment, > Thomas > > Cold Start > PCEngines apu2 > coreboot build 20160311 > 4080 MB ECC DRAM > > SeaBIOS (version ?-20160311_005214-0c3a223c2ee6) > Found mainboard PC Engines PCEngines apu2 > multiboot: eax=0, ebx=0 > boot order: > 1: /pci@i0cf8/usb@10/usb-*@1 > 2: /pci@i0cf8/usb@10/usb-*@2 > 3: /pci@i0cf8/usb@10/usb-*@3 > 4: /pci@i0cf8/usb@10/usb-*@4 > 5: /pci@i0cf8/*@14,7 > 6: /pci@i0cf8/*@11/drive@0/disk@0 > 7: /pci@i0cf8/*@11/drive@1/disk@0 > 8: /rom@genroms/pxe.rom > 9: pxen0 > 10: scon1 > 11: > Found 23 PCI devices (max PCI bus is 04) > Copying SMBIOS entry point from 0xdffb7000 to 0x000f3110 > Copying ACPI RSDP from 0xdffb8000 to 0x000f30e0 > Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2f30 > Copying PIR from 0xdffdd000 to 0x000f2f00 > Using pmtimer, ioport 0x818 > Scan for VGA option rom > Running option rom at c000:0003 > > Google, Inc. > Serial Graphics Adapter 08/22/15 > SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (wiv@coreboot > -Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015 > Term: 80x24 > IO4 0 > Turning on vga text mode console > SeaBIOS (version ?-20160311_005214-0c3a223c2ee6) > XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 > byte contexts > XHCIextcap 0x1 @ feb22500 > XHCIprotocol USB 3.00, 2 ports (offset 1), def 0 > XHCIprotocol USB 2.00, 2 ports (offset 3), def 10 > XHCIextcap 0xa @ feb22540 > Found 2 serial ports > ATA controller 1 at 4010/4020/0 (irq 0 dev 88) > EHCI init on dev 00:13.0 (regs=0xfeb25420) > ATA controller 2 at 4018/4024/0 (irq 0 dev 88) > Searching bootorder for: /pci@i0cf8/*@14,7 > Searching bootorder for: /rom@img/memtest > Searching bootorder for: /rom@img/setup > ata0-0: KINGSTON SMS200S3120G ATA-8 Hard-Disk (111 GiBytes) > Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0 > XHCI no devices found > Initialized USB HUB (0 ports used) > All threads complete. > Scan for option roms > Running option rom at c100:0003 > > > iPXE (http://ipxe.org) 00:00.0 C100 PCI2.10 PnP PMMpmm call arg1=1 > pmm call arg1=0 > +DFF49730pmm call arg1=1 > pmm call arg1=0 > +DFE89730 C100 > > > > Searching bootorder for: /rom@genroms/pxe.rom > PCengines Press F10 key now for boot menu: > Searching bootorder for: HALT > drive 0x000f2e90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 > s=234441648 > Space available for UMB: c2000-ef000, f-f2e90 > Returned 262144 bytes of ZoneHigh > e820 map has 7 items: > 0: - 0009f800 = 1 RAM > 1: 0009f800 - 000a = 2 RESERVED > 2: 000f - 0010 = 2 RESERVED > 3: 0010 - dffae000 = 1 RAM > 4: dffae000 - e000 = 2 RESERVED > 5: f800 - fc00 = 2 RESERVED > 6: 0001 - 00011f00 = 1 RAM > enter handle_19: > NULL > Booting from Hard Disk... > Booting from :7c00 > [0.00] Linux version 4.6.2-040602-generic (kernel@gloin) (gcc > version 5.3.1 20160528 (Ubuntu 5.3.1-21ubuntu11) ) #201606100516 SMP > Fri Jun 10 09:18:34 UTC 2016 > [0.00] Command line: BOOT_IMAGE=/boot/vmlinuz-4.6.2-040602- > generic root= UUID=474ac08c-0d55-4ac0-ad7e-b922152698e5 ro > console=tty0 console=ttyS0,115200n8 > [0.00] KERNEL supported cpus: > [0.00] Intel GenuineIntel > [0.00] AMD AuthenticAMD > [0.00] Centaur CentaurHauls > [0.00] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 > [0.00] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating > point registers' > [0.00] x86/fpu: Supporting XSAVE feature 0x002: 'SSE > registers' > [0.00] x86/fpu: Supporting XSAVE feature 0x004: 'AVX > registers' > [0.00] x86/fpu: Enabled xstate features 0x7, context size is > 832 bytes, using 'standard' format. > [0.00] x86/fpu: Using 'eager' FPU context switches. > [0.00] e820: BIOS-provided physical RAM map: > [0.00] BIOS-e820: [mem 0x-0x0009f7ff] > usable > [0.00] BIOS-e820: [mem 0x0009f800-0x0009] > reserved > [0.00] BIOS-e820: [mem 0x000f-0x000f] > reserved > [0.00] BIOS-e820: [mem 0x0010-0xdffadfff] > usable > [0.00] BIOS-e820: [mem 0xdffae000-0xdfff] > reserved > [0.00] BIOS-e820: [mem
AW: MC7455 not listed as usb device any more after reboot
Hi Dan, thanks for your comments. I have included a trace of the working start and the reboot. I noticed that in the reboot case the usb 3-1.3 device is not detected anymore. The usb 3-1 is an ehci-pci. Would it help to reset the ehci-pci? And if so how would I do this. Thanks a lot for any coment, Thomas Cold Start PCEngines apu2 coreboot build 20160311 4080 MB ECC DRAM SeaBIOS (version ?-20160311_005214-0c3a223c2ee6) Found mainboard PC Engines PCEngines apu2 multiboot: eax=0, ebx=0 boot order: 1: /pci@i0cf8/usb@10/usb-*@1 2: /pci@i0cf8/usb@10/usb-*@2 3: /pci@i0cf8/usb@10/usb-*@3 4: /pci@i0cf8/usb@10/usb-*@4 5: /pci@i0cf8/*@14,7 6: /pci@i0cf8/*@11/drive@0/disk@0 7: /pci@i0cf8/*@11/drive@1/disk@0 8: /rom@genroms/pxe.rom 9: pxen0 10: scon1 11: Found 23 PCI devices (max PCI bus is 04) Copying SMBIOS entry point from 0xdffb7000 to 0x000f3110 Copying ACPI RSDP from 0xdffb8000 to 0x000f30e0 Copying MPTABLE from 0xdffdc000/dffdc010 to 0x000f2f30 Copying PIR from 0xdffdd000 to 0x000f2f00 Using pmtimer, ioport 0x818 Scan for VGA option rom Running option rom at c000:0003 Google, Inc. Serial Graphics Adapter 08/22/15 SGABIOS $Id: sgabios.S 8 2010-04-22 00:03:40Z nlaredo $ (wiv@coreboot-Virtual-Machine) Sat Aug 22 09:25:30 UTC 2015 Term: 80x24 IO4 0 Turning on vga text mode console SeaBIOS (version ?-20160311_005214-0c3a223c2ee6) XHCI init on dev 00:10.0: regs @ 0xfeb22000, 4 ports, 32 slots, 32 byte contexts XHCIextcap 0x1 @ feb22500 XHCIprotocol USB 3.00, 2 ports (offset 1), def 0 XHCIprotocol USB 2.00, 2 ports (offset 3), def 10 XHCIextcap 0xa @ feb22540 Found 2 serial ports ATA controller 1 at 4010/4020/0 (irq 0 dev 88) EHCI init on dev 00:13.0 (regs=0xfeb25420) ATA controller 2 at 4018/4024/0 (irq 0 dev 88) Searching bootorder for: /pci@i0cf8/*@14,7 Searching bootorder for: /rom@img/memtest Searching bootorder for: /rom@img/setup ata0-0: KINGSTON SMS200S3120G ATA-8 Hard-Disk (111 GiBytes) Searching bootorder for: /pci@i0cf8/*@11/drive@0/disk@0 XHCI no devices found Initialized USB HUB (0 ports used) All threads complete. Scan for option roms Running option rom at c100:0003 iPXE (http://ipxe.org) 00:00.0 C100 PCI2.10 PnP PMMpmm call arg1=1 pmm call arg1=0 +DFF49730pmm call arg1=1 pmm call arg1=0 +DFE89730 C100 Searching bootorder for: /rom@genroms/pxe.rom PCengines Press F10 key now for boot menu: Searching bootorder for: HALT drive 0x000f2e90: PCHS=16383/16/63 translation=lba LCHS=1024/255/63 s=234441648 Space available for UMB: c2000-ef000, f-f2e90 Returned 262144 bytes of ZoneHigh e820 map has 7 items: 0: - 0009f800 = 1 RAM 1: 0009f800 - 000a = 2 RESERVED 2: 000f - 0010 = 2 RESERVED 3: 0010 - dffae000 = 1 RAM 4: dffae000 - e000 = 2 RESERVED 5: f800 - fc00 = 2 RESERVED 6: 0001 - 00011f00 = 1 RAM enter handle_19: NULL Booting from Hard Disk... Booting from :7c00 [0.00] Linux version 4.6.2-040602-generic (kernel@gloin) (gcc version 5.3.1 20160528 (Ubuntu 5.3.1-21ubuntu11) ) #201606100516 SMP Fri Jun 10 09:18:34 UTC 2016 [0.00] Command line: BOOT_IMAGE=/boot/vmlinuz-4.6.2-040602-generic root= UUID=474ac08c-0d55-4ac0-ad7e-b922152698e5 ro console=tty0 console=ttyS0,115200n8 [0.00] KERNEL supported cpus: [0.00] Intel GenuineIntel [0.00] AMD AuthenticAMD [0.00] Centaur CentaurHauls [0.00] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256 [0.00] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers' [0.00] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers' [0.00] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers' [0.00] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format. [0.00] x86/fpu: Using 'eager' FPU context switches. [0.00] e820: BIOS-provided physical RAM map: [0.00] BIOS-e820: [mem 0x-0x0009f7ff] usable [0.00] BIOS-e820: [mem 0x0009f800-0x0009] reserved [0.00] BIOS-e820: [mem 0x000f-0x000f] reserved [0.00] BIOS-e820: [mem 0x0010-0xdffadfff] usable [0.00] BIOS-e820: [mem 0xdffae000-0xdfff] reserved [0.00] BIOS-e820: [mem 0xf800-0xfbff] reserved [0.00] BIOS-e820: [mem 0x0001-0x00011eff] usable [0.00] NX (Execute Disable) protection: active [0.00] SMBIOS 2.7 present. [0.00] e820: last_pfn = 0x11f000 max_arch_pfn = 0x4 [0.00] x86/PAT: Configuration [0-7]: WB WC UC- UC WB WC UC- WT [0.00] e820: last_pfn = 0xdffae max_arch_pfn = 0x4 [0.00] found SMP MP-table at [mem 0x000f2f30-0x000f2f3f] mapped at [880f2f30] [0.00] Scanning 1 areas for low
RE: [Ublox]: UBlox L-210 will not work using ACM interface
Hi Aleksander, I have used the MM 1.7.0 that includes the UBlox plugin and the error that I saw with the previous version persist. It seems that the SIM is not detected. When I change the USB profile from (3 ("NETWORK, 1 CDC-ACM"),("RNDIS"),()) default. When I change that to (2 ("NETWORK, 3 CDC-ACM"),("ECM"),()) with the command At+uusbconf=2 The modem will be detected as ETHX and I can use it correctly using the same SIM card. Could it be that the profile 3 only has one AT port ttyACM0 and the ModemManager might require more than one serial port? ModemManager[832]: [1490023896.705295] [../../git/src/mm-port-serial.c:1349] _close_internal(): (ttyACM0) device open count is 2 (close) ModemManager[832]: [1490023896.705621] [../../git/src/mm-port-serial-at.c:459] debug_log(): (ttyACM0): --> 'AT+CP IN?' ModemManager[832]: [1490023896.726605] [../../git/src/mm-port-serial-at.c:459] debug_log(): (ttyACM0): <-- '< LF>+CME ERROR: 10' ModemManager[832]: [1490023896.727072] [../../git/src/mm-serial-parsers.c:364] mm_serial_parser_v1_parse(): Got f ailure code 10: SIM not inserted ModemManager[832]: [1490023896.727359] [../../git/src/mm-iface-modem.c:268] load_unlock_required_ready(): Couldn' t check if unlock required: 'SIM not inserted' ModemManager[832]: [1490023896.727701] [../../git/src/mm-port-serial.c:1349] _close_internal(): (ttyACM0) device open count is 1 (close) ModemManager[832]: [1490023896.728648] [../../git/src/mm-broadband-modem.c:9834] iface_modem_initialize_ready(): Modem couldn't be initialized: Couldn't check unlock status: SIM not inserted ModemManager[832]: [1490023896.728974] [../../git/src/mm-iface-modem.c:1433] __iface_modem_update_state_internal( ): Modem: state changed (unknown -> failed) ModemManager[832]: [1490023896.730496] [../../git/src/mm-broadband-modem.c:9928] iface_modem_firmware_initialize_ ready(): Couldn't initialize interface: 'Firmware interface not available' ModemManager[832]: [1490023896.730968] [../../git/src/mm-broadband-modem.c:10142] initialize_step(): SIM is missi ng and Modem does not support SIM Hot Swap ModemManager[832]: [1490023896.731942] [../../git/src/mm-port-serial.c:1349] _close_internal(): (ttyACM0) device open count is 0 (close) ModemManager[832]: [1490023896.732190] [../../git/src/mm-port-serial.c:1365] _close_internal(): (ttyACM0) closing serial port... ModemManager[832]: [1490023896.735805] [../../git/src/mm-port-serial.c:1413] _close_internal(): (ttyACM0) serial port closed ModemManager[832]: [1490023896.736119] [../../git/src/mm-base-modem.c:867] initialize_ready(): Couldn't finish in itialization in the current state: 'Modem is unusable, cannot fully initialize' ModemManager[832]: [1490023896.740291] [../../git/src/mm-device.c:283] export_modem(): [device /sys/devices/soc0/ soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3] exported modem at path '/org/freedesktop/ModemManager1/Modem /0' ModemManager[832]: [1490023896.740630] [../../git/src/mm-device.c:284] export_modem(): [device /sys/devices/soc0/ soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3]plugin: u-blox ModemManager[832]: [1490023896.740895] [../../git/src/mm-device.c:288] export_modem(): [device /sys/devices/soc0/ soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3]vid:pid: 0x1546:0x1146 root@ccimx6sbc:~# mmcli -L Found 1 modems: /org/freedesktop/ModemManager1/Modem/0 [u-blox] TOBY-L210 root@ccimx6sbc:~# mmcli -i 0 error: couldn't find sim at '/org/freedesktop/ModemManager1/SIM/0' root@ccimx6sbc:~# mmcli -m 0 /org/freedesktop/ModemManager1/Modem/0 (device id '64dfa1879a3eb95b67a016cf01db3b029e708356') - Hardware | manufacturer: 'u-blox' | model: 'TOBY-L210' | revision: '09.71' | supported: 'gsm-umts, lte' |current: 'gsm-umts, lte' | equipment id: '352255060049271' - System | device: '/sys/devices/soc0/soc.0/210.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.3' |drivers: 'cdc_acm' | plugin: 'u-blox' | primary port: 'ttyACM0' | ports: 'ttyACM0 (at)' - Numbers | own : 'unknown' - Status | lock: 'unknown' | unlock retries: 'unknown' | state: 'failed' | failed reason: 'sim-missing' |power state: 'on' |access tech: 'unknown' | signal quality: '0' (cached) - Modes| supported: 'allowed: 2g; preferred: none | allowed: 2g, 3g; preferred: none | allowed: 2g, 3g; preferred: 2g | allowed: 2g, 3g; preferred: 3g | allowed: 3g; preferred: none |
Integration into NetworkManager
So I've got a [reasonably?] sorted MM setup now - a mux driver providing two virtual ports: ttyMux0 (PPP) and ttyMux1 (Primary). I'm now wanting to hook the former into NetworkManager. >From a fresh rootfs/boot-up, 'nmcli dev status' lists DEVICE TYPE STATE CONNECTION eth0 ethernet connected Wired connection 1 ttyMux1 gsm disconnected -- lo loopback unmanaged -- I'm not sure why/where it's picking up ttyMux1, and in any case I need it to be using ttyMux0 instead. Where's this hooking in from? (Also struggling to create an NM connection - via nmcli - that it'll want to play with on that device... tips gratefully received..!) ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel
Re: Integration into NetworkManager
On Mon, 2017-03-20 at 16:48 +, colin.helliw...@ln-systems.com wrote: > So I've got a [reasonably?] sorted MM setup now - a mux driver > providing two > virtual ports: ttyMux0 (PPP) and ttyMux1 (Primary). I'm now wanting > to hook > the former into NetworkManager. > > From a fresh rootfs/boot-up, 'nmcli dev status' lists > > DEVICE TYPE STATE CONNECTION > > eth0 ethernet connected Wired connection 1 > > ttyMux1 gsm disconnected -- > > lo loopback unmanaged -- > > > > I'm not sure why/where it's picking up ttyMux1, and in any case I > need it to > be using ttyMux0 instead. Where's this hooking in from? From ModemManager. NM reads the "control" port from ModemManager's dbus interface, so it should be the same thing you see with 'mmcli -m X'. But in the end it's just a name that NM chooses and NM doesn't do anything interesting with it other than logging. Internally NM uses the ModemManager D-Bus object path to refer to the modem. > (Also struggling to create an NM connection - via nmcli - that it'll > want to > play with on that device... tips gratefully received..!) [connection] id=T-Mobile Internet uuid=0083942e-b260-4b73-a1fd-860f3e6ca2c2 type=gsm [gsm] apn=epc.tmobile.com [ipv4] method=auto [ipv6] method=auto is the file that would go into /etc/NetworkManager/system-connections. Then 'nmcli con reload' and it should show up in NM and you can 'nmcli con up "T-Mobile Internet"' and it'll use the first available WWAN device to do that. But with nmcli there are a couple ways. You can do it all from one command-line if you want, though I just tried and it seems things aren't quite working on NM 1.6.x as well as we'd like (filed https://bu gzilla.gnome.org/show_bug.cgi?id=780323 for those). Dan ___ ModemManager-devel mailing list ModemManager-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel