AnsweredAssumed Answered

BSP_DEFAULT_ENET_OUI: accept() never return when MAC address is changed

Question asked by arnogir on Nov 25, 2015
Latest reply on Dec 14, 2015 by arnogir

Hello,

 

By default, the MAC adress OUI is defined with:

#define BSP_DEFAULT_ENET_OUI                { 0x00, 0x00, 0x5E, 0, 0, 0 }

 

then when I'm using ENET_get_mac_address, the 3 MSB Bytes are 0x00, 0x00, 0x5E, and the 3 LSB bytes are according transmitted parameter value.

So, when device is initialized with MAC address 00.00.5E.1.30.39, all work correctly.

Then, I only modify the OS code to test:

#define BSP_DEFAULT_ENET_OUI                { 0x53, 0x45, 0x52, 0, 0, 0 }

 

So device is initialized with the following MAC address: 53.45.52.1.30.39

 

Then in this case, when I call accept:

DV_Eth_TCPClientSocketID = accept(DV_Eth_TCPSocketID, &DV_Eth_TCPClientSocketAddr, &DV_Eth_TCPClientSocketAddrLen);

 

MQX wait a socket connexion, but even if I connect my computer software to connect on the socket, accept function never return.

 

I not test with other MAC address, but why this work with "pre defined MAC OUI" but not with a "specific MAC OUI"?

Outcomes