WP7607 SWI9X07Y_02.37.03.00 - using UART and LTE RAT - AT+CGACT=0,x returns ERROR seems to close the context OK

AT+CGACT=1,2
OK

at+cgact?
+CGACT: 1,1
+CGACT: 2,1

AT+CGACT=0,2
ERROR

at+cgact?
+CGACT: 1,1
+CGACT: 2,0

OK

Any ideas?

Modem info follows

at+cgauth?
+CGAUTH: 1,0
+CGAUTH: 2,1,"secure"

at+cgdcont?
+CGDCONT: 1,"IPV4V6","","0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0",0,0,0,0
+CGDCONT: 2,"IP","everywhere","0.0.0.0",0,0,0,0


at!gstatus?
!GSTATUS:
Current Time:  529              Temperature: 22
Modem Mitigate Level: 0         ModemProc Mitigate Level: 0
Reset Counter: 2                Mode:        ONLINE
System mode:   LTE              PS state:    Attached
IMS reg state: NOT REGISTERED   IMS mode:    Normal
IMS Srv State: NO SMS,NO VoIP
LTE band:      B3               LTE bw:      20 MHz
LTE Rx chan:   1617             LTE Tx chan: 18522
LTE CA state:  INACTIVE
EMM state:     Registered       Normal Service
RRC state:     RRC Idle

PCC RxM RSSI:  -63              RSRP (dBm):  -94
PCC RxD RSSI:  -93              RSRP (dBm):  -136
Tx Power:      --               TAC:         2B18 (11032)
RSRQ (dB):     -11              Cell ID:     0052F702 (5437186)
SINR (dB):      8.4

at+cops?
+cops: 0,0,"EE",7

Hi johnofleek ,

Are you able to reproduce the issue 100%? How many devices did you observe this issue? If It’s just only one, could you please retry on another device?

What is the output of the following AT commands?

AT!ENTERCND=”A710”
AT!IMPREF?
AT+CGPADDR
AT!SCACT?

You can use the !SCACT command to activate/deactivate data connection.

Yes it is reproducible 100% on this modem - I’d like to try a second device but unfortunately we don’t have stock due to current supply issues :slight_smile:

I also noticed
If I lock the RAT to GSM (KSRAT=1) the problem does not occur

AT+CGACT=1,2
OK
AT+CGACT=0,2
OK

With an LTE RAT (ksrat=0 (automatic)) - if I send the command a second time there is no ERROR. As follows

AT+CGACT?
+CGACT: 1,1
+CGACT: 2,1

AT+CGACT=0,2
ERROR

at+cgact?
+CGACT: 1,1
+CGACT: 2,0

AT+CGACT=0,2
OK

Requested AT commands - with KSRAT=0

AT!ENTERCND="A710"

AT!IMPREF?
!IMPREF:
 preferred fw version:    02.37.03.00
 preferred carrier name:  GENERIC
 preferred config name:   GENERIC_002.095_000
 preferred subpri index:  000
 current fw version:      02.37.03.00
 current carrier name:    GENERIC
 current config name:     GENERIC_002.095_000
 current subpri index:    000

AT+CGPADDR
+CGPADDR: 1,10.71.75.255
+CGPADDR: 2,0.0.0.0

AT!SCACT?
!SCACT: 1,0
!SCACT: 2,0

at+cgact?
+CGACT: 1,1
+CGACT: 2,0

Trying AT!SCACT to activate the context

at+ksrat?
+KSRAT: 0

AT!SCACT=1,2
+CME ERROR: no network service

AT!SCACT?
!SCACT: 1,0
!SCACT: 2,0

at!gstatus?
!GSTATUS:
Current Time:  3695             Temperature: 22
Modem Mitigate Level: 0         ModemProc Mitigate Level: 0
Reset Counter: 2                Mode:        ONLINE
System mode:   LTE              PS state:    Attached
IMS reg state: NOT REGISTERED   IMS mode:    Normal
IMS Srv State: NO SMS,NO VoIP
LTE band:      B3               LTE bw:      20 MHz
LTE Rx chan:   1617             LTE Tx chan: 19617
LTE CA state:  INACTIVE
EMM state:     Registered       Normal Service
RRC state:     RRC Connected

PCC RxM RSSI:  -69              RSRP (dBm):  -97
PCC RxD RSSI:  -95              RSRP (dBm):  -139
Tx Power:      --               TAC:         2B18 (11032)
RSRQ (dB):     -10              Cell ID:     0052F702 (5437186)
SINR (dB):      8.8

@johnofleek

So what I think is happening is that you already have a context open on that APN which is why there is no IP address for CID 2 as it is just using the default bearer created on CID1 on the attach. When you send the command to close it down it is returning the ERROR because it cannot close the default bearer which is on CID1.

For the at!scact=1,2 error, this does not just start the PDN, it also try to start the USB network interface, if this is not available/ready then it will return an ERROR not because of an issue on the air interface sde but on the host system, the network in this case refers to IP.

Regards

Matt

Hi Matt

Thanks yes I agree, Donald’s comment to try at!scact is the wrong command for this test - note that the command I used was the very similar AT+CGACT

I’ve updated the thread title to indicate I’m using a UART as the interface as opposed to USB networking.

Not sure about the multiple active contexts - the EE SIM supports multiple contexts on the RC76 and on the WP76 from Legato. I can activate two contexts without any issues

The issue appears to occur when the active RAT is LTE. I’m beginning to think the issue could be the way the WP76 handles LTE vs 2G/3G. Or it could be just a bug in the WP AT command handler :slight_smile:

Try using Legato

Just discovered something else which might give a clue as to why I see the issue, if I use Legato cm data to connect context 3 I do see an AT+CGPADDR IP address for context 3 - this is making me think that the issue is with the way that I am using AT commands to activate the context

For example

cm data connect
Setting up profile 3
Connecting ... ok

at+cgact?
+CGACT: 1,1
+CGACT: 2,1
+CGACT: 3,1

AT+CGPADDR
+CGPADDR: 1,100.65.190.114
+CGPADDR: 2,0.0.0.0
+CGPADDR: 3,100.67.47.76
cm data disconnect
Disconnecting ... ok

at+cgact?
+CGACT: 1,1
+CGACT: 2,1
+CGACT: 3,0

AT+CGPADDR
+CGPADDR: 1,100.65.190.114
+CGPADDR: 2,0.0.0.0
+CGPADDR: 3,0.0.0.0

Try using PPP over UART

Then I repeated the above using PPP over RC76 UART1 - this time the AT+CGPADDR returns 0.0.0.0 even though the ppp session is working OK -

pppd connect using context #2 with the boring bit missing

Mar  2 15:14:43 raspberrypi chat[3199]: send (ATDT*99***2#^M)

Mar  2 15:14:43 raspberrypi chat[3199]: CONNECT

Mar  2 15:14:44 raspberrypi pppd[3197]: using channel 3

Mar  2 15:14:44 raspberrypi pppd[3197]: Connect: ppp1 <--> /dev/ttyAMA0

Mar  2 15:14:45 raspberrypi pppd[3197]: local  IP address 100.65.190.114
Mar  2 15:14:45 raspberrypi pppd[3197]: remote IP address 10.64.64.65

In the USB serial AT console query the modem whilst PPP is still working

at+cgpaddr
+CGPADDR: 1,100.65.190.114
+CGPADDR: 2,0.0.0.0
+CGPADDR: 3,0.0.0.0

at+cgact?
+CGACT: 1,1
+CGACT: 2,0
+CGACT: 3,0

Looks to me that command ATDT99**2# is actually using context 1 - should I raise another forum post for this maybe secondary issue or should we plough on with this post?

Donald - I’m not sure why your closed my thread as the original cgact issue isn’t resolved. The PPP context issue is, I suspect, related to the original CGACT issue - my guess is that serial based contexts other than context 1 are not supported with the current WP76xx FW. Happy to change this comment if I’m wrong though please let me know.

Hi johnofleek,

For another issue, you should create another new ticket for easy tracking.