Changes

Jump to: navigation, search
/* Usage example */
</pre>
== Usage example Detailed modem information ==* Verify wireless module was detected successfully and information about the device appears in dmesg and lsusb output
<pre>
$ dmesg | grep mmcli -i modemm 0[ 9/org/freedesktop/ModemManager1/Modem/0 (device id '58d13e091173f65e74b1b6ad29a0dd14f3e118a3') ------------------------- Hardware | manufacturer: 'QUALCOMM INCORPORATED' | model: 'SIMCOM_SIM7100E' | revision: 'M9615A-CETWTBZM-6.9492090.15255 1 [May 13 2016 01:00:00] usbserial' | supported: USB Serial support registered for GSM modem (1'gsm-port)umts[ 9 | lte | gsm-umts, lte' | current: 'gsm-umts, lte' | equipment id: '866802020708816' ------------------------- System | device: '/sys/devices/pci0000:00/0000:00:15.949373] option 0/usb1/1-8/1-8.2' | drivers:1.0'option1, qmi_wwan' | plugin: GSM modem 'SimTech' | primary port: 'cdc-wdm0' | ports: 'ttyUSB0 (1qcdm), ttyUSB2 (at), cdc-portwdm0 (qmi) converter detected, wwp0s21f0u8u2i5 (net), ttyUSB3 (at)'[ 9.951897] usb 1 -8.2------------------------ Numbers | own : GSM modem 'unknown' ------------------------- Status | lock: 'sim-pin2' | unlock retries: 'sim-pin (15), sim-portpin2 (5) converter now attached to ttyUSB0, sim-puk (5), sim-puk2 (5)'[ | state: 'registered' | 9power state: 'on' | access tech: 'umts' | signal quality: '41' (recent) ------------------------- Modes | supported: 'allowed: 2g, 3g, 4g; preferred: none' | current: 'allowed: 2g, 3g, 4g; preferred: none' ------------------------- Bands | supported: 'dcs, egsm, u2100, u1800, u850, u900, eutran-i, eutran-iii, eutran-vii, eutran-viii, eutran-xx, eutran-xxxviii, eutran-xl' | current: 'dcs, egsm, u2100, u900, eutran-i, eutran-iii, eutran-vii, eutran-viii, eutran-xx, eutran-xxxviii, eutran-xl' ------------------------- IP | supported: 'ipv4, ipv6, ipv4v6' ------------------------- 3GPP | imei: '866802020708816' | enabled locks: 'none' | operator id: '42503' | operator name: 'unknown' | subscription: 'unknown' | registration: 'home' ------------------------- SIM | path: '/org/freedesktop/ModemManager1/SIM/0'  ------------------------- Bearers | paths: 'none'</pre> == Configure cellular connection ==* Create new connection<pre>$ sudo nmcli connection edit type gsm con-name "Rami Levi Mobile" ===| nmcli interactive connection editor |=== Adding a new 'gsm' connection Type 'help' or '?' for available commands.952036Type 'describe [<setting>.<prop>] option 1' for detailed property description. You may edit the following settings: connection, gsm, serial, ppp, ipv4, ipv6, tc, proxynmcli></pre> * Edit the APN settings of your network<pre>nmcli> set gsm.apn internet.rlnmcli> set gsm.username rl@3gnmcli> set gsm.password rl</pre> * Review all current settings with the print command<pre>nmcli> print=============================================================================== Connection profile details (Rami Levi Mobile)===============================================================================connection.id: Rami Levi Mobileconnection.uuid: 36fbc401-8a3c8-4735-a404-fcbbc119943dconnection.2stable-id:1 --connection.1type: GSM modem (1 gsmconnection.interface-name: --port) converter detected[ 9connection.952179] usb 1autoconnect: yesconnection.autoconnect-8priority: 0connection.2autoconnect-retries: GSM modem (1 -port1 (default) converter now attached to ttyUSB1[ 9connection.952275] option auth-retries: -1connection.timestamp: 0connection.read-8only: noconnection.2permissions:1 --connection.2zone: GSM modem (1 --port) converter detected[ 9connection.952367] usb 1master: -8-connection.2slave-type: GSM modem (1 --port) converter now attached to ttyUSB2[ 9connection.952459] option autoconnect-slaves: -1(default)connection.secondaries: -8-connection.2gateway-ping-timeout: 0connection.metered: unknownconnection.lldp: default-------------------------------------------------------------------------------ipv4.method: autoipv4.dns: --ipv4.dns-search: --ipv4.dns-options: ""ipv4.dns-priority: 0ipv4.addresses: --ipv4.gateway: --ipv4.routes: --ipv4.route-metric: -1ipv4.3route-table: GSM modem 0 (1unspec)ipv4.ignore-portauto-routes: noipv4.ignore-auto-dns: noipv4.dhcp-client-id: --ipv4.dhcp-timeout: 0 (default) converter detected[ 9ipv4.952539] usb 1dhcp-8send-hostname: yesipv4.2dhcp-hostname: GSM modem --ipv4.dhcp-fqdn: --ipv4.never-default: noipv4.may-fail: yesipv4.dad-timeout: -1 (default)-------------------------------------------------------------------------------ipv6.method: autoipv6.dns: --ipv6.dns-search: --ipv6.dns-options: ""ipv6.dns-priority: 0ipv6.addresses: --ipv6.gateway: --ipv6.routes: --ipv6.route-metric: -1ipv6.route-porttable: 0 (unspec) converter now attached to ttyUSB3[ 9ipv6.952631] option 1ignore-8auto-routes: noipv6.2ignore-auto-dns: noipv6.never-default: noipv6.may-fail: yesipv6.ip6-privacy: -1(unknown)ipv6.4addr-gen-mode: GSM modem stable-privacyipv6.dhcp-send-hostname: yesipv6.dhcp-hostname: --ipv6.token: ---------------------------------------------------------------------------------gsm.number: *99#gsm.username: rl@3ggsm.password: <hidden>gsm.password-flags: 0 (1none)gsm.apn: internet.rlgsm.network-portid: --gsm.pin: <hidden>gsm.pin-flags: 0 (none) converter detected[ 9gsm.952712] usb 1home-8only: nogsm.2device-id: GSM modem --gsm.sim-id: --gsm.sim-operator-id: --gsm.mtu: auto-------------------------------------------------------------------------------proxy.method: noneproxy.browser-only: noproxy.pac-url: --proxy.pac-script: ---------------------------------------------------------------------------------nmcli></pre> * Supporing you're running as root, you'll now be able to save your connection and exit<pre>nmcli> saveSaving the connection with 'autoconnect=yes'. That might result in an immediate activation of the connection.Do you still want to save? (1yes/no) [yes] yesConnection 'Rami Levi Mobile' (36fbc401-porta3c8-4735-a404-fcbbc119943d) converter now attached successfully saved.nmcli> quit</pre> * That's all, you can use GSM connection<pre>$ nmclicdc-wdm0: connected to ttyUSB4Rami Levi Mobile "cdc-wdm0" gsm (option1, qmi_wwan), hw, iface wwp0s21f0u8u2i5, mtu 1500 ip4 default inet4 10.44.64.145/30 route4 0.0.0.0/0 route4 10.44.64.144/30 eno1: unavailable "Intel I211 Gigabit" ethernet (igb), 00:01:C0:20:27:6C, hw, mtu 1500 enp1s0: unavailable "Intel I211 Gigabit" ethernet (igb), 00:01:C0:20:27:6B, hw, mtu 1500 lo: unmanaged "lo" loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536 DNS configuration: servers: 91.135.102.8 91.135.104.8 interface: wwp0s21f0u8u2i5
</pre>
$ lsusb
Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6Gb/s bridge, ASM1053E SATA 6Gb/s bridge, ASM1153 SATA 3Gb/s bridge
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
'''Bus 001 Device 005: ID 1e0e:9001 Qualcomm / Option'''
Bus 001 Device 004: ID 04b4:6570 Cypress Semiconductor Corp.
Bus 001 Device 003: ID 413c:2107 Dell Computer Corp.
Bus 001 Device 002: ID 1241:1166 Belkin MI-2150 Trust Mouse
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
425
edits