Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
===Alarm recordings===
The processing platform is equipped with an a dedicated SSD that is used to store alarm buffers only. Of course, its size should be determined depending on the maximum number of alarms to be stored at the same time. The directory containing the files associated with the alarm events is also shared via [https://en.wikipedia.org/wiki/Samba_(software) Samba (SMB) protocol]. This allows to easily access these files from Windows PS PC's as well.
For each alarm, a dedicated directory separate subdirectory is created. In such a directorysubdirectory, the following files are stored:
* a BMP image for each frame in the alarm buffer
* a video file generated from the individual frames.
It is worth mentioning the naming scheme used for the BMP files. From the programming perspective, each frame retrieved from the sensor image is an instance of a class—the application software makes use of the Objectobject-oriented programming (OOP) model, in fact. Interestingly, these instances, besides raw pixel data, include a timestamp as well. This timestamp, which has a 20ns resolution, is based on a local clock integrated into the image sensor. Every time a new frame is captured, it is associated with the current value of a free-running counter. This counter is clocked by the aforementioned local clock. That being the case, timestamps are not that useful if taken separately, as they are expressed as an absolute value, which is not related to any usable reference clock. They can be extremely valuable, however, if used as relative quantities, for instance when it comes to determining the elapsed time between two frames. Let's assume that we want to measure the time between two frames (ΔT), say F1 and F2. Let TS1 and TS2 be the associated timestamps respectively. To calculate ΔT expressed in ns, we just need to do (TS2-TS1)x20. An example of the use of such a method is described in [[#Real-timeness and frame dropping|this section]]. When saving the frames as BMP files, the timestamp value would be lost. In order to avoid losing this information, file names are used to store preserve timestampstoo. See for example the following list, which refers to an alarm saved on TBD:
==Future work==
===Alarm detection latency measurement===
 
===Adding machine learning-based capabilities===
ML
alarm detection latency
 
real-timeness
==Credits==
*Image sources:
**[https://www.freepik.com/vectors/technology Technology vector created by macrovector - www.freepik.com]
4,650
edits