Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,7 @@ metric format for the CRORC and the CRU is different, as different parameters ar
| `"pciAddress"` | - | string |
| `"status"` | 0/1 (DOWN/UP) | int |
| `"opticalPower"` | - | double |
| `"orbitSor"` | - | int |

| Tag key | Value |
| --------------------- | --------------------- |
Expand Down
5 changes: 5 additions & 0 deletions doc/releaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,8 @@ This file describes the main feature changes for released versions of ReadoutCar
- Added some counters for roc-status:
- link (with --monitoring option only): pktProcessed, pktErrorProtocol, pktErrorCheck1, pktErrorCheck2, pktErrorOversize, orbitSor (including for UL link 15)
- onu (with --onu option, all output modes, including --monitoring): glitchCounter

## v0.44.0 - 02/06/2023
- Added some counters for roc-status:
- link (with --monitoring option only): orbitSOR for CRORC
- Updated list of firmwares for CRORC
1 change: 1 addition & 0 deletions src/CommandLineUtilities/ProgramStatus.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class ProgramStatus : public Program
.addValue(card.pciAddress.toString(), "pciAddress")
.addValue(link.status, "status")
.addValue(opticalPower, "opticalPower")
.addValue((uint64_t)link.orbitSor, "orbitSor")
.addTag(tags::Key::SerialId, card.serialId.getSerial())
.addTag(tags::Key::CRORC, card.sequenceId)
.addTag(tags::Key::ID, id)
Expand Down
1 change: 1 addition & 0 deletions src/Crorc/Common.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ enum LinkStatus {
struct Link {
LinkStatus status = LinkStatus::Down;
float opticalPower = 0.0;
uint32_t orbitSor = 0;
};

struct ReportInfo {
Expand Down
1 change: 1 addition & 0 deletions src/Crorc/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@ static constexpr Register SERIAL_NUMBER(0x000000FC);

static constexpr Register ACQ_RATE(0x00000050);
static constexpr Register PKTS_RECEIVED(0x00000054);
static constexpr Register ORBIT_SOR(0x00000060);

} // namespace Registers
} //namespace Crorc
Expand Down
6 changes: 6 additions & 0 deletions src/Crorc/CrorcBar.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ Crorc::ReportInfo CrorcBar::report(bool forConfig)
}

getOpticalPowers(linkMap);

for (auto& el : linkMap) {
auto& link = el.second;
link.orbitSor = readRegister(Crorc::Registers::ORBIT_SOR.index);
}

Crorc::ReportInfo reportInfo = {
linkMap,
getCrorcId(),
Expand Down
2 changes: 2 additions & 0 deletions src/FirmwareChecker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ FirmwareChecker::FirmwareChecker() : mCompatibleFirmwareList({
{ "221ff280", "v2.10.0" },
{ "cfa0bc9c", "2.10.1" },
{ "2d4c9028", "2.11.0" },
{ "c7ff5689", "2.12.0" },
{ "ac9dd573", "2.12.1" },
})

// second list for older firmware
Expand Down
2 changes: 1 addition & 1 deletion src/ReadoutCardVersion.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

#include "ReadoutCard/Version.h"

#define O2_READOUTCARD_VERSION "0.43.0"
#define O2_READOUTCARD_VERSION "0.44.0"

namespace o2
{
Expand Down