11@startuml overview
22!pragma layout smetana
33allowmixing
4+ left to right direction
45
56skinparam {
67 BackgroundColor #1a1a2e
@@ -25,39 +26,37 @@ skinparam {
2526 PackageBackgroundColor #0f1a2e
2627 PackageFontColor #7EC8E3
2728 PackageFontSize 13
29+ nodesep 18
30+ ranksep 34
2831}
2932
30- title <size:18><color:#7EC8E3><b>L.I.M.A. Node -- System Overview</b></color></size>
31-
3233package "LIMA Node" {
3334 state "Sensors" as sensors #0D3320
3435 state "Event Detection" as detect #2a1a0a
35- state "FSM (State Machine) " as fsm #1a3060
36+ state "FSM" as fsm #1a3060
3637 state "Signed Event Record" as packet #2a1a4a
3738 state "BLE Transport" as ble #0f3460
3839}
3940
4041state "Gateway" as gw #0a1a3a
4142state "MQTT / Storage / Alerts" as backend #1a2a1a
4243
43- sensors --> detect : sensor IRQ /\nthreshold breach
44- detect --> fsm : lima_event_t\nposted to queue
45- fsm --> packet : ECDSA-P256\nsign payload
46- packet --> ble : advertise\nsigned packet
47- ble --> gw : BLE advertisement
48- gw --> backend : MQTT publish /\nstore / alert
44+ sensors --> detect : sensor IRQ
45+ detect --> fsm : lima_event_t
46+ fsm --> packet : ECDSA-P256
47+ packet --> ble : advertise
48+ ble --> gw : BLE adv
49+ gw --> backend : publish / store / alert
4950
50- note right of fsm
51- <color:#27AE60>BOOT -> CALIBRATING
52- -> ARMED -> SLEEP
53- -> EVENT_DETECTED
51+ note bottom of fsm
52+ <color:#27AE60>BOOT -> CALIBRATING -> ARMED
53+ -> SLEEP -> EVENT_DETECTED
5454 -> SIGNING -> TX</color>
5555end note
5656
57- note right of gw
57+ note top of gw
5858 <color:#27AE60>Silence = alert
59- gateway detects
60- node dropout</color>
59+ gateway detects node dropout</color>
6160end note
6261
63- @enduml
62+ @enduml
0 commit comments