Uploaded image for project: 'EtherNet/IP Core V2'
  1. EtherNet/IP Core V2
  2. PSEIPCORE-195

DLR initialization temporarily disables Ethernet ports and allows lower priority tasks to run in the meantime

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: V2.4.0.9
    • Fix Version/s: V2.4.0.11, V2.4.2.0, V2.5.0.0
    • Labels:
      None
    • Account:
      SPC EthernetIp Core (SPCETHERNET)

      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

            Expenses

              Activity

                Status Description

                  People

                  • Reporter:
                    MBommert Marc Bommert
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    0 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: