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:
- Make sure that the Wi-Fi antenna is connected to the edge device (see Set up the Starter Kit).
- An unlocked SIM card to connect with mobile internet.
- The Access Point Name (APN) of your service provider.
- The edge device is set up with a TeamViewer IoT Agent and TeamViewer Edge Management is enabled.
- Access the Edge Device via Remote Terminal.
- Basic knowledge of the editor nano.
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.
- Access the edge device remotely (Access the Edge Device via Remote Terminal).
- Edit the SIM configuration. In the terminal type in the following command and press return.
sudo nano /etc/systemd/system/pinunlock.service
- 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
- Save the file and exit nano.
Enable mobile internet connectivity
- Unlock the SIM card.
- Insert the SIM card into the edge device.

- Access the edge device remotely (Access the Edge Device via Remote Terminal).
- Check the type of the inbuilt modem. In the terminal type in the following command and press return.
sudo mmcli -L
- 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.