Overview
Sometimes SIM cards arrive locked with a PIN code which is provided by the carrier. this is a common security practice in the EU.
The goal of this KB is to demonstrate how you can quickly disable the PIN and unlock the SIM to be used in our Appliances.
Products and Firmware*
List of products and firmware versions
Family | Product |
Article written using version |
Supported on firmware |
OM/CM | all | 23.03.3 | Any |
7000 | 4.3 | 4.12.3 | 4.3 |
Prerequisites
In order to unlock the SIM, You will need to know your SIM PIN ahead of time.
Disabling the PIN:
In order to disable the PIN, We need to find the correct modem and SIM index, these values could change if the Modem has been reset or if the SIM is in Slot 1 or 2.
- Access the Unit's CLI via SSH or Console
- Become Root by running the command below:
sudo -i
- Now you can start running the commands depending on which product Family you have.
Disabling PIN on OM and CM8100 Family
#Find the correct Modem Index
modem_index=$(mmcli -L | awk '{print $1}' | awk -F'/' '{print $6}')
#Print the Modems Information
mmcli -m $modem_index
#Find the correct SIM Index
sim_index=$(mmcli -m $modem_index | grep SIM | awk '{print $5}' | awk -F'/' '{print $6}')
#Disable the PIN using your known SIM
mmcli -m $modem_index -i $sim_index --disable-pin --pin=1111
Disabling PIN on the 7000 Cellular Family
#Find the correct Modem Index
modem_index=$(mmcli -L | awk '{print $1}' | awk -F'/' '{print $6}')
#Print the Modems Information
mmcli -m $modem_index
#Find the correct SIM Index
sim_index=$(mmcli -m $modem_index | grep SIM | awk '{print $4}' | awk -F '/' '{print $6}' | sed "s/[']//g")
#Disable the PIN using your known SIM
mmcli -m $modem_index -i $sim_index --disable-pin --pin=1111
Example of disabling the PIN.
Once the PIN has been disabled, You should be able to successfully connect to the cellular carrier.
Comments
0 comments
Please sign in to leave a comment.