Commit 80638154 authored by LorenzoMonti's avatar LorenzoMonti
Browse files

implement SRTWBandReceiverImpl

parent 55dd47c4
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -328,6 +328,7 @@ CSocket::OperationResult CSocket::getSockOption(CError& Err,int Opt,void *OptVal
int CSocket::Send(CError& Err,const void *Buff,WORD BuffLen,WORD Port,CString *Addr)
{
	int Res;

	struct sockaddr_in their_addr;
	if (!Err.isNoError()) return FAIL;
	if (getStatus()==NOTCREATED) {
@@ -378,6 +379,7 @@ int CSocket::Receive(CError& Err,void *Buff,WORD BuffLen,WORD* Port,CString* Add
{
	int Res,addr_len;
	struct sockaddr_in their_addr;

	if (!Err.isNoError()) return FAIL;
	if (getStatus()==NOTCREATED) {
		_SET_ERROR(Err,CError::SocketType,CError::SocketNCreated,"CSocket::Receive()");
+1 −1
Original line number Diff line number Diff line
@@ -1517,7 +1517,7 @@ void CCommandLine::onTimeout(WORD EventMask)

// private methods

IRA::CSocket::OperationResult CCommandLine::sendBuffer(char *Msg,WORD Len)
int CCommandLine::sendBuffer(char *Msg,WORD Len)
{
	int NWrite;
	int BytesSent;
+34 −24
Original line number Diff line number Diff line
@@ -11,8 +11,6 @@
    xmlns:baci="urn:schemas-cosylab-com:BACI:1.0"
    xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    actionThreadStackSize="2048"
    monitoringThreadStackSize="4096"
    WLOAddress="127.0.0.1"
    WLOPort="12703"
    WSwitchMatrixAddress="127.0.0.1"
@@ -20,6 +18,7 @@
    WCALAddress="127.0.0.1"
    WCALPort="13100"
    ControlSocketResponseTime="1000000"
    WatchDogThreadPeriod="10000000"
    WatchDogResponseTime="10000000"
    WatchDogSleepTime="10000000"
    RepetitionCacheTime="7000000"
@@ -27,20 +26,31 @@
    ReceiverName="SRTWBand"
>

    <WLOAddress description="IP Address of Local Oscillator" />
    <WLOPort description="Port of Local Oscillator" />

    <WSwitchMatrixAddress description="IP Address of Switch Matrix" />
    <SwitchMatrixPort description="Port of Switch Matrix" />

    <WCALAddress description="IP Address of Solar Attenuator" />
    <WCALPort description="Port of Solar Attenuator" />

    <ControlSocketResponseTime description="This time is the maximum allowed time to the control socket to respond" />
    <WatchDogResponseTime description="Overall status of the receiver"/>
    <WatchDogSleepTime description="Overall status of the receiver"/>
    <RepetitionCacheTime description="Overall status of the receiver"/>
    <RepetitionExpireTime description="Overall status of the receiver"/>
    <receiverName description="ReceiverName"/>

        <LO description="Sequence of local oscillator values for each IF chain" />
        <feeds description="Number of feeds of the receiver" />
        <IFs description="Number of Intermediate Frequencies chains coming from each feed" />
        <polarization description="Sequence of values that identifies the polarization of each IF chains" />
        <initialFrequency description="Sequence of the start frequencies for each IF chain (MHz)" 
                        units="MHz"
                        format="%6.2f"
        />
        <bandWidth description="Sequence of the band width values for each IF chain (MHz)" 
                units="MHz"
                format="%6.2f"
        />
        <mode description="Mnemonic code that defines a special working mode of the receiver (MHz)" />
        <vacuum description="measure of the vacuum"
                alarm_high_on="5e-3"
                default_value="5e-7"
                alarm_high_off="5e-6"
                alarm_timer_trig="0"
                alarm_fault_family="BACIProperty"
                alarm_fault_member="SRTWBandReceiver"
                alarm_level="0"
                default_timer_trig="10"
                min_timer_trig="1"
                min_delta_trig="1e-7"
                units="mBar"
                format="%e"
        />
</SRTWBandReceiver>
 No newline at end of file
+17 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- 
 *  Marco Buttu <mbuttu@oa-cagliari.inaf.it>
-->
<Component 
    xmlns="urn:schemas-cosylab-com:Component:1.0" 
    xmlns:baci="urn:schemas-cosylab-com:BACI:1.0"
    xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              
    Name="SRTWBandReceiver"    
    Code="SRTWBandReceiverImpl"
    ImplLang="cpp"
    Type="IDL:alma/Receivers/SRTWBandReceiver:1.0"
    Container="SRTWBandReceiverContainer"
	Default="true"
/>
+35 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="UTF-8"?>
<!-- 
 *  Author Infos
 *  ============
 *  Name:         Andrea Orlati
-->
<Container xmlns="urn:schemas-cosylab-com:Container:1.0"
           xmlns:cdb="urn:schemas-cosylab-com:CDB:1.0" 
           xmlns:baci="urn:schemas-cosylab-com:BACI:1.0" 
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
           xmlns:log="urn:schemas-cosylab-com:LoggingConfig:1.0" 
           ImplLang="cpp"
           Timeout="30.0"
           UseIFR="true"
           ManagerRetry="10"
           Recovery="false">

    <Autoload>
        <cdb:e string="baci" />
    </Autoload>

    <LoggingConfig 
		centralizedLogger="Log"
		minLogLevel="5"
		minLogLevelLocal="5"
		dispatchPacketSize="0"
		immediateDispatchLevel="8"
		flushPeriodSeconds="1"
	>
    </LoggingConfig>

</Container>


Loading