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.
Hello,
I am working on the PTPv2 over Ethernet(layer 2 PTPv2) for Tiva TM4C129ENCPDT. I try to send the messages with the NDK Stack.
I am using the NDK Raw Ethernet Sockets Programming Interface with those functions(to send a sync message):
tEMACDMADescriptor g_psTxDescriptor[NUM_TX_DESCRIPTORS];
UINT32 rawether_type = 0x88F7, rawchannel_num = 1;
int val = 7
socket(AF_RAWETH, SOCK_RAWETH, rawether_type);
setsockopt(sraw, SOL_SOCKET, SO_IFDEVICE, &rawchannel_num, sizeof(rawchannel_num));
setsockopt(sraw, SOL_SOCKET, SO_PRIORITY, &val, sizeof(val));
send(sraw, g_psTxDescriptor[ui32Loop].pvBuffer1, 58, 0);
Sending the sync message works fine, but I do not know how to configure the EMAC and DMA driver to get the Timestamps from the 8-words struct tEMACDMADescriptor.
I want to configure them to detect the start of frame and to do the timestamping, so that I can read it from the tEMACDMADescriptor, or where do I read it from?
Always when I change something in the EMAC driver with functions like EMACConfigSet, the transmission with the send function does not work anymore.
Does anybody has an idea how to configure those drivers?
Any help is appreciated.
Best wishes Waldemar