UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer msaleh87
Observer
40,580 Views
Registered: ‎08-25-2008

send UDP packets with LwIP

Hi folks

 

I am new to EDK and LwIP

 

I want to send data from my kit to my pc "with UDP or TCP"

 

I red the XAPP1026 and has developed the following code

 

 

#include <stdio.h> #include <string.h> #include "xenv_standalone.h" #include "xparameters.h" #include "platform.h" #include "lwip/err.h" #include "lwip/udp.h" #include "netif/xadapter.h" #ifdef XPAR_ETHERNET_MAC_BASEADDR #define EMAC_BASEADDR XPAR_ETHERNET_MAC_BASEADDR #elif XPAR_LLTEMAC_0_BASEADDR #define EMAC_BASEADDR XPAR_LLTEMAC_0_BASEADDR #else #error #endif int main() { struct netif *netif, server_netif; struct ip_addr ipaddr, pc_ipaddr, netmask, gw; /* the mac address of the board*/ unsigned char mac_ethernet_address[] = { 0x00, 0x0a, 0x35, 0x00, 0x01, 0x02 }; struct pbuf *p; unsigned char buffer[1200] = "my name is xxxxxxx"; netif = &server_netif; #ifdef __MICROBLAZE__ microblaze_init_icache_range(0, XPAR_MICROBLAZE_0_CACHE_BYTE_SIZE); microblaze_init_dcache_range(0, XPAR_MICROBLAZE_0_DCACHE_BYTE_SIZE); #endif /* enable caches */ XCACHE_ENABLE_ICACHE(); /* initliaze IP addresses to be used */ IP4_ADDR(&ipaddr, 192, 168, 1, 10); IP4_ADDR(&pc_ipaddr, 192, 168, 1, 100); IP4_ADDR(&netmask, 255, 255, 255, 0); IP4_ADDR(&gw, 192, 168, 1, 1); lwip_init(); /* Add network interface to the netif_list, and set it as default */ xemac_add(netif, &ipaddr, &netmask, &gw, mac_ethernet_address, EMAC_BASEADDR); netif_set_default(netif); /* specify that the network if is up */ netif_set_up(netif); /* start the UDP server */ //------------------------ struct udp_pcb *pcb; err_t err; unsigned port = 7; unsigned pc_port = 8080; /* create new UDP PCB structure */ pcb = udp_new(); err = udp_bind(pcb, IP_ADDR_ANY, port); err= udp_connect(pcb, &pc_ipaddr, pc_port); p = pbuf_alloc(PBUF_TRANSPORT,4096,PBUF_RAM); p->payload = buffer; udp_send(pcb,p->payload); XCACHE_DISABLE_DCACHE(); XCACHE_DISABLE_ICACHE(); #ifdef __MICROBLAZE__ microblaze_init_dcache_range(0, XPAR_MICROBLAZE_0_DCACHE_BYTE_SIZE); microblaze_init_icache_range(0, XPAR_MICROBLAZE_0_CACHE_BYTE_SIZE); #endif return 0; }

 

 

 

but when I connect the board to my pc and run wireshark, it captures the following

 

 

I think the board is unable to respond to the ARP message sent by the pc containing its MAC Address

 

So, what can I do

 

Shall I add something to my code to accept the ARP message sent by the PC

 

thanks

 

 

0 Kudos
28 Replies
40,565 Views
Registered: ‎08-21-2008

Re: send UDP packets with LwIP

Hello.

Is your link getting established as LOCAL AREA CONNECTION?

Are you able to connect from PC to board successfully through HYPERTERMINAL WINSOCK? 

Best of luck.
--
Unlimited in my Limits.
0 Kudos
Observer msaleh87
Observer
40,558 Views
Registered: ‎08-25-2008

Re: send UDP packets with LwIP

YES, my connection is a LOCAL AREA CONNECTION

ip: 192.168.1.100

netmask:255.255.255.0

 

I was able to run the echo server successfully, I used Telnet to connect to my FPGA

 

I want to know if the following sequence is complete or there is something missing

 

pcb = udp_new(); udp_bind(pcb, IP_ADDR_ANY, port); udp_connect(pcb, &pc_ipaddr, pc_port); udp_send(pcb,p->payload);

 

 

 

Does anyone has a code to send streaming data from the FPFA to thePC (UDP or TCP or anything else)

 

Thanks for your reply

0 Kudos
40,556 Views
Registered: ‎08-21-2008

Re: send UDP packets with LwIP

OK.

So linkup is taking place but are you able to connect using the Connect request from the client side. Because then only you can transfer data otherwise not.

Check IP address, gateway and mask on PC as well as board side. They should be in domain to connect. As far as sequence is concerned its ok.

Best of luck.
--
Unlimited in my Limits.
0 Kudos
Observer msaleh87
Observer
40,539 Views
Registered: ‎08-25-2008

Re: send UDP packets with LwIP

I dont know what Connect request from the client is

 

the fpga address is 192.168.1.10

the pc address   is  192.168.1.100

 

they have thae samw netmask and gateway

 

so they are in the same domain

0 Kudos
40,537 Views
Registered: ‎08-21-2008

Re: send UDP packets with LwIP

In general, Server is always in the listening mode on a particular port. Clients send requests to server at that port in order to connect to the server for communication.

For server you will always find last statement as Listen() and for client you will always findlast statement as connect().

Your board is working as client or server? 

If your board is working as server then you must be having certain client application also on the PC side from where you will send request to board.

Also try to give IP addresses to your PC and Board such that the difference between the two stays 1. 

Also note that xapp1026 is for marvel PHY and if you are using any other PHY then you have to explicitly define the speed. 

Message Edited by prateek_bhatt on 06-26-2009 05:51 AM
Best of luck.
--
Unlimited in my Limits.
0 Kudos
Observer msaleh87
Observer
40,524 Views
Registered: ‎08-25-2008

Re: send UDP packets with LwIP

Thanks for you elaboration

 

My fpga operates as client and my pc as server

 

but when the command "connect()" is executed, the fpga senda an ARP request  "Who has 192.168.1.100" the pc responds as follows 192.168.1.100 is at 00:0f:ea:3b:44:f9

 

Now the fpga should receive this reply and register the pc MAC Address

 

but this does not happen and the fpga sends the request again, as if it didnt see the reply

 

so why it does not hear the reply

 

I aim is not to implement an ethernet protocol, all I need is to send data from fpga to pc thru ethernet,

 

thus, is there any code to do such a thing?

 

thanks

0 Kudos
40,490 Views
Registered: ‎08-21-2008

Re: send UDP packets with LwIP

Hello.

there is no code as such apart from xapp1026.

Seems like your the connect request is not accepted at the PC end.

Try to keep IP addresses of both PC and Board as close as possible.

Like if PCs address is 192.168.1.15

then Board address is 192.168.1.16

Also keep your heap and stack size to 0x40000 in the linker script. 

Best of luck.
--
Unlimited in my Limits.
0 Kudos
Explorer
Explorer
40,424 Views
Registered: ‎01-04-2009

Re: send UDP packets with LwIP

Hi, The networking works fine. (I have it on my  XUPV2P, and yes it did take some time to get it working)

 

But if you are using version 3.X of the networking , should you not have interrupt  servicing enabled to ensure that the networknig code is able to  handle data in the back ground?

 

your code does nto appear to match the  recommended model.

 

 

Steve

 

 

0 Kudos
Observer msaleh87
Observer
40,408 Views
Registered: ‎08-25-2008

Re: send UDP packets with LwIP

I am really appreciative to your kind reply

 

but please could you help me as I am a beginner

 

what is version 3.X of the networking

 

and what is the recommended model

 

and what is the error of my code

 

really any help would be well receivwd

 

thanks

0 Kudos
Visitor naz56
Visitor
36,604 Views
Registered: ‎05-22-2010

Re: send UDP packets with LwIP

i think PCPORT n PORT should have same value.its a guess..
0 Kudos
Visitor davidhdeze
Visitor
36,051 Views
Registered: ‎06-29-2011

Re: send UDP packets with LwIP

Hello,
I think that you should have set a receive callback for a UDP PCB with the function "udp_recv (struct udp_pcb *pcb, void(*recv)(void *arg, struct udp_pcb *upcb, struct pbuf *p, struct ip_addr *addr, u16_t port), void *recv_arg)". So, the udp_pcd construction will be complete.


Regards.

0 Kudos
Explorer
Explorer
35,525 Views
Registered: ‎04-16-2009

Re: send UDP packets with LwIP

Right now, I have got the same problem, in the previously working UDP design. Actually, the case was preceded by SDK crash and restart in a similar but different worspace/project. So that I unintentionally loaded the FPGA with a wrong bitstream. I was very surprised that nothing happens after ARP, once switched to the right software. Reconfigured the FPGA with a correct bitstream resolved the stalling at ARP and UDP started to pass again. Thanks and enjoy.

 

In the other case, I have commented out the

		xemacif_input(netif);
		transfer_data();

 in the main loop. Check that you check them continously.

0 Kudos
Visitor traana
Visitor
35,428 Views
Registered: ‎01-30-2013

Re: send UDP packets with LwIP

Hi,

 

Could you please send me the UDP Example code for send and reeive . Any help would be appreciated and helpful.

 

 

 

Regards

 

 

 

0 Kudos
Explorer
Explorer
35,254 Views
Registered: ‎04-16-2009

Re: send UDP packets with LwIP

udp.c

 

#include <stdio.h>
#include <string.h>

#include "lwip/err.h"
#include "lwip/udp.h"



struct ip_addr forward_ip;
//#define fwd_port 1234
#define fwd_port 5001
#define transmit_port 5001

void udp_echo_recv(void *arg, struct udp_pcb *pcb, struct pbuf *p, struct ip_addr *addr, u16_t port){
	int i;

	xil_printf("received at %d, echoing to the same port\n",pcb->local_port);
	//dst_ip = &(pcb->remote_ip); // this is zero always
      if (p != NULL) {
//    	  printf("UDP rcv %d bytes: ", (*p).len);
//    	  for (i = 0; i < (*p).len; ++i)
//			printf("%c",((char*)(*p).payload)[i]);
//    	printf("\n");
            //udp_sendto(pcb, p, IP_ADDR_BROADCAST, 1234); //dest port

    	udp_sendto(pcb, p, &forward_ip, fwd_port); //dest port
            pbuf_free(p);
      }
}

struct udp_pcb *broadcast_pcb;

#define out_buf_size 50
int out_buf_i = 0;
int buf[out_buf_size];

void udp_sample(int sample) {

	buf[out_buf_i] = sample;
	out_buf_i++;
	if (out_buf_i == out_buf_size) {

			struct pbuf * p = pbuf_alloc(PBUF_TRANSPORT, out_buf_size * sizeof(int), PBUF_REF);
			p->payload = buf;

			//xil_printf("udp sampes to port %d\n", fwd_port);
			udp_sendto(broadcast_pcb, p, &forward_ip, fwd_port); //dest port
			pbuf_free(p);

			out_buf_i = 0;

	}
}


void start_udp( vBasicTFTPServer, pvParameters ){
	struct udp_pcb *ptel_pcb = udp_new();
	int port = fwd_port;

	udp_bind(ptel_pcb, IP_ADDR_ANY, port);
	IP4_ADDR(&forward_ip, 192, 168,   1, 1);
	//IP4_ADDR(&forward_ip, 255, 255,   255,  255);
	xil_printf("Listening UDP datagrams at %d, forwarding to port=%d at " , port, fwd_port);
	print_ip("", &forward_ip);

	udp_recv(ptel_pcb, udp_echo_recv, NULL);

	broadcast_pcb = udp_new(); // AUDIO
//	int i;
//	for (i = 0 ; i != out_buf_size ; i++)
//		udp_sample(i);

}


 

 main.c

 

#include <stdio.h>

#include "xparameters.h"

#include "netif/xadapter.h"

#include "platform.h"
#include "platform_config.h"

void print_app_header();
int start_application();
void lwip_init();

void
print_ip(char *msg, struct ip_addr *ip) 
{
	print(msg);
	xil_printf("%d.%d.%d.%d\n\r", ip4_addr1(ip), ip4_addr2(ip), 
			ip4_addr3(ip), ip4_addr4(ip));
}

void
print_ip_settings(struct ip_addr *ip, struct ip_addr *mask, struct ip_addr *gw)
{

	print_ip("Board IP: ", ip);
	print_ip("Netmask : ", mask);
	print_ip("Gateway : ", gw);
}

int main()
{
	struct netif *netif, server_netif;
	struct ip_addr ipaddr, netmask, gw;

	/* the mac address of the board. this should be unique per board */
	unsigned char mac_ethernet_address[] = { 0x00, 0x0a, 0x35, 0x00, 0x01, 0x02 };

	netif = &server_netif;

	init_platform();

	/* initliaze IP addresses to be used */
	IP4_ADDR(&ipaddr,  192, 168,   1, 10);
	IP4_ADDR(&netmask, 255, 255, 255,  0);
	IP4_ADDR(&gw,      192, 168,   1,  1);

	print_app_header();
	print_ip_settings(&ipaddr, &netmask, &gw);

	lwip_init();

  	/* Add network interface to the netif_list, and set it as default */
	if (!xemac_add(netif, &ipaddr, &netmask, &gw, mac_ethernet_address, PLATFORM_EMAC_BASEADDR)) {
		xil_printf("Error adding N/W interface\n\r");
		return -1;
	}
	netif_set_default(netif);
	
	/* Create a new DHCP client for this interface.
	 * Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at
	 * the predefined regular intervals after starting the client.
	 */
	/* dhcp_start(netif); */

	/* now enable interrupts */
	platform_enable_interrupts();

	/* specify that the network if is up */
	netif_set_up(netif);

	/* start the application (web server, rxtest, txtest, etc..) */
	start_application();


	init_audio();

	start_udp();

	/* receive and process packets */
	while (1) {
		xemacif_input(netif);
		pump_audio(); // calls udp_sample(sample)
	}

	/* never reached */
	cleanup_platform();

	return 0;
}

 

 

Visitor 0484036
Visitor
35,184 Views
Registered: ‎05-21-2013

Re: send UDP packets with LwIP

Hello,


I used the above code, I can receive ans send the same packet. But if I just want to send a packet without receiving I do not know what it does do. I spent a lot of time, and I have not found the function which just send a packet.


Thank you very much for your help.

0 Kudos
Explorer
Explorer
35,139 Views
Registered: ‎04-16-2009

Re: send UDP packets with LwIP

udp_sample()

Sends data separately from echo

0 Kudos
Visitor oe7aft
Visitor
26,051 Views
Registered: ‎04-26-2016

Re: send UDP packets with LwIP

thank'you very much for the code!

0 Kudos
Explorer
Explorer
20,559 Views
Registered: ‎03-09-2017

Re: send UDP packets with LwIP

Hi, to use these programs do i need to install linux on my SoC( i am using zedboard currently) and what is the client here, is it your PC? If so , what application is being used on the client side of the PC?

0 Kudos
Explorer
Explorer
20,552 Views
Registered: ‎03-09-2017

Re: send UDP packets with LwIP

Iam getting this error when i copied these files into my project

for the libraries xio.h and xintc.h in my main file

 

Description Resource Path Location Type
fatal error: xio.h: No such file or directory main.c /udp_server/src line 20 C/C++ Problem

 

 

0 Kudos
10,303 Views
Registered: ‎06-26-2017

Re: send UDP packets with LwIP

I have developed it.

 

 For sending UDP packets using LwIP libraries.

 

 

#include <stdio.h>
#include <string.h>

#include "xparameters.h"

#include "netif/xadapter.h"

#include "platform.h"
#include "platform_config.h"

#include "lwip/udp.h"
#include "lwipopts.h"

#ifndef __PPC__
#include "xil_printf.h"
#endif

void print_headers();
int start_applications();
int transfer_data();
void platform_enable_interrupts();
void lwip_init(void);
void tcp_fasttmr(void);
void tcp_slowtmr(void);


#if LWIP_DHCP==1
extern volatile int dhcp_timoutcntr;
err_t dhcp_start(struct netif *netif);
#endif

//extern volatile int TxPerfConnMonCntr;
extern volatile int TcpFastTmrFlag;


extern volatile int TcpSlowTmrFlag;

/*
void delay(unsigned int mseconds)
{
clock_t goal = mseconds + clock();
while (goal > clock());
}
*/
void print_ip(char *msg, struct ip_addr *ip)
{
print(msg);
xil_printf("%d.%d.%d.%d\r\n", ip4_addr1(ip), ip4_addr2(ip),
ip4_addr3(ip), ip4_addr4(ip));
}

void print_ip_settings(struct ip_addr *ip, struct ip_addr *mask, struct ip_addr *gw)
{
print_ip("Board IP: ", ip);
print_ip("Netmask : ", mask);
print_ip("Gateway : ", gw);
}


void PayloadID(unsigned char data[])
//void framecounter(char data,int payloadcount)
{
char text[16] = "PAYLOAD_DATA "; // Adding Payload to Data
// static int digit[]=0;
int i=0,j=0,k=0;

for(k = 0; text[k] != '\0'; ++k, ++j)
{
data[j] = text[k];
}


}

 

int main()
{
struct netif *netif, server_netif; //Network structure define
struct ip_addr ipaddr, netmask, gw; //DHCP Settings

// Creation of a basic UDP Packet
err_t error;
struct ip_addr ip_remote;
struct udp_pcb *udp_1;
struct pbuf *p;

u16_t Port = 49152;
int i=0;

int buflen = 500;

int count = 0;

/* The MAC address of the board. this should be unique per board */
unsigned char mac_ethernet_address[] = { 0x00, 0x00, 0x00, 0x01, 0x00, 0x00 };
//before sending to network


unsigned char data[25000];

int len =0;
len = sizeof(data);
data[len] = data[len];


netif = &server_netif;
init_platform();

 


xil_printf("\r\n\r\n");
xil_printf("-----lwIP RAW Mode Demo Application ------\r\n");

/* initliaze IP addresses to be used */

 


#if (LWIP_DHCP==0)
IP4_ADDR(&ipaddr, 192, 168, 1, 75);
IP4_ADDR(&netmask, 255, 255, 255, 0);
IP4_ADDR(&gw, 192, 168, 1, 1);
print_ip_settings(&ipaddr, &netmask, &gw);
#endif

#if (LWIP_DHCP==1)
ipaddr.addr = 0;
gw.addr = 0;
netmask.addr = 0;
#endif

lwip_init();

/* Add network interface to the netif_list, and set it as default */
if (!xemac_add(netif, &ipaddr, &netmask, &gw, mac_ethernet_address, PLATFORM_EMAC_BASEADDR))
{
xil_printf("Error adding N/W interface\r\n");
return -1;
}
netif_set_default(netif);

/* specify that the network if is up */
netif_set_up(netif);

/* now enable interrupts */
platform_enable_interrupts();

#if (LWIP_DHCP==1)
/* Create a new DHCP client for this interface.
* Note: you must call dhcp_fine_tmr() and dhcp_coarse_tmr() at
* the predefined regular intervals after starting the client.
*/
dhcp_start(netif);
dhcp_timoutcntr = 24;
//TxPerfConnMonCntr = 0;
while(((netif->ip_addr.addr) == 0) && (dhcp_timoutcntr > 0))
{
xemacif_input(netif);
if (TcpFastTmrFlag)
{
tcp_fasttmr();
TcpFastTmrFlag = 0;
}
if (TcpSlowTmrFlag)
{
tcp_slowtmr();
TcpSlowTmrFlag = 0;
}
}

if (dhcp_timoutcntr <= 0)
{
if ((netif->ip_addr.addr) == 0)
{
xil_printf("DHCP Timeout\r\n");
xil_printf("Configuring default IP of 192.168.1.75 \r\n");
IP4_ADDR(&(netif->ip_addr), 192, 168, 1, 75);
IP4_ADDR(&(netif->netmask), 255, 255, 255, 0);
IP4_ADDR(&(netif->gw), 192, 168, 1, 1);
}
}
/* receive and process packets */
print_ip_settings(&(netif->ip_addr), &(netif->netmask), &(netif->gw));
#endif

/* start the application (web server, rxtest, txtest, etczzz..) */
xil_printf("Setup Done");

IP4_ADDR(&ip_remote, 192, 168, 1, 6); //windows pc

udp_1 = udp_new();

error = udp_bind(udp_1, IP_ADDR_ANY, Port);

if (error != 0)
{
xil_printf("Failed %d\r\n", error);
}
else if (error == 0)
{
xil_printf("Success in UDP binding \r\n");
}
error = udp_connect(udp_1, &ip_remote, Port);
if (error != 0)
{
xil_printf("Failed %d\r\n", error);
}
else if (error == 0)
{
xil_printf("Success in UDP connect \r\n");
}

 

 

while (1)
{
xemacif_input(netif);
count++;


if (count == 80000)
{
p = pbuf_alloc(PBUF_TRANSPORT, buflen, PBUF_POOL);

if (!p)
{
xil_printf("error allocating pbuf \r\n");
return ERR_MEM;
}

PayloadID(data);
// payloadcount++;
memcpy(p->payload, data, buflen);
udp_send(udp_1, p);
xil_printf("\n SEND UDP Packets \r\n");
//delay(500);
count = 0;
// payloadcount=0;
pbuf_free(p);
}
}
}

 

0 Kudos
Observer kdmdasu
Observer
9,767 Views
Registered: ‎10-04-2017

Re: send UDP packets with LwIP

Ya... Me too getting same problem...

After importing main.c and udp.c , do we need to delete echo.c from the project that has been created for lwIp?

 

Thanks in advance.

0 Kudos
Visitor lancesimms
Visitor
9,245 Views
Registered: ‎03-27-2017

Re: send UDP packets with LwIP

I was having problems getting this all working as well. I have written an tutorial that uses the MicroZed as a UDP server to cover some of the issues I had. 

 

http://lancesimms.com/Xilinx/MicroZed_UDP_Server_for_Waveform_Centroiding_Introduction.html

 

Source files are also included in the tutorial.

 

 

0 Kudos
Newbie drhatch
Newbie
8,749 Views
Registered: ‎01-04-2018

Re: send UDP packets with LwIP

Lance's project is great.

Based on his work, I have created an example system that uses UDP to transmit and receive data. It transmits a small UDP packet every 0.5 seconds, and also receives UDP packets. You can modify it as needed for your application.

 

This example project does not do anything with the UDP data payload it receives -- it just tosses the data. You can easily insert your application code to do something with it.


I have posted the project (along with instructions) on Github here: https://github.com/delhatch/Zynq_UDP

0 Kudos
Visitor gurinderps
Visitor
8,382 Views
Registered: ‎06-28-2018

Re: send UDP packets with LwIP

I am trying to run this project but I am getting an error at 

RemoteAddr = *addr;

The error is 'RemoteAddr has an incomplete type 'struct ip_addr'

0 Kudos
Visitor gurinderps
Visitor
8,313 Views
Registered: ‎06-28-2018

Re: send UDP packets with LwIP

Thanks for your efforts, I would like to add something here. There are few problems with the code on  https://github.com/delhatch/Zynq_UDP

1. If you are working on the newer version of Vivado then you have to change struct ip_addr to ip4_addr.

2. there is a minute problem in main.c ,  if (SendResults ==1){.....} for sending udp packets, this loop never executes as by default the value of SendResults =0, and TcpslowTmrFlag never executes. so at the start of while loop and before if (TcpSlowTmrFlag) I wrote TcpSlowTmrFlag=1, then it enters in the udp packet sending loop. and keeps on executing xil_printf(".");

 

0 Kudos
Visitor salman
Visitor
8,156 Views
Registered: ‎08-02-2008

Re: send UDP packets with LwIP

so, if i have udp_sample in a while {1}  loop of main, what should be happening? Should I see these values on wireshark on the connected pc to my ZC702 board?

 

 

while (1) {
    /*    if (TcpFastTmrFlag) {
            tcp_fasttmr();
            TcpFastTmrFlag = 0;
        }
        if (TcpSlowTmrFlag) {
            tcp_slowtmr();
            TcpSlowTmrFlag = 0;
        }*/
        //xemacif_input(echo_netif);
        udp_sample(5);
        //transfer_data();
    }

0 Kudos
Visitor tibythomas
Visitor
5,863 Views
Registered: ‎10-03-2018

Re: send UDP packets with LwIP

hello,

i am doing my project on Microzed to connect and send a packet of data,i am new to this,trying it for a long time using example project, vivado 2018.1,i would be a great help if anyone would help me,if you post some program which i can understand excluding extra steps i have

-Lwip, Standalone, UDP protocol, tera term

-i used the reference program to send data, but my program is stuck at connect and cant send data, please guide me

-how to set ip & call it when using in connect and send?

-i also have doubt of what port and ip is to be called ? as what are remote_ip, dest_ip, local_ip and ports? when we connect & send what ip and port needs to be defined and how to set ? how to check if the data is being transmitted?

 

0 Kudos
4,341 Views
Registered: ‎12-19-2018

Re: send UDP packets with LwIP

I appreciate your note: 

1. If you are working on the newer version of Vivado then you have to change struct ip_addr to ip4_addr.

I have to go through all the declarations to change it.

 

Thanks

0 Kudos