modem_info: update
This commit is contained in:
parent
5db7be6d27
commit
31a6343467
@ -69,6 +69,28 @@ add_bar_info_entry()
|
|||||||
json_close_object
|
json_close_object
|
||||||
}
|
}
|
||||||
|
|
||||||
|
add_speed_entry()
|
||||||
|
{
|
||||||
|
rate=$1
|
||||||
|
type=$2
|
||||||
|
if [ -z "$rate" ]; then
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
rate=`convert_rate $rate`
|
||||||
|
case $type in
|
||||||
|
"rx")
|
||||||
|
add_plain_info_entry "Rx Rate" "$rate" "Transmit Rate"
|
||||||
|
;;
|
||||||
|
"tx")
|
||||||
|
add_plain_info_entry "Tx Rate" "$rate" "Receive Rate"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
return
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
add_avalible_band_entry()
|
add_avalible_band_entry()
|
||||||
{
|
{
|
||||||
band_id=$1
|
band_id=$1
|
||||||
|
@ -571,10 +571,8 @@ network_info()
|
|||||||
add_plain_info_entry "CQI DL" "$cqi_dl" "Channel Quality Indicator for Downlink"
|
add_plain_info_entry "CQI DL" "$cqi_dl" "Channel Quality Indicator for Downlink"
|
||||||
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
||||||
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
||||||
rx_rate=$(rate_convert $rx_rate)
|
add_speed_entry rx $rx_rate
|
||||||
tx_rate=$(rate_convert $tx_rate)
|
add_speed_entry tx $tx_rate
|
||||||
add_plain_info_entry "Tx Rate" "$tx_rate" "Transmit Rate"
|
|
||||||
add_plain_info_entry "Rx Rate" "$rx_rate" "Receive Rate"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
get_lockband(){
|
get_lockband(){
|
||||||
|
@ -346,10 +346,8 @@ network_info()
|
|||||||
add_plain_info_entry "Network Type" "$network_type" "Network Type"
|
add_plain_info_entry "Network Type" "$network_type" "Network Type"
|
||||||
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
||||||
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
||||||
rx_rate=$(rate_convert $rx_rate)
|
add_speed_entry rx $rx_rate
|
||||||
tx_rate=$(rate_convert $tx_rate)
|
add_speed_entry tx $tx_rate
|
||||||
add_plain_info_entry "Tx Rate" "$tx_rate" "Transmit Rate"
|
|
||||||
add_plain_info_entry "Rx Rate" "$rx_rate" "Receive Rate"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Cell information
|
# Cell information
|
||||||
|
@ -490,10 +490,8 @@ network_info()
|
|||||||
add_plain_info_entry "CQI DL" "$cqi_dl" "Channel Quality Indicator for Downlink"
|
add_plain_info_entry "CQI DL" "$cqi_dl" "Channel Quality Indicator for Downlink"
|
||||||
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
add_plain_info_entry "AMBR UL" "$ambr_ul" "Access Maximum Bit Rate for Uplink"
|
||||||
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
add_plain_info_entry "AMBR DL" "$ambr_dl" "Access Maximum Bit Rate for Downlink"
|
||||||
rx_rate=$(rate_convert $rx_rate)
|
add_speed_entry rx $rx_rate
|
||||||
tx_rate=$(rate_convert $tx_rate)
|
add_speed_entry tx $tx_rate
|
||||||
add_plain_info_entry "Tx Rate" "$tx_rate" "Transmit Rate"
|
|
||||||
add_plain_info_entry "Rx Rate" "$rx_rate" "Receive Rate"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#获取频段
|
#获取频段
|
||||||
@ -1693,4 +1691,3 @@ cell_info()
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user