>1) When pilot goes to sleep mode and come back something is going wrong

>Do i need to reopen serial port /reset interrupt handler or reset UART
>registers?

No.

Caution ! When Pilot in sleep mode, but serial port is open (UART is
power-on mode), then Pilot use great current from battery!

Use function EvtResetAutoOffTimer for sleep-off mode when communication.

Description
Reset the auto-off timer to assure that the device doesn�t
automati-cally
power off during a long operation without user input (for ex-ample,
serial port activity).

Syntax
Err EvtResetAutoOffTimer (void)

Parameters
None.

Return Value
Always returns 0.

Note
Called by SerialLinkMgr, Can be called periodically by other
managers.

Martin Ostruszka

Reply via email to