# Problems using "adl\_atCmdCreate"

**URL:** <https://forum.sierrawireless.com/t/problems-using-adl-atcmdcreate/3798>\
**Category:** Legacy AirPrime modules\
**Created:** [October 30, 2009, 2:25pm UTC](https://forum.sierrawireless.com/t/problems-using-adl-atcmdcreate/3798 "2009-10-30T14:25:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nicool67](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nicool67](https://forum.sierrawireless.com/u/nicool67)\
**Post date:** [October 30, 2009, 2:25pm UTC](https://forum.sierrawireless.com/t/problems-using-adl-atcmdcreate/3798/1 "2009-10-30T14:25:16Z")

</div>

Hi to all!!, im having troubles to make this work, i want to execute an AT command with the adl\_atCmdCreate funtion.  
This is what im doing…

adl\_atCmdCreate(“AT+CPIN=1111”,FALSE,gsm\_PINHandler,ADL\_STR\_OK,ADL\_STR\_ERROR,NULL);

but it never came into the handler.

if i write…  
adl\_atCmdCreate(“AT+CPIN=1111”,FALSE,gsm\_PINHandler,"\*",NULL);

the anser inside de handler is CME:ERROR 515.

Can anyone help me??.

Thanks for advance.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [October 30, 2009, 2:50pm UTC](https://forum.sierrawireless.com/t/problems-using-adl-atcmdcreate/3798/2 "2009-10-30T14:50:46Z")

</div>

> [@nicool67](#):
>
> adl\_atCmdCreate( “AT+CPIN=1111”, FALSE, gsm\_PINHandler, ADL\_STR\_OK, ADL\_STR\_ERROR, NULL );

Look-up the definition of ADL\_STR\_ERROR in the ADL User Guide

> [@](#):
>
> if i write…  
> adl\_atCmdCreate(“AT+CPIN=1111”,FALSE,gsm\_PINHandler,“\*”,NULL);
> 
> the anser inside de handler is CME:ERROR 515.

Does “+CME ERROR: 515” match the definition of ADL\_STR\_ERROR ❓

---

<div class="post-metadata">

**Author:** ![nicool67](https://avatars.discourse-cdn.com/v4/letter/n/b3f665/32.png) [@nicool67](https://forum.sierrawireless.com/u/nicool67)\
**Post date:** [October 30, 2009, 3:02pm UTC](https://forum.sierrawireless.com/t/problems-using-adl-atcmdcreate/3798/3 "2009-10-30T15:02:50Z")

</div>

Problem solved!!! 😃 . When i get the CME ERROR i try again recieving the PING NEED event, later y send the AT+CPING=1111 and works just fine!.

Thank u all!!
