[source] comgt-3g: enable modem before to setpin

LEDE Commits lede-commits at lists.infradead.org
Wed May 17 23:25:00 PDT 2017


blogic pushed a commit to source.git, branch master:
https://git.lede-project.org/db776c01e1202307b78a4bb757f78db5ea48e27e

commit db776c01e1202307b78a4bb757f78db5ea48e27e
Author: Giuseppe Lippolis <giu.lippolis at gmail.com>
AuthorDate: Tue May 9 20:23:35 2017 +0200

    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 at gmail.com>
---
 package/network/utils/comgt/Makefile          | 2 +-
 package/network/utils/comgt/files/setpin.gcom | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/network/utils/comgt/Makefile b/package/network/utils/comgt/Makefile
index 3926016..ce99a2a 100644
--- a/package/network/utils/comgt/Makefile
+++ b/package/network/utils/comgt/Makefile
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=comgt
 PKG_VERSION:=0.32
-PKG_RELEASE:=28
+PKG_RELEASE:=29
 
 PKG_SOURCE:=$(PKG_NAME).$(PKG_VERSION).tgz
 PKG_SOURCE_URL:=@SF/comgt
diff --git a/package/network/utils/comgt/files/setpin.gcom b/package/network/utils/comgt/files/setpin.gcom
index 66350fe..a3f3402 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



More information about the lede-commits mailing list