mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-24 00:21:41 +02:00
2022-10-31 Fred Gleason <fredg@paravelsystems.com>
* Removed vestigal support for the 'Reload Deck List' catch protocol command. * Removed vestigal support for the 'Reload Event List' catch protocol command. * Removed vestigal support for the 'Reload Event List' catch protocol command. * Removed vestigal support for the 'Reload Time Offset' catch protocol command. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
e34bf232d2
commit
05ec302fc4
@ -23587,3 +23587,6 @@
|
|||||||
protocol command.
|
protocol command.
|
||||||
* Removed vestigal support for the 'Reload Time Offset' catch
|
* Removed vestigal support for the 'Reload Time Offset' catch
|
||||||
protocol command.
|
protocol command.
|
||||||
|
2022-10-31 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Removed vestigal support for the 'Heartbeat Pulse' catch
|
||||||
|
protocol command.
|
||||||
|
@ -66,41 +66,6 @@
|
|||||||
<para>
|
<para>
|
||||||
No authentication is required to execute these.
|
No authentication is required to execute these.
|
||||||
</para>
|
</para>
|
||||||
<sect2 xml:id="sect.unprivileged_commands.drop_connection">
|
|
||||||
<title>Drop Connection</title>
|
|
||||||
<para>
|
|
||||||
End the session and drop the TCP connection.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>DC!</userinput>
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
|
|
||||||
<sect2 xml:id="sect.unprivileged_commands.send_password">
|
|
||||||
<title>Send Password</title>
|
|
||||||
<para>
|
|
||||||
Send a password to the server for authentication.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>PW <replaceable>passwd</replaceable>!</userinput>
|
|
||||||
</para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term>
|
|
||||||
<replaceable>passwd</replaceable>
|
|
||||||
</term>
|
|
||||||
<listitem>
|
|
||||||
A password to be supplied before granting the client access.
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
<para>
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> will respond
|
|
||||||
with <computeroutput>PW +!</computeroutput> or
|
|
||||||
<computeroutput>PW -!</computeroutput>, indicating the success or
|
|
||||||
failure of the authentication.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1 xml:id="sect.privileged_commands">
|
<sect1 xml:id="sect.privileged_commands">
|
||||||
@ -109,157 +74,6 @@
|
|||||||
A connection must be authenticated before these can be executed.
|
A connection must be authenticated before these can be executed.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.deck_event_processed">
|
|
||||||
<title>Deck Event Processed</title>
|
|
||||||
<para>
|
|
||||||
Sent by RDCatchd whenever a deck event is processed.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>DE <replaceable>deck-num</replaceable>
|
|
||||||
<replaceable>event-num</replaceable>!</userinput>
|
|
||||||
</para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>deck-num</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The number of the deck originating the event. Record decks have
|
|
||||||
numbers in the range <computeroutput>1</computeroutput> through
|
|
||||||
<computeroutput>127</computeroutput>, while Play decks have
|
|
||||||
numbers in the range <computeroutput>128</computeroutput> through
|
|
||||||
<computeroutput>254</computeroutput>.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>event-num</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The new event state of the specified deck.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
<para>
|
|
||||||
See <xref linkend="sect.privileged_commands.request_deck_status" /> for
|
|
||||||
the list of possible deck event states.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
<sect2 xml:id="sect.privileged_commands.reload_deck_list">
|
|
||||||
<title>Reload Deck List</title>
|
|
||||||
<para>
|
|
||||||
Reload the record/play deck configuration.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>RD!</userinput>
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> will respond with
|
|
||||||
<computeroutput>RS +!</computeroutput>.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
<sect2 xml:id="sect.privileged_commands.reload_event_list">
|
|
||||||
<title>Reload Event List</title>
|
|
||||||
<para>
|
|
||||||
Reload the list of scheduled events.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>RS!</userinput>
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> will respond with
|
|
||||||
<computeroutput>RS +!</computeroutput>.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
<sect2 xml:id="sect.privileged_commands.request_deck_status">
|
|
||||||
<title>Request Deck Status</title>
|
|
||||||
<para>
|
|
||||||
Request the current deck status.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>RE <replaceable>deck-num</replaceable>!</userinput>
|
|
||||||
</para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>deck-num</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The number of the deck for which to return status.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
<para>
|
|
||||||
If <replaceable>deck-num</replaceable> is greater than zero,
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> will respond with
|
|
||||||
<computeroutput>RE <replaceable>deck-num</replaceable>
|
|
||||||
<replaceable>status</replaceable> <replaceable>id</replaceable>
|
|
||||||
<replaceable>cutname</replaceable>!</computeroutput>
|
|
||||||
</para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>deck-num</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
Channel number
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>status</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The current status of the deck. Possible values are:
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<table frame="all">
|
|
||||||
<title>Deck Status Codes</title>
|
|
||||||
<tgroup cols="2" align="left" colsep="1" rowsep="1">
|
|
||||||
<colspec colname="Code" colwidth="1.0*" />
|
|
||||||
<colspec colname="Meaning" colwidth="10.0*" />
|
|
||||||
<thead>
|
|
||||||
<row><entry>Code</entry><entry>Meaning</entry></row>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<row><entry>0</entry><entry>Offline</entry></row>
|
|
||||||
<row><entry>1</entry><entry>Idle</entry></row>
|
|
||||||
<row><entry>2</entry><entry>Ready</entry></row>
|
|
||||||
<row><entry>3</entry><entry>Active (playing or recording)</entry></row>
|
|
||||||
<row><entry>4</entry><entry>Waiting (for a GPI)</entry></row>
|
|
||||||
</tbody>
|
|
||||||
</tgroup>
|
|
||||||
</table>
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>event-id</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
ID number of current event (from RECORDINGS table)
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>cutname</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The cutname of the event (present only for
|
|
||||||
<replaceable>status</replaceable>==<computeroutput>3</computeroutput>).
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
<para>
|
|
||||||
If <replaceable>channel</replaceable> is zero,
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> will respond for
|
|
||||||
every event whose status is non-idle.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
An <computeroutput>RE</computeroutput> packet will also be sent
|
|
||||||
automatically to all active connections upon any change of deck status.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
<sect2 xml:id="sect.privileged_commands.enable_metering">
|
<sect2 xml:id="sect.privileged_commands.enable_metering">
|
||||||
<title>Enable Metering</title>
|
<title>Enable Metering</title>
|
||||||
<para>
|
<para>
|
||||||
@ -337,41 +151,6 @@
|
|||||||
</variablelist>
|
</variablelist>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.purge_event">
|
|
||||||
<title>Purge Event</title>
|
|
||||||
<para>
|
|
||||||
Report purging of one-shot event.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>PE <replaceable>event-num</replaceable>!</userinput>
|
|
||||||
</para>
|
|
||||||
<variablelist>
|
|
||||||
<varlistentry>
|
|
||||||
<term><replaceable>event-num</replaceable></term>
|
|
||||||
<listitem>
|
|
||||||
<para>
|
|
||||||
The number of the purged event.
|
|
||||||
</para>
|
|
||||||
</listitem>
|
|
||||||
</varlistentry>
|
|
||||||
</variablelist>
|
|
||||||
<para>
|
|
||||||
Received upon completion of a one-shot event by
|
|
||||||
<command>rdcatchd</command><manvolnum>8</manvolnum> to indicate that
|
|
||||||
the event has been purged.
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.reload_time_offset">
|
|
||||||
<title>Reload Time Offset</title>
|
|
||||||
<para>
|
|
||||||
Reload the time offset value from the database.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>RO!</userinput>
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.reload_heartbeat_configuration">
|
<sect2 xml:id="sect.privileged_commands.reload_heartbeat_configuration">
|
||||||
<title>Reload Heartbeat Configuration</title>
|
<title>Reload Heartbeat Configuration</title>
|
||||||
<para>
|
<para>
|
||||||
@ -382,16 +161,6 @@
|
|||||||
</para>
|
</para>
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.heartbeat_pulse">
|
|
||||||
<title>Heartbeat Pulse</title>
|
|
||||||
<para>
|
|
||||||
Heartbeat Pulse, for connection keep-alive.
|
|
||||||
</para>
|
|
||||||
<para>
|
|
||||||
<userinput>HB!</userinput>
|
|
||||||
</para>
|
|
||||||
</sect2>
|
|
||||||
|
|
||||||
<sect2 xml:id="sect.privileged_commands.input_monitor_state">
|
<sect2 xml:id="sect.privileged_commands.input_monitor_state">
|
||||||
<title>Input Monitor State</title>
|
<title>Input Monitor State</title>
|
||||||
<para>
|
<para>
|
||||||
|
@ -43,16 +43,6 @@ RDCatchConnect::RDCatchConnect(int serial,QObject *parent)
|
|||||||
cc_socket=new QTcpSocket(this);
|
cc_socket=new QTcpSocket(this);
|
||||||
connect(cc_socket,SIGNAL(connected()),this,SLOT(connectedData()));
|
connect(cc_socket,SIGNAL(connected()),this,SLOT(connectedData()));
|
||||||
connect(cc_socket,SIGNAL(readyRead()),this,SLOT(readyData()));
|
connect(cc_socket,SIGNAL(readyRead()),this,SLOT(readyData()));
|
||||||
|
|
||||||
//
|
|
||||||
// Start the heartbeat timer
|
|
||||||
//
|
|
||||||
cc_heartbeat_timer=new QTimer(this);
|
|
||||||
cc_heartbeat_timer->setSingleShot(true);
|
|
||||||
connect(cc_heartbeat_timer,SIGNAL(timeout()),
|
|
||||||
this,SLOT(heartbeatTimeoutData()));
|
|
||||||
cc_heartbeat_timer->start(CC_HEARTBEAT_INTERVAL);
|
|
||||||
cc_heartbeat_valid=true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -189,15 +179,6 @@ void RDCatchConnect::readyData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void RDCatchConnect::heartbeatTimeoutData()
|
|
||||||
{
|
|
||||||
if(cc_heartbeat_valid) {
|
|
||||||
emit heartbeatFailed(cc_serial);
|
|
||||||
cc_heartbeat_valid=false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void RDCatchConnect::SendCommand(QString cmd)
|
void RDCatchConnect::SendCommand(QString cmd)
|
||||||
{
|
{
|
||||||
// printf("SendCommand(%s)\n",(const char *)cmd);
|
// printf("SendCommand(%s)\n",(const char *)cmd);
|
||||||
@ -302,11 +283,12 @@ void RDCatchConnect::DispatchCommand()
|
|||||||
emit eventPurged(id);
|
emit eventPurged(id);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
/*
|
||||||
if(!strcmp(args[0],"HB")) { // Heartbeat
|
if(!strcmp(args[0],"HB")) { // Heartbeat
|
||||||
cc_heartbeat_timer->stop();
|
cc_heartbeat_timer->stop();
|
||||||
cc_heartbeat_timer->start(CC_HEARTBEAT_INTERVAL);
|
cc_heartbeat_timer->start(CC_HEARTBEAT_INTERVAL);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
if(!strcmp(args[0],"MN")) { // Monitor State
|
if(!strcmp(args[0],"MN")) { // Monitor State
|
||||||
if(sscanf(args[1],"%d",&deck)!=1) {
|
if(sscanf(args[1],"%d",&deck)!=1) {
|
||||||
return;
|
return;
|
||||||
|
@ -63,13 +63,10 @@ class RDCatchConnect : public QObject
|
|||||||
void meterLevel(int serial,int deck,int chan,int level);
|
void meterLevel(int serial,int deck,int chan,int level);
|
||||||
void eventUpdated(int id);
|
void eventUpdated(int id);
|
||||||
void eventPurged(int id);
|
void eventPurged(int id);
|
||||||
// void deckEventSent(int serial,int chan,int number);
|
|
||||||
void heartbeatFailed(int id);
|
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void connectedData();
|
void connectedData();
|
||||||
void readyData();
|
void readyData();
|
||||||
void heartbeatTimeoutData();
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void SendCommand(QString cmd);
|
void SendCommand(QString cmd);
|
||||||
@ -86,7 +83,6 @@ class RDCatchConnect : public QObject
|
|||||||
int cc_record_id[MAX_DECKS];
|
int cc_record_id[MAX_DECKS];
|
||||||
int cc_play_id[MAX_DECKS];
|
int cc_play_id[MAX_DECKS];
|
||||||
int cc_serial;
|
int cc_serial;
|
||||||
QTimer *cc_heartbeat_timer;
|
|
||||||
bool cc_heartbeat_valid;
|
bool cc_heartbeat_valid;
|
||||||
bool cc_monitor_state[MAX_DECKS];
|
bool cc_monitor_state[MAX_DECKS];
|
||||||
};
|
};
|
||||||
|
@ -378,13 +378,6 @@ MainObject::MainObject(QObject *parent)
|
|||||||
::signal(SIGTERM,SigHandler);
|
::signal(SIGTERM,SigHandler);
|
||||||
::signal(SIGCHLD,SigHandler);
|
::signal(SIGCHLD,SigHandler);
|
||||||
|
|
||||||
//
|
|
||||||
// Start Heartbeat Timer
|
|
||||||
//
|
|
||||||
timer=new QTimer(this);
|
|
||||||
connect(timer,SIGNAL(timeout()),this,SLOT(heartbeatData()));
|
|
||||||
timer->start(RDCATCHD_HEARTBEAT_INTERVAL);
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Meter Timer
|
// Meter Timer
|
||||||
//
|
//
|
||||||
@ -1273,12 +1266,6 @@ void MainObject::freeEventsData()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void MainObject::heartbeatData()
|
|
||||||
{
|
|
||||||
BroadcastCommand("HB!");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void MainObject::sysHeartbeatData()
|
void MainObject::sysHeartbeatData()
|
||||||
{
|
{
|
||||||
RDCart *cart=new RDCart(catch_heartbeat_cart);
|
RDCart *cart=new RDCart(catch_heartbeat_cart);
|
||||||
|
@ -109,7 +109,7 @@ class MainObject : public QObject
|
|||||||
void meterData();
|
void meterData();
|
||||||
void eventFinishedData(int id);
|
void eventFinishedData(int id);
|
||||||
void freeEventsData();
|
void freeEventsData();
|
||||||
void heartbeatData();
|
// void heartbeatData();
|
||||||
void sysHeartbeatData();
|
void sysHeartbeatData();
|
||||||
void updateXloadsData();
|
void updateXloadsData();
|
||||||
void startupCartData();
|
void startupCartData();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user