Changes

Jump to: navigation, search
Tamir moved page [[Linux Mint: Mobile broadband]] to [[Application note - fitlet2 Linux Mobile broadband configuration]]
* This application note provides an example for configuring SIMCOM SIM7100E/SIM5360E over Linux
* This application note applies to fitlet2 with the above mentioned modems.
 
== List of tested devices ==
* The guide was tested on a systems with the specs listed below, but should be easily adaptable
* NOTE: nmcli and mmcli tools used in the guide do not require X windows system and desktop environment, they work on servers as well
<pre>
Device: fitlet2
OS: Linux Mint 19 Tara
Kernel: 4.15.0-23-generic
Wireless moduleModem: SIM7100E ID 1e0e</pre><pre>Device:9001 Qualcomm fitlet2CPU: Intel(R) Atom(TM) Processor E3950BIOS: 05/ Option14/2018 American Megatrends Inc. FLT2.0.40.01.00OS: CentOS 7Kernel: 4.17.11-1.el7.elrepo.x86_64Modem: SIM5360E
</pre>
== Usage example Detailed modem and SIM 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.949209] usbserial: USB Serial support registered for GSM modem /org/freedesktop/ModemManager1/Modem/0 (1-portdevice id '58d13e091173f65e74b1b6ad29a0dd14f3e118a3')[ 9.949373] option 1 -8.2------------------------ Hardware | manufacturer:1'QUALCOMM INCORPORATED' | model: 'SIMCOM_SIM7100E' | revision: 'M9615A-CETWTBZM-6.0: GSM modem (.15255 1-port) converter detected [ 9.951897May 13 2016 01:00:00] usb 1-8.2' | supported: GSM modem (1'gsm-port) converter now attached to ttyUSB0umts[ 9.952036] option 1 | lte | gsm-8.2umts, lte' | current:1.1'gsm-umts, lte' | equipment id: GSM modem (1'866802020708816' -------------------------port) converter detected[ 9 System | device: '/sys/devices/pci0000:00/0000:00:15.952179] usb 0/usb1/1-8/1-8.2' | drivers: GSM modem 'option1, qmi_wwan' | plugin: 'SimTech' | primary port: 'cdc-wdm0' | ports: 'ttyUSB0 (1qcdm), ttyUSB2 (at), cdc-portwdm0 (qmi), wwp0s21f0u8u2i5 (net), ttyUSB3 (at) converter now attached to ttyUSB1'[ 9.952275] option 1 -8.2------------------------ Numbers | own :1.2'unknown' ------------------------- Status | lock: GSM modem 'sim-pin2' | unlock retries: 'sim-pin (15), sim-portpin2 (5) converter detected[ 9.952367] usb 1, sim-8.2: GSM modem puk (15), sim-portpuk2 (5) converter now attached to ttyUSB2'[ | state: 'registered' | 9.952459] option 1-8.2power state:1.3'on' | access tech: GSM modem 'umts' | signal quality: '41' (1-portrecent) converter detected[ 9.952539] usb 1 -8.2------------------------ Modes | supported: GSM modem (1'allowed: 2g, 3g, 4g; preferred: none' | current: 'allowed: 2g, 3g, 4g; preferred: none' -------------------------port) converter now attached to ttyUSB3[ Bands 9.952631] option 1| supported: 'dcs, egsm, u2100, u1800, u850, u900, eutran-8.2i, eutran-iii, eutran-vii, eutran-viii, eutran-xx, eutran-xxxviii, eutran-xl' | current:1.4'dcs, egsm, u2100, u900, eutran-i, eutran-iii, eutran-vii, eutran-viii, eutran-xx, eutran-xxxviii, eutran-xl' ------------------------- IP | supported: GSM modem (1'ipv4, ipv6, ipv4v6' -------------------------port) converter detected[ 3GPP | imei: '866802020708816' | enabled locks: 'none' | 9.952712] usb 1operator id: '42503' | operator name: 'unknown' | subscription: 'unknown' | registration: 'home' -8.2------------------------ SIM | path: GSM modem (1'/org/freedesktop/ModemManager1/SIM/0'  -port) converter now attached to ttyUSB4------------------------ Bearers | paths: 'none'
</pre>
<pre>$ lsusbmmcli -i 0 Bus 002 Device 002: ID 174c:55aa ASMedia Technology Inc. ASM1051E SATA 6GbSIM '/s bridge, ASM1053E SATA 6Gborg/s bridge, ASM1153 SATA 3Gbfreedesktop/s bridgeModemManager1/SIM/0' Bus 002 Device 001 ------------------------- Properties | imsi : ID 1d6b:0003 Linux Foundation 3.0 root hub'425030300567978' | id : '8997250003005679782' | operator id : 'Bus 001 Device 00542503' | operator name : ID 1e0e:9001 Qualcomm 'Rami Levy'</ Optionpre> == 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. Bus 001 Device 004Type 'describe [<setting>.<prop>]' for detailed property description. You may edit the following settings: ID 04b4connection, gsm, serial, ppp, ipv4, ipv6, tc, proxynmcli></pre> * Edit the APN settings of your network. Comprehensive lists of major carriers and their settings can be found online:6570 Cypress Semiconductor Corp[https://mobilebroadbandprovider. info/ https://mobilebroadbandprovider.info/] Bus 001 Device 003* NOTE: ID 413cIn most cases the only information required is the APN and sometimes a username and password – all other fields may be left at their defaults<pre>nmcli> set gsm.apn internet.rlnmcli> set gsm.username rl@3gnmcli> set gsm.password rlnmcli></pre>* Review your APN and other settings with print command:2107 Dell Computer Corp<pre>nmcli> print=============================================================================== Connection profile details (Rami Levi Mobile)===============================================================================connection. id: Rami Levi Mobile Bus 001 Device 002connection.uuid: ID 1241 36fbc401-a3c8-4735-a404-fcbbc119943dconnection.stable-id:1166 Belkin MI --2150 Trust Mouse Bus 001 Device 001connection.type: ID 1d6b gsmconnection.interface-name:0002 Linux Foundation 2 --connection.autoconnect: yesconnection.autoconnect-priority: 0 connection.autoconnect-retries: -1 (default)connection.auth-retries: -1connection.timestamp: 0connection.read-only: noconnection.permissions: --connection.zone: --connection.master: --connection.slave-type: --connection.autoconnect-slaves: -1 (default)connection.secondaries: --connection.gateway-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.route-table: 0 (unspec)ipv4.ignore-auto-routes: noipv4.ignore-auto-dns: noipv4.dhcp-client-id: --ipv4.dhcp-timeout: 0 (default)ipv4.dhcp-send-hostname: yesipv4.dhcp-hostname: --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-table: 0 (unspec)ipv6.ignore-auto-routes: noipv6.ignore-auto-dns: noipv6.never-default: noipv6.may-fail: yesipv6.ip6-privacy: -1 (unknown)ipv6.addr-gen-mode: stable-privacyipv6.dhcp-send-hostname: yesipv6.dhcp-hostname: --ipv6.token: ---------------------------------------------------------------------------------gsm.number: *99#gsm.username: rl@3ggsm.password: <hidden>gsm.password-flags: 0 (none)gsm.apn: internet.rlgsm.network-id: --gsm.pin: <hidden>gsm.pin-flags: 0 (none)gsm.home-only: nogsm.device-id: --gsm.sim-id: --gsm.sim-operator-id: --gsm.mtu: auto-------------------------------------------------------------------------------proxy.method: noneproxy.browser-only: noproxy.pac-url: --proxy.pac-script: ---------------------------------------------------------------------------------nmcli></pre> * Supposing you're running as root hub, 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? (yes/no) [yes] yesConnection 'Rami Levi Mobile' (36fbc401-a3c8-4735-a404-fcbbc119943d) successfully saved.nmcli> quit</pre> * Review your connections info<pre>$ nmclicdc-wdm0: connected to Rami 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> * That's all, you are connected [[category:Application notes]][[category:fitlet2]][[category:software]]
1,586
edits