This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How to flush the send buffer? pktNumFrameBufs

Hello. This is the first time to ask a question in this site.

I am not a good English speaker so If you need any more information about what I ask, tell me please.

I will answer you as precise as I can.

I am trying to do raw socket programming with C2000 and it performs mostly well. But I found a problem.

I need to send some packets to another embedded system(ET1100: EtherCAT system).

At first for a test, I tried to send packets to another notebook then It performed well.

I could send packets that I want.

But when I tried to send raw packets to my embedded system, I could only send 10 packets.

I think it is related to pktNumFrameBufs configuration.

pktNumFrameBufs is set to 10 for now so I can send only 10 packets.

After changing pktNumFrameBufs to 20 then I could send 20 packets.

I tried to change pktNumFrameBufs to a big number but I couldn't.

I need to send a packet per a second But for now I can send only 10 packets.

This is a big problem.

I think Network Interface Card does something for loopback. But I'm not sure.

Because after I set the NIC unused, the same situation occured.

Only 10 packets were sent.

How should I do?

I am a beginner of socket programming. So I even don't know which side is the problem.

Socket programming or my embedded or anything else.

I need your help.

Thank you in advance.

Jin.

  • Can you use WireShark to see the packets on the network? Do it for both the working case (laptop) and the non-working case. You'll be able to see if the remote side is doing any communication back to your C2000.

    Can you give a more complete picture of the system? Is the C2000 interfacing to a ET1100 which is connected to the network? What is on the remote device. It sounds like it is another ET1100. What is the processor connected to that ET1100?

    Also, your English is quite good!

    Todd