Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
14 years ago

Ethernet Link Status

Good day, I'm running the Altera simple socket server on the DE2-70 board. I would like to detect when the link is down on the Ethernet port. Is there a routine that can be called that returns its status?

Thanks

JT

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    If you have tse mac, you can try alt_tse_phy_rd_mdio_reg() which is declared in altera_avalon_tse.h.

    The register to read and the bit sowing link status will depend from your specific phy.