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
📌Note: You can use your phone to unlock a SIM card. Heed the instructions on 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
3. 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
4. Save the file and exit nano.
Enable mobile internet connectivity
1. Unlock the SIM card.
2. Insert the SIM card into the edge device.
3. Access the edge device remotely (Access the Edge Device via Remote Terminal).
4. Check the type of the inbuilt modem. In the terminal type in the following command and press return.
sudo mmcli -L
5. 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.