No automatic response for custom AT COMMAND

Hi,

I have created a custom AT COMMAND:

adl_atCmdSubscribe ( ( ascii* ) TData, TDataHandler,
( ADL_CMD_TYPE_TEST | ADL_CMD_TYPE_READ
| ADL_CMD_TYPE_PARA | 0x0031 ) );

But I don’t know what is wrong but I don’t get any response inmediatly. I can wait minutes but didn’t get and automatic response after procesing TEST, READ and PARA types, and I need an acknowledge for external application. After procesing I send this adl_atSendResponse ( ADL_AT_UNS, "\r\nOK\r\n ), then do more stuff… those send an adl_atSendResponse notifications and didn’t come out either.

If I send another command like “AT”, sends “OK” for this AT COMMAND, and then came out all responses that where buffered inside. What could be wrong? Why my custom AT Command responses buffers everything like that.

Hi,

What is the syntax of your custom AT command ?
Because the string of a custom AT command has to begin by the “AT” characters.

Marc

Hi,

“TData” string is “AT+TDATA”.

Like I said before, custom AT COMMAND it’s working, I get parameters, I can read them… but every response after seems to get stuck until another AT COMMAND like AT is sent.

I’m not saving params to flash, just writing and reading, but firt time reading I sent this instead of “0”, just null:

AT+TDATA?

+TDATA: ,,

OK

But, if I write once then get stuck:

AT+TDATA=3,1,2
AT+TDATA?
AT+TDATA?
AT

OK

OK

+TDATA: 3,1,2

OK

+TDATA: 3,1,2

OK

Why ADL_AT_UNS - it’s not an unsolicited response, is it :question:

Do you think this could be buffering responses? I thought that ADL_AT_UNS would send responses even when not an AT COMMAND is sent.

Then, I will try to send “+TDATA: 3,1,2” as ADL_AT_UN, and “OK” as ADL_AT_RSP.

Yes.

Again, it’s not unsolicited - is it :question:

You are totally right… it’s gives and inmediatly response now.

Yes, it’s not unsolicited :confused: … there is no reason to keep it like unsolicited response :laughing:

Thanks!! It’s working now.