This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Ethernet cable insertion detection

Hello,

I need to make sure that my LPC2478 will configure its DHCP only after the physical insertion of the Ethernet cable into the controller (it seems that TCPNet cannot handle a situation where a DHCP enabled controller is startup without a network connection, thus the need to configure TCPNet again or for the firs time once the cable is inserted. Note: of the controller already got an IP address, then had his cable disconnected, there is no problem). It seems that simple interrupt detection won't do the job. Any ideas?

Parents
  • I use the word timeslot to describe a function that is called repeatedly from a supervisory loop.

    My TCPnet supervisory loop is similar to the following:

    static TASK void TaskTcpPoll(void)
    {
      for (;;)
      {
          ETHERNET_Timeslot();     // Maintain the Ethernet link
    
          main_TcpNet();           // Maintains the TCP
    
          TCPCLIENT_Timeslot();    // Maintain the TCP client(s)
    
          TCPSERVER_Timeslot();    // Maintain the TCP server(s)
    
          UDPSERVER_Timeslot();    // Maintain the UDP server(s)
        }
    
        os_dly_wait(1);            // Wait a while
      }
    }
    

Reply
  • I use the word timeslot to describe a function that is called repeatedly from a supervisory loop.

    My TCPnet supervisory loop is similar to the following:

    static TASK void TaskTcpPoll(void)
    {
      for (;;)
      {
          ETHERNET_Timeslot();     // Maintain the Ethernet link
    
          main_TcpNet();           // Maintains the TCP
    
          TCPCLIENT_Timeslot();    // Maintain the TCP client(s)
    
          TCPSERVER_Timeslot();    // Maintain the TCP server(s)
    
          UDPSERVER_Timeslot();    // Maintain the UDP server(s)
        }
    
        os_dly_wait(1);            // Wait a while
      }
    }
    

Children