bristlemouth / bm_protocol

Primary Bristlemouth firmware repository
https://www.bristlemouth.org/
Apache License 2.0
12 stars 8 forks source link

Enable Writing Files W/ bm_fprintf Without TimeStamp #158

Closed matt001k closed 2 months ago

matt001k commented 2 months ago

Allows logs files to be written without timestamp information at beginning of log files

The spotter FW will also support backwards compatability of the bm_print_publication_t message.

resolves #154

The following was done to test this branch:

  1. Change line 57 in powerSampler.cpp to not utilize time stamps:
      bm_fprintf(0, "power.log", NO_TIMESTAMP, "tick: %llu, rtc: %s, addr: %lu, voltage: %f, current: %f\n",
                 uptimeGetMs(), rtcTimeBuffer, _powerData.address, _powerData.voltage,
                 _powerData.current);
  2. Flash serial payload example on BM mote and updated changes to spotter fw on spotter
  3. Let the network run for some time and cat the log file that is written
  4. Repeat steps 1 through 3 with: a. USE_TIMESTAMP in place of line 57 b. Version 1 of the bm_print_publication_t message (revert to an older commit and flash)

The following are the results: