- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,when i try to send out a packet with a for loop.It can't be send.(i inspect through the wireshark).However, when i add the while loop like this:
while(1) { For(i=0;i<20;i++) { SEND PACKET; } } It can send.I wonder is it there has a delay time that i need to include if i don't wan use the while loop.how long should i delay?Can anyone help me?Thank you.Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Presumably the modified code sends lots of packets.
If you are trying to send a single packet only (from a test program) you'll need to ensure the program doesn't exit/return immediately and that is likely to reset everything. I'm not sure what your 'SEND PACKET' does, but clearly it can also fail due to lack of buffers of fifo space (etc) in the MAC engine (unless your code runs slower than ethernet line rate).
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page