Skip to content

Commit

Permalink
Merge pull request #267 from RobertGawron/feature/use_docker
Browse files Browse the repository at this point in the history
add more uml diagrams
  • Loading branch information
RobertGawron authored Dec 11, 2024
2 parents e23a3cf + 1d135ab commit 3639b72
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 195 deletions.
40 changes: 40 additions & 0 deletions Documentation/Diagrams/FirmwareSequenceDiagram.plantuml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
@startuml
actor User

participant "Main" as Main
participant "Application Builder" as AppBuilder
participant "Clock Configurator" as Clock
participant "Timer Configurator" as Timer
participant "Logger" as Logger
participant "Measurement Collector" as MeasurementCollector
participant "Measurement Frame" as Frame
participant "Voltage Sensor" as Voltage

User -> Main : Power on the device
Main -> AppBuilder : ApplicationBuilder_Init()
AppBuilder -> Clock : ClockConfigurator_Init()
AppBuilder -> Timer : TimerConfigurator_Init()
AppBuilder -> Logger : Logger_Init()
AppBuilder -> UI : UserInterface_Init()
AppBuilder -> Voltage : VoltageSensorActualValue_Init()
AppBuilder -> MeasurementCollector : MeasurementCollector_Init()

AppBuilder -> UI : UserInterface_ShowMessage(USER_INTERFAE_STATE_OK_MSG)

== Main Loop ==
Main -> AppBuilder : ApplicationBuilder_Run()
loop Wait for interrupt and process
Main -> AppBuilder : ApplicationBuilder_Tick()
AppBuilder -> MeasurementCollector : MeasurementCollector_Tick()
MeasurementCollector -> Voltage : VoltageSensorActualValue_GetConfiguration()
MeasurementCollector -> Voltage : VoltageSensorActualValue_MeasureValue()
Voltage -> MeasurementCollector : Measurement Data
MeasurementCollector -> Frame : MeasurementFrame_Create(configuration, data)
MeasurementCollector -> Frame : MeasurementFrame_Send(callback)

Frame -> Logger : Logger_Print(data)
Logger --> Frame : Acknowledge

AppBuilder -> UI : UserInterface_Tick()
end
@enduml
1 change: 1 addition & 0 deletions Documentation/Diagrams/FirmwareSequenceDiagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed Documentation/Diagrams/HostArchitecture-1.png
Binary file not shown.
160 changes: 0 additions & 160 deletions Documentation/Diagrams/HostArchitecture.svg

This file was deleted.

33 changes: 0 additions & 33 deletions Documentation/Diagrams/HostArchitecture.tex

This file was deleted.

Empty file.
1 change: 1 addition & 0 deletions Documentation/Diagrams/MeasurementDataFlowDiagram.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ PCB was done in KiCAD.

## Software

Measurements are collected from the COM port (tunneled over USB) by a Python script and stored in a .csv file. This file can later be parsed using R scripts to generate various diagrams, such as radioactivity changes over time, radioactivity histograms, and box plots for different samples.

![measurement data flow diagram](./Documentation/Diagrams/MeasurementDataFlowDiagram.svg)

* [Details about the firmware are available here.](./Software/Firmware/README.md)
* [Details about the acquisition software are available here.](./Software/MeasurementAcquisition/README.md)
* [Details about the measurement processing software are available here.](./Software/MeasurementAnalysis/README.md)
Expand Down
4 changes: 2 additions & 2 deletions Software/Firmware/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Architecture

Measurements are collected from the COM port (tunneled over USB) by a Python script and stored in a .csv file. This file can later be parsed using R scripts to generate various diagrams, such as radioactivity changes over time, radioactivity histograms, and box plots for different samples.
Below is the sequence diagram for the firmware.

<img src="../Documentation/Diagrams/HostArchitecture.svg" width="100%">
![firmware sequence diagram](../../Documentation/Diagrams/FirmwareSequenceDiagram.svg)

# Building Firmware

Expand Down

0 comments on commit 3639b72

Please sign in to comment.