Projekt

Allgemein

Profil

Eval » Historie » Version 5

Maximilian Seesslen, 24.01.2023 14:25

1 1 Maximilian Seesslen
h1. Eval
2
3
Monitor Sensors over longer time.
4
* Temperature
5
* Air quality
6
* Plant sensors
7
8
MCU is 256K. Could even store XML.
9
10
* Timestamp
11
* CAN-ID + Sub-ID
12
* Values interpreted as Text
13
* CSV better because its always finished
14 2 Maximilian Seesslen
15
h2. Step1
16
17
* Main first target is to monitor plants over longer range of time
18
* target is csv output
19
* Tatsaechlich kann er ziemlich stupide alles ausgeben; TDT interpretiert
20 3 Maximilian Seesslen
* Eigene Temperaturwerte natuerlich. Werden ja schon verschickt. Dann kommt das halt noch mit in die SD
21 5 Maximilian Seesslen
22
23
STM32L431RCT6 with QUAD-SPI-Flash (Memory-mapped) and SD-Card-Slot.
24
"MCU":https://www.st.com/resource/en/datasheet/stm32l431rc.pdf
25
26
[[Eval]]
27
* The block size is 512 Bytes; it will be erased automatically?
28
* plain ascii: "2012-06-01 01:00, 1, 3"
29
** quite difficult to find the end.
30
** need to manipulate it afterwards for gnuplot anyway
31
32
* Record any received object vs. perooidically log all objects
33
** Replay would need all received objects
34
* Bind it to TDT?
35
36
Header
37
1B Magick 'B'
38
1B Number of Stamps
39
2B reserved
40
4B Block number
41
4B CRC32
42
43
1B Magick 'S'
44
2B Year
45
1B Month
46
1B Day
47
1B Your
48
1B Minute
49
1B Second
50
--- 8B
51
4B Node
52
4B Object
53
1B Data Unit
54
1B Data Type
55
4B Value
56
57
Ca. 0x20 Bytes per stamp; 16 Stamps per block
58
59
h1. Todos
60
61
* Behaviour of erasing/writing
62
** I can only write complete block/512B?
63
** Have to erase blocks? Why are they '0';
64
* implement 'sd' command
65
** 'e'rasae
66
** 'w'rite
67
** 'r'ead
68
** 'd'ump
69
70
71
h1. Dump
72
73
* Filter Node-ID and Object
74
75
h1. Ablauf
76
77
* Start with start-block from config if available
78
* Search first free block
79
* Store it in config
80
* Collect stamps/opjects
81
* Write block