Fwd: UDP packets blocks

Mauro <[email protected]> Fri, 19 Sep 2008 14:30:17 +0200
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Hi Bob,
thank you for your help.

I'm programming on dBUG, so I use OpenTCP stack implementation...so I'm very
unlucky!

Only one thing: there isn't a function tha can re-initialize tcpip engine?or
some functions that can directly inspect incoming TCP buffer without
callback calls? I find OpenTCP documentation, but I suspect that version in
SBCtools is customized for dBUG

thanks  lot.
Mauro



Hi Mauro,

> I have a problem on receiving UDP packets on a WildFiremod board with
> MCF5282 micro.
> I have a program like this:
>
> INT32 udpCallback(......)
> {
>      // if packet is a command, do work
> }
>

Whoever can help you will need to know what TCP stack you are using.

May I ask if you are programming for a dBUG/OpenTCP target or a uClinux
target? If the latter, then you need to direct your question to the
uClinux-dev mailing list:

[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev

You will want to provide more background, such as the uClinux version,
target, etc..

If you are programming for a dBUG/OpenTCP target, the news is not so good:
There is little or no support for OpenTCP any more. Because of this, we need
to think about adapting lwIP to Coldfire/dBUG targets ..and that is a BIG
job ..but lwIP has an active and supportive community.

Bfn,

Bob Furber



> int main(void)
> {
>      tcpip_init(0);
>     gUdp_socket = udp_getsocket(0,udpCallback,0);
>     udp_open(gUdp_socket,port);
>    while(1) tcp_tick();
> }
>
> My problem is that after a couple of time (about 3-4 minutes) that program
> runs without receiving command packets, if I send it a packet, it doesn't
> execute callback. Only after 3 or 4 received packets it executes callback
> and process all packets received. Packets are not lost, because when program
> "wakes-up", it process all packets in the same order that it has received
> them.
> I think that buffer queue hangs for an unknown cause, and then re-starts
> work in the right mode when buffer has more packets.
> What might happens?
> Thank you, regards
> Mauro
>
>
> [email protected] Send a post to the list. [email protected] the list.
> [email protected] Join the list in digest mode.
> [email protected] Leave the list.
>

---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.