mobile_insight.analyzer.nas_util module

Some utility functions for 3G/4G NAS

Author: Yuanjie Li

mobile_insight.analyzer.nas_util.max_bitrate(val)

Given ESM value, return maximum bit rate (Kbps). Please refer to 10.5.6.5, TS24.008 for more details.

Parameters

val – the value encoded in the ESM NAS message

mobile_insight.analyzer.nas_util.max_bitrate_ext(val)

Given ESM value, return extended maximum bit rate (Kbps). Please refer to 10.5.6.5, TS24.008 for more details.

Parameters

val – the value encoded in the ESM NAS message

mobile_insight.analyzer.nas_util.trans_delay(val)

Given ESM value, return transfer delay (ms). Please refer to 10.5.6.5, TS24.008 for more details.

Parameters

val – the value encoded in the ESM NAS message

mobile_insight.analyzer.nas_util.xstr(val)

Return a string for valid value, or empty string for Nontype

Parameters

val – a value

Returns

a string if val is not none, otherwise an empty string