[BC660K] DFOTA upgrading changes the baudrate

We are using a different value than 115200 for the baudrate of the UART in our module.

And, because of that, we are seeing the output below:

L +QIND: "FOTA","DOWNLOADING",97%
L +QIND: "FOTA","DOWNLOADING",100%
L +QIND: "FOTA","HTTPEND",0
L +QIND: "FOTA","START"
��x��������������x������x<�������x����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�����������x��x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�����������x��x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x����������x���x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x����������x���x���������������x��������������x������x<�������x����������x��x��x���������������x��������������x������x<�������x����������x���x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x����������x����x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x������������x��x���������������x��������������x������x<�������x��������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x��������������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x����������x��x���������������x��������������x������x<�������x�����������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x�������������x���������������x��������������x������x<�������x������������x��x���������������x��������������x������x<�������x��������������x���������������x��������������x������x<�������x������������x���������������x��������������x������x<�������x�����������x�������������

# [ module restarts and stars again fine, with the new firmware ]

And, after the reboot, the baud rate is back again to our non-default value (different than 115200), and it works fine.

So, the issue is only when the upgrade starts, it changes the baud rate to 115200.

My question is: is it avoidable? If not, what could be a workaround for this?

I did more tests and once the download of the Delta is done, the module then goes into the upgrade mode.
And it is an atomic operation that will always lead to a reboot of the module (either if the Delta is valid or not).
After reboot, the baud rate is back to what I expected.

So, since this baud rate change does not affect the behavior of the module, I will mark this as an “expected behavior” and leave it for the others that may face the same issue.

YES,YOU ARE GREAT,thank you for your sharing;