Commit ebc8d95d authored by Andrew Burger's avatar Andrew Burger

Base skeleton and comments of where socket needs to be implemented

parent 362da7c9
...@@ -203,9 +203,9 @@ eNBs = ...@@ -203,9 +203,9 @@ eNBs =
MACRLCs = ( MACRLCs = (
{ {
num_cc = 1; num_cc = 1;
local_s_if_name = "ens3"; local_s_if_name = "lo";
remote_s_address = "CI_UE_IP_ADDR"; remote_s_address = "127.0.0.1";
local_s_address = "CI_ENB_IP_ADDR"; local_s_address = "127.0.0.1";
local_s_portc = 50001; local_s_portc = 50001;
remote_s_portc = 50000; remote_s_portc = 50000;
local_s_portd = 50011; local_s_portd = 50011;
......
...@@ -20,9 +20,9 @@ L1s = ( ...@@ -20,9 +20,9 @@ L1s = (
{ {
num_cc = 1; num_cc = 1;
tr_n_preference = "nfapi"; tr_n_preference = "nfapi";
local_n_if_name = "ens3"; local_n_if_name = "lo";
remote_n_address = "CI_ENB_IP_ADDR"; remote_n_address = "127.0.0.1";
local_n_address = "CI_UE_IP_ADDR"; local_n_address = "127.0.0.1";
local_n_portc = 50000; local_n_portc = 50000;
remote_n_portc = 50001; remote_n_portc = 50001;
local_n_portd = 50010; local_n_portd = 50010;
......
#!/bin/bash
sudo -E ./ran_build/build/lte-softmodem -O ../ci-scripts/conf_files/rcc.band7.tm1.nfapi.conf --nos1
...@@ -70,7 +70,8 @@ typedef enum { ...@@ -70,7 +70,8 @@ typedef enum {
NFAPI_MODE_VNF, NFAPI_MODE_VNF,
NFAPI_UE_STUB_PNF, NFAPI_UE_STUB_PNF,
NFAPI_UE_STUB_OFFNET, NFAPI_UE_STUB_OFFNET,
NFAPI_MODE_UNKNOWN NFAPI_MODE_UNKNOWN,
NFAPI_MODE_STANDALONE_PNF
} nfapi_mode_t; } nfapi_mode_t;
char *nfapi_get_strmode(void); char *nfapi_get_strmode(void);
......
...@@ -1044,6 +1044,11 @@ void UE_config_stub_pnf(void) { ...@@ -1044,6 +1044,11 @@ void UE_config_stub_pnf(void) {
} }
} }
void UE_init_socket(void) {
// scpt socket creation and memcpy function calls here
}
/* Dummy functions*/ /* Dummy functions*/
void handle_nfapi_hi_dci0_dci_pdu( void handle_nfapi_hi_dci0_dci_pdu(
......
...@@ -413,12 +413,12 @@ void init_UE_stub_single_thread(int nb_inst, ...@@ -413,12 +413,12 @@ void init_UE_stub_single_thread(int nb_inst,
// PHY_vars_UE_g[inst][0] = init_ue_vars(NULL,inst,0); // PHY_vars_UE_g[inst][0] = init_ue_vars(NULL,inst,0);
} }
init_timer_thread(); init_timer_thread(); // dont need this
init_UE_single_thread_stub(nb_inst); init_UE_single_thread_stub(nb_inst);
printf("UE threads created \n"); printf("UE threads created \n");
LOG_I(PHY,"Starting multicast link on %s\n",emul_iface); LOG_I(PHY,"Starting multicast link on %s\n",emul_iface);
if(NFAPI_MODE!=NFAPI_UE_STUB_PNF) if(NFAPI_MODE!=NFAPI_UE_STUB_PNF) // dont need this
multicast_link_start(ue_stub_rx_handler,0,emul_iface); multicast_link_start(ue_stub_rx_handler,0,emul_iface);
} }
......
...@@ -631,7 +631,7 @@ int main( int argc, char **argv ) { ...@@ -631,7 +631,7 @@ int main( int argc, char **argv ) {
NB_INST=1; NB_INST=1;
if(NFAPI_MODE==NFAPI_UE_STUB_PNF) { if(NFAPI_MODE==NFAPI_UE_STUB_PNF) { // || NFAPI_MODE_STANDALONE_PNF
PHY_vars_UE_g = malloc(sizeof(PHY_VARS_UE **)*NB_UE_INST); PHY_vars_UE_g = malloc(sizeof(PHY_VARS_UE **)*NB_UE_INST);
for (int i=0; i<NB_UE_INST; i++) { for (int i=0; i<NB_UE_INST; i++) {
...@@ -708,6 +708,8 @@ int main( int argc, char **argv ) { ...@@ -708,6 +708,8 @@ int main( int argc, char **argv ) {
UE_config_stub_pnf(); UE_config_stub_pnf();
} }
// add socket here and call corresponding memcpys - Andrew
printf("ITTI tasks created\n"); printf("ITTI tasks created\n");
mlockall(MCL_CURRENT | MCL_FUTURE); mlockall(MCL_CURRENT | MCL_FUTURE);
rt_sleep_ns(10*100000000ULL); rt_sleep_ns(10*100000000ULL);
...@@ -719,7 +721,18 @@ int main( int argc, char **argv ) { ...@@ -719,7 +721,18 @@ int main( int argc, char **argv ) {
//Panos: Temporarily we will be using single set of threads for multiple UEs. //Panos: Temporarily we will be using single set of threads for multiple UEs.
//init_UE_stub(1,eMBMS_active,uecap_xer_in,emul_iface); //init_UE_stub(1,eMBMS_active,uecap_xer_in,emul_iface);
init_UE_stub_single_thread(NB_UE_INST,eMBMS_active,uecap_xer_in,emul_iface); init_UE_stub_single_thread(NB_UE_INST,eMBMS_active,uecap_xer_in,emul_iface);
} else { } else if (NFAPI_MODE==NFAPI_MODE_STANDALONE_PNF) {
// init thread and open socket
/*
need to do this in thread
l2_init_ue(eMBMS_active,(uecap_xer_in==1)?uecap_xer:NULL,
0,// cba_group_active
0); // HO flag
*/
}
else {
init_UE(NB_UE_INST,eMBMS_active,uecap_xer_in,0,get_softmodem_params()->phy_test,UE_scan,UE_scan_carrier,mode,(int)rx_gain[0][0],tx_max_power[0], init_UE(NB_UE_INST,eMBMS_active,uecap_xer_in,0,get_softmodem_params()->phy_test,UE_scan,UE_scan_carrier,mode,(int)rx_gain[0][0],tx_max_power[0],
frame_parms[0]); frame_parms[0]);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment