Details
Description
In a QuickCOnnect scenario where we are expected to send 40 ARP packets quickly after power on, only 39 are sent.
(This behavior shows up only very rarly under very specific timing conditions.)
From Eip_DLR_Initilize():
/* Disable forwarding and reception of frames until a valid MAC address is available. */
Drv_EddIoctl( ptRsc->tRem.hEdd, HALEDD_2PS_IOCTL_PORT_1_DISABLE, (TLR_VOID*)NULL );
Drv_EddIoctl( ptRsc->tRem.hEdd, HALEDD_2PS_IOCTL_PORT_2_DISABLE, (TLR_VOID*)NULL );/* Get MAC */
while( ptRsc->tRem.tMacAddr[0] == 0
&& ptRsc->tRem.tMacAddr[1] == 0
&& ptRsc->tRem.tMacAddr[2] == 0
&& ptRsc->tRem.tMacAddr[3] == 0
&& ptRsc->tRem.tMacAddr[4] == 0
&& ptRsc->tRem.tMacAddr[5] == 0)
{
/* get own MAC address */
eRslt = Drv_EddIoctl(ptRsc->tRem.hEdd,
DRV_EDD_GET_MAC_ADDRESS_REQ,
&ptRsc->tRem.tMacAddr[0]);
TLR_TSK_SLEEP(10);
}/* Now enable forwarding and reception of frames */
Drv_EddIoctl( ptRsc->tRem.hEdd, HALEDD_2PS_IOCTL_PORT_1_ENABLE, (TLR_VOID*)NULL );
Drv_EddIoctl( ptRsc->tRem.hEdd, HALEDD_2PS_IOCTL_PORT_2_ENABLE, (TLR_VOID*)NULL );
Disabling the ports should not be done in the DLR component.
As the activation of the PHYs is handled in the AP-Task (or LOM application task), the DLR task only has to wait for the MAC address to be available.
Attachments
Issue Links
- is blocked by
-
PSEIS-918 Update to EtherNet/IP Core V2.4.0.11
- Closed