Hi ,
i’m facing issue while trying to use AT command for UDP
- i’m using mc60 as modem and trying to connect to a server using AT commands. please check the below flow
[2020-06-12 11:35:43:615_S:] AT+QIFGCNT=0
[2020-06-12 11:35:43:632_R:] OK
[2020-06-12 11:36:37:943_S:] AT+COPS?
[2020-06-12 11:36:37:956_R:] +COPS: 0,0,“airtel”
[2020-06-12 11:36:37:956_R:] OK
[2020-06-12 11:38:43:175_S:] AT+QIMUX=0
[2020-06-12 11:38:43:188_R:] OK
[2020-06-12 11:38:53:223_S:] AT+QIMODE=0
[2020-06-12 11:38:53:232_R:] OK
[2020-06-12 11:39:02:071_S:] AT+QIOPEN=“UDP”,“10.20.30.40”,7007
[2020-06-12 11:39:02:091_R:] OK
[2020-06-12 11:39:02:795_R:] CONNECT OK.
The IP for QIOPEN is some random IP(assume any ip) and any port, still i’m getting CONNECT OK response. any one please explain why i’m getting success reponse for the IP.
2)In the place of IP if i replace it with a Domain Name, it is giving me ERROR response which is actually for not correct format of the command.
[2020-06-12 11:54:09:601_S:] AT+QIOPEN=“UDP”,“https://www.mock-server.com”,7007
[2020-06-12 11:54:09:601_S:] AT+QIOPEN=“UDP”,“https://www.mock-server.com”,7007
[2020-06-12 11:54:09:624_R:] ERROR
is there anything wrong in the format?
any help would be appreciated.
Thank you