diff options
author | John Klug <john.klug@multitech.com> | 2019-10-17 13:03:35 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-10-17 13:03:35 -0500 |
commit | c27e246545204548e2a5c6eb00ff66be3d81110f (patch) | |
tree | 83d006fe0a4044dc86bde98ba14310595c37fe6e /recipes-core/multitech/config | |
parent | 78c5f93554b298c2956c34c1d011f4b1cce9a68a (diff) | |
download | meta-mlinux-c27e246545204548e2a5c6eb00ff66be3d81110f.tar.gz meta-mlinux-c27e246545204548e2a5c6eb00ff66be3d81110f.tar.bz2 meta-mlinux-c27e246545204548e2a5c6eb00ff66be3d81110f.zip |
Fix timeout value for LAT1
Diffstat (limited to 'recipes-core/multitech/config')
-rwxr-xr-x | recipes-core/multitech/config/chat_wrapper | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/recipes-core/multitech/config/chat_wrapper b/recipes-core/multitech/config/chat_wrapper index b15a949..3c05622 100755 --- a/recipes-core/multitech/config/chat_wrapper +++ b/recipes-core/multitech/config/chat_wrapper @@ -66,10 +66,10 @@ ${LOG} "Using Context ${CONTEXTNUM} based on chat script: ${CONTEXT}" # At this point if there is no context number, we can skip everything else. # Get Modem's context settings -MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10 'AT+CGDCONT?' 2>&1 | tr -d '\r') +MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CGDCONT?' 2>&1 | tr -d '\r') if [[ $MCONTEXT =~ [Ee][Rr][Rr][Oo][Rr] ]] ; then RADIOOPTION="${RADIOOPTION2}" - MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10 'AT+CGDCONT?' 2>&1 | tr -d '\r') + MCONTEXT=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CGDCONT?' 2>&1 | tr -d '\r') fi if ! [[ $MCONTEXT =~ \+CGDCONT:[[:space:]]+${CONTEXTNUM},\"([^\"]*)\",\"([^\"]*)\",\"([^\"]*)\",([0-9]+),([0-9]+)([^$'\n']*) ]] ; then @@ -137,9 +137,13 @@ if [[ $MPDP != $PDP ]] || [[ $MAPN != $APN ]] || \ ${LOG} "$MCONTEXT" ${LOG} "Dropping registration with carrier to set context" # Need to deregister - /usr/bin/radio-cmd ${RADIOOPTION} -t10 'AT+COPS=2' - /usr/bin/radio-cmd ${RADIOOPTION} -t10 "AT+CGDCONT=${CONTEXTNUM},\"${PDP}\",\"${APN}\",\"${ADDR}\",$DCOMP,${HCOMP}${FULLBOAT}" - /usr/bin/radio-cmd ${RADIOOPTION} -t10 'AT+COPS=0' + /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=2' + CMDSTR="AT+CGDCONT=${CONTEXTNUM},${PDP},${APN},${ADDR},$DCOMP,${HCOMP}${FULLBOAT}" + ${LOG} "Issued command /usr/bin/radio-cmd ${RADIOOPTION} -t10000 ..." + ${LOG} "... ${CMDSTR}" + LOGMSG=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 "${CMDSTR}" 2>&1) + ${LOG} "Got response ${LOGMSG}" + /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=0' ${LOG} "New context is set. Wait up to $REGWAITTIME seconds to register" # Wait for registration uptime=$(cat /proc/uptime) |