From 0237133f16f4efe07e558f6061447805328d3c2c Mon Sep 17 00:00:00 2001 From: John Klug Date: Thu, 17 Oct 2019 15:29:40 -0500 Subject: Need to set CFUN to 0 then CFUN to 1 to get modem to register after COPS startup --- recipes-core/multitech/config/chat_wrapper | 4 ++++ recipes-core/multitech/config_2.3.bb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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) diff --git a/recipes-core/multitech/config_2.3.bb b/recipes-core/multitech/config_2.3.bb index 9a4dabf..84721a7 100644 --- a/recipes-core/multitech/config_2.3.bb +++ b/recipes-core/multitech/config_2.3.bb @@ -4,7 +4,7 @@ LICENSE = "MIT" RDEPENDS_${PN} += "bash" LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" PACKAGE_ARCH = "all" -PR = "r5" +PR = "r6" PACKAGES =+ "${PN}-mths" inherit update-rc.d -- cgit v1.2.3