Skip to content
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.
This repository has been archived by the owner on Jan 14, 2022. It is now read-only.

AT+CIPSTART bug when using UDP and DNS lookup #7

Open
@trickedj

Description

Hi Espressif team, well done for a great product

I hope this is the correct place to post but I have found a debug in the AT command implementation.
I am using at_v0.20_14_11_28 to contact a NTP server via UDP. If I use the IP address it works ok as below

AT+CIPMUX=0
AT+CIPSTART="UDP","134.130.4.17",123
AT+CIPSEND=48
NTP Recieved OK

However if I use a domain name, the DNS lookup works correctly but the following AT+CIPSEND hangs with no > data prompt

AT+CIPMUX=0
AT+CIPSTART="UDP","pool.ntp.org",123
AT+CIPSTATUS returns +CIPSTATUS:0,"UDP","217.114.59.3",123,25349,0
AT+CIPSEND=48 - hangs with no > data prompt

I have looked at the source code for AT+CIPSTART in 'at_ipCmd.c' and i see that for a UDP start with IP address
espconn_create is called at line 818 (TCP calls espconn_connect). However if a DNS lookup is required, the callback function
at_dns_found calls espconn_connect for both TCP and UDP !

I think at_dns_found should call espconn_create for UDP ?

Also at line 731 "ALREAY CONNECT\r\n" should be "ALREADY CONNECT\r\n" or even better english is "ALREADY CONNECTED\r\n"

I hope you can correct this problem. If you like to post new user.bin file I can test it out

Thankyou
Dennis Tricker
UK

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions