at+cgpaddr still return th IP but what i mean is why the command kcnxcfg don’t return the same ip like cgpaddr or cgdcont?
will this block any communication?
What are you trying to do actually?
BTW, I don’t see problem
ati3
HL7900.3.4.22052661
OK
AT+KCNXCFG=1,"GPRS","nbiot"
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+KCNXCFG?
+KCNXCFG: 1,"GPRS","nbiot","","","IPV4","10.41.6.22","10.13.168.152","10.13.200.152",2
OK
I just don’t know when kcnxcfg response with IP, dns, I test the command and sometimes it return ip, dns, sometimes just return “0.0.0.0”,“0.0.0.0”,…
Following my log above, you can do some testing to verify then
is there an URC that notify us the socket has been closed like quectel’s urc which is +QIURC: “closed”, ?
you can see here:
or you can type AT+KTCPCFG? to check
do you know any other remote server like “flake.legato.io” to test tcp/udp ?
No, i don’t know
I used my own tcp server for testing
how do we know whether the client or the server close the session ? does it reflect through response or URC ?
yes, i think so
you can do a simple test to verify by closing the TCP connection on server side
I need a clearer answer. URC or response (OK), in all the cases, please
have you done any test to verify?
if yes, please paste your test log here
No, I don’t have the module right now, and i need answer immediately
here is my testing, once TCP server closes the connection, you will see unsolicited message +KTCP_NOTIF:
+CEREG: 1,"C672","0188A9DF",9
AT+KCNXCFG=1,"GPRS","nbiot"
OK
AT+KCNXPROFILE=1
OK
AT+KTCPCFG=1,0,"123.123.123.123",5048
+KTCPCFG: 1
OK
AT+ktcpcnx=1
OK
+KCNX_IND: 1,1,0
+KTCP_IND: 1,1
+KTCP_NOTIF: 1,4
ati3
HL7900.4.5.22060521
OK
BTW, when will you get back your own module to perform your own testing?
thanks for your log. But to be clear, I would like to identified all the case:
when HL7900 is client:
- +KTCP_NOTIF :1,4 or +KUDP_NOTIF:1,4 indicate the remote server has closed the session
- KTCPCLOSE or KUDPCLOSE and response OK indicate the host client (hl7900) has closed the session
When HL7900 is server:
- +KTCP_NOTIF :1,4 or +KUDP_NOTIF:1,4 indicate the remote client has closed the session
- KTCPCLOSE or KUDPCLOSE and response OK indicate the host server (hl7900) has closed the session
Am I right ? Correct me if I’m wrong
