aboutsummaryrefslogtreecommitdiffstats
path: root/package/network
diff options
context:
space:
mode:
authorGiuseppe Lippolis <giu.lippolis@gmail.com>2017-05-09 20:23:35 +0200
committerJo-Philipp Wich <jo@mein.io>2017-12-13 15:31:52 +0100
commit79def6904786cb71e489f09688edcb3bfd33fb5e (patch)
tree416672f0d9f83c20ffd3174a1331a057379d76ff /package/network
parent070463fb61727dfb9c5f4fad665ba8377d14ba22 (diff)
downloadupstream-79def6904786cb71e489f09688edcb3bfd33fb5e.tar.gz
upstream-79def6904786cb71e489f09688edcb3bfd33fb5e.tar.bz2
upstream-79def6904786cb71e489f09688edcb3bfd33fb5e.zip
comgt-3g: enable modem before to setpin
some modems needs to be enabled with CFUN=1 before to set the pin Signed-off-by: Giuseppe Lippolis <giu.lippolis@gmail.com> (cherry picked from commit db776c01e1202307b78a4bb757f78db5ea48e27e)
Diffstat (limited to 'package/network')
-rw-r--r--package/network/utils/comgt/files/setpin.gcom1
1 files changed, 1 insertions, 0 deletions
diff --git a/package/network/utils/comgt/files/setpin.gcom b/package/network/utils/comgt/files/setpin.gcom
index 66350fe20b..a3f3402797 100644
--- a/package/network/utils/comgt/files/setpin.gcom
+++ b/package/network/utils/comgt/files/setpin.gcom
@@ -7,6 +7,7 @@ opengt
let c=0
:start
+ send "AT+CFUN=1^m"
send "AT+CPIN?^m"
waitfor 15 "SIM PUK","SIM PIN","READY","ERROR","ERR"
if % = -1 goto timeout