sparkfun / OpenLog_Artemis

The OpenLog Artemis is an open source datalogger the comes preprogrammed to automatically log IMU, GPS, serial data, and various pressure, humidity, and distance sensors. All without writing a single line of code!
https://www.sparkfun.com/products/15846
Other
88 stars 47 forks source link

Feature Request: single log file #195

Closed mechatroniks-git closed 6 months ago

mechatroniks-git commented 6 months ago

I have serial time stamp that I want to record, IRIG. And I trigger the open log with a pulse, it's working but it's now logging to 2 files.

I'd like to have a single log file, where any available serial data is appended to the end of the last line.

PaulZC commented 6 months ago

Hi @mechatroniks-git ,

This may be difficult to achieve. It could be difficult to avoid overflowing the serial receive buffer in between your logging pulses. Maybe, in your case, the IRIG data rate is low enough that it could never overflow the buffer. But if we add this as a feature for all users, there will be many cases where serial data is lost between sensor reads.

Please fork the repo and develop your own version of the firmware. You need to merge the serial logging code and the sensor logging code. You can find compilation instructions in COMPILE_BINARY.md. There is a Docker file to help. And / or use the workflows to compile the code for you - but this requires a GitHub subscription.

Best wishes, Paul