In Q24plus
I am changing baud rate of uart2 using adl_atcmdcreate() in data mode.
first time it getting changed from 300 to 4800 when it is in data mode.
next time it is not changing from 4800 to 300.
But at cmd response handler giving result OK.
Data coming on the terminal are still in 4800 baud rate not in 300 baud rate.
I did switching baud rate from 300 to 4800 during AT mode. Baud rate changeover is happening properly.
But my device connected is receiving OK response due to baud rate change command sent from my application and hence it is not responding to my next command in data mode treating OK as junk data.
How can i suppress this OK or modem responses on UART2 without closing UART2.
change baud rate to 300
Switch to Data mode
send data cmd1
receive data response 1
switch to AT mode
change baud rate to 4800
switch to data mode
send data command 2
receive data response 2
switch to AT mode
goto step 1
this will go normally when there is no incoming sms
below is the steps while incoming SMS
step1: change baud rate to 300
Switch to Data mode
send data cmd1
receive data response 1
switch to AT mode
change baud rate to 4800 SMS starts coming …
program stops here and restarts with init type exception
switch to data mode
send data command 2
receive data response 2
switch to AT mode
goto step 1
If SMS arrives at this point ie. during baud change it restarts.