Re: UDP packets blocks
Bob Furber <[email protected]> Thu, 18 Sep 2008 14:05:43 -0700
| Newsgroups | gmane.comp.hardware.motorola.microcontrollers.coldfire |
|---|---|
| Message-ID | <[email protected]> |
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] Join 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.