Closed newdanceradio closed 4 months ago
Hi! Thank for u issue! Remove all profiles from CGDCONT and log next commands
APN=pro PDP=IP gcom -d /dev/$TTYDEV -s /etc/gcom/xmm-connect.gcom
gcom -d /dev/$TTYDEV -s /etc/gcom/xmm-config.gcom
Hello @koshev-msk, thank you for your answer. I found the fix, need to add 3 additional lines: AT+CGATT=0 AT+CGDCONT=0,"IP" AT+CGDCONT=0 in xmm-connect.gcom I can confirm, that with this fix L860gl modem is working correctly with standard APN "internet" and with APN "pro" Please add this fix to your github repository. Now it looks like this
opengt
set com 115200n81
set comecho off
set senddelay 0.02
waitquiet 0.2 0.2
send "AT+CMEE=2^m"
send "AT+COPS=0^m"
send "AT+CGATT=0^m"
send "AT+CGDCONT=0,\"IP\""
send "AT+CGDCONT=0^m"
send "AT+CGPIAF=1,0,0,0^m"
send "AT+XDNS=1,1^m"
send "AT+CGDCONT=1^m"
send "AT+CGDCONT=1,\""
send $env("PDP")
send "\",\""
send $env("APN")
send "\"^m"
send "AT+CGACT=1,1^m"
send "AT+CGPADDR=1^m"
send "AT+XDATACHANNEL=1,1,\"/USBCDC/0\",\"/USBHS/NCM/0\",2,1^m"
send "AT+CGDATA=\"M-RAW_IP\",1^m"
get 1 "" $s
print $s
Try new release xmm-modem https://github.com/koshev-msk/modemfeed/commit/b465971ca59b158d2a303083a520598cdfe8cf54 add in config next string
option profile '0'
Спасибо, попробую, единственное, в какой именно конфиг прописать option profile '0' ?
Example
# file /etc/config/network
config interface 'wwan'
option proto 'xmm'
option profile '0'
option apn 'pro'
option bla 'bla'
Example
# file /etc/config/network config interface 'wwan' option proto 'xmm' option profile '0' option apn 'pro' option bla 'bla'
Hi Konstantin, sorry for late reply. I can confirm, that wtih xmm-modem 0.1.3 and with option profile '0' in config APN pro is working correctly.
Hello.
There is some issue, when is entered APN "internet" modem is connecting and receives IP address, but when is entered APN "pro" modem isn't connecting. From my carrier APN "pro" is for static IP address.
There is some issue with context. Router like Keenetic is correctly working with "pro" APN I have enabled debug on Keenetic UsbLte0 interface What we can see there
At first it send AT+CGDCONT=0,"IP" then AT+CGDCONT=0 then AT+CGDCONT=1,"IP","pro"
Perhaps by this commands it is removing the context 0 entry and will allow "pro" to be used as the APN for context 1 successfully. By default answer from modem about context is