mobile_insight.analyzer.nr_rrc_analyzer module¶
A LTE RRC analyzer. Author: Qianru Li
- class mobile_insight.analyzer.nr_rrc_analyzer.NrRrcAnalyzer¶
Bases:
mobile_insight.analyzer.protocol_analyzer.ProtocolAnalyzer
A protocol ananlyzer for NR Radio Resource Control (RRC) protocol.
- __callback_rrc_conn(msg)¶
Update RRC connectivity status
- Parameters
msg – the RRC message
- __callback_rrc_reconfig(msg)¶
Extract configurations from RRCReconfiguration Message, including the measurement profiles, etc.
- Parameters
msg – NR RRC reconfiguration messages
- __callback_sib_config(msg)¶
A callback to extract configurations from System Information Blocks (SIBs), including the radio asssement thresholds, the preference settings, etc.
- Parameters
msg – RRC SIB messages
- __rrc_filter(msg)¶
Filter all NR RRC packets, and call functions to process it
- Parameters
msg – the event (message) from the trace collector.
- __update_conn(freq, cid, timestamp)¶
Update current cell status based on freq/cid in RRC OTA header
- Parameters
msg – the RRC OTA messages
- get_cell_config(cell)¶
Return a cell’s active/idle-state configuration.
- Parameters
cell (a (cell_id,freq) pair) – a cell identifier
- Returns
this cell’s active/idle-state configurations
- Return type
LteRrcConfig
- get_cell_list()¶
Get a complete list of cell IDs.
- Returns
a list of cells the device has associated with
- get_cur_cell_config()¶
Get current cell’s configuration
- Returns
current cell’s status
- Return type
NrRrcConfig
- get_cur_cell_status()¶
Get current cell’s status
- Returns
current cell’s status
- Return type
LteRrcStatus
- get_cur_cellid()¶
Get current cell’s ID
- Returns
current cell’s ID
- get_cur_freq()¶
Get current cell’s EARFCN
- get_mobility_history()¶
Get the history of cells the device associates with
- Returns
the cells the device has traversed
- Return type
a dictionary of timestamp -> LteRrcStatus
- set_source(source)¶
Set the trace source. Enable the NR RRC messages.
- Parameters
source (trace collector) – the trace source.