4. Trust target device by MAC address:
$ trust <MAC>
5. Pair with target device by MAC address:
$ pair <MAC>
6. Connect target device by MAC address:
$ connect <MAC>
7. Disconnect target device by MAC address:
$ disconnect <MAC>
8. Unpair with target device by MAC address:
$ remove <MAC>
Connect 4G or 5G WWAN
Steps
1. Insert your USIM card into the SIM 2 slot. Use the following commands to check the modem status:
$ mmcli -L
Figure 73. Check modem status
In this example, the modem number is 0.
$ mmcli -m 0
Figure 74. Modem 0 status
2. If your USIM card requires a PIN code, the Status is locked. Use the following command to enter your PIN code, change the
state to registered, and allow the USIM card to access a cell site.
$ sudo mmcli -i <SIM NUMBER> --pin=<PIN CODE>
3. Use the following nmcli command to register an auto connection for the target modem and the USIM card:
$ sudo nmcli c add type gsm ifname <IF NAME> con-name <CONNECTION NAME> apn <APN NAME>
Use the following settings:
●
The IF NAME is the primary port of the mmcli modem log.
74
Setting Up the Ubuntu Operating System