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.

Fail to receive large UDP packets

Hi,

I am trying to send an image from my computer to the DSP with udp.

I am able to send data up to 3000 Bytes at once.

If I try to send more I get nothing (socket interrupt function is never called) although the sentdo function returns the right number (in the PC).

I set the buffer size to the maximum with setsockopt and SO_RCVBUF.

Any idea what can be the problem?

 

I use sys/bios 6.31.04.27.

the  DSP is C6678.

 

 

thanks.

  • Hi Ya D,

    Which version of the NDK are you using?

    Are you able to ping the board from a shell?

    Have you run Wireshark? Do you see the data going out from your PC onto the wire?

    Thanks,

    Steve

  • Hi,

    I am using ndk 2.20.3.24.

    Ping works. Also when sending small amount of data everything goes well.

    I was not familiar with Wireshark but I will try next week.

  • Hi,

    This is the wireshark's output when trying to send 6000Bytes:


     

    No.     Time        Source                Destination           Protocol Length Info

        191 153.579185  192.168.2.101         192.168.2.100         IPv4     1514   Fragmented IP protocol (proto=UDP 0x11, off=0, ID=8d1e) [Reassembled in #195]


    Frame 191: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)

    Ethernet II, Src: Apple_dd:d4:22 (00:26:b0:dd:d4:22), Dst: TexasIns_0d:12:33 (90:d7:eb:0d:12:33)

    Internet Protocol Version 4, Src: 192.168.2.101 (192.168.2.101), Dst: 192.168.2.100 (192.168.2.100)



    No.     Time        Source                Destination           Protocol Length Info

        192 153.579201  192.168.2.101         192.168.2.100         IPv4     1514   Fragmented IP protocol (proto=UDP 0x11, off=1480, ID=8d1e) [Reassembled in #195]


    Frame 192: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)

    Ethernet II, Src: Apple_dd:d4:22 (00:26:b0:dd:d4:22), Dst: TexasIns_0d:12:33 (90:d7:eb:0d:12:33)

    Internet Protocol Version 4, Src: 192.168.2.101 (192.168.2.101), Dst: 192.168.2.100 (192.168.2.100)

    Data (1480 bytes)


    No.     Time        Source                Destination           Protocol Length Info

        193 153.579210  192.168.2.101         192.168.2.100         IPv4     1514   Fragmented IP protocol (proto=UDP 0x11, off=2960, ID=8d1e) [Reassembled in #195]


    Frame 193: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)

    Ethernet II, Src: Apple_dd:d4:22 (00:26:b0:dd:d4:22), Dst: TexasIns_0d:12:33 (90:d7:eb:0d:12:33)

    Internet Protocol Version 4, Src: 192.168.2.101 (192.168.2.101), Dst: 192.168.2.100 (192.168.2.100)

    Data (1480 bytes)



    No.     Time        Source                Destination           Protocol Length Info

        194 153.579217  192.168.2.101         192.168.2.100         IPv4     1514   Fragmented IP protocol (proto=UDP 0x11, off=4440, ID=8d1e) [Reassembled in #195]


    Frame 194: 1514 bytes on wire (12112 bits), 1514 bytes captured (12112 bits)

    Ethernet II, Src: Apple_dd:d4:22 (00:26:b0:dd:d4:22), Dst: TexasIns_0d:12:33 (90:d7:eb:0d:12:33)

    Internet Protocol Version 4, Src: 192.168.2.101 (192.168.2.101), Dst: 192.168.2.100 (192.168.2.100)

    Data (1480 bytes)



    No.     Time        Source                Destination           Protocol Length Info

        195 153.579223  192.168.2.101         192.168.2.100         ECHO     123    Request


    Frame 195: 123 bytes on wire (984 bits), 123 bytes captured (984 bits)

    Ethernet II, Src: Apple_dd:d4:22 (00:26:b0:dd:d4:22), Dst: TexasIns_0d:12:33 (90:d7:eb:0d:12:33)

    Internet Protocol Version 4, Src: 192.168.2.101 (192.168.2.101), Dst: 192.168.2.100 (192.168.2.100)

    User Datagram Protocol, Src Port: echo (7), Dst Port: echo (7)

    Echo

     

    On the DSP's side nothing happens.


     

  • Ya D,

    Thanks for trying wireshark.  However, would you be able to save the captured output to a file and attach it to this forum? (it is much easier to read when opened in wireshark itself :)

    Also, what does wireshark show for the working case (sending 3000 bytes)?

    Finally, please confirm that I understand this correctly:

    • 192.168.2.101 = the IP address of your PC
    • 192.168.2.100 = the IP address of the TI DSP

    Thanks,

    Steve

  • Hi,

    The IP addresses are correct.

    When sending 3000Bytes or less the output is the same (except the number of packages).

    I will attach the file as soon as I will re-run it.