IoT Starter Kit - Enabling mobile internet connectivity (4G Modem) - TeamViewer Support
<main>
<article class="userContent">
<p><em> This article describes how to connect the Teamviewer IoT Starter Kit to the internet using its internal modem</em></p><h2 data-id="prerequisites">Prerequisites</h2><ol><li>Connect the antennas to the gateway</li><li>Insert a sim card into the sim card slot</li><li>Connect the Gateway with LAN cable to the internet and power it up</li><li>Connect with Teamviewer Client or SSH to the device and login to the remote terminal</li></ol><h2 data-id="enable-the-wwan-connectivity">Enable the WWAN Connectivity</h2><h3 data-id="unlock-the-card">Unlock the card</h3><p>The gateway can automatically connect to mobile internet if the SIM card does not require a pin.</p><p>If the SIM card inserted into the gateway requires a pin, there are 2 ways to unlock it:</p><ol><li>Insert the SIM card into a phone and follow the settings to unlock it</li><li>Follow the steps below to unlock the pin from the gateway:</li></ol><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo nano /etc/systemd/system/pinunlock.service
</pre><ol><li>Copy and paste the below text and provide the correct pin instead of<em>****</em></li><li><em>[Unit]</em></li><li><em>Description=Sim pin unlock</em></li><li><em>After=network.target</em></li><li><em>Requires=snap.modem-manager.modemmanager.service</em></li><li><em>[Service]</em></li><li><em>Type=idle</em></li><li><em>ExecStartPre=/bin/sleep 60</em></li><li><em>ExecStart=/snap/bin/mmcli -i 0 --pin=****</em></li><li><em>[Install]</em></li><li><em>WantedBy=multi-user.target</em></li><li>Exit the nano editor and execute the service</li></ol><pre class="code codeBlock" spellcheck="false" tabindex="0">$ sudo systemctl enable pinunlock.service
</pre><h3 data-id="activate-the-wwan-modem">Activate the WWAN modem</h3><h4 data-id="check-the-modem-model">Check the modem model</h4><p><em>The gateway is currently equipped with one of 2 gateway options and depending on the version the commands are different</em></p><p> Command Description / expected output <em>$ sudo mmcli -L </em> shows the installed modem </p><p>based on the output from the last section follow instruction either 1 or 2</p><h3 data-id="1.-instructions-for-sierra-wireless-incorporated-qualcomm-snapdragon-x7-lte-dw5818-modem">1. Instructions for [Sierra Wireless, Incorporated] Qualcomm™ Snapdragon™ X7 LTE DW5818 modem</h3><p> Command Description / expected output <em>$ sudo nmcli c add type gsm ifname cdc-wdm0 con-name <ConnecctionName> apn <operator_apn></em></p><p><em>$ sudo reboot</em></p><p> create a connection with a meaningful connection name and set the apn from your sim card provider (e.g.<em> </em><a href="https://community.teamviewer.com/English/home/leaving?target=http%3A%2F%2Fweb.vodafone.de" rel="nofollow noreferrer ugc"><em>web.vodafone.de)</em></a></p><p><em>reboot the modem</em></p><p> </p><p> </p><h3 data-id="2.-instructions-for-the-dell-mbim-modem">2. Instructions for the [Dell] MBIM modem</h3><p>Unlock the SIM via phone or use below commands</p><p> Command Description / expected output <em>$ sudo mmcli -m 0</em></p><p><em>$ sudo mmcli - i 0 --pin=<pin_number> --disable-pin</em></p><p><em>$ sudo nmcli c add con-name <ConnectionName> type gsm ifname cdc-wdm0 apn <apn-name></em></p><p><em>$ sudo nmcli r wwan</em></p><p><em>$ sudo nmcli c up <Connection-Name></em></p><p><em>$ sudo reboot</em></p><p> modem status display --> check if card was found</p><p>unlock card and disable the pin</p><p>create a connection with a meaningful connection name and set the apn from your card provider (e.g.<em> </em><a href="https://community.teamviewer.com/English/home/leaving?target=http%3A%2F%2Fweb.vodafone.de" rel="nofollow noreferrer ugc"><em>web.vodafone.de)</em></a></p><p> </p><p> </p><h2> </h2><p> </p>
</article>
</main>