Open UART problem


#1

Hi,

do I have a possibilitiy to Open UART 1 in Open AT with the AT Command AT+WDU=1,115200

I tried:

adl_atCmdSubscribe ( “AT+WDU=1,115200”, cbDirectUartCmdHandler,( ADL_CMD_TYPE_PARA | UA_WDU_CMD_PARAM_CONFIG ) );

and

adl_atCmdUnSubscribe ( “AT+WDU=1,115200”, (adl_atCmdHandler_t) cbDirectUartCmdHandler);

and with

adl_atCmdCreate

but nothing works.

Can somebody help me?

Thanks a lot.

PS: cbDirectUartCmdHandler is the UART Handler function: static void cbDirectUartCmdHandler ( adl_atCmdPreParser_t * paras )


#2

Hi,

When you say this, what exactly is the problem? Are you getting some error?
Make sure that the UART intended to be opened in the AT+WDU command is different from the one from where this command is issued.

Regards,
Rex


#3

Hi,

thank you. I solved the problem. I learned that the At+WDU command doesn`t do the same like the AT+WMFM command.

I changed my code so that UART will be opened directly with Speed 115200 without a specific command.