OpenSprinkler / OpenSprinkler-App

A mobile interface for the OpenSprinkler irrigation device. Designed to allow manual control, program management (preview, add, edit, and delete), initiation of a run-once program, viewing graphical and tabulated representations of log data, viewing device status, adjusting rain delay, and changing of OpenSprinkler settings.
https://opensprinkler.com
GNU Affero General Public License v3.0
168 stars 91 forks source link

Help: Station attributes do not reload on reboot #102

Closed trbolexis closed 4 years ago

trbolexis commented 4 years ago

I'm modified the OS unified FW, and App to support 5 Master valves, and 10 fixed start times. Everything is working as expected when the OS is connected to power, and then configured for operation.

The problem I'm facing is that after a power cycle, the stations that have been assigned to master valve 3 or greater do not reload their configuration correctly.

To recreate the issue:

  1. Set station S07 attribute to use master valve 1, 2 & 3
  2. Submit the changes --- At this time, reviewing the station configuration, or running the station shows that the M1, M2 & M3 are selected, and the call for the valves works properly in actual operation ---
  3. Reboot the OS by either unplugging the device or rebooting via interface.
  4. Open station S07 configuration. -- Witness that only M1, and M2 master valves are selected. Running the station results in only M1, and M2 being called/used correctly.

At this time, I am under the impression that the OS is not saving the attributes properly (or at all), but I am not sure where to begin fixing this.

Due to the how OS operates, I am not sure if I have an App coding issue, or a firmware coding issue. Because everything works correctly when configured with no reboot I'm inclined to believe it is a firmware issue that I'm experiencing.

I am glad to share the work/coding I've done, I am just not sure how to fork it here on GIT correctly.

Any advice or help would be appreciated.

image

image