Files
MuditaOS/module-cellular/Modem/doc/scripts/atstream.pu
breichel dc00afaad3 [EGD-5599] Change AT and DLC channels for big return
Change which allow to handle large return from
at commands both via UART and DLC-Commands
2021-02-10 16:15:30 +01:00

49 lines
730 B
Plaintext

@startuml
start
:pass data to ATStream via write;
if (isReady) then
:return error (could be call reset, to get new data);
Stop;
endif
:add new data to buffer;
if (AT Return at the begin) then (yes)
:Set "Return at the begin" flag;
if (Expected line count= 0) then (yes)
:(isReady=true);
Stop;
endif
else (no)
endif
:Count lines from last position;
if ("Return at the begin" flag is set) then (yes)
if (More lines then expected) then (yes)
:(isReady=true);
Stop;
endif
else (no)
if (AT Return at the end) then (yes)
:(isReady=true);
Stop;
endif
endif
:Stream still wait for data (isReady=false);
Stop;
@enduml