[openwrt/openwrt] comgt-ncm: add support for UNISOC SL8563 based TOZED TL70-C

LEDE Commits lede-commits at lists.infradead.org
Thu May 18 05:48:12 PDT 2023


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/c42847989eae6ec6fb9762163871291079cb609e

commit c42847989eae6ec6fb9762163871291079cb609e
Author: Arınç ÜNAL <arinc.unal at arinc9.com>
AuthorDate: Mon Apr 17 23:11:29 2023 +0300

    comgt-ncm: add support for UNISOC SL8563 based TOZED TL70-C
    
    TOZED TL70-C is an LTE CAT6 cellular modem based on UNISOC SL8563. UNISOC
    was formerly called Spreadtrum hence the manufacturer name detected on the
    modem is spreadtrum.
    
    The connect and disconnect commands bring up and down the usb0 interface.
    They are Base64 encoded as that's what the AT command accepts. The modem
    can do up to 4 APNs by bringing the USB interfaces, usb0 to usb3, up.
    
    Setting the USB interfaces up:
    
    connmanctl ndisdial AT^NDISDUN="usb0",1,1
    connmanctl ndisdial AT^NDISDUN="usb1",1,2
    connmanctl ndisdial AT^NDISDUN="usb2",1,3
    connmanctl ndisdial AT^NDISDUN="usb3",1,4
    
    Setting the USB interfaces down:
    
    connmanctl ndisdial AT^NDISDUN="usb0",0,1
    connmanctl ndisdial AT^NDISDUN="usb1",0,2
    connmanctl ndisdial AT^NDISDUN="usb2",0,3
    connmanctl ndisdial AT^NDISDUN="usb3",0,4
    
    Co-developed-by: Andre Cruz <me at 1conan.com>
    Signed-off-by: Andre Cruz <me at 1conan.com>
    Signed-off-by: Arınç ÜNAL <arinc.unal at arinc9.com>
---
 package/network/utils/comgt/files/ncm.json | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/package/network/utils/comgt/files/ncm.json b/package/network/utils/comgt/files/ncm.json
index df0810ddbc..5f68b13496 100644
--- a/package/network/utils/comgt/files/ncm.json
+++ b/package/network/utils/comgt/files/ncm.json
@@ -124,5 +124,17 @@
 		"connect": "AT+ZGACT=1,${context_type}",
 		"finalize": "AT+ZDHCPLEASE=0",
 		"disconnect": "AT+ZGACT=0,1"
+	},
+	"spreadtrum": {
+		"initialize": [
+			"AT+CFUN=1",
+			"AT+CCED=2,8",
+			"AT+SPTTYROUTER=1"
+		],
+		"configure": [
+			"AT+CGDCONT=${profile},\\\"${pdptype}\\\"${apn:+,\\\"$apn\\\"}"
+		],
+		"connect": "AT+SPTZCMD=\\\"Y29ubm1hbmN0bCBuZGlzZGlhbCBBVF5ORElTRFVOPSJ1c2IwIiwxLDE=\\\"",
+		"disconnect": "AT+SPTZCMD=\\\"Y29ubm1hbmN0bCBuZGlzZGlhbCBBVF5ORElTRFVOPSJ1c2IwIiwwLDE=\\\""
 	}
 }




More information about the lede-commits mailing list