Projekt

Allgemein

Profil

Aktionen

Eval » Historie » Revision 6

« Zurück | Revision 6/8 (diff) | Weiter »
Maximilian Seesslen, 25.01.2023 23:57


Eval

Monitor Sensors over longer time.
  • Temperature
  • Air quality
  • Plant sensors

MCU is 256K. Could even store XML.

  • Timestamp
  • CAN-ID + Sub-ID
  • Values interpreted as Text
  • CSV better because its always finished

Step1

  • Main first target is to monitor plants over longer range of time
  • target is csv output
  • Tatsaechlich kann er ziemlich stupide alles ausgeben; TDT interpretiert
  • Eigene Temperaturwerte natuerlich. Werden ja schon verschickt. Dann kommt das halt noch mit in die SD

STM32L431RCT6 with QUAD-SPI-Flash (Memory-mapped) and SD-Card-Slot.
MCU

Eval
  • The block size is 512 Bytes
  • Blocks are erased automatically. The erase command sets the block to {0}
  • plain ascii: "2012-06-01 01:00, 1, 3"
    • quite difficult to find the end.
    • need to manipulate it afterwards for gnuplot anyway
  • Record any received object vs. perooidically log all objects
    • Replay would need all received objects
  • Bind it to TDT?

Header
1B Magick 'B'
1B Number of Stamps
2B reserved
4B Block number
4B CRC32

1B Magick 'S'
2B Year
1B Month
1B Day
1B Your
1B Minute
1B Second
--- 8B
4B Node
4B Object
1B Data Unit
1B Data Type
4B Value

Ca. 0x20 Bytes per stamp; 16 Stamps per block

Todos

  • Behaviour of erasing/writing
    • I can only write complete block/512B?
    • Have to erase blocks? Why are they '0';
  • implement 'sd' command
    • 'e'rasae
    • 'w'rite
    • 'r'ead
    • 'd'ump

Dump

  • Filter Node-ID and Object

Ablauf

  • Start with start-block from config if available
  • Search first free block
  • Store it in config
  • Collect stamps/opjects
  • Write block

Von Maximilian Seesslen vor fast 2 Jahren aktualisiert · 6 Revisionen