Hello,
I am trying to connect 2 TMS570LS3137 boards using LWIP stack.
This is how i have tried it.
In the same project i have implemented for both sender and receiver.
Sender:
MAC ADDR: {0x00, 0x1A, 0x8C, 0xF0, 0xC3, 0xC4} ;
IP ADDRESS(STATIC): 192.168.178.24
pcb = tcp_new(); // Initialized the connection
pcb = tcp_alloc(pcb->prio);
err= tcp_bind(pcb, &ip_addr_src, 80); // Bind with the local address (192.168.178.24)
err= tcp_connect(pcb, &ip_addr_dest,60, hc_connecteed); // Connect with remote address (192.168.178.23 - Receiver with MAC {0x00, 0x1A, 0x8C, 0xF0, 0xC3, 0xC9} )
Reciever;
pcb = tcp_new();
err= tcp_bind(pcb, &ip_addr_dest, 60);
tcp_connect(pcb,&ip_addr_src,80, 0);
pcb = tcp_listen(pcb);
tcp_accept(pcb, hc_accept);
In hc_accep & hc_connect, i have tcp_write, tcp_output, tcp_recv, tcp_err functions. And the return value of tcp_bind was ERR_OK.
When i checked it with Wireshark, i actually see no connection between the boards.
Is there any mistake in my approach??
Please help
Regards
subramanya