If you were able to implement the sim-contact change function (AT + CLCK, I suppose), then I assume that you are able to implement the "Enter PIN" function (AT + CPIN = "pin_no").
Just call this function before your sim sim change function.
barry source
share