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.

NDK Ethernet interrupt

Good morning,

I am using a TMDSEVM6678L with BIOS 6.33.5.46 and NDK 2.21.1.38.

I am trying to set up an interrupt to be triggered when a UDP ethernet packet is received. I have been using the NDK with sendto and recvfrom. However the polling of recvfrom is not desirable. Is this possible with the NDK or should I rather look at the ethernet drivers in the PDK?

Thanks

  • Yolindi,

    Can you please clarify a bit more the behavior you’re looking for?

    With recvfrom() there are a few options for selecting blocking or non-blocking behavior.  These are defined by the flags specified when the function is called, and by the configured socket options. For example, if you specify the flag MSG_DONTWAIT the API won’t block to wait for data, and you essentially have a polling mode.  Is this the polling you’re asking about?  

    As an alternative you can specify the MSG_WAITALL flag to have the function block the execution of the thread until all the data is received, or an error is detected.

    Is this second option what you are looking for?

    If you want to instead directly configure and receive an interrupt when data arrives, then yes, it seems you should look at and modify the driver sources to get that behavior.

    Scott