Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LOFAR
Manage
Activity
Members
Labels
Plan
Issues
Wiki
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
RadioObservatory
LOFAR
Commits
1248f003
Commit
1248f003
authored
10 years ago
by
Pieter Donker
Browse files
Options
Downloads
Patches
Plain Diff
Task #5910: add check for Aartfaac station in HardwareMonitor
parent
367c6132
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.cc
+21
-3
21 additions, 3 deletions
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.cc
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.h
+6
-5
6 additions, 5 deletions
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.h
with
27 additions
and
8 deletions
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.cc
+
21
−
3
View file @
1248f003
...
...
@@ -297,6 +297,7 @@ GCFEvent::TResult RSPMonitor::askConfiguration(GCFEvent& event,
itsNrHBAs
=
RSconf
.
getInt
(
"RS.N_HBAS"
,
0
);
itsNrLBAs
=
RSconf
.
getInt
(
"RS.N_LBAS"
,
0
);
itsHasSplitters
=
RSconf
.
getBool
(
"RS.HBA_SPLIT"
,
false
);
itsHasAartfaac
=
RSconf
.
getBool
(
"RS.AARTFAAC"
,
false
);
// inform user
LOG_INFO
(
formatString
(
"nr RCUs = %d"
,
ack
.
n_rcus
));
...
...
@@ -307,6 +308,7 @@ GCFEvent::TResult RSPMonitor::askConfiguration(GCFEvent& event,
LOG_INFO
(
formatString
(
"nr HBAs = %d"
,
itsNrHBAs
));
LOG_INFO_STR
(
"RSPmask = "
<<
itsRSPmask
);
LOG_INFO
(
formatString
(
"has splitters= %s"
,
(
itsHasSplitters
?
"yes"
:
"no"
)));
LOG_INFO
(
formatString
(
"has aartfaac = %s"
,
(
itsHasAartfaac
?
"yes"
:
"no"
)));
// do some checks
if
(
itsNrRSPboards
!=
(
uint32
)
ack
.
max_rspboards
)
{
...
...
@@ -1248,7 +1250,12 @@ GCFEvent::TResult RSPMonitor::askDatastream(GCFEvent& event, GCFPortInterface& p
case
F_TIMER
:
LOG_ERROR_STR
(
"RSP:Timeout on getting the datastream information, trying other information"
);
itsOwnPropertySet
->
setValue
(
PN_FSM_ERROR
,
GCFPVString
(
"RSP:getdatastream timeout"
));
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
if
(
itsHasAartfaac
)
{
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
}
else
{
TRAN
(
RSPMonitor
::
waitForNextCycle
);
// go to next state.
}
break
;
case
RSP_GETDATASTREAMACK
:
{
...
...
@@ -1257,7 +1264,12 @@ GCFEvent::TResult RSPMonitor::askDatastream(GCFEvent& event, GCFPortInterface& p
if
(
ack
.
status
!=
RSP_SUCCESS
)
{
LOG_ERROR
(
"RSP:Failed to get the datastream information. Trying other information"
);
itsOwnPropertySet
->
setValue
(
PN_FSM_ERROR
,
GCFPVString
(
"RSP:getdatastream error"
));
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
if
(
itsHasAartfaac
)
{
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
}
else
{
TRAN
(
RSPMonitor
::
waitForNextCycle
);
// go to next state.
}
break
;
}
...
...
@@ -1268,7 +1280,12 @@ GCFEvent::TResult RSPMonitor::askDatastream(GCFEvent& event, GCFPortInterface& p
LOG_DEBUG
(
"Updated datastream information, waiting for next cycle"
);
// itsOwnPropertySet->setValue(PN_HWM_RSP_ERROR,GCFPVString(""));
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
if
(
itsHasAartfaac
)
{
TRAN
(
RSPMonitor
::
askAartfaacState
);
// go to next state.
}
else
{
TRAN
(
RSPMonitor
::
waitForNextCycle
);
// go to next state.
}
}
break
;
...
...
@@ -1295,6 +1312,7 @@ GCFEvent::TResult RSPMonitor::askDatastream(GCFEvent& event, GCFPortInterface& p
return
(
status
);
}
//
// askAartfaacState(event, port)
//
...
...
This diff is collapsed.
Click to expand it.
MAC/APL/StationCU/src/HardwareMonitor/RSPMonitor.h
+
6
−
5
View file @
1248f003
...
...
@@ -106,17 +106,18 @@ private:
vector
<
RTDBPropertySet
*>
itsSubracks
;
vector
<
RTDBPropertySet
*>
itsRSPs
;
vector
<
RTDBPropertySet
*>
itsRCUs
;
RTDBPropertySet
*
itsStationInfo
;
RTDBPropertySet
*
itsStationInfo
;
RTDBPropertySet
*
itsAartfaacInfo
;
blitz
::
Array
<
uint
,
1
>
itsRCUstates
;
// actual status of the RCUs
blitz
::
Array
<
bool
,
2
>
itsRCUInputStates
;
// enable state of the three RCU inputs
int
itsRCUquery
;
// ID of the PVSS query
AntennaMapper
*
itsAntMapper
;
bool
itsHasSplitters
;
// from RemoteStation.conf
int
itsRCUquery
;
// ID of the PVSS query
AntennaMapper
*
itsAntMapper
;
bool
itsHasSplitters
;
// from RemoteStation.conf
bool
itsHasAartfaac
;
// from RemoteStation.conf
bitset
<
MAX_RSPBOARDS
>
itsSplitters
;
// on or off.
bitset
<
MAX_RSPBOARDS
>
itsRSPmask
;
// present in station or not
bitset
<
MAX_RCUS
>
itsRCUmask
;
// present in station or not
bitset
<
MAX_RCUS
>
itsRCUmask
;
// present in station or not
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment