RENEWLab  1.1.0
RENEW project
iris_py Namespace Reference

Classes

class  Iris_py
 SDR Class: #######. More...
 

Functions

def gen_lts (seq_length=128, cp=0, upsample=1)
 
def cfloat2uint32 (arr, order='IQ')
 

Variables

int corr_threshold = 1
 
 bcn_real
 
 bcn_imag
 
 unpack
 
int beacon = bcn_real + 1j * bcn_imag
 
 parser = ArgumentParser()
 
 type
 
 str
 
 dest
 
 help
 
 default
 
 float
 
 args = parser.parse_args()
 
 siso_bs
 
 siso_ue
 
 hub = None
 
 nsamps = siso_bs.n_samp
 
int upsample = 1
 
int ampl = 1
 
int nsamps_pad = 82
 
int n_sym_samp = nsamps + 2*nsamps_pad - 14
 
 ltsSym
 
 lts_f
 
 cp
 
 pad1 = np.zeros((nsamps_pad), np.complex64)
 
 pad2 = np.zeros((nsamps_pad-14), np.complex64)
 
int wb_pilot = np.tile(ltsSym, nsamps//len(ltsSym)).astype(np.complex64)*.5
 
 wbz = np.zeros((n_sym_samp), dtype=np.complex64)
 
 wb_pilot1 = np.concatenate([pad1, wb_pilot, pad2])
 
 wb_pilot2 = wbz
 
 wb_pilot1_r = np.real(wb_pilot1)
 
 wb_pilot1_i = np.imag(wb_pilot1)
 
 tdd_sched
 
 prefix_len
 
 is_bs
 
 wave_rx_a_bs_mn = siso_bs.recv_stream_tdd()
 
 foundTrigger = siso_ue.sdr_gettriggers()
 
 freq = args.freq
 
 fig = plt.figure(figsize=(20, 8), dpi=100)
 
 ax1 = fig.add_subplot(2, 1, 1)
 
 ax2 = fig.add_subplot(2, 1, 2)
 
 label
 
int CORR_THRESHOLD = 92
 
int CORR_RST = 64
 
int CORR_CONF = 60
 
int RF_RST_REG = 48
 
int TDD_CONF_REG = 120
 
int SCH_ADDR_REG = 136
 
int SCH_MODE_REG = 140
 
int TX_GAIN_CTRL = 88
 
int FPGA_IRIS030_WR_PKT_DET_THRESH = 288
 
int FPGA_IRIS030_WR_PKT_DET_NUM_SAMPS = 292
 
int FPGA_IRIS030_WR_PKT_DET_ENABLE = 296
 
int FPGA_IRIS030_WR_PKT_DET_NEW_FRAME = 300
 
int tx_advance = 68
 
 beacon1 = siso_bs.config_beacon(nsamps_pad)
 
 beacon1_r = np.real(beacon1)
 
 beacon1_i = np.imag(beacon1)
 

Function Documentation

◆ cfloat2uint32()

def iris_py.cfloat2uint32 (   arr,
  order = 'IQ' 
)
Convert floating point iq values to uint32 (FPGA format)
ARGS:
- arr: Data array
- order: Whether it is IQ or QI
RETURNS:
- corresponding uint32 value
Here is the caller graph for this function:

◆ gen_lts()

def iris_py.gen_lts (   seq_length = 128,
  cp = 0,
  upsample = 1 
)
Here is the caller graph for this function:

Variable Documentation

◆ ampl

int iris_py.ampl = 1

◆ args

iris_py.args = parser.parse_args()

◆ ax1

iris_py.ax1 = fig.add_subplot(2, 1, 1)

◆ ax2

iris_py.ax2 = fig.add_subplot(2, 1, 2)

◆ bcn_imag

iris_py.bcn_imag

◆ bcn_real

iris_py.bcn_real

◆ beacon

int iris_py.beacon = bcn_real + 1j * bcn_imag

◆ beacon1

iris_py.beacon1 = siso_bs.config_beacon(nsamps_pad)

◆ beacon1_i

iris_py.beacon1_i = np.imag(beacon1)

◆ beacon1_r

iris_py.beacon1_r = np.real(beacon1)

◆ CORR_CONF

int iris_py.CORR_CONF = 60

◆ CORR_RST

int iris_py.CORR_RST = 64

◆ CORR_THRESHOLD

int iris_py.CORR_THRESHOLD = 92

◆ corr_threshold

int iris_py.corr_threshold = 1

◆ cp

iris_py.cp

◆ default

iris_py.default

◆ dest

iris_py.dest

◆ fig

iris_py.fig = plt.figure(figsize=(20, 8), dpi=100)

◆ float

iris_py.float

◆ foundTrigger

iris_py.foundTrigger = siso_ue.sdr_gettriggers()

◆ FPGA_IRIS030_WR_PKT_DET_ENABLE

int iris_py.FPGA_IRIS030_WR_PKT_DET_ENABLE = 296

◆ FPGA_IRIS030_WR_PKT_DET_NEW_FRAME

int iris_py.FPGA_IRIS030_WR_PKT_DET_NEW_FRAME = 300

◆ FPGA_IRIS030_WR_PKT_DET_NUM_SAMPS

int iris_py.FPGA_IRIS030_WR_PKT_DET_NUM_SAMPS = 292

◆ FPGA_IRIS030_WR_PKT_DET_THRESH

int iris_py.FPGA_IRIS030_WR_PKT_DET_THRESH = 288

◆ freq

float iris_py.freq = args.freq

◆ help

iris_py.help

◆ hub

iris_py.hub = None

◆ is_bs

iris_py.is_bs

◆ label

iris_py.label

◆ lts_f

iris_py.lts_f

◆ ltsSym

iris_py.ltsSym

◆ n_sym_samp

int iris_py.n_sym_samp = nsamps + 2*nsamps_pad - 14

◆ nsamps

iris_py.nsamps = siso_bs.n_samp

◆ nsamps_pad

int iris_py.nsamps_pad = 82

◆ pad1

iris_py.pad1 = np.zeros((nsamps_pad), np.complex64)

◆ pad2

iris_py.pad2 = np.zeros((nsamps_pad-14), np.complex64)

◆ parser

iris_py.parser = ArgumentParser()

◆ prefix_len

iris_py.prefix_len

◆ RF_RST_REG

int iris_py.RF_RST_REG = 48

◆ SCH_ADDR_REG

int iris_py.SCH_ADDR_REG = 136

◆ SCH_MODE_REG

int iris_py.SCH_MODE_REG = 140

◆ siso_bs

iris_py.siso_bs
Initial value:
1 = Iris_py(
2  serial_id=args.serial_id1,
3  sample_rate=args.rate,
4  tx_freq=args.freq,
5  rx_freq=args.freq,
6  bw=args.bw,
7  tx_gain=args.txGain,
8  rx_gain=args.rxGain,
9  n_samp=1024,
10  )

◆ siso_ue

iris_py.siso_ue
Initial value:
1 = Iris_py(
2  serial_id=args.serial_id2,
3  sample_rate=args.rate,
4  tx_freq=args.freq,
5  rx_freq=args.freq,
6  bw=args.bw,
7  tx_gain=args.txGain,
8  rx_gain=args.rxGain,
9  n_samp=1024,
10  )

◆ str

iris_py.str

◆ TDD_CONF_REG

int iris_py.TDD_CONF_REG = 120

◆ tdd_sched

iris_py.tdd_sched

◆ tx_advance

int iris_py.tx_advance = 68

◆ TX_GAIN_CTRL

int iris_py.TX_GAIN_CTRL = 88

◆ type

iris_py.type

◆ unpack

iris_py.unpack

◆ upsample

int iris_py.upsample = 1

◆ wave_rx_a_bs_mn

iris_py.wave_rx_a_bs_mn = siso_bs.recv_stream_tdd()

◆ wb_pilot

int iris_py.wb_pilot = np.tile(ltsSym, nsamps//len(ltsSym)).astype(np.complex64)*.5

◆ wb_pilot1

iris_py.wb_pilot1 = np.concatenate([pad1, wb_pilot, pad2])

◆ wb_pilot1_i

iris_py.wb_pilot1_i = np.imag(wb_pilot1)

◆ wb_pilot1_r

iris_py.wb_pilot1_r = np.real(wb_pilot1)

◆ wb_pilot2

iris_py.wb_pilot2 = wbz

◆ wbz

iris_py.wbz = np.zeros((n_sym_samp), dtype=np.complex64)