AT Commands Server & UART

Hello all,

I am using AT Commands Server, for that I bind UART1 (!MAPUART=17,1). So I can send my own at commands to my application. It works well. But the issue is that UART1 goes into sleep mode after 5 s, even +KSLEEP is set 2. AT+KSLEEP=2 means Module never enters sleep mode.
Using UART1 as at command interface (!MAPUART=1,1), Module never enters sleep mode.
I using legato 19.07.0.
Does anyone have an idea how the issue can be solved?

How about this?

Probably power saving is activated, you can install devmode as a quick/dirty fix. Or add calls to power manager in your application and disable power saving mode trough legato commands.

Hello,
the advice of jyijyi solved my issue.
thanks.

In WP7702 the UART1 driver have the power management independent of system suspend/resume.
UART1 wakeup can be triggered by RX or TX activity. But before it wakes up from RX, it loses several bits from the RX and then got out of sync.

The default auto suspend delay is 5 second.

root@swi-mdm9x28-wp:~# cat /sys/devices/platform/msm_serial_hs.0/power/autosuspend_delay_ms
5000

There is a possiblility to increase this auto suspend by changing this value.
E.g. change the suspend delay to 20 sec:

echo 20000 > /sys/devices/platform/msm_serial_hs.0/power/autosuspend_delay_ms

Maybe there is a possiblility to disable the suspend completely.

To disable the UART auto suspend behavior, you can try the following command:

echo -1 > /sys/devices/78b0000.uart/power/autosuspend_delay_ms

:+1:
And to disable auto suspend on UART2:

echo -1 > /sys/devices/78af000.uart/power/autosuspend_delay_ms