Commit 4f5c1b9b authored by Kirk Webb's avatar Kirk Webb

Add rf attenuator option.

parent 725df102
......@@ -151,6 +151,12 @@ pc = portal.Context()
pc.defineParameter("REAL", "Use real RF hardware?",
portal.ParameterType.BOOLEAN, True,
longDescription="Check box to use real hardware for RF. Uncheck for simulated operation.")
pc.defineParameter("ATTEN", "Use attenuator matrix (with real hardware)?",
portal.ParameterType.BOOLEAN, True,
longDescription="Check box to use radio hardware via RF attenuator matrix. Uncheck for over-the-air.")
pc.defineParameter("RDSET", "Attach OAI source remote dataset",
portal.ParameterType.BOOLEAN, True,
longDescription="Check box to attach the OAI source code remote dataset to each node.")
......@@ -228,6 +234,14 @@ if params.REAL:
uelnk.bandwidth = GLOBALS.TENGIG
uelnk.setJumboFrames()
# Add attenuator RF link if requested.
if params.ATTEN:
gnb1_rf = gnb1.addInterface("gnb1_rf1")
rue1_rf = rue1.addInterface("rue1_rf1")
rflnk = request.RFLink("rfl1")
rflnk.addInterface(gnb1_rf)
rflnk.addInterface(rue1_rf)
else:
# Create NR-UE to gNB PC Ethernet link for performing simulated runs
ethlnk = request.Link( "ue-gnb", members = [gnb1, rue1] )
......
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