Skip to content

Conversation

pmelange
Copy link
Contributor

Description

Adds support for a button (i.e. reset) controlled by a DigitalOutput. Support for labgrid-client, similar to power, is also included. Methods are press, release, press_for, and get. With press_for a time period can be set.

This feature is needed for devices which need to have the reset button manipulated in order to do any of the following:

  • reset the configuration
  • enter into uboot
  • start in tftpboot/bootp mode

Devices under test which require the reset button include at least

  • mikrotik RB750GR3
  • mikrotik SXTsq 5 AC
  • Cudy WR3000

Checklist

  • Documentation for the feature
  • Tests for the feature
  • The arguments and description in doc/configuration.rst have been updated
  • Add a section on how to use the feature to doc/usage.rst
  • PR has been tested

A button can be used to simulate pressing a physical button on a device. For
example a DigitalOutputButtonDriver can be used when a reset button is
connected via a relay to a DigitalOutput.  In addition there are the
ManualButtonDriver and ExternalButtonDriver drivers analogous to the
ManualPowerDriver and ExternalPowerDriver drivers.

Operations on a button include "press", "release", "press_for", and "get".

Signed-off-by: Perry Melange <[email protected]>
Add support for the button protocol for SysfsGPIO to labgrid-client

Signed-off-by: Perry Melange <[email protected]>
Add documentation for ManualButtonDriver, ExternalButtonDriver,
DigitalOutputButtonDriver.

Signed-off-by: Perry Melange <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant