Agora
1.2.0
Agora project
|
Go to the documentation of this file.
5 #ifndef AGORA_RECORDER_WORKER_HDF5_H_
6 #define AGORA_RECORDER_WORKER_HDF5_H_
19 size_t num_antennas,
size_t record_interval,
35 size_t dataset_index);
46 std::vector<std::pair<std::string, std::array<hsize_t, kDsDimsNum>>>
size_t NumPilotSyms() const
Definition: framestats.cc:91
size_t GetDLSymbolIdx(size_t symbol_number) const
Definition: framestats.cc:152
static std::vector< std::complex< float > > GetPilotScValue(size_t fft_size, size_t data_sc_num, size_t pilot_sc_offset, size_t pilot_sc_spacing)
Definition: comms-lib.cc:369
size_t NumDLCalSyms() const
Definition: framestats.cc:79
const std::string & FrameIdentifier() const
Definition: framestats.h:70
uint32_t frame_id_
Definition: message.h:168
size_t UeAntNum() const
Definition: config.h:41
double Freq() const
Definition: config.h:57
void Init() final
Definition: recorder_worker_hdf5.cc:47
bool IsRecCalEnabled() const
Definition: framestats.cc:97
size_t SampsPerSymbol() const
Definition: config.h:234
auto printf(const S &fmt, const T &... args) -> int
Definition: printf.h:631
Agora project version configuration file.
double Rate() const
Definition: config.h:58
const std::vector< std::string > & RadioId() const
Definition: config.h:356
size_t NumChannels() const
Definition: config.h:98
size_t NumBeaconSyms() const
Definition: framestats.cc:87
size_t OfdmTxZeroPrefix() const
Definition: config.h:211
Definition: recorder_worker.h:18
double ClientTxGainA(size_t id) const
Definition: config.h:70
static std::vector< size_t > GetPilotScIdx(size_t fft_size, size_t data_sc_num, size_t pilot_sc_offset, size_t pilot_sc_spacing)
Definition: comms-lib.cc:390
size_t max_frame_number_
Definition: recorder_worker_hdf5.h:45
static constexpr bool kDebugPrint
Definition: recorder_worker_hdf5.cc:19
Direction
Definition: symbols.h:39
size_t OfdmTxZeroPostfix() const
Definition: config.h:212
const std::string & GetAgoraProjectVersion()
Definition: version_config.h:10
RecorderWorkerHDF5(const Config *in_cfg, size_t antenna_offset, size_t num_antennas, size_t record_interval, Direction rx_direction)
Definition: recorder_worker_hdf5.cc:29
static constexpr ssize_t kFixedDimensions
Definition: recorder_worker_hdf5.cc:21
size_t CpLen() const
Definition: config.h:46
const std::vector< std::string > & HubId() const
Definition: config.h:359
static std::vector< size_t > GetDataSc(size_t fft_size, size_t data_sc_num, size_t pilot_sc_offset, size_t pilot_sc_spacing)
Definition: comms-lib.cc:325
const std::array< hsize_t, kDsDimsNum > data_chunk_dims_
Definition: recorder_worker_hdf5.h:48
short data_[]
Definition: message.h:173
const std::vector< std::string > & UeRadioId() const
Definition: config.h:362
Recorder worker interface factory.
fft_size
Definition: inspect_agora_results.m:19
size_t GetULSymbolIdx(size_t symbol_number) const
Definition: framestats.cc:156
size_t BsAntNum() const
Definition: config.h:35
uint32_t ant_id_
Definition: message.h:171
static constexpr size_t kUplinkDatasetIndex
Definition: recorder_worker_hdf5.cc:27
static constexpr size_t kDownlinkDatasetIndex
Definition: recorder_worker_hdf5.cc:25
double RxGainB() const
Definition: config.h:67
#define AGORA_LOG_ERROR(...)
Definition: logger.h:39
Definition: hdf5_lib.cc:17
size_t num_antennas_
Definition: recorder_worker_hdf5.h:40
const FrameStats & Frame() const
Definition: config.h:340
#define AGORA_LOG_TRACE(...)
Definition: logger.h:92
size_t antenna_offset_
Definition: recorder_worker_hdf5.h:39
const nlohmann::json & MCSParams(Direction dir) const
Definition: config.h:288
~RecorderWorkerHDF5() override
size_t OfdmDataNum() const
Definition: config.h:47
const std::string & TraceFilename() const
Definition: config.h:566
uint32_t cell_id_
Definition: message.h:170
const std::vector< std::string > & UlTxFreqDataFiles(void) const
Definition: config.h:568
static constexpr size_t kPilotDatasetIndex
Definition: recorder_worker_hdf5.cc:26
size_t ClientUlPilotSymbols() const
Definition: framestats.h:73
Definition: recorder_worker_hdf5.h:16
for i
Definition: generate_data.m:107
size_t OfdmCaNum() const
Definition: config.h:45
Plot Rx waveform for u
Definition: inspect_single_frame.m:108
string_t dump(const int indent=-1, const char indent_char=' ', const bool ensure_ascii=false, const error_handler_t error_handler=error_handler_t::strict) const
serialization
Definition: json.hpp:20228
Communications Library: a) Generate pilot/preamble sequences b) OFDM modulation.
size_t OfdmPilotSpacing() const
Definition: config.h:51
SPDLOG_INLINE std::tm localtime(const std::time_t &time_tt) SPDLOG_NOEXCEPT
Definition: os-inl.h:84
size_t NumAntennas() const final
Definition: recorder_worker_hdf5.h:27
double ClientTxGainB(size_t id) const
Definition: config.h:76
Definition: message.h:164
uint32_t symbol_id_
Definition: message.h:169
end start
Definition: inspect_agora_results.m:95
size_t FramesToTest() const
Definition: config.h:309
Direction rx_direction_
Definition: recorder_worker_hdf5.h:42
a class to store JSON values
Definition: json.hpp:3367
const std::string & ConfigFilename() const
Definition: config.h:565
const Config * cfg_
Definition: recorder_worker_hdf5.h:37
size_t OfdmDataStart() const
Definition: config.h:48
size_t NumULCalSyms() const
Definition: framestats.cc:81
size_t ClientDlPilotSymbols() const
Definition: framestats.h:76
size_t NumDLSyms() const
Definition: framestats.cc:83
size_t GetPilotSymbolIdx(size_t symbol_number) const
Definition: framestats.cc:160
int Record(const Packet *pkt) final
Definition: recorder_worker_hdf5.cc:399
static constexpr size_t kBeaconDatasetIndex
Definition: recorder_worker_hdf5.cc:24
SymbolType GetSymbolType(size_t symbol_id) const
Return the symbol type of this symbol in this frame.
Definition: config.cc:1557
size_t GetBeaconSymbolIdx(size_t symbol_number) const
Definition: framestats.cc:148
static constexpr size_t kFrameInc
Definition: recorder_worker_hdf5.cc:20
size_t NumULSyms() const
Definition: framestats.cc:85
std::vector< std::pair< std::string, std::array< hsize_t, kDsDimsNum > > > datasets_
Definition: recorder_worker_hdf5.h:47
bool Beamsweep() const
Definition: config.h:105
double ClientRxGainB(size_t id) const
Definition: config.h:79
size_t NumUeChannels() const
Definition: config.h:99
#define AGORA_LOG_INFO(...)
Definition: logger.h:62
void WriteDatasetValue(const Packet *pkt, size_t symbol_index, size_t dataset_index)
Definition: recorder_worker_hdf5.cc:376
static void RtAssert(bool condition, const char *throw_str)
Definition: utils.h:104
std::string Modulation(Direction dir) const
Definition: config.h:243
size_t NumCells() const
Definition: config.h:94
size_t AntennaOffset() const final
Definition: recorder_worker_hdf5.h:28
double ClientRxGainA(size_t id) const
Definition: config.h:73
double RxGainA() const
Definition: config.h:65
static const std::string kHdf5Group
Definition: recorder_worker_hdf5.cc:22
double TxGainB() const
Definition: config.h:66
size_t BeaconAnt() const
Definition: config.h:102
const std::vector< std::complex< float > > & CommonPilot() const
Definition: config.h:353
size_t OfdmDataStop() const
Definition: config.h:50
size_t NumTotalSyms() const
Definition: framestats.cc:93
double TxGainA() const
Definition: config.h:64
std::unique_ptr< Hdf5Lib > hdf5_
Definition: recorder_worker_hdf5.h:44
void Finalize() final
Definition: recorder_worker_hdf5.cc:374
size_t interval_
Definition: recorder_worker_hdf5.h:41