Skip to content

bensherlock/micropython-usmart-gateway-application

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

micropython-usmart-gateway-application

USMART Gateway Node Application

Top level application for the gateway node using PYBD and the expansion PCB.

Everything below this level, modules and the mainloop can be updated OTA in the field.

Usage

Copy the contents of main/ to the root directory of the PYBD USB MSD.

Create a wifi_cfg.json file using the template as an example and populate with appropriate SSID and PASSWORD values. Note that .gitignore is set to ignore this config file in this repository.

On POR (Power On Reset) the program will attempt to connect to the wifi and then check GitHub for the latest release versions of the modules (ota_updater etc) and then download them before rebooting the device. After running you should now see these modules updated.

For information on the OTA Updater including how to use it in an example application see github.com/bensherlock/micropython-ota-updater.

Modules

This application will OTA update modules from the following repositories:

Structure

----------------------------------------------------------------         
    gateway-application                 not ota updateable
----|-----------------------------------------------------------
    |-- ota_updater                     ota updateable
    |-- mainloop
        |-- uac_network
            |-- pybd_expansion
            |-- uac_modem 
            |-- uac_localisation
            |-- sleep_manager
            |-- sensor_payload
----------------------------------------------------------------