mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-14 16:49:17 +02:00
2015-02-27 Fred Gleason <fredg@paravelsystems.com>
* Renamed the 'SAS User Serial Interface' driver to 'SAS USI (3 digit)'.
This commit is contained in:
parent
34a5204124
commit
d1962d1c4f
@ -14797,3 +14797,6 @@
|
||||
2015-02-25 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Updated 'conf/rlm_padpoint.conf' to reflect new 'standard' port
|
||||
value.
|
||||
2015-02-27 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Renamed the 'SAS User Serial Interface' driver to
|
||||
'SAS USI (3 digit)'.
|
||||
|
@ -25,7 +25,7 @@ Quartz Electronics Type 1 Routing Protocol
|
||||
Serial Port Modem Control Lines
|
||||
Sierra Automated Systems 32000 Audio Router
|
||||
Sierra Automated Systems 64000 Audio Router
|
||||
Sierra Automated Systems Universal Serial Interface (USI)
|
||||
Sierra Automated Systems User Serial Interface (USI) (3 digit)
|
||||
Sine Systems ACU-1 (Prophet version)
|
||||
Software Authority Protocol
|
||||
StarGuide III Satellite Receiver
|
||||
@ -591,9 +591,9 @@ outputs as well as audio crosspoints.
|
||||
|
||||
|
||||
----------------------------------------------------------------------------
|
||||
SIERRA AUTOMATED SYSTEMS Universal Serial Interface (USI)
|
||||
SIERRA AUTOMATED SYSTEMS User Serial Interface (USI) (3 digit)
|
||||
|
||||
Driver Name: SAS User Serial Interface
|
||||
Driver Name: SAS USI (3 digit)
|
||||
|
||||
Supported RML Commands:
|
||||
Switch Take ('ST')
|
||||
|
@ -603,8 +603,8 @@ QString RDMatrix::typeString(RDMatrix::Type type)
|
||||
return QString("BroadcastTools ACS 8.2");
|
||||
break;
|
||||
|
||||
case RDMatrix::SasUsi:
|
||||
return QString("SAS User Serial Interface");
|
||||
case RDMatrix::SasUsi3Digit:
|
||||
return QString("SAS USI (3 digit)");
|
||||
break;
|
||||
|
||||
case RDMatrix::Bt16x2:
|
||||
|
@ -33,10 +33,10 @@ class RDMatrix
|
||||
enum PortType {TtyPort=0,TcpPort=1,NoPort=2};
|
||||
enum Type {LocalGpio=0,GenericGpo=1,GenericSerial=2,Sas32000=3,Sas64000=4,
|
||||
Unity4000=5,BtSs82=6,Bt10x1=7,Sas64000Gpi=8,Bt16x1=9,Bt8x2=10,
|
||||
BtAcs82=11,SasUsi=12,Bt16x2=13,BtSs124=14,LocalAudioAdapter=15,
|
||||
LogitekVguest=16,BtSs164=17,StarGuideIII=18,BtSs42=19,
|
||||
LiveWireLwrpAudio=20,Quartz1=21,BtSs44=22,BtSrc8III=23,BtSrc16=24,
|
||||
Harlond=25,Acu1p=26,LiveWireMcastGpio=27,Am16=28,
|
||||
BtAcs82=11,SasUsi3Digit=12,Bt16x2=13,BtSs124=14,
|
||||
LocalAudioAdapter=15,LogitekVguest=16,BtSs164=17,StarGuideIII=18,
|
||||
BtSs42=19,LiveWireLwrpAudio=20,Quartz1=21,BtSs44=22,BtSrc8III=23,
|
||||
BtSrc16=24,Harlond=25,Acu1p=26,LiveWireMcastGpio=27,Am16=28,
|
||||
LiveWireLwrpGpio=29,BtSentinel4Web=30,BtGpi16=31,ModemLines=32,
|
||||
SoftwareAuthority=33,LastType=34};
|
||||
enum Endpoint {Input=0,Output=1};
|
||||
|
@ -138,7 +138,7 @@ ListEndpoints::ListEndpoints(RDMatrix *matrix,RDMatrix::Endpoint endpoint,
|
||||
list_list_view->setColumnAlignment(3,Qt::AlignHCenter);
|
||||
break;
|
||||
|
||||
case RDMatrix::SasUsi:
|
||||
case RDMatrix::SasUsi3Digit:
|
||||
list_readonly=true;
|
||||
break;
|
||||
|
||||
|
@ -63,7 +63,7 @@ dist_ripcd_SOURCES = acu1p.cpp acu1p.h\
|
||||
sas32000.cpp sas32000.h\
|
||||
sas64000.cpp sas64000.h\
|
||||
sas64000gpi.cpp sas64000gpi.h\
|
||||
sasusi.cpp sasusi.h\
|
||||
sasusi3digit.cpp sasusi3digit.h\
|
||||
starguide3.cpp starguide3.h\
|
||||
starguide_feed.cpp starguide_feed.h\
|
||||
swauthority.cpp swauthority.h\
|
||||
@ -101,7 +101,7 @@ nodist_ripcd_SOURCES = moc_am16.cpp\
|
||||
moc_sas32000.cpp\
|
||||
moc_sas64000.cpp\
|
||||
moc_sas64000gpi.cpp\
|
||||
moc_sasusi.cpp\
|
||||
moc_sasusi3digit.cpp\
|
||||
moc_starguide3.cpp\
|
||||
moc_swauthority.cpp\
|
||||
moc_switcher.cpp\
|
||||
|
@ -52,7 +52,7 @@
|
||||
#include <sas32000.h>
|
||||
#include <sas64000.h>
|
||||
#include <sas64000gpi.h>
|
||||
#include <sasusi.h>
|
||||
#include <sasusi3digit.h>
|
||||
#include <starguide3.h>
|
||||
#include <swauthority.h>
|
||||
#include <unity4000.h>
|
||||
@ -175,8 +175,8 @@ bool MainObject::LoadSwitchDriver(int matrix_num)
|
||||
ripcd_switcher[matrix_num]=new Sas64000Gpi(matrix,this);
|
||||
break;
|
||||
|
||||
case RDMatrix::SasUsi:
|
||||
ripcd_switcher[matrix_num]=new SasUsi(matrix,this);
|
||||
case RDMatrix::SasUsi3Digit:
|
||||
ripcd_switcher[matrix_num]=new SasUsi3Digit(matrix,this);
|
||||
break;
|
||||
|
||||
case RDMatrix::SoftwareAuthority:
|
||||
|
@ -1,10 +1,8 @@
|
||||
// sasusi.cpp
|
||||
//
|
||||
// A Rivendell switcher driver for the SAS User Serial Interface Protocol
|
||||
// A Rivendell switcher driver for the SAS USI Protocol (3 digit)
|
||||
//
|
||||
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: sasusi.cpp,v 1.24 2011/12/28 18:59:19 cvs Exp $
|
||||
// (C) Copyright 2002-2015 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -23,9 +21,9 @@
|
||||
#include <stdlib.h>
|
||||
#include <rddb.h>
|
||||
#include <globals.h>
|
||||
#include <sasusi.h>
|
||||
#include <sasusi3digit.h>
|
||||
|
||||
SasUsi::SasUsi(RDMatrix *matrix,QObject *parent,const char *name)
|
||||
SasUsi3Digit::SasUsi3Digit(RDMatrix *matrix,QObject *parent,const char *name)
|
||||
: Switcher(matrix,parent,name)
|
||||
{
|
||||
QString sql;
|
||||
@ -104,37 +102,37 @@ SasUsi::SasUsi(RDMatrix *matrix,QObject *parent,const char *name)
|
||||
}
|
||||
|
||||
|
||||
RDMatrix::Type SasUsi::type()
|
||||
RDMatrix::Type SasUsi3Digit::type()
|
||||
{
|
||||
return RDMatrix::SasUsi;
|
||||
return RDMatrix::SasUsi3Digit;
|
||||
}
|
||||
|
||||
|
||||
unsigned SasUsi::gpiQuantity()
|
||||
unsigned SasUsi3Digit::gpiQuantity()
|
||||
{
|
||||
return sas_gpis;
|
||||
}
|
||||
|
||||
|
||||
unsigned SasUsi::gpoQuantity()
|
||||
unsigned SasUsi3Digit::gpoQuantity()
|
||||
{
|
||||
return sas_gpos;
|
||||
}
|
||||
|
||||
|
||||
bool SasUsi::primaryTtyActive()
|
||||
bool SasUsi3Digit::primaryTtyActive()
|
||||
{
|
||||
return sas_porttype==RDMatrix::TtyPort;
|
||||
}
|
||||
|
||||
|
||||
bool SasUsi::secondaryTtyActive()
|
||||
bool SasUsi3Digit::secondaryTtyActive()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::processCommand(RDMacro *cmd)
|
||||
void SasUsi3Digit::processCommand(RDMacro *cmd)
|
||||
{
|
||||
char str[256];
|
||||
char cmd_byte;
|
||||
@ -326,13 +324,13 @@ void SasUsi::processCommand(RDMacro *cmd)
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::ipConnect()
|
||||
void SasUsi3Digit::ipConnect()
|
||||
{
|
||||
sas_socket->connectToHost(sas_ipaddress.toString(),sas_ipport);
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::connectedData()
|
||||
void SasUsi3Digit::connectedData()
|
||||
{
|
||||
LogLine(RDConfig::LogInfo,QString().
|
||||
sprintf("Connection to SasUsi device at %s:%d established",
|
||||
@ -344,7 +342,7 @@ void SasUsi::connectedData()
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::connectionClosedData()
|
||||
void SasUsi3Digit::connectionClosedData()
|
||||
{
|
||||
LogLine(RDConfig::LogNotice,QString().
|
||||
sprintf("Connection to SasUsi device at %s:%d closed unexpectedly, attempting reconnect",
|
||||
@ -353,11 +351,11 @@ void SasUsi::connectionClosedData()
|
||||
if(sas_stop_cart>0) {
|
||||
ExecuteMacroCart(sas_stop_cart);
|
||||
}
|
||||
sas_reconnect_timer->start(SASUSI_RECONNECT_INTERVAL,true);
|
||||
sas_reconnect_timer->start(SASUSI3DIGIT_RECONNECT_INTERVAL,true);
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::readyReadData()
|
||||
void SasUsi3Digit::readyReadData()
|
||||
{
|
||||
char buffer[256];
|
||||
unsigned n;
|
||||
@ -371,7 +369,7 @@ void SasUsi::readyReadData()
|
||||
sas_ptr=0;
|
||||
}
|
||||
else {
|
||||
if(sas_ptr==SASUSI_MAX_LENGTH) { // Buffer overflow
|
||||
if(sas_ptr==SASUSI3DIGIT_MAX_LENGTH) { // Buffer overflow
|
||||
sas_ptr=0;
|
||||
}
|
||||
sas_buffer[sas_ptr++]=buffer[i];
|
||||
@ -381,7 +379,7 @@ void SasUsi::readyReadData()
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::errorData(int err)
|
||||
void SasUsi3Digit::errorData(int err)
|
||||
{
|
||||
switch((QSocket::Error)err) {
|
||||
case QSocket::ErrConnectionRefused:
|
||||
@ -389,7 +387,7 @@ void SasUsi::errorData(int err)
|
||||
"Connection to SasUsi device at %s:%d refused, attempting reconnect",
|
||||
(const char *)sas_ipaddress.toString(),
|
||||
sas_ipport));
|
||||
sas_reconnect_timer->start(SASUSI_RECONNECT_INTERVAL,true);
|
||||
sas_reconnect_timer->start(SASUSI3DIGIT_RECONNECT_INTERVAL,true);
|
||||
break;
|
||||
|
||||
case QSocket::ErrHostNotFound:
|
||||
@ -409,7 +407,7 @@ void SasUsi::errorData(int err)
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::SendCommand(char *str)
|
||||
void SasUsi3Digit::SendCommand(char *str)
|
||||
{
|
||||
LogLine(RDConfig::LogDebug,QString().sprintf("sending USI cmd: %s",(const char *)PrettifyCommand(str)));
|
||||
switch(sas_porttype) {
|
||||
@ -427,9 +425,9 @@ void SasUsi::SendCommand(char *str)
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::DispatchCommand()
|
||||
void SasUsi3Digit::DispatchCommand()
|
||||
{
|
||||
char buffer[SASUSI_MAX_LENGTH];
|
||||
char buffer[SASUSI3DIGIT_MAX_LENGTH];
|
||||
unsigned input;
|
||||
unsigned output;
|
||||
int line;
|
||||
@ -615,7 +613,7 @@ void SasUsi::DispatchCommand()
|
||||
}
|
||||
|
||||
|
||||
void SasUsi::ExecuteMacroCart(unsigned cartnum)
|
||||
void SasUsi3Digit::ExecuteMacroCart(unsigned cartnum)
|
||||
{
|
||||
RDMacro rml;
|
||||
rml.setRole(RDMacro::Cmd);
|
||||
@ -628,7 +626,7 @@ void SasUsi::ExecuteMacroCart(unsigned cartnum)
|
||||
}
|
||||
|
||||
|
||||
QString SasUsi::PrettifyCommand(const char *cmd) const
|
||||
QString SasUsi3Digit::PrettifyCommand(const char *cmd) const
|
||||
{
|
||||
QString ret;
|
||||
if(cmd[0]<26) {
|
@ -1,10 +1,8 @@
|
||||
// sasusi.h
|
||||
// sasusi3digit.h
|
||||
//
|
||||
// A Rivendell switcher driver for the SAS User Serial Interface Protocol
|
||||
// A Rivendell switcher driver for the SAS USI Protocol (3 digit)
|
||||
//
|
||||
// (C) Copyright 2002-2004 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// $Id: sasusi.h,v 1.16 2011/05/26 21:20:37 cvs Exp $
|
||||
// (C) Copyright 2002-2015 Fred Gleason <fredg@paravelsystems.com>
|
||||
//
|
||||
// This program is free software; you can redistribute it and/or modify
|
||||
// it under the terms of the GNU General Public License version 2 as
|
||||
@ -20,8 +18,8 @@
|
||||
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||
//
|
||||
|
||||
#ifndef SASUSI_H
|
||||
#define SASUSI_H
|
||||
#ifndef SASUSI3DIGIT_H
|
||||
#define SASUSI3DIGIT_H
|
||||
|
||||
#include <vector>
|
||||
|
||||
@ -36,14 +34,14 @@
|
||||
|
||||
#include <switcher.h>
|
||||
|
||||
#define SASUSI_RECONNECT_INTERVAL 10000
|
||||
#define SASUSI_MAX_LENGTH 256
|
||||
#define SASUSI3DIGIT_RECONNECT_INTERVAL 10000
|
||||
#define SASUSI3DIGIT_MAX_LENGTH 256
|
||||
|
||||
class SasUsi : public Switcher
|
||||
class SasUsi3Digit : public Switcher
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
SasUsi(RDMatrix *matrix,QObject *parent=0,const char *name=0);
|
||||
SasUsi3Digit(RDMatrix *matrix,QObject *parent=0,const char *name=0);
|
||||
RDMatrix::Type type();
|
||||
unsigned gpiQuantity();
|
||||
unsigned gpoQuantity();
|
||||
@ -65,7 +63,7 @@ class SasUsi : public Switcher
|
||||
QString PrettifyCommand(const char *cmd) const;
|
||||
RDTTYDevice *sas_device;
|
||||
QSocket *sas_socket;
|
||||
char sas_buffer[SASUSI_MAX_LENGTH];
|
||||
char sas_buffer[SASUSI3DIGIT_MAX_LENGTH];
|
||||
unsigned sas_ptr;
|
||||
QHostAddress sas_ipaddress;
|
||||
int sas_matrix;
|
||||
@ -84,4 +82,4 @@ class SasUsi : public Switcher
|
||||
};
|
||||
|
||||
|
||||
#endif // SASUSI_H
|
||||
#endif // SASUSI3DIGIT_H
|
Loading…
x
Reference in New Issue
Block a user