Introduction
This article goes over how to talk to the the 920N LTE modem and setup the apn for the network provider chosen.
Requires
- LTE Modem LN920
- OS version 6.5.0.2 or higher
How to configure the Modem
- Connect the Unit to Test to a local Ethernet port to enable a SSH connection.
- SSH into the unit using the host name or IP address. e.g.
ssh torizon@verdin-imx8mp-07129848
- Enter the unit password to gain SSH access.
- Ensure the overlays.txt is updated:
- Verify /etc/overlays.txt, check for maivin2-m2usb.dtbo:
-
cat /etc/overlays.txt
-
maivin2-m2usb.dtbo
- Check ModemManager is running:
- systemctl status ModemManager
If not, enable and start it.sudo systemctl enable ModemManager
sudo systemctl start ModemManager
- systemctl status ModemManager
- The modem and sim talking can be verified using (Might take a few seconds to show up)
-
mmcli -m 0
-
- Now to set up the connection use the cmd below. Replace <APN_FROM_CARRIER> with the APN for your network.
sudo nmcli connection add type gsm ifname "*" con-name "Cellular Connection" autoconnect yes gsm.apn <APN_FROM_CARRIER>
e.g.
sudo nmcli connection add type gsm ifname "*" con-name "Cellular Connection" autoconnect yes gsm.apn globaldata.iot
- Bring up the connection
sudo nmcli connection up "Cellular Connection"
- Known APNs:
- Telus IOT sim APN: m2m.telus.iot
- IBASIS IOT sim APN: globaldata.iot
- Vodafone Italia APN: mobile.vodafone.it
-
Verify the connection is established
nmcli -c no connection show
How to confirm basic LTE connectivity.
The following commands can be used to query for LTE functionality.
mmcli -m 0
- This will give an overview of the modem status and operation. It will also indicate the carrier information in the 3GPP section.
ifconfig
- This will list all the current IP networks connected. If the LTE modem is connected properly and has an IP address the wwan0 interface will be shown.
- To ensure the LTE modem can see the Internet properly, a simple ping command can be used. The -I parameter can specify a specific interface to use for the ping.
ping -I wwan0 8.8.8.8
torizon@verdin-imx8mp-07129848:~$ ping -I wwan0 8.8.8.8
PING 8.8.8.8 (8.8.8.8) from 10.188.129.155 wwan0: 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=110 time=60.1 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=110 time=31.7 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=110 time=46.2 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=110 time=33.8 ms
64 bytes from 8.8.8.8: icmp_seq=5 ttl=110 time=52.8 ms
--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4003ms
rtt min/avg/max/mdev = 31.659/44.899/60.082/10.888 ms
- Press ctrl-c to stop the ping command.
- If the ping command is successful, then the LTE modem has connection to the Internet.
Comments
0 comments
Please sign in to leave a comment.