SparkFun_DataLogger icon indicating copy to clipboard operation
SparkFun_DataLogger copied to clipboard

UART data logging?

Open cuzzard opened this issue 10 months ago • 3 comments

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

cuzzard avatar Apr 20 '24 06:04 cuzzard

Easy enough to add to a near term release

Would you expect something like this?

  • external UART device connected to the TXD/RXD pins of the DataLogger IoT board
  • UART datalogging enabled in DataLogger prefs
  • Every log cycle the datalogger will read lines of data from the datalogger - Dumping each line to the output stream as single lines - Dumping everything it reads into the output streams as a single blob of text

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!

gigapod avatar Apr 22 '24 20:04 gigapod

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.

cuzzard avatar Apr 23 '24 18:04 cuzzard

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

gigapod avatar May 02 '24 21:05 gigapod