# WR21 PIN change

**URL:** https://forums.digi.com/t/wr21-pin-change/18035
**Category:** Digi TransPort WR (Series)
**Tags:** wr21, change
**Created:** [February 15, 2017, 11:13am UTC](https://forums.digi.com/t/wr21-pin-change/18035 "2017-02-15T11:13:28Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tomasz](https://forums.digi.com/u/Tomasz)
#### Post date: [February 15, 2017, 11:13am UTC](https://forums.digi.com/t/wr21-pin-change/18035/1 "2017-02-15T11:13:28Z")

</div>

Hello,  
My question is how change PIN on SIM or add PIN to SIM when card not have a PIN ?.  
Regards  
Tomasz

---

<div class="post-metadata">

### Author: ![James.Wilson](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@James.Wilson](https://forums.digi.com/u/James.Wilson)
#### Post date: [February 16, 2017, 3:20am UTC](https://forums.digi.com/t/wr21-pin-change/18035/2 "2017-02-16T03:20:46Z")

</div>

Hi the easy way to change pin with a WR21

dont use a mobile phone when the sim is in the phone if it has a pin then you will have to enter it when the phone first boots up. once in you can go to security option and change pin or remove pin

you can do it on a wr21 but it would mean re configuring the router to have direct access to the module then use at commands to access the SIM

link to how to use some at commands  
[http://dostmuhammad.com/blog/disable-pin-code-using-gsm-modem-at-commands/](http://dostmuhammad.com/blog/disable-pin-code-using-gsm-modem-at-commands/)

regards

---

<div class="post-metadata">

### Author: ![Tomasz](https://avatars.discourse-cdn.com/v4/letter/t/dbc845/32.png) [@Tomasz](https://forums.digi.com/u/Tomasz)
#### Post date: [February 16, 2017, 10:44am UTC](https://forums.digi.com/t/wr21-pin-change/18035/3 "2017-02-16T10:44:11Z")

</div>

Hello,  
when I’m try use this command from your linkk I have error output:  
ss431362\>AT+CPIN?  
ERROR

ss431362\>

Regards  
Tomasz

---

<div class="post-metadata">

### Author: ![James.Wilson](https://avatars.discourse-cdn.com/v4/letter/j/53a042/32.png) [@James.Wilson](https://forums.digi.com/u/James.Wilson)
#### Post date: [February 17, 2017, 2:53am UTC](https://forums.digi.com/t/wr21-pin-change/18035/4 "2017-02-17T02:53:45Z")

</div>

Yes thats because you are talking to the router and not the modules.

you have to disconect the module from the router

modemcc 0 asy\_add ?  
modemcc 0 info\_asy\_add ?

makes a note of the 2 settings

modemcc 0 asy\_add 255  
modemcc 0 info\_asy\_add 255

the module is now accessable  
but if the router does not see data it will reboot the module so

modemcc 0 link\_retries ?  
modemcc 0 stat\_retries ?

make a note of them

modemcc 0 link\_retries 10000  
modemcc 0 stat\_retries 10000

this should give you some time to move to accessing the port.

simple way now is to telnet into the port assoiated to the asy\_info\_add you made not off

telnet 127.0.0.1 4006 -\> Last digit is the port number you recorded earlier  
if you now type ati5 you should get a diffrent out put to the router

at commands should now be talking to the module

once you finish you need to put the configuration back or if you have not saved any changes reboot the router

regards

James
