cancel
Showing results for 
Search instead for 
Did you mean: 

Ethernet STM32F429 with w5500

krishna K H
Associate II
Posted on June 22, 2017 at 16:46

Hi  guy's,

I'm a new person to Ethernet, i try to configured as a client (on STM32F429 controller) ,Initialization is done ,i ping from Command promta on LAP top, and  got a response from  controller. Basic communication is done...

I don't want how to send a data  from  client to server using server URL(I don't have IP address, i have a URL),

i send a data from client to cloud server.

please help me, i struck with last 15 day's...I waiting your reply....

Thanks in advance.

2 REPLIES 2
Posted on June 22, 2017 at 17:04

This is not related to STM32 at all, and only marginally related to W5500. You need to gain a deeper understanding of Internet and its protocols suite first.

URL is resolved into IP address using DNS.

Wiznet has some sort of a

http://wizwiki.net/wiki/doku.php?id=products:w5500:driver&s[]=dns

, but I am not going to investigate this for you.

JW

Zt Liu
Senior III
Posted on June 23, 2017 at 04:29

hi, 

Do you mean your w5500 is working as a HTTP Client?

You need to test your DNS first!

First you need to choose a DNS server for requesting, for example 8.8.8.8 is Google's DNS server.

Check the ioLibrary, there are dns.c and dnc.h files

Just call the routine:

/*

* @brief DNS process

* @details Send DNS query and receive DNS response

* @param dns_ip : DNS server ip

* @param name : Domain name to be queryed

* @param ip_from_dns : IP address from DNS server

* @return -1 : failed. @ref MAX_DOMIN_NAME is too small \n

* 0 : failed (Timeout or Parse error)\n

* 1 : success

* @note This funtion blocks until success or fail. max time = @ref MAX_DNS_RETRY * @ref DNS_WAIT_TIME

*/

int8_t DNS_run(uint8_t * dns_ip, uint8_t * name, uint8_t * ip_from_dns);

Indeed, your question really has little to do with STM32!