🤖Have you ever tried Chat.M5Stack.com before asking??😎
    M5Stack Community
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    ATOMIC PoE Base W5500 POE+DHCP doesn't work

    Bases
    2
    3
    62
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xgonc
      last edited by

      Hello,
      I'm using the ATOMIC PoE Base W5500 (SKU: A091).
      In Arduino environment, I'm using DHCP. Powering the AtomS3 lite with USB all works fine. However, when I use POE, DHCP doesn't work any more.

      I'm using the following to setup the Ethernet interface:

          #define CS 6
          Ethernet.init(CS);
          while(!Ethernet.begin(mac)) {
             Serial.println("Ethernet.begin failed");
          }
          if (Ethernet.hardwareStatus() == EthernetNoHardware)
          {
              Serial.println(
                  "Ethernet shield was not found.  Sorry, can't run without "
                  "hardware. :(");
              while (true)
              {
                  delay(1); // do nothing, no point running without Ethernet hardware
              }
          }
          if (Ethernet.linkStatus() == LinkOFF)
          {
              Serial.println("Ethernet cable is not connected.");
          }
      

      With POE enabled, the code get stucked at the fisrt loop.

      Is there anything missing?

      felmueF 1 Reply Last reply Reply Quote 0
      • felmueF
        felmue @xgonc
        last edited by

        Hello @xgonc

        maybe try with a short delay() before the first loop?

        BTW: the included PoE example works for me.

        Thanks
        Felix

        GPIO translation table M5Stack / M5Core2
        Information about various M5Stack products.
        Code examples

        X 1 Reply Last reply Reply Quote 0
        • X
          xgonc @felmue
          last edited by

          @felmue Thanks for your reply.
          Meanwhile I confirmed being powered by POE has no effect. The problem is the interface never gets an address from the DHCP server.
          With a fixed address, everything is fine.
          Did you try any other Ethernet lib?

          Thanks.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post