~aleteoryx/muditaos

ref: 71fa4c5578eb2ea57899e63c3aa5c42461502483 muditaos/module-cellular/modem/doc/Images/at_mode.uml -rw-r--r-- 995 bytes
71fa4c55 — Paweł Joński [BH-721] Fix and add new rrule generator methods 4 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
@startuml
Title AT Mode

state CellularBSP {
  UartIrq: Reads data with DMA to static buffer
  UartIrq: and packs them into struct with result code.
  UartIrq --> SendToWorker
  SendToWorker: Puts structured data into workers MessageBuffer.
  SendToWorker --> output

  state output <<exitPoint>>
}

state CellularWorker{
  state DMAMessageBuffer <<expansionInput>> 

  DMAMessageBuffer --> ATParser
  ATParser: Parses URC packages.
  ATParser --> CmdAwaitingResponse
  
  state CmdAwaitingResponse <<choice>>
  CmdAwaitingResponse ----> outputWorker : True
  CmdAwaitingResponse --> CheckIfFOTA : False

  CheckIfFOTA --> StoreURC : False
  CheckIfFOTA --> FotaService : True

  state outputWorker <<exitPoint>>
}

output --> DMAMessageBuffer

state Channel {
  state ATBuffer <<expansionInput>>
  
  ATBuffer --> ATStream 
  ATStream: parses AT message
  
  ATStream --> channelOutput

  state channelOutput <<exitPoint>>
}

outputWorker --> ATBuffer
channelOutput --> ServiceCellular
@enduml