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

Implement batch transmission #479

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open

Implement batch transmission #479

wants to merge 23 commits into from

Commits on Jan 24, 2023

  1. change EnviroDIY URL to Memphis server and update copyright

    For future testing and development
    tpwrules authored and SRGDamia1 committed Jan 24, 2023
    Configuration menu
    Copy the full SHA
    dd0ddab View commit details
    Browse the repository at this point in the history

Commits on Feb 4, 2023

  1. dataPublisherBase: remove redundant zero init of TX buffer

    Saves 750 bytes of flash as the buffer can be placed in .bss to be
    zero-initialized instead of .data.
    tpwrules authored and SRGDamia1 committed Feb 4, 2023
    Configuration menu
    Copy the full SHA
    4320fd2 View commit details
    Browse the repository at this point in the history

Commits on Feb 9, 2023

  1. LoggerBase: make testing button log immediately using normal procedure

    Allows easy field verification of functionality as opposed to previous
    testing function which only served a purpose when attached to a computer
    (and consumed lots of flash).
    tpwrules authored and SRGDamia1 committed Feb 9, 2023
    Configuration menu
    Copy the full SHA
    8c4e590 View commit details
    Browse the repository at this point in the history

Commits on Feb 10, 2023

  1. add 8K data buffer for testing

    Device still reports 3K RAM free
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    cd37b8f View commit details
    Browse the repository at this point in the history
  2. publishers: refactor transmit buffer usage

    Use cleaner interface and common functions that avoid repeated snprintf
    and strlen usage to save ~2.5KB of flash and dozens of lines of code.
    
    Removes extra \r\n from HTTP requests as a side effect, which were against
    spec and caused spurious 400 Bad Request status messages from servers.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    e275718 View commit details
    Browse the repository at this point in the history
  3. publishers/EnviroDIYPublisher: send data as one element arrays

    For testing the server component
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    40b91c5 View commit details
    Browse the repository at this point in the history
  4. publishers/EnviroDIYPublisher: buffer log data and send in batches

    Serialize timestamps and variable values to the data buffer, then
    unserialize and format into JSON arrays.
    
    Offers considerable data and power savings.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    5df9aa6 View commit details
    Browse the repository at this point in the history
  5. publishers/EnviroDIYPublisher: move log buffer logic to its own class

    Clean up and make maintenance easier
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    58a17e9 View commit details
    Browse the repository at this point in the history
  6. only turn modem on when internet connection is needed by a publisher

    Avoids unnecessary time and power consumption when publishers just plan to
    buffer the data.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    bf548d4 View commit details
    Browse the repository at this point in the history
  7. dataPublisherBase: correctly retry flushing if modem buffer is full

    The modem might not be able to accept the data written to it if its
    transmit buffer is full. In that case, the portion not accepted needs to
    be retried later. If we retry too many times, give up so we don't get
    stuck in an infinite loop.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    447f582 View commit details
    Browse the repository at this point in the history
  8. publishers/EnviroDIYPublisher: send initial logged data immediately

    Send the first few data points logged after initialization immediately
    instead of buffering them until the programmed interval elapses. Allows
    verification of functionality during deployment.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    212ead3 View commit details
    Browse the repository at this point in the history
  9. publishers/EnviroDIYPublisher: use more intelligent sending algorithm

    Avoid repeatedly retrying if the server is down, while still retrying a
    couple times in case the connection is unreliable.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    e79cbe4 View commit details
    Browse the repository at this point in the history
  10. flush log buffer immediately when test button is pushed

    Allows immediate transmission of data in buffer without loss before
    powering off and decomissioning a deployed datalogger.
    tpwrules authored and SRGDamia1 committed Feb 10, 2023
    Configuration menu
    Copy the full SHA
    b092f32 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2023

  1. Configuration menu
    Copy the full SHA
    b98d3e4 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2023

  1. Added begin. Can't figure out why needed.

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed Sep 15, 2023
    Configuration menu
    Copy the full SHA
    fa3aaab View commit details
    Browse the repository at this point in the history

Commits on Sep 21, 2023

  1. Non-static buffer

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    81b6963 View commit details
    Browse the repository at this point in the history
  2. steps toward fifo

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed Sep 21, 2023
    Configuration menu
    Copy the full SHA
    ba35c84 View commit details
    Browse the repository at this point in the history

Commits on May 20, 2024

  1. Made the EnviroDIY host/path/port settable

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed May 20, 2024
    Configuration menu
    Copy the full SHA
    54bc18a View commit details
    Browse the repository at this point in the history
  2. CR

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed May 20, 2024
    Configuration menu
    Copy the full SHA
    7a9f6e6 View commit details
    Browse the repository at this point in the history
  3. Re-add testing mode

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed May 20, 2024
    Configuration menu
    Copy the full SHA
    2b97787 View commit details
    Browse the repository at this point in the history

Commits on May 28, 2024

  1. Decrease buffer size for Mega, fix warnings

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed May 28, 2024
    Configuration menu
    Copy the full SHA
    055c11a View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2024

  1. Update Doxygen, add docs for private members

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed Jun 11, 2024
    Configuration menu
    Copy the full SHA
    c2f646c View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

  1. Remove extra emphasized return types.

    Signed-off-by: Sara Damiano <[email protected]>
    SRGDamia1 committed Sep 19, 2024
    Configuration menu
    Copy the full SHA
    c3a1520 View commit details
    Browse the repository at this point in the history