Skip to content

v1.0.1

Latest

Choose a tag to compare

@grwells grwells released this 05 Dec 17:30
1ad31c2

Adds "SENSOR_NAME" and "BATT_VOLTAGE" to K6P and S1 JSON packets.

Note: if submodule isn't added for config script, some errors may be encountered. See working with submodules for solutions. Or quickly run git submodule update --init --recursive

Building From Source

To configure firmware for preset network before uploading use: pio run -e config-firebeetle32 -t upload

Deployment

PlatformIO Options

With laptop connected to Data Gator, build and upload the source code with:

  1. VSCode Plugin
  2. OR pio run -t upload from the command line
  3. OR Espressif Flash Tool
Espressif Flash Download Tool

To flash the linked firmware, use the Espressif Flash Download Tool(Windows) from here.

  1. Download and open Flash Download Tool. Also download the binary file (.bin) linked below.

  2. Select ESP32 as the chip. Leave all other options as default and click "Okay".

  3. Open the binary file by clicking the three dots button next to the top entry. For each binary loaded, enter an offset (ex. 0x10000) in the far right field on the same line. This sets the program to be written to the memory block.

    • bootloader.bin should be flashed with offset 0x1000
    • partitions.bin should be flashed with offset 0x8000
    • firmware_v#.#.#.bin should be flashed with offset 0x10000
  4. Click the check box next to the file selector field for each loaded binary to be flashed.

  5. Next, connect the Data Gator board via USB to your laptop. Open device manager to see which COM port the USB device is connected to.

  6. Select that COM port in the Flash Download Tool.

  7. Click "Start". The tool should SYNC, then flash the firmware to the device. Do not disconnect until it is done. Once finished, use the PlatformIO serial monitor or other serial monitor to make sure the device is running the correct firmware.

Supported Sensors

Sensor Link
Meter Teros 10 product link
Atlas Gravity pH product link
Atlas EZO-pH product link
Minew S1 BLE T&H product link
KKM K6P product link