mobile_insight.analyzer.wcdma_rrc_analyzer module

A WCDMA (3G) RRC analyzer.

Author: Yuanjie Li, Zhehui Zhang

class mobile_insight.analyzer.wcdma_rrc_analyzer.WcdmaRrcAnalyzer

Bases: mobile_insight.analyzer.protocol_analyzer.ProtocolAnalyzer

A protocol ananlyzer for WCDMA (3G) Radio Resource Control (RRC) protocol.

__callback_rrc_state(msg)
__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 WCDMA RRC packets, and call functions to process it

Parameters

msg – the event (message) from the trace collector.

create_profile_hierarchy()

Return a Wcdma Rrc ProfileHierarchy (configurations)

Returns

ProfileHierarchy for WCDMA 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

WcdmaRrcConfig

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

WcdmaRrcStatus

get_cur_cell_config()

Get current cell’s configuration

Returns

current cell’s status

Return type

WcdmaRrcConfig

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 WCDMA RRC messages.

Parameters

source (trace collector) – the trace source.