[lwip-users] tcp_connection (no SYN packet on server side)

2018-06-01 Thread inderjit
Hi,I'm new to LWIP and trying to get tcp/ip protocol working with static ip.I have SAM4E based MCU that is to be worked as client and I'm just mocking a server on raspberry pi (no implementation so far, only monitoring using tcpdump and iptables. The devices are connected by ethernet cable RJ45.My

Re: [lwip-users] TCP retransmissions although packet has been recieved

2018-10-03 Thread inderjit
Simon, Can you please elaborate? I'm following example code from: https://github.com/kennethnoyens/lwipHttpClient/blob/master/httpclient.c struct pbuf is a linked list and referring to the current element at top at that

Re: [lwip-users] TCP retransmissions although packet has been recieved

2018-10-03 Thread inderjit
Jens, I'm using 1.4.1 as there is no support for the PHY from ATMEL on 2.x.x. AFA= IK anyway as I had hard time integrating it. I followed this code reference: httpclient.c One thing I missed was this: tcp_recved(pcb

Re: [lwip-users] TCP retransmissions although packet has been recieved

2018-10-03 Thread inderjit
Jens, I'm using 1.4.1 as there is no support for the PHY from ATMEL on 2.x.x. AFA= IK anyway as I had hard time integrating it. I followed this code reference: httpclient.c One thing I missed was this: tcp_recved(pcb

Re: [lwip-users] TCP retransmissions although packet has been recieved

2018-10-04 Thread inderjit
Fair enough. I'll revise the code from example code and get back. Thanks! -- Sent from: http://lwip.100.n7.nabble.com/lwip-users-f3.html ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] tcp_connection (no SYN packet on server side)

2018-06-04 Thread Inderjit Singh
the flags to true to redo the connect. Note, this is just for testing not for any other purpose. Once I can see SYN packet then I know I can start implementing properly... .. Inderjit Singh Senior Embedded Engi

Re: [lwip-users] tcp_connection (no SYN packet on server side)

2018-06-04 Thread Inderjit Singh
delay_ms is used throughout our bare metal implementation I can guarantee it's not blocking. tcp_cb_called is called to the registered callback function yes. And sure, main loop as you suggest is functional as well yes. However I fail see why LWIP layer marks SYN_SENT state in pcb but I cannot s

Re: [lwip-users] tcp_connection (no SYN packet on server side)

2018-06-04 Thread Inderjit Singh
OK. i'll try that. .. Inderjit Singh Senior Embedded Engineer, MSc Evidente ES East AB Warfvinges väg 34 SE-112 51 Stockholm Sweden Mobile: +46 (0)70 912 42 69 E-mail: inderjit.si...@eviden

Re: [lwip-users] tcp_connection (no SYN packet on server side)

2018-06-05 Thread Inderjit Singh
Yeah, the procedure is exactly as you descript with address setting, netifadd, etc... IP4_ADDR(&ip, 192, 168, 100, 250); IP4_ADDR(&netmask, 255, 255, 255, 0); IP4_ADDR(&gateway, 192, 168, 100, 1); if (NULL == netif_add(&dev_netif, &ip, &netmask, &gateway, NULL, ethernetif_init, ethernet_input)) {

[lwip-users] TCP retransmissions although packet has been recieved

2018-10-02 Thread Inderjit Singh
get_data(ctx->recv_buf, ctx->recv_buf); } DBG_I("TCP RESPONSE: status:%03d. data_size: %d bytes. err: %d.", ctx->status, ctx->recv_size, err); } return ERR_OK; } Tanks in advance, Inderjit /*

Re: [lwip-users] TCP retransmissions although packet has been recieved

2018-10-05 Thread Inderjit Singh
So, I have updated reception code (from the contrib examples httpd_raw) and still the behaviour is the same (code at bottom). I did a quick and ugly test by calling tcp_ack_now and tcp_output at the end of the function and then the behaviour dramatically improved as ACKs are being sent back an