Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
canghaiwuhen
OpenXG-RAN
Commits
a1c1e9ce
Commit
a1c1e9ce
authored
Jan 03, 2018
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable control socket
parent
ff6c7119
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
13 deletions
+13
-13
openair2/RRC/LITE/defs.h
openair2/RRC/LITE/defs.h
+4
-4
openair2/RRC/LITE/proto.h
openair2/RRC/LITE/proto.h
+4
-1
openair2/RRC/LITE/rrc_UE.c
openair2/RRC/LITE/rrc_UE.c
+4
-7
targets/RT/USER/lte-softmodem-stub.c
targets/RT/USER/lte-softmodem-stub.c
+1
-1
No files found.
openair2/RRC/LITE/defs.h
View file @
a1c1e9ce
...
...
@@ -47,7 +47,7 @@
#include "LAYER2/MAC/defs.h"
//
TTN-
for D2D
//for D2D
#define CONTROL_SOCKET_PORT_NO 8888
#define DEBUG_CTRL_SOCKET
#define BUFSIZE 1024
...
...
@@ -58,8 +58,8 @@
#define UE_IP_PDCP_NETLINK_ID 31
#define PDCP_PID 1
#define NETLINK_HEADER_SIZE 16
#define SL_DEFAULT_RAB_ID
1
#define SLRB_ID
11
#define SL_DEFAULT_RAB_ID
3
#define SLRB_ID
3
#define MAX_PAYLOAD 1024
/* maximum payload size*/
...
...
@@ -130,7 +130,7 @@ extern pthread_mutex_t slrb_mutex;
//the thread function
void
*
send_UE_status_notification
(
void
*
);
//end TTN
//#include "COMMON/openair_defs.h"
#ifndef USER_MODE
...
...
openair2/RRC/LITE/proto.h
View file @
a1c1e9ce
...
...
@@ -352,7 +352,10 @@ SL_DiscConfig_r12_t rrc_eNB_get_sidelink_discTXPool(
int
n_discoveryMessages
);
/** \brief Process request from control socket
* \param arg
*/
static
void
*
rrc_control_socket_thread_fct
(
void
*
arg
);
//L2_interface.c
int8_t
...
...
openair2/RRC/LITE/rrc_UE.c
View file @
a1c1e9ce
...
...
@@ -91,17 +91,13 @@
#ifdef Rel14
#include "SL-Preconfiguration-r12.h"
#endif
//TTN - for D2D
#define D2D_MODE //enable d2d
//for D2D
int
ctrl_sock_fd
;
#define BUFSIZE 1024
struct
sockaddr_in
prose_app_addr
;
int
slrb_id
;
pthread_mutex_t
slrb_mutex
;
static
void
*
rrc_control_socket_thread_fct
(
void
*
arg
);
//end TTN
#endif
#ifdef PHY_EMUL
extern
EMULATION_VARS
*
Emul_vars
;
...
...
@@ -5305,7 +5301,7 @@ rrc_ue_process_sidelink_radioResourceConfig(
}
}
#ifdef
D2D_MODE
#ifdef
Rel14
//-----------------------------------------------------------
void
rrc_control_socket_init
(){
...
...
@@ -5450,6 +5446,7 @@ void *rrc_control_socket_thread_fct(void *arg)
LOG_I(RRC,"[rrc_control_socket_thread_fct][GroupCommunicationEstablishReq]
group
IP
Address:
"
IPV4_ADDR
"\n",IPV4_ADDR_FORMAT(sl_ctrl_msg_recv->sidelinkPrimitive.group_comm_establish_req.groupIpAddress))
;
#endif
// configure lower layers PDCP/MAC/PHY for this communication
//init_SL_preconfig()
LOG_I(RRC,"[rrc_control_socket_thread_fct]Send
GroupCommunicationEstablishResp
to
ProSe
App\n")
;
memset(send_buf,
0,
BUFSIZE)
;
...
...
targets/RT/USER/lte-softmodem-stub.c
View file @
a1c1e9ce
...
...
@@ -1064,7 +1064,7 @@ int main( int argc, char **argv )
#endif
//TTN for D2D
#ifdef
D2D_MODE
#ifdef
Rel14
printf
("RRC
control
socket\n")
;
rrc_control_socket_init()
;
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment