RG520N-EU - Unable to Open a TCP connection

Hello,

I’m working on a 5G Quectel module, RG520N-EU TE-A, connected to RTA001-EV EValuationBoard.
I can correctly configure and activate the PDP context, but when I’m trying to open a TCP connection, the module returns error 566 (socket connect failed).
I’m using a 5G vodafone SIM.

Here is the sequence of AT commands:

AT+CREG?
+CREG: 0,1

OK
AT+QICSGP=1,1,“mobile.vodafone.it”,“”,“”
OK
AT+QIACT=1
OK
AT+QIOPEN=1,0,“TCP”,“X.X.X.X”,15000
OK

+QIOPEN: 0,566
AT+QIOPEN=1,1,“TCP”,“8.8.8.8”,80
OK

+QIOPEN: 1,566

errcode 566: Socket connect failed (from Application Note)

The IP “X.X.X.X” is obviously a public and working TCP server IP.
How can I estabilish the connection?
Thx in advance!

please run

AT+C5GREG?
AT+CGDCONT?
AT+CGPADDR
AT+QPING=1,8.8.8.8

1 Like

Thanks!
Log:

AT+CREG?
+CREG: 0,1

OK
AT+CEREG?
+CEREG: 0,1

OK
AT+C5GREG?
+C5GREG: 0,0

OK
AT+QICSGP=1,1,“mobile.vodafone.it”,“”,“”,0
OK
AT+QIACT=1
OK
AT+CGDCONT?
+CGDCONT: 1,“IP”,“mobile.vodafone.it”,“0.0.0.0”,0,0,0,0,“”,0
+CGDCONT: 2,“IPV4V6”,“ims”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0,“”,0
+CGDCONT: 3,“IPV4V6”,“hos”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0,“”,0
+CGDCONT: 4,“IPV4V6”,“sos”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,1,“”,0
+CGDCONT: 5,“IPV4V6”,“web.vodafone.de”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”,0,0,0,0,“”,0

OK
AT+CGPADDR
+CGPADDR: 1,“100.104.42.180”
+CGPADDR: 2,“0.0.0.0”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 3,“0.0.0.0”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 4,“0.0.0.0”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”
+CGPADDR: 5,“0.0.0.0”,“0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0”

OK
AT+QPING=1,8.8.8.8
ERROR

In addition:

AT+QNWINFO
+QNWINFO: “FDD LTE”,“22210”,“LTE BAND 3”,1850

OK
AT+QENG=“servingcell”
+QENG: “servingcell”,“NOCONN”,“LTE”,“FDD”,…
AT+COPS?
+COPS: 0,0,“vodafone IT”,13

OK

The device has successfully registered on the LTE network

The device also has obtained the network IP address

Can’t complete PING, very strange

Is it a problem that the sim can’t register to the 5G network? (C5GREG=0,0)
By using it with a smartphone it can register to 5G network automatically.
Do you think I can do anything to solve the ping/tcp connection problem, maybe with the AT+QNWPREFCFG series of commands for the RG520N module?

The QPING command syntax was wrong, now the answer is the following:

AT+QPING=1,“8.8.8.8”
OK

+QPING: 558

Thanks

Hello, at the end I’ve managed to successfully create a connection to my server by configuring and activating the second PDP context (ID: 2).
I still cannot understand why the first PDP context (ID:1) can be successfully activated but can’t be used.

  • I am also very curious about this question