Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FW-A-5] Data logging - Logger preparation #7

Open
sDutkiewicz opened this issue Aug 3, 2022 · 2 comments
Open

[FW-A-5] Data logging - Logger preparation #7

sDutkiewicz opened this issue Aug 3, 2022 · 2 comments
Assignees
Labels
Investigation New feature New feature or request

Comments

@sDutkiewicz
Copy link

sDutkiewicz commented Aug 3, 2022

[FW-A-5]

In this topic, I must investigate and prepare the ways of implementing data loggers to the logger using c/c++ code.

@sDutkiewicz
Copy link
Author

So far, I have read a few articles regarding data logging codes for a logger.

Here is an example (basic tutorial for c++): https://www.sentinelone.com/blog/getting-started-quickly-cplusplus-logging/

@sDutkiewicz
Copy link
Author

To start with, let's explain what data logging is:
Data logging is the process of collecting and storing data over a period in different systems or environments. To put it simply, it is collecting data about a specific, measurable topic with any method that is used.

With the use of the source that I am attaching below my text, in CLION software, where we will be writing our code, we must create at least two header files.
The first one for containing basic menu operations such as loading and displaying with the use of overloaded operators. Also, it should include operations for saving and loading old records made (preferably saved in the form .log).
The classes there should have parameters that will input the values from the logger measures. All measured values should be saved in the intermediate array with strings of fixed length containing the data portion. The array's and its strings' fixed length lets you skip the pricey process of memory allocation. It in no way reduces the possibilities of this system. Simply choose the length of the strings and the size of the array with caution. However, you may quickly build a method of anticipatory information record into the file if an array overflow still happens. Read function, on the other hand, will display all arrays with values that have been recorded.

The second one is for opening and closing the whole software before we can use the menu of the logger. and manage to use it properly. Also, it will help to debug in case of errors approached.

Source:
https://pvs-studio.com/en/blog/posts/a0023/
https://levelup.gitconnected.com/logging-in-c-60cd1571df15

@sDutkiewicz sDutkiewicz changed the title [FW-A-5] Data logging - Logger preparation [FW-A-5]](https://docs.google.com/spreadsheets/d/1D9iWHwoo7Pxa0VTRW-jic1c0xyV2Ns-iBp7wxDun_Xw/edit#gid=0&range=A7) Data logging - Logger preparation Aug 10, 2022
@sDutkiewicz sDutkiewicz changed the title [FW-A-5]](https://docs.google.com/spreadsheets/d/1D9iWHwoo7Pxa0VTRW-jic1c0xyV2Ns-iBp7wxDun_Xw/edit#gid=0&range=A7) Data logging - Logger preparation Data logging - Logger preparation Aug 10, 2022
@sDutkiewicz sDutkiewicz changed the title Data logging - Logger preparation [FW-A-5] Data logging - Logger preparation Aug 10, 2022
@John15321 John15321 added the New feature New feature or request label Aug 14, 2022
@John15321 John15321 changed the title [FW-A-5] Data logging - Logger preparation [FW-A-5] Data logging - Logger preparation Aug 15, 2022
@John15321 John15321 added this to the 💾 SD card logging milestone Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Investigation New feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants