Actually, it is quite easy to setup different parameters on UART1 and UART2 from the embedded application, if you know how…
From AT Commands Interface Guide in the V24-V25 commands section:
This sentence completely misled me and another person I was reading this with. How do you select a UART? I knew how to activate with AT+WMFM, so I thought that should be it. I tried to deactivate UART1 then activated UART2 and assumed the AT+IPR, etc. commands would now be used to setup the UART2 parameters. Wrong!
Actually, how to accomplish this setup is described in the Open AT ADL User Guide - in adl_atCmdCreate section. A place I didn’t expect it…
It works like this:
adl_atCmdCreate( "AT+IPR=38400", ADL_AT_PORT_TYPE( ADL_AT_UART2, FALSE ), Res_IPR_Handler, "*", NULL );
So there is no need to disable UART1… nice!
One more thing: I think you also need to use the ADL_AT_PORT_TYPE macro, if you would like to save the setting with AT&W.