Feature #579

Pair Button support

Added by Hammel about 1 year ago. Updated 7 months ago.

Status:ClosedStart date:28 Jul 2017
Priority:ImmediateDue date:
Assignee:Hammel% Done:

100%

Category:Software
Target version:Iron Man - 002 - MVP
Severity:04 - Low

Description

When pressed it toggles the state of pairing with IoT devices.
Should also show state (re: mode) via LEDs.

Associated revisions

Revision de2e733f
Added by Hammel about 1 year ago

RM #579: Initial import of gpio reader/writer utility.

Revision de2e733f
Added by Hammel about 1 year ago

RM #579: Initial import of gpio reader/writer utility.

Revision 37857306
Added by Hammel about 1 year ago

RM #579: Remove extraneous stdout message.

Revision 37857306
Added by Hammel about 1 year ago

RM #579: Remove extraneous stdout message.

Revision 8a4d06ad
Added by Hammel about 1 year ago

RM #579: Bring up AP after dhcp has been started on it when in dual-mode (AP + client).

Revision 8a4d06ad
Added by Hammel about 1 year ago

RM #579: Bring up AP after dhcp has been started on it when in dual-mode (AP + client).

Revision c0b2bdf2
Added by Hammel about 1 year ago

RM #579: Remove "source" line because the directory referenced doesn't exist and isn't used.

Revision c0b2bdf2
Added by Hammel about 1 year ago

RM #579: Remove "source" line because the directory referenced doesn't exist and isn't used.

Revision ba237a5e
Added by Hammel 7 months ago

RM #579: Use the correct name for the hostapd configuration when pairing.

Revision ba237a5e
Added by Hammel 7 months ago

RM #579: Use the correct name for the hostapd configuration when pairing.

Revision 6628f7a1
Added by Hammel 7 months ago

RM #579: Use gpio stamp file instead of querying the GPIO pins manually.

Revision 6628f7a1
Added by Hammel 7 months ago

RM #579: Use gpio stamp file instead of querying the GPIO pins manually.

Revision 9c78c7c9
Added by Hammel 7 months ago

RM #579: Don't source ironman.cfg since we no longer query gpio pins manually.

Revision 9c78c7c9
Added by Hammel 7 months ago

RM #579: Don't source ironman.cfg since we no longer query gpio pins manually.

Revision 698f359c
Added by Hammel 7 months ago

RM #579: Remove imnetconfig references in favor of letting imwww deal directly with pair stamp file.

Revision 698f359c
Added by Hammel 7 months ago

RM #579: Remove imnetconfig references in favor of letting imwww deal directly with pair stamp file.

History

#1 Updated by Hammel about 1 year ago

  • Project changed from Sensors to Monitor
  • Category deleted (Software)

#2 Updated by Hammel about 1 year ago

  • Category set to Software

#3 Updated by Hammel about 1 year ago

  • Status changed from New to In Progress
  • Priority changed from Normal to Immediate
  • % Done changed from 0 to 50
  • Severity changed from 03 - Medium to 04 - Low

There is now a utility, imgpio that will read and write to arbitrary GPIO pins using sysfs. This is sufficient to check if a button is pressed or to set/reset an LED if called from a script. It could also be called from a C program via system() or similar.

This utility is built into it's own opkg and must be included in the (TBD) new metabuild for IronMan.

This utility still needs to be tested against real hardware, re: a real push button and LEDs.

#4 Updated by Hammel 7 months ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

This is essentially implemented as a combination of the pair button hardware, the imgpio package that supports the pair button on boot and the imwww package that now includes both a PHP server for configuring the monitor and a REST server (written in nodejs w/restify) that supports both Jarvis voice command and pairing with the IoT devices.

These implementations are still buggy but the basic structure is now in place enough where this issue can be closed. Bugs in the various packages will be tracked separately.

Also available in: Atom PDF