Auto baud rating with adl

Hi everybody, i´m experiencing a problem when switching for 9600 bps in my application. When using the default baud rate(115200) my application can use V24 mode without any problem, when i tryed to change bps to 9600(at+ipr=9600) V24 mode did not work.
any ideas?

thanks,
Sérgio

Hi sergiofernando,
Are you sending AT+IPR command to change the baud rate after switching to data mode? This is because, once the V24 link switches to data mode, you cannot change the baud rate settings.
So, to solve the problem, you can do the following:

  1. Send the AT+IPR command from the embedded application.
  2. Wait for OK.
  3. When OK is received, subscribe to a timer. This is to provide some time to the module to actually change the V24 serial speed.
  4. When the timer expires (and you get a call to timer callback function), subscribe to FCM and then switch to data mode.
  5. Change the baud rate of your external application (like hyperterminal) to the one that you have set using AT+IPR command.

The module should work fine after these steps.

In case, you are sending AT+IPR command from external application (like hyperterminal), then you should first send the command and then try to subscribe to FCM flow and probably switch it to data mode.

Hope this helps you solve your problem.

Best Regards,
Open AT Fan.

hi OpenAT_Fan, that was the problem, thanks! :smiley: