Hello there,
To begin, i know there are severals topics dealing with what i’m going to ask but from the (maybe?) hundred of website i have visited and after reading many times the official AT documentation for my modem, i could not solve my problem so let me explain it and maybe this will help others in the future !
First, here are some informations about my modem and its configuration :
AT!ENTERCND=“A710”
OK
ATI3
Manufacturer: Sierra Wireless, Incorporated
Model: MC7455
Revision: SWI9X30C_02.24.05.06 r7040 CARMD-EV-FRMWR2 2017/05/19 0
AT+CPIN?
+CPIN: READY
OK
AT+CGDCONT?
+CGDCONT: 1,"IP","mobiledata","0.0.0.0",0,0,0,0
OK
AT!GSTATUS?
!GSTATUS:
Current Time: 83664 Temperature: 41
Reset Counter: 7 Mode: ONLINE
System mode: LTE
AT+COPS?
+COPS: 0,0,"Transatel Transatel",7
OK
AT+COPS=?
+COPS: (2,"Transatel","Transate","20801",7),(1,"Orange F","Orange","20801",2),(1,"F SFR","SFR"2
AT!IMPREF?
!IMPREF:
preferred fw version: 02.24.05.06
preferred carrier name: GENERIC
preferred config name: GENERIC_002.02
AT!IMAGE?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 130 0 0 ?_? 02.24.05.06_?
FW 2 GOOD 1 0 0 ?_? 02.24.03.00_?
FW 3 GOOD 129 0 0 ?_? 02.33.03.00_?
FW 4 EMPTY 0 0 0
AT!CUSTOM?
AT!CUSTOM:
GPSENABLE 0x01
GPSLPM 0x01
UIM2ENABLE 0x01
SIMLPM 0x01
AT!PCINFO?
State: Online
LPM voters - Temp:0, Volt:0, User:0, W_DISABLE:0, IMSWITCH:0, BIOS:0, LWM2M:0, OMADM:0, FOTA:0
LPM persistenc
AT!GETBAND?
!GETBAND: B7
OK
AT!RXDEN?
!RXDEN:
01
OK
AT!LTEINFO?
!LTEINFO:
Serving: EARFCN MCC MNC TAC CID Bd D U SNR PCI RSRQ RSRP RSSI RXLV
3000 208 01 52647
AT!USBCOMP?
Config Index: 1
Config Type: 1 (Generic)
Interface bitmask: 00001009 (diag,modem,mbim)
OK
Connection sequence
AT+CREG=1
OK
AT+CGATT=1
OK
AT+CGDCONT=1,"ip","mobiledata"
OK
AT+CGACT=1
OK
Connection status
AT+CGATT?
+CGATT: 1
OK
AT+CGACT?
+CGACT: 1,1
OK
AT+CREG?
+CREG: 1,1
OK
AT+CGCONTRDP
+CGCONTRDP: 1,5,mobiledata,10.141.37.59,,176.241.248.113,176.241.248.114
OK
So, as you can see, my modem seems to be connected to the operator network. Yet, the gateway is never given running +CGCONTRDP AT command which i don’t know why. (Also how am i supposed to get the subnet mask?)
From there, i have my modem interface wwp0s20f0u2i12 which i configure with the IP adress, an arbitrary subnet mask of /30 and a gateway (also arbitrary). I also set the DNS, etc but when i try to ping from the modem interface, it does not work obviously.
Network setup
ip link set wwp0s20f0u2i12 down
ip addr flush dev wwp0s20f0u2i12
ip link set wwp0s20f0u2i12 up
ip addr add 10.141.37.59/30 dev wwp0s20f0u2i12 broadcast +
ip link set mtu 1460 dev wwp0s20f0u2i12
ping -I wwp0s20f0u2i12 1.1.1.1
# not working
So i wanted to know what am i missing so i cannot have internet through my modem interface ?
NB: I’m able to reach internet from the modem interface when i use mbim-network command and then configure my network as above but my goal is to use AT commands instead of mbim-network program !