Ethernet messaging slowing down

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Ethernet messaging slowing down

1,259 Views
tobiasplayer
Contributor I
Hi,
 
  I'm brand new to Coldfire, Codewarrior and Interniche mini-sockets. I'm using a M52235 Coldfire part and trying to get data in and out of it using Ethernet. I can get a socket to open, receive data and send data, but after about the first 10 packets, the response time slows from about 2mS to about 200mS. The packets are relatively small, only about 80 bytes in length. Eventually I will need to service about 5 sockets at a time and run a web server on the part along with running the true application. I've used several different micros and TCP/IP stacks in the past and never been as confused as I am with this setup. Is there a good place to get example code of basic TCP/IP setup and operation using this part and tools?
 I think part of my problem is that progra is trying to write to the console with every Ethernet transaction and I'm sure that's slowing things down. Is there someway to completely disable and shutdown the console and debug printing? I've removed of the defines associated with these things and still get dtraps and other things printing out the serial port.
 
Thanks, Bob
Labels (1)
0 Kudos
1 Reply

327 Views
tobiasplayer
Contributor I
As I suspected, the following lines are slowing things down:
 
dprintf("pk_free: buffer %p already in bigfreeq\n", pkt);
dprintf("pk_free: buffer %p already in lilfreeq\n", pkt);
 
Turning off debug printing in the ipport.h file doesn't stop these lines from printing anyway.
I'm not sure if these are printing because is wrong or if that's just the way the stack works.
 
 
Bob
0 Kudos