diff options
| author | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-12-23 17:42:32 +0200 |
|---|---|---|
| committer | Serhii Kostiuk <serhii.o.kostiuk@globallogic.com> | 2021-12-23 17:42:32 +0200 |
| commit | 0d94aeefa9a29d6b58d1c481d60b85858bd4599a (patch) | |
| tree | 468f6bdd31d8d55a4ae0e47a72faeaff2aeeda1d /recipes-core/multitech | |
| parent | df6472d2d744a0adcc93b24575a24851fba50248 (diff) | |
| parent | be0069adf8794e129cd5b01d4b1052677136d82c (diff) | |
| download | meta-mlinux-0d94aeefa9a29d6b58d1c481d60b85858bd4599a.tar.gz meta-mlinux-0d94aeefa9a29d6b58d1c481d60b85858bd4599a.tar.bz2 meta-mlinux-0d94aeefa9a29d6b58d1c481d60b85858bd4599a.zip | |
Merge remote-tracking branch 'origin/6' into mpower-dev-nxp
Diffstat (limited to 'recipes-core/multitech')
| -rwxr-xr-x | recipes-core/multitech/config/chat_wrapper | 3 | ||||
| -rw-r--r-- | recipes-core/multitech/config/chat_wrapper.default | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/recipes-core/multitech/config/chat_wrapper b/recipes-core/multitech/config/chat_wrapper index 8c2edcc..a693661 100755 --- a/recipes-core/multitech/config/chat_wrapper +++ b/recipes-core/multitech/config/chat_wrapper @@ -338,9 +338,10 @@ else cops=$(/usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS?') result0=$? - if ((result0 != 0)) || ! [[ $cops =~ ^\+COPS:\ 0, ]] ; then + if ((result0 != 0)) || ! [[ $cops =~ ^\+COPS:[[:space:]]0[,[:space:]] ]] ; then /usr/bin/radio-cmd ${RADIOOPTION} -t10000 'AT+COPS=0' ((WAITREG++)) + ${LOG} "Cops status was $cops" ${LOG} "Just set COPS=0 so wait ${COPSWAIT} seconds" sleep ${COPSWAIT} fi diff --git a/recipes-core/multitech/config/chat_wrapper.default b/recipes-core/multitech/config/chat_wrapper.default index 164086a..b6e7f33 100644 --- a/recipes-core/multitech/config/chat_wrapper.default +++ b/recipes-core/multitech/config/chat_wrapper.default @@ -28,3 +28,8 @@ COPSWAIT=10 # How long to wait when CFUN is set to 1 CFUNWAIT=10 + +# Set AT&T Data mode. Modem must be in +# data mode when using an AT&T SIM +SETATTDATAMODE=1 + |
