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

Simple install/maintenance with UI LEDS/pushbutton #3

Open
neilh10 opened this issue Nov 9, 2018 · 2 comments
Open

Simple install/maintenance with UI LEDS/pushbutton #3

neilh10 opened this issue Nov 9, 2018 · 2 comments
Labels
enhancement New feature or request

Comments

@neilh10
Copy link
Owner

neilh10 commented Nov 9, 2018

When installing a Mayfly/ModularSensors or making a maintenance visit to a geographical site, it would be good to have easy visibility on the locations status.

There are 2 LEDs - a red and green, and two potential push buttons for status requests.

For an installer, the stages of installation are likely to be

  • Physical install and power up
  • Sensors communicating
  • Wireless communications successful

For a maintenance visitor they are likely to require

  • Active feedback of working system
  • For problems, current power issue, either sensor issue, wireless issue,
  • The User button could be used to ask for non-intrusive status
  • The Reset button could be used to validate system operation as per the installation process.

The maintenance visitor is likely to only have limited capability

  • apply power (external battery)
  • check sensor cables and connections
  • possibly check wireless connections Mayfly to internent, but this can be difficult.
  • field replaceable Mayfly
  • if they bring a computer, they can potentially update the Mayfly software - but currently there is no capability to read Mayfly status
@neilh10 neilh10 added the enhancement New feature or request label Nov 9, 2018
@neilh10
Copy link
Owner Author

neilh10 commented Nov 9, 2018

As of Mayfly 1.1 there are also other LEDs
the Switched Power Out applied RED led
Network Bee Status - blue - SJ17 soldered
Bee Power - white - SJ16 soldered

The UI status on TWO LEDS could be something like this .. but needs to be simple, and checked with a real users to see how it flows.

  • Power up - Green Red flash - GrnOn/0.25 RedOn0.25sec - 4 times. As of 0.33.0 does this
  • (Time good, successful sync - all part of data anylsys)
  • Time Sync needed/fail? - 2 Red flashes RedOn/1sec OFF/1sec pause15secs
  • Reading sensors Start - Green fast flash (0.25secon on /off) - at least two green flashes, but longer if sensor sampling takes longer
    Bee Power LED (if enabled)
  • Modem Looking for signal - solid blue (Digi S6 and CAT-M1)
  • Modem Connecting - flashing blue (Digi S6 and CAT-M1)
  • Modem Connected and passing data - solid blue.
  • Good handshake MMW 201- data delivery - Green led on solid for at least two seconds
  • Failed to deliver data -Red led on for at least two seconds

For sensor priority in failure as follows

  • SD card Fail (not inserted) - 1red1grn flashes - RedOn1sec Off1sec GrnOn1sec pauseOff/5sec

  • Sensor Fail - 2 fast red Flashes RedOn/1sec OFF/1secs pause 15secs/OFF

  • WakeUp ack - 2 Grn flashes, Grn/1sec off/1sec (typically on UserButton push)

  • For power savings after 30minutes, no LEDs flash in closed box.

  • Sensor button short push initiates leds Wakeup (less than 2secs)

  • Sensor button long push initiates sampling. (greater than 2secs with Grn leds flash)

  • Sensor button push after initial start up - initaites reading.

@neilh10
Copy link
Owner Author

neilh10 commented Oct 13, 2022

TO implement this need to be able to have a FSM for SysStatus
This needs to have a timer event into it to support flashing LEDs.
This probably lives in the already massive Class Logger

so probably need to be initialised with RedLED, GreenLED
SysStatusEvt - the above events are mapped to inputs.
SysStatusTimerEvt - called every 200mS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant