Hl7900 tcp/udp

Can someone help me test AT TCP/UDP commands on the HL7900 ?
I followed the guide, but when it reaches the CONNECT stage, after I input the data, there is no further response, and eventually it returns NO CARRIER.
Below is the detailed log:

AT+CGDCONT?

+CGDCONT: 1,“IP”,“Viettel”,9.28.38.203,0,0,0,0,0,0,

AT+KCNXCFG=1,“GPRS”,“Viettel”
AT+KCNXCFG?

+KCNXCFG: 1,“GPRS”,“Viettel”,“”,“”,“IPV4”,“0.0.0.0”,“0.0.0.0”,“0.0.0.0”,0

OK

AT+KTCPCFG=1,0,“www.google.com”,80

+KTCPCFG: 1

OK

AT+KTCPCNX=1

OK

+KCNX_IND: 1,1,0

+KTCP_IND: 1,1

AT+KTCPSND=1,18

CONNECT

GET/HTTP/1.0-EOF-Pattern-

NO CARRIER

+KTCP_NOTIF: 1,4

I don’t see problem with TCP command with my TCP echo server:

AT+KCNXCFG=1,"GPRS","nbiot"
OK
at+ksrat?
+KSRAT: 1

OK
AT+KCNXPROFILE=1
OK
AT+KTCPCFG=1,0,"123.51.178.153",5044
+KTCPCFG: 1

OK
AT+ktcpcnx=1
OK

+KCNX_IND: 1,1,0

+KTCP_IND: 1,1
AT+ktcpstart=1
CONNECT
asdfasdfffff
OK
ati3
HL7900.4.5.22060521

OK

at+kudpclose=1

OK

+KCNX_IND: 1,5,30
at+kudpdel=1

ERROR

+KCNX_IND: 1,3

why I can’t delete session with kudpdel=1

i don’t see problem with TCP:


AT+KCNXCFG=1,"GPRS","nbiot"
OK
AT+KCNXPROFILE=1
OK
AT+KTCPCFG=1,0,"123.123.123.123",5044
+KTCPCFG: 1

OK
AT+ktcpcnx=1
OK

+KCNX_IND: 1,1,0

+KTCP_IND: 1,1
AT+ktcpstart=1
CONNECT
asdfasdf
OK
ati3
HL7900.4.5.22060521

OK
at+ktcpclose=1
OK

+KCNX_IND: 1,5,30
at+ktcpdel=1
OK

do you have log of UDP ?

yes, but same as yours, i think it might not need to delete the socket by +KUDPDEL

Why you dont need --EOF–Pattern-- at the end of data?

i typed “+++” to quit the data mode

I don’t see how to use UDP at commands for server mode anywhere, can you provide me the server mode using UDP on HL7900 ?

how about this?

AT+KCNXCFG=1,"GPRS","nbiot"
OK
AT+KCNXPROFILE=1
OK
AT+KUDPCFG=1,1,5043
+KUDPCFG: 1

OK

+KCNX_IND: 1,1,0

+KUDP_IND: 1,1

Do you know how to test data transmission with udp/tcp at command in server mode on HL7900 ?

you can see here:

BTW, do you have SIM card with public IP address?

No, I don’t have . Is there another way to test server mode without public IP sim card ?

you need to check with your network operator to see if there is client IP address in same domain.

I wonder the command KCNXCFG help connect to internet or not, Is it help the device got the IP or not ?

you can see here:

Why there is no information of KCNXCFG even it has attach to network

you can see this:

ati3
HL7900.3.4.22052661

OK

+CEREG: 0

+CEREG: 2

+CEREG: 1,"C672","0188A9DF",9
AT+KCNXCFG=1,"GPRS","nbiot"
OK
at+kcnxcfg?
+KCNXCFG: 1,"GPRS","nbiot","","","IPV4","0.0.0.0","0.0.0.0","0.0.0.0",0

OK

why is it “0.0.0.0” when it has attach to network ?

You can check the ip address by at+cgpaddr=1