mobile_insight.analyzer.lte_rrc_analyzer module¶
A LTE RRC analyzer. Author: Yuanjie Li, Zhehui Zhang
- class mobile_insight.analyzer.lte_rrc_analyzer.LteRrcAnalyzer¶
Bases:
mobile_insight.analyzer.protocol_analyzer.ProtocolAnalyzer
A protocol ananlyzer for LTE Radio Resource Control (RRC) protocol.
- __callback_drx(msg)¶
- __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, the MAC/RLC/PDCP configurations, etc.
- Parameters
msg – LTE RRC reconfiguration messages
- __callback_serv_cell(msg)¶
A callback to update current cell status
- Parameters
msg – the RRC messages with cell status
- __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 LTE RRC packets, and call functions to process it
- Parameters
msg – the event (message) from the trace collector.
- __update_conn(timestamp, freq, pci)¶
- create_profile_hierarchy()¶
Return a Lte Rrc ProfileHierarchy (configurations)
- Returns
ProfileHierarchy for LTE RRC
- create_state_machine()¶
Declare a RRC state machine
returns: a StateMachine
- 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()¶
Get current cell’s status
- Returns
current cell’s status
- Return type
LteRrcStatus
- get_cur_cell_config()¶
Get current cell’s configuration
- Returns
current cell’s status
- Return type
LteRrcConfig
- 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
- init_protocol_state(msg)¶
Determine RRC state at bootstrap
- Returns
current RRC state, or None if not determinable
- set_source(source)¶
Set the trace source. Enable the LTE RRC messages.
- Parameters
source (trace collector) – the trace source.