# Creating a forbidden list of networks in SIM

**URL:** <https://forum.sierrawireless.com/t/creating-a-forbidden-list-of-networks-in-sim/6116>\
**Category:** General wireless topics FAQ\
**Created:** [February 6, 2013, 8:36am UTC](https://forum.sierrawireless.com/t/creating-a-forbidden-list-of-networks-in-sim/6116 "2013-02-06T08:36:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FAQ\_Poster](https://avatars.discourse-cdn.com/v4/letter/f/f9ae1b/32.png) [@FAQ\_Poster](https://forum.sierrawireless.com/u/FAQ_Poster)\
**Post date:** [February 6, 2013, 8:36am UTC](https://forum.sierrawireless.com/t/creating-a-forbidden-list-of-networks-in-sim/6116/1 "2013-02-06T08:36:55Z")

</div>

Hi,

It is possible to create forbidden PLMN list to avoid WCPU® from registering to a network/networks. Using the AT+CRSM command it is possible to write 4 PLMNs to the FPLMN Elementary file using the UPDATE BINARY command.

Read through the example illustrated below:  
Initially the SIM has certain PLMNs in the EF-FLMN. We can read it from using the AT+CRSM command in READ BINARY mode.

AT+CRSM = 176,28539,0,0,12 -\> Where 176 : read binary  
28539: is 6F7B in hexa is the id of the elementary file for FLPMN .  
+CRSM: 144,0,“04350804052804453004F444”  
OK

From the response of CSRM command: the FPLMNS are  
043508 -\> 405803 -\> Airtel  
040528 - \> 405820 -\> uninor  
044530 -\> 405034 -\> unknown  
04F444 -\> 40444 -\> Spice telecomm

The same PLMNs can be seen as forbidden can be deciphered from the AT+COPS=? response as well.

AT+COPS=?  
+COPS: (2,“AirTel”,"",“40445”),(3,“Airtel”,“Airtel”,“405803”),(3,"","",“405034”),(3,“uninor”,“UNITECH”,“405820”),(3,“Spice Telecom”,“SPICE”,“40444”),(0,1,4)  
OK

The FPLMN list can be updated using the same AT+CRSM command.  
If we want to add 40445 to the FPLMN list, so that WCPU® doesn’t try to clamp on that PLMN:  
AT+CRSM=214,28539,0,0,12,“04544404052804453004F444” //where 214 is UPDATE BINARY command, 28539 is EF-HPLMN id  
+CRSM: 144,0  
OK

Now if we see the response of AT+COPS=? , it can be seen that the PLMN status of 40445 PLMN is forbidden.  
at+cops=?  
+COPS: (3,“IND airtel”,“airtel”,“40445”),(3,“Airtel”,“Airtel”,“405803”),(3,"","",“405034”),(3,“Spice Telecom”,“SPICE”,“40444”),(3,“uninor”,“UNITECH”,“405820”),(0,1, 4),(0,1,2)  
OK
