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.

RTOS/PROCESSOR-SDK-AM437X: UDP transmit error

Part Number: PROCESSOR-SDK-AM437X


Tool/software: TI-RTOS

When I use the sendto() to send a udp frame, it return -1, and when i use the fderror(), i get the error code 61.

please tell What does it mean wrong?

pdk_am437x_1_0_10,ndk_2_26_00_08,bios_6_52_00_12,Code Composer Studio 7.4.0

  • Hi,

    See ti\ndk\inc\serrno.h

    #ifndef NDK_ECONNREFUSED
    #define NDK_ECONNREFUSED 61 /* Connection refused */
    #endif

    Regards, Eric
  • Hi Eric,

    in the TI Network Developer's Kit (NDK) v2.25 API Reference Guide.pdf, page 267, the sendto() has not this error no. also, the udp is used on unconnected, non-connection oriented sockets, so the 61 should be not the connected refused.

    I think it should mean something different. and what is it?

  • Hi,

    I thought UDP is used by many people and should work smoothly. We have simple NIMU driver examples under
    pdk_am437x_1_0_14\packages\ti\transport\ndk\nimu\example\src for AM437x.

    There is also UDP server example under pdk_am437x_1_0_14\packages\ti\transport\ndk\nimu\example\client\src, which you can port to AM437x.

    Regards, Eric
  • Hi Eric,

    I am now using the AM437x Example. I had successfully implemented the transceiver of UDP packets in the test program, but I encountered this problem when I was using UDP to receive on my engineering project. So, I want to know  what causes this function to return the error code when receiving UDP packets.

  • Hi,

    UDP is connection-less. When you open the UDP server, did you use SOCK_DGRAM or SOCK_STREAM?

    Regards, Eric
  • I used the SOCK_DGRAM.

  • Hi,

    "I am now using the AM437x Example. I had successfully implemented the transceiver of UDP packets in the test program, but I encountered this problem when I was using UDP to receive on my engineering project. " ========>If TI NIMU example with UDP server worked well to do data Tx and Rx, then you can build your test example based on it, what is the major difference between your UDP program that failed and the TI working one?

    Regards, Eric