public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Re:  Networking in a ROM build
@ 2001-08-23  9:03 Fano Ramparany
  2001-08-23  9:07 ` [ECOS] " Trenton D. Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fano Ramparany @ 2001-08-23  9:03 UTC (permalink / raw)
  To: Trenton D. Adams; +Cc: eCos Disuss

Trenton,
This is exactly the problem we are currently facing and trying to solve
(see some recent threads). A socket configuration that might
solve your problem is to increase the socket timeout value:

#include <timer.h>
#define SOCK_TIMEOUT 50
...
int sd,len,rc;
sd = socket(AF_INET, SOCK_STREAM, 0);
struct timeval tv;
...
tv.tv_sec = SOCK_TIMEOUT;
tv.tv_usec = 0;
setsockopt(sd, SOL_SOCKET, SO_RCVTIMEO, &tv, sizeof(tv));

This partially solved our problem, however, by sniffing the network
traffic (using tcpdump)
We have observed some strange behaviour on the ROM version of our
application, which seems to buffer the first packets and at some stage
sends them alltogether over the network.

I've also added some delay between the ethernet driver initialization
and the ip stack initialization, but this didn't solve the problem.

I'll now try to add some tracing (CYGDBG_USE_ASSERT) to go further.

Fano

> When using a ROM version, the following thing happens:
> The transmit and status signal threads connect to my windows machine
> just fine.  After they are connected, my windows machine attempts to
> connect back to the embedded system's CommandThread socket.  The
> connection attempt times out.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-08-31 10:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-23  9:03 [ECOS] Re: Networking in a ROM build Fano Ramparany
2001-08-23  9:07 ` [ECOS] " Trenton D. Adams
2001-08-23 10:26 ` [ECOS] " Trenton D. Adams
2001-08-24  8:02   ` Fano Ramparany
2001-08-23 14:46 ` Trenton D. Adams
2001-08-31 10:01   ` Fano Ramparany

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).