🤖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

    Scheduled Pinned Locked Moved Bases
    4 Posts 2 Posters 2.8k Views
    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 Offline
      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 Offline
        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 Offline
          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.

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

            Hello @xgonc

            no, I did not try any other Ethernet library.

            Thanks
            Felix

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

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post