Update for webserver; cleanup in CMakeLists.txt
- Add oai header to typescript and html sources, add support to commands requiring two parameters, add more helpfiles - Fix help bug (html comments not removed from tooltips) - Fix backend build problem and 2 warnings - Correctly initialize variables in nr_phy_scope.c - Use add_subdirectory for websrv cmake build - correctly link to asn1_lte_rrc and asn1_nr_rrc - fix bug: correctly recognize npm packet - only configure targets if explicitly asked for by users - use add_subdirectory - Use add_subdirectory for telnet cmake build - Minor cleanup in build_oai - Move softscope build in dedicated CMakeLists, and comment out DEBUG_MAC_INTERFACE option (not found in code) - Make DEBUG_ASN1 a cmake only option ( no C macro) as it's not used as a C macro in the code, and develop align
This commit is contained in:
@@ -0,0 +1 @@
|
||||
add_subdirectory(PHY)
|
||||
@@ -0,0 +1,6 @@
|
||||
add_boolean_option(ENABLE_UESCOPE OFF "Whether to build the lte uescope" OFF)
|
||||
add_boolean_option(ENABLE_ENBSCOPE OFF "Whether to build the lte enbcope" OFF)
|
||||
add_boolean_option(ENABLE_NRSCOPE OFF "Whether to build the 5G scope" OFF)
|
||||
if(ENABLE_UESCOPE OR ENABLE_ENBSCOPE OR ENABLE_NRSCOPE)
|
||||
add_subdirectory(TOOLS)
|
||||
endif()
|
||||
@@ -0,0 +1,50 @@
|
||||
#/*
|
||||
# * Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
|
||||
# * contributor license agreements. See the NOTICE file distributed with
|
||||
# * this work for additional information regarding copyright ownership.
|
||||
# * The OpenAirInterface Software Alliance licenses this file to You under
|
||||
# * the OAI Public License, Version 1.1 (the "License"); you may not use this file
|
||||
# * except in compliance with the License.
|
||||
# * You may obtain a copy of the License at
|
||||
# *
|
||||
# * http://www.openairinterface.org/?page_id=698
|
||||
# *
|
||||
# * Unless required by applicable law or agreed to in writing, software
|
||||
# * distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# * See the License for the specific language governing permissions and
|
||||
# * limitations under the License.
|
||||
# *-------------------------------------------------------------------------------
|
||||
# * For more information about the OpenAirInterface (OAI) Software Alliance:
|
||||
# * contact@openairinterface.org
|
||||
# */
|
||||
#! \file openair1/PHY/TOOLS/CMakelists.txt
|
||||
#* \brief: build rules and checks for softscope shared libraries
|
||||
#* \author Francois TABURET
|
||||
#* \date 2023
|
||||
#* \version 1.0
|
||||
#* \company NOKIA BellLabs France
|
||||
#* \email: francois.taburet@nokia-bell-labs.com
|
||||
#* \note
|
||||
#* \warning
|
||||
#*/
|
||||
|
||||
include_directories ("/usr/include/X11")
|
||||
add_library(xforms_common OBJECT
|
||||
lte_phy_scope.c
|
||||
../../../executables/stats.c)
|
||||
target_link_libraries(xforms_common PRIVATE asn1_nr_rrc PRIVATE asn1_lte_rrc)
|
||||
|
||||
add_library(enbscope MODULE lte_enb_scope.c $<TARGET_OBJECTS:xforms_common>)
|
||||
target_link_libraries(enbscope PUBLIC forms PRIVATE asn1_nr_rrc PRIVATE asn1_lte_rrc)
|
||||
|
||||
add_library(uescope MODULE lte_ue_scope.c $<TARGET_OBJECTS:xforms_common>)
|
||||
target_link_libraries(uescope PUBLIC forms PRIVATE asn1_nr_rrc PRIVATE asn1_lte_rrc)
|
||||
|
||||
add_library(nrscope MODULE nr_phy_scope.c)
|
||||
target_link_libraries(nrscope PUBLIC forms PRIVATE asn1_nr_rrc PRIVATE asn1_lte_rrc)
|
||||
|
||||
# all libraries should be written to root build dir (default creates the same hierarchie under build as existing for sources)
|
||||
set_target_properties(enbscope uescope nrscope
|
||||
PROPERTIES LIBRARY_OUTPUT_DIRECTORY ../../..
|
||||
)
|
||||
@@ -531,7 +531,7 @@ static void puschLLR (OAIgraph_t *graph, scopeData_t *p, int nb_UEs) {
|
||||
p->gNB->pusch_vars[ue] &&
|
||||
p->gNB->pusch_vars[ue]->llr ) {
|
||||
int16_t *pusch_llr = (int16_t *)p->gNB->pusch_vars[ue]->llr;
|
||||
float *llr, *bit;
|
||||
float *llr=NULL, *bit=NULL;
|
||||
int nx = coded_bits_per_codeword;
|
||||
#ifdef WEBSRVSCOPE
|
||||
nx = websrv_cpllrbuff_tomsg(graph, pusch_llr, coded_bits_per_codeword, ue, 0, 0);
|
||||
@@ -562,7 +562,7 @@ static void puschIQ (OAIgraph_t *graph, scopeData_t *p, int nb_UEs) {
|
||||
p->gNB->pusch_vars[ue]->rxdataF_comp &&
|
||||
p->gNB->pusch_vars[ue]->rxdataF_comp[0] ) {
|
||||
scopeSample_t *pusch_comp = (scopeSample_t *)p->gNB->pusch_vars[ue]->rxdataF_comp[0];
|
||||
float *I, *Q;
|
||||
float *I=NULL, *Q=NULL;
|
||||
#ifdef WEBSRVSCOPE
|
||||
newsz = websrv_cpiqbuff_tomsg(graph, pusch_comp, sz, 0, 0);
|
||||
#else
|
||||
@@ -846,7 +846,7 @@ static void uePbchLLR (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_
|
||||
//const int antennas=data[pbchLlr]->colSz;
|
||||
// We take the first antenna only for now
|
||||
int16_t *llrs = (int16_t *) (data[pbchLlr]+1);
|
||||
float *llr_pbch, *bit_pbch;
|
||||
float *llr_pbch=NULL, *bit_pbch=NULL;
|
||||
int nx = sz;
|
||||
#ifdef WEBSRVSCOPE
|
||||
nx = websrv_cpllrbuff_tomsg(graph, llrs, sz, UE_id, 0, 0);
|
||||
@@ -868,7 +868,7 @@ static void uePbchIQ (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_U
|
||||
scopeSample_t *pbch_comp = (scopeSample_t *) (data[pbchRxdataF_comp]+1);
|
||||
const int sz=data[pbchRxdataF_comp]->lineSz;
|
||||
int newsz = sz;
|
||||
float *I, *Q;
|
||||
float *I=NULL, *Q=NULL;
|
||||
#ifdef WEBSRVSCOPE
|
||||
newsz = websrv_cpiqbuff_tomsg(graph, pbch_comp, sz, 0, 0);
|
||||
#else
|
||||
@@ -891,7 +891,7 @@ static void uePcchLLR (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_
|
||||
//int num_re = 4*273*12; // 12*frame_parms->N_RB_DL*num_pdcch_symbols
|
||||
//int Qm = 2;
|
||||
const int sz=data[pdcchLlr]->lineSz;
|
||||
float *llr, *bit;
|
||||
float *llr=NULL, *bit=NULL;
|
||||
int nx = sz;
|
||||
int16_t *pdcch_llr = (int16_t *)(data[pdcchLlr]+1);
|
||||
|
||||
@@ -915,7 +915,7 @@ static void uePcchIQ (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_U
|
||||
int newsz = sz;
|
||||
//const int antennas=data[pdcchRxdataF_comp]->colSz;
|
||||
// We take the first antenna only for now
|
||||
float *I, *Q;
|
||||
float *I=NULL, *Q=NULL;
|
||||
scopeSample_t *pdcch_comp = (scopeSample_t *) (data[pdcchRxdataF_comp]+1);
|
||||
#ifdef WEBSRVSCOPE
|
||||
newsz = websrv_cpiqbuff_tomsg(graph, pdcch_comp, sz, 0, 0);
|
||||
@@ -935,7 +935,7 @@ static void uePdschLLR (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR
|
||||
return;
|
||||
|
||||
const int sz = data[pdschLlr]->lineSz;
|
||||
float *llr, *bit;
|
||||
float *llr=NULL, *bit=NULL;
|
||||
int nx = sz;
|
||||
int16_t *pdsch_llr = (int16_t *)(data[pdschLlr]+1);
|
||||
|
||||
@@ -959,7 +959,7 @@ static void uePdschIQ (scopeGraphData_t **data, OAIgraph_t *graph, PHY_VARS_NR_
|
||||
|
||||
const int sz=data[pdschRxdataF_comp]->lineSz;
|
||||
int nz = sz;
|
||||
float *I, *Q;
|
||||
float *I=NULL, *Q=NULL;
|
||||
scopeSample_t *pdsch_comp = (scopeSample_t *) (data[pdschRxdataF_comp]+1);
|
||||
#ifdef WEBSRVSCOPE
|
||||
nz += websrv_cpiqbuff_tomsg(graph, pdsch_comp, sz, 0, 0);
|
||||
|
||||
@@ -54,7 +54,7 @@ int get_modchannel_index(char *buf, int debug, void *vdata, telnet_printfunc_t p
|
||||
int get_channel_params(char *buf, int debug, void *tdata, telnet_printfunc_t prnt);
|
||||
int get_currentchannels_type(char *buf, int debug, void *vdata, telnet_printfunc_t prnt);
|
||||
|
||||
#define HELP_WEBIF_MODIFCHAN_STRING "Current channel index? <chanidx>"
|
||||
#define HELP_WEBIF_MODIFCHAN_STRING "<channel index>"
|
||||
static telnetshell_cmddef_t channelmod_cmdarray[] = {
|
||||
{"help", "", channelmod_print_help, {NULL}, 0, NULL},
|
||||
{"show", "<predef,current>", channelmod_show_cmd, {NULL}, TELNETSRV_CMDFLAG_TELNETONLY, NULL},
|
||||
|
||||
Reference in New Issue
Block a user