sparkfun / SparkFun_DataLogger

Documentation and firmware for the SparkFun DataLogger IoT line of products.
https://docs.sparkfun.com/SparkFun_DataLogger/
18 stars 4 forks source link

UART data logging? #30

Open cuzzard opened 5 months ago

cuzzard commented 5 months ago

I would like to try this board to log a UART sensor. When is UART data logging support expected to be included? Thanks

gigapod commented 5 months ago

Easy enough to add to a near term release

Would you expect something like this?

And for the data read from the UART, how would you expect to see it in the log stream - just the value of a field in the CSV or JSON results?

Any input helpful!

cuzzard commented 5 months ago

Yes, I think what you have outlined would be suitable.

I am assuming the timestamp would also be able to be included as per the current options, so you could have Timestamp and then the data string as one line per data pulse.

I have submitted another item for PPS timestamps; this would make things even more accurate for sensors collecting data at rates upwards of 100 Hz.

Also, having the read accept the native output string of whatever device/sensor a user decides to connect would be most useful I think. This could just be as one field within the .csv (or JSON) - Then users could format their data after, if required.

gigapod commented 5 months ago

Thanks for the follow-on information. I've added this to our backlog for the next release.

The current thought is this would just be another output data value that is managed by the Logger object in the system - so everything that's in the current Logging options in the system applies (timestamp, sample number ...etc). And the data is sent to whatever the output is (serial, file, AWS, Azure ...etc).

We do something similar to this in the Artemis OpenLog firmware (which is a different codebase), so we can reference that functionality/implementation.

Timeline - end of quarter (June) is what we're looking at for a next release - will post a alpha and beta before this.

Thanks -Kirk