Universal Code

From BoSL Wiki
Revision as of 01:31, 9 February 2024 by Stephen (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Hi Stephanio and Felix,

I want to use this page as a logbook for us to track the progress of the universal code development.

Let's start documenting all the work here.

8 February 2024

In the first step towards a universal code, we have gathered all the version of the BoSL logging code floating around. The next step on this front is to analyse them for similarities differences and functionality to see what should be taken forward when merging.

From a code point of view, priority to first achieve automatic network selection. It seems that AT+COPS only provides a list of available networks, the signal quality can only be obtained via AT+CSQ once registered to the desired network.

Key functions we need the universal code to achieve

  • No creation of new libraries yet
  • All the code should be in the same sketch folder
  1. one file per sensor type
  • Developed based on BoSL 0.5
  • Users are able to:
  1. change logging mode (constent logging interval or variable logging intervals)
  2. change scanning interval (for both variable logging and also storing the data to SD card)
  3. determine whether we want to calculate the average values or not
  4. automatically searching for the available network
  5. input the number and type of sensors which are connected to the board --> then get the program set up accordingly
  6. [alarm] or [program checking message] - e.g., check whether the URL is longer than 255 characters and output this result in text bar to avoid uploading issues
  • Many of these settings should be adjustable from the SD card
  • Migrate to MQTT