Enable mobile internet connectivity with SIM-Card on the Starter Kit

Enable mobile internet connectivity with SIM-Card on the Starter Kit

October 9, 2020
TeamViewer IoT Documentation

The edge device of the TeamViewer IoT Starter Kit has a built-in modem (4G).

What you will need

Make sure that you have prepared the following points:

Unlock the SIM card with the edge device

You can use your phone to unlock a SIM card. Heed the instructions of your phone for more information.
  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. Edit the SIM configuration. In the terminal type in the following command and press return.
sudo nano /etc/systemd/system/pinunlock.service
  1. When the nano editor opens, copy and paste the following text. Replace **** with your pin.
[Unit]
Description=Sim pin unlock
After=network.target
Requires=snap.modem-manager.modemmanager.service
[Service]
Type=idle
ExecStartPre=/bin/sleep 60
ExecStart=/snap/bin/mmcli -i 0 --pin=****
[Install]
WantedBy=multi-user.target
  1. Save the file and exit nano.

Enable mobile internet connectivity

  1. Unlock the SIM card.
  2. Insert the SIM card into the edge device.
  1. Access the edge device remotely (Access the Edge Device via Remote Terminal).
  2. Check the type of the inbuilt modem. In the terminal type in the following command and press return.
sudo mmcli -L
  1. Depending on the output of the last command use one of the following instructions:

X7 LTE DW5818 modem

Type in each command and press enter. Replace ConnectionName with a meaningful name for the connection. Replace APN with an APN of your service provider.

sudo nmcli c add type gsm ifname cdc-wdm0 con-name ConnecctionName> apn 
sudo reboot

MBIM modem

Type in each command and press enter. Replace ConnectionName with a meaningful name for the connection. Replace APN with an APN of your service provider.

sudo mmcli -m 0
sudo nmcli c add con-name  type gsm ifname cdc-wdm0 apn 
sudo nmcli r wwan
sudo nmcli c up 
sudo reboot

The edge device reboots. To check the mobile internet connectivity disconnect the edge device from WLAN and LAN and access the edge device remotely.

Related posts

Want more? Exclusive deals, the latest news: Our Newsletter!