This article describes how to connect the Teamviewer IoT Starter Kit to the internet using its internal modem
Prerequisites
- Connect the antennas to the gateway
- Insert a sim card into the sim card slot
- Connect the Gateway with LAN cable to the internet and power it up
- Connect with Teamviewer Client or SSH to the device and login to the remote terminal
Enable the WWAN Connectivity
Unlock the card
The gateway can automatically connect to mobile internet if the SIM card does not require a pin.
If the SIM card inserted into the gateway requires a pin, there are 2 ways to unlock it:
- Insert the SIM card into a phone and follow the settings to unlock it
- Follow the steps below to unlock the pin from the gateway:
$ sudo nano /etc/systemd/system/pinunlock.service
- Copy and paste the below text and provide the correct pin instead of****
- [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
- Exit the nano editor and execute the service
$ sudo systemctl enable pinunlock.service
Activate the WWAN modem
Check the modem model
The gateway is currently equipped with one of 2 gateway options and depending on the version the commands are different
Command Description / expected output $ sudo mmcli -L shows the installed modem
based on the output from the last section follow instruction either 1 or 2
1. Instructions for [Sierra Wireless, Incorporated] Qualcomm™ Snapdragon™ X7 LTE DW5818 modem
Command Description / expected output $ sudo nmcli c add type gsm ifname cdc-wdm0 con-name <ConnecctionName> apn <operator_apn>
$ sudo reboot
create a connection with a meaningful connection name and set the apn from your sim card provider (e.g. web.vodafone.de)
reboot the modem
2. Instructions for the [Dell] MBIM modem
Unlock the SIM via phone or use below commands
Command Description / expected output $ sudo mmcli -m 0
$ sudo mmcli - i 0 --pin=<pin_number> --disable-pin
$ sudo nmcli c add con-name <ConnectionName> type gsm ifname cdc-wdm0 apn <apn-name>
$ sudo nmcli r wwan
$ sudo nmcli c up <Connection-Name>
$ sudo reboot
modem status display --> check if card was found
unlock card and disable the pin
create a connection with a meaningful connection name and set the apn from your card provider (e.g. web.vodafone.de)