diff options
author | John Klug <john.klug@multitech.com> | 2019-10-17 15:29:40 -0500 |
---|---|---|
committer | John Klug <john.klug@multitech.com> | 2019-10-17 15:29:40 -0500 |
commit | 0237133f16f4efe07e558f6061447805328d3c2c (patch) | |
tree | b0f88466021d3fe350c3533bb3fbb4f2d83404fc /recipes-core/multitech/config | |
parent | c27e246545204548e2a5c6eb00ff66be3d81110f (diff) | |
download | meta-mlinux-0237133f16f4efe07e558f6061447805328d3c2c.tar.gz meta-mlinux-0237133f16f4efe07e558f6061447805328d3c2c.tar.bz2 meta-mlinux-0237133f16f4efe07e558f6061447805328d3c2c.zip |
Need to set CFUN to 0 then CFUN to 1 to get modem to register after COPS startup
Diffstat (limited to 'recipes-core/multitech/config')
-rwxr-xr-x | recipes-core/multitech/config/chat_wrapper | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-core/multitech/config/chat_wrapper b/recipes-core/multitech/config/chat_wrapper index 3c05622..bb25d38 100755 --- a/recipes-core/multitech/config/chat_wrapper +++ b/recipes-core/multitech/config/chat_wrapper @@ -144,6 +144,10 @@ if [[ $MPDP != $PDP ]] || [[ $MAPN != $APN ]] || \ LOGMSG=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 "${CMDSTR}" 2>&1) ${LOG} "Got response ${LOGMSG}" /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=0' + sleep 1 + /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CFUN=0' + /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+CFUN=1' + sleep 1 ${LOG} "New context is set. Wait up to $REGWAITTIME seconds to register" # Wait for registration uptime=$(cat /proc/uptime) |