Home > other >  Vxworks socket udp send packets lag issues
Vxworks socket udp send packets lag issues

Time:10-26

With the wind river 6.9.2, test conditions are as follows:
1. Send a udp packet testing tasks, the interval of 1 s to send data to the target IP, send data in the send packet number
2. The target machine using caught tools, print receiving information, receive current package information has a unique serial number
3. The network testing tasks at the same time via a serial port after print the current package serial number
The results showed that:
Caught serial number than the serial port to print the serial number of the current just send complete always small 1.

Don't know what the problem? Everyone a great god can you help me to analyse the

Source:

While (1) {
Len=sprintf (testBuff, "I am is 192.168.3.201, I will send the sn belong=% d \ n", count);
If (ERROR==sendto (sockFdForNet1, caddr_t testBuff, (ULONG) len, 0,
(struct sockaddr *) desAddr sockAddrSize)) {
Printf (" ERROR: netSendPro sendto1 \ n ");
}
count++;
Printf (" send total: % d \ n ", count);
TaskDelay (1000);
}
Single step debugging, caught tool, when I click to send the package number is 2, caught tool is received serial number 1, and so on, I send 3, it shows received 2

CodePudding user response:

Count the initial value is how much? If is zero, the result is right,

CodePudding user response:

A second, know, thank you net friend answer!
  • Related