Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions application/qmodem/files/usr/share/qmodem/modem_dial.sh
Original file line number Diff line number Diff line change
Expand Up @@ -870,11 +870,19 @@ at_dial()
;;
"simcom")
case $platform in
"asrmicro")
at_command="AT+CGACT=1,$pdp_index"
cgdcont_command="AT+CGDCONT=$pdp_index,\"$pdp_type\""$apn_append
;;
"qualcomm")
local cnmp=$(at ${at_port} "AT+CNMP?" | grep "+CNMP:" | sed 's/+CNMP: //g' | sed 's/\r//g')
at_command="AT+CNMP=$cnmp;+CNWINFO=1"
cgdcont_command="AT+CGDCONT=1,\"$pdp_type\""$apn_append
;;
"lte")
at_command="AT+CGACT=1,$pdp_index"
cgdcont_command="AT+CGDCONT=$pdp_index,\"$pdp_type\""$apn_append
;;
esac
;;
"meig")
Expand Down Expand Up @@ -1149,6 +1157,19 @@ handle_ip_change()
esac
}

check_cfun(){
at_command="AT+CFUN?"
response=$(at ${at_port} "${at_command}")
cfun_status=$(echo "$response" | grep "+CFUN:" | awk '{print $2}')
if [ "$cfun_status" = "1" ]; then
return 0
else
at_command="AT+CFUN=1"
response=$(at ${at_port} "${at_command}")
return 1
fi
}

check_logfile_line()
{
local line=$(wc -l $log_file | awk '{print $1}')
Expand All @@ -1162,6 +1183,18 @@ unexpected_response_count=0
at_dial_monitor()
{
#check if support auto dial
check_cfun
if [ $? -ne 0 ]; then
m_debug "CFUN is not 1, try to set it to 1"
sleep 5
check_cfun
if [ $? -ne 0 ]; then
m_debug "Failed to set CFUN to 1, continue with monitor"
return
else
m_debug "Successfully set CFUN to 1"
fi
fi
auto_dial_support=0
at_auto_dial
auto_dial_support=$?
Expand Down
20 changes: 17 additions & 3 deletions application/qmodem/files/usr/share/qmodem/modem_support.json
Original file line number Diff line number Diff line change
Expand Up @@ -1105,21 +1105,35 @@
"rndis"
]
},
"a7605c": {
"a8200c-m2": {
"manufacturer_id": "1a0e",
"manufacturer": "simcom",
"platform": "lte",
"platform": "asrmicro",
"data_interface": "usb",
"pdp_index": "1",
"wcdma_band": "1/2/3/4/5/8",
"lte_band": "1/2/3/4/5/7/8/12/13/14/17/18/19/20/25/26/28/29/30/32/34/38/39/40/41/42/43/46/48/66/71",
"nsa_band": "1/2/3/5/7/8/12/20/28/38/40/41/48/66/71/77/78/79",
"sa_band": "1/2/3/5/7/8/12/20/28/38/40/41/48/66/71/77/78/79",
"modes": [
"qmi",
"ecm",
"rndis"
]
},
"a7605c": {
"manufacturer_id": "1a0e",
"manufacturer": "simcom",
"platform": "lte",
"data_interface": "usb",
"pdp_index": "1",
"wcdma_band": "23/50",
"lte_band": "1/3/5/8/34/38/39/40/41",
"modes": [
"ecm",
"rndis",
"auto"
]
},
"simcom_d8200g": {
"manufacturer_id": "1a0e",
"manufacturer": "simcom",
Expand Down
Loading
Loading