2014-10-07 Fred Gleason <fredg@paravelsystems.com>

* Added a 'GPIO_EVENTS' table to the database.
	* Incremented the database version to 240.
	* Implemented GPIO event logging in 'ripcd/local_macros.cpp' and
	'ripcd/ripcd.h'.
	* Added an 'Events Log' area to RDGpiMon(1) in
	'utils/rdgpimon/rdgpimon.cpp' and 'utils/rdgpimon/rdgpimon.h'.
	* Added code in rdmaint(1) to purge logged GPIO events in
	'utils/rdmaint/rdmaint.cpp' and 'utils/rdmaint/rdmaint.h'.
This commit is contained in:
Fred Gleason
2014-10-07 19:08:14 -04:00
parent d244ef75af
commit 4189ce7bb1
18 changed files with 536 additions and 26 deletions

View File

@@ -41,6 +41,7 @@ EXTRA_DIST = audio_perms.txt\
encoders.txt\
extended_panel_names.txt\
feed_perms.txt\
gpio_events.txt\
gpis.txt\
gpos.txt\
groups.txt\

View File

@@ -0,0 +1,14 @@
GPIO_EVENTS Table Layout for Rivendell
The GPIO_EVENTS table holds data concerning past GPIO events processed
by the system.
FIELD NAME TYPE REMARKS
------------------------------------------------------------------
ID int(10) unsigned Primary key, auto increment
STATION_NAME char(64) From STATIONS.NAME
MATRIX int(10) unsigned From MATRICES.MATRIX
NUMBER int(11)
TYPE int(11) 0 = GPI, 1 = GPO
EDGE int(11) 1 = Rising, 0 = Falling
EVENT_DATETIME datetime