Giter VIP home page Giter VIP logo

lilygo-t-eth-series's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lilygo-t-eth-series's Issues

WiFiEvent on board V1.1

Hi,

I've got a board version 1.1 ..

After some debugging I found out that the returned event values in "void WiFiEvent(WiFiEvent_t event)" do not correspond to to any predefined variable (eg. SYSTEM_EVENT_ETH_START).

My code gets a valid DHCP-lease.

The returned values for "event" are :

18
20
22

Any hint where I can find information on this .. ?

I attache the used code and the debugging output.

Thanks.

Luc_2_LILYGO.zip

MQTT broker

Good day! Can we use Ethernet interface for MQTT publish / subscribe. May be you have any example? Thank you!

UDP Broadcast Example

I'm struggling getting UDP broadcast receiving with this decide.
Could you please add an UDP receiving example for broadcast packets?

Multiple SPI Interfaces

Hello, i have a question. I am working with the T-ETH-POE Board and an SPI-LoRa-Shield and an 0,96 Monochrom SPI OLED.

For the OLED i used this lib: https://github.com/olikraus/u8g2
And for LORA i used this lib: https://github.com/sandeepmistry/arduino-LoRa

That is the constructor for the OLED:
U8G2_SSD1306_128X64_NONAME_F_4W_HW_SPI u8g2(U8G2_R0, /* cs=/ DISPLAY_CS, / dc=/ DISPLAY_SCLK, / reset=*/ DISPLAY_RST);

And here iam initializing the SPI for LORA:
SPI.begin(LORA_SCLK, LORA_MISO, LORA_MOSI, LORA_CS);

When i am initializing the OLED and LORA as above in writing the code together, i get the error: SPI-Connection to LORA Modul failed. Without U8G2 it works fine. Everytime when i communicate with one SPI-Interface, i put the CS-Signal LOW.

How can i work with multiple spi interfaces with the LilyGO-T-ETH board?

Many thanks!

How to configure ETH.h for static IP and port ?

I want to be able to select DHCP or STATIC modes.
I have the LilyGo PoE working with DHCP Dynamic mode, no problem.

However, I am unable to configure the ETH.h library with a STATIC IP address and port number?
Here is my code..

if (mode.indexOf("Static") > -1)    // WORKS when STATIC mode is selected,
{    / / STATIC MODE SELECTED
  ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); // needed for LilyGo Board
  local_IP.fromString(ip); // STATIC IP Address 
  if (!ETH.config(local_IP, gateway, subnet, primaryDNS, secondaryDNS)) {
  Serial.println("Static IP Failed to configure");
  } else {
    Serial.println("Static IP configured OK.."); 
    Serial.println(local_IP); // Executes and makes it HERE, but I am unable to connect to
  }            
}
else
{  // DHCP DYNAMIC MODE SELECTED and WORKS ALL the WAY..
    ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN, ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE); //Added
    ip_dyna=ETH.localIP().toString();
    Serial.println("Dynamic IP: "+ip_dyna);
}   

port_dyna=port;
ETHserver.begin(port_dyna.toInt()); // Port number to be used

}

Missing schematic

It's very necessary to know about what GPIOs are connected with what (pullup, led, IC, ...) when using the board.
Most of the boards maker supply it, is it possible to have it too ?

Question: available hardware RX and TX port

I want to use the POE part of the board and ethernet functionality. I do not need the TF CARD functionality. I'm looking for available TX and RX pins. So I can add a sensor which uses these to the board. Can you help me out? I cannot understand from the image on your website which pin has hardware RX/TX

PoE doesn't work

I have powered with a 24V PoE adapter which I have from a router, but it didn't work.
Checking the temperature of the SI3404 controller, its temperature is around 70 Celsius degrees.

The voltage reaches C32, but VDD is always 0 V (VSS referenced).
I have checked D4 and C35, but they seem fine.

Did anyone have this problem too?

Board Dimensions

Do you have the dimensions for the board (a dimensions drawing possibly)?

I am looking to design and 3d print a case for the board.

Thanks

Cheeseshark.

R0 not mounted on physical board

Hello good Lilygo folks!
I am very happy with your board, however i found a minor issue in your schematic (that actually has a big impact) - the R0 from your schematic are not actually mounted on the physical board. Can i suggest you ad a Nc tag to R0?

3D model of the device

Hello!

I plan to build a device based on this module, but to design the housing I need the exact dimensions of the device, preferably a 3D model (STEP).

Could you please provide such a model?

Regards, Szymon.

Burned out PoE power

IMG_20230629_232800
IMG_20230629_232933

Hello, PoE power burned out. Please tell me, can you give a schematic diagram of the device in order to determine the burnt elements? The microcircuit marked with a red arrow is very hot. It burned down on three devices of the same revision and the same production date. At the same time, the device is powered by USB Type-C + data over Ethernet. Can your technical engineer tell me what elements need to be replaced? Thank you.

Lose access to the board when ethernet is plugged in.

Hello,

I have used on of your boards and installed WLED 0.14.0-b1-ESP32_Ethernet.bin

I can access the web interface of WLED when the ethernet cable is not plugged in to the port via WiFi. As soon as I plug in the ethernet cable, I lose access to the board (either wired or wireless). I have chosen what I was told was the proper ethernet board configuration for your product.

Any hints on what could be going wrong?

Not work ETH.linkUp()

Greetings. tell me for what reason the ETH.linkUp() function does not work - it always returns "0"

Where to buy the T-ETH-LITE-ESP32S3

I have not found this board on the website yet. This board looks like a perfect fit for a project of mine. Is there a timeline when it and the Poe add-on board will be available (preferably on AliExpress)?

SYSTEM_EVENT_ETH_CONNECTED never called

I have board revision 1.1.
Using regular usb-type-c as power and LAN cable as connection to my local network

When Im running example I see
ARDUINO_EVENT_ETH_START
ARDUINO_EVENT_ETH_CONNECTED
but SYSTEM_EVENT_ETH_CONNECTED never called!
What could be the issue?

Different TF pins in example and image

In the code example MOSI is pin 15, but on the image it shows pin 12.
The SCLK pin is 14 in the example, but 15 on the image.
What is true?
Also the use of pin 17 should be mentioned on the image for completeness.

Thanks! Steffen

Power Issue

Greetings,

One of the boards I purchased from you stopped working after about two weeks.

The board is extremely hot to the touch and the ESD label is partially melted.

This was after running the board for about 3 days via POE. It ran fine for about 7 days when powered by USB.

Please advise to the next steps I should take. I have 9 other boards here that I just received today, let me know if this is an issue and I should return all 10, or if it is a one off, and you will be sending a replacment.

Thank you in advance

Mike

T-Eth-Lite S3 W5500 crashes on AsyncUDP

Example code here adapted from the WiFiUDP example:

https://github.com/troyhacks/LilyGO-T-ETH-Series/blob/master/examples/UDPClientReceiver/UDPClientReceiver.ino

Works great with WiFiUDP, crashes without error or a meaningful backtrace with AsyncUDP.

I've tried to do some debugging but I'm posting here in case there's any insights.

I would love to get this board running with AsyncUDP as I'm working towards adding support for it to WLED and this is a blocking issue from finishing the integration.

Thanks in advance for any hints!

ETH Started
ETH Connected
ETH MAC: 34:85:18:8F:40:25, IPv4: 192.168.8.44, FULL_DUPLEX, 100Mbps
Starting UDP listener on port 6454
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

Core  0 register dump:
PC      : 0x4005544b  PS      : 0x00060730  A0      : 0x8201760b  A1      : 0x3fcf6fc0
A2      : 0x00000000  A3      : 0x3fceee00  A4      : 0x803803b9  A5      : 0x3fced490
A6      : 0x00060023  A7      : 0x00000003  A8      : 0x82017440  A9      : 0x3fcf6f70  
A10     : 0x00000001  A11     : 0x3fcf199c  A12     : 0x3fcf1950  A13     : 0x00000000
A14     : 0x3fcf199c  A15     : 0x00000000  SAR     : 0x00000000  EXCCAUSE: 0x0000001c  
EXCVADDR: 0x00000000  LBEG    : 0x40055499  LEND    : 0x400554a9  LCOUNT  : 0xfffffffb

Backtrace: 0x40055448:0x3fcf6fc0 |<-CORRUPTED

  #0  0x40055448:0x3fcf6fc0 in ?? ??:0

How do I place the board in "Flash Mode"

Normally, to place an ESP32 into "Flash Mode" to allow for the upload of a program, you have to press the buttons.

With there being 2 sets of buttons (one set on the Downloader module, and another set on the board itself), it is unclear on how to place the board into a mode that I can upload a program.

I am attempting to upload using the esptool software.

Thanks for the assistance.

-- Cheeseshark

Board dimensions

Hi, I would like to create a 3D printable enclosure for this board. I have just ordered it and it should be arriving in about 15 days but I would like to design the enclosure in the meanwhile. Please could you upload dimensions of the board and the height of the components off the board?

Thanks.

Clock mode setting GPIO17_OUT does not work with 1.0+ version of the board.

#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT does not work with my version of the board. I have to set the clock mode to: #define ETH_CLK_MODE ETH_CLOCK_GPIO0_OUT

If I make the above change, this code works on my board. Do the different version of the board work differently or is this a mistake in the provided ino?

Schematic PoE ( V+) Signal Goes Nowhere?

Hello,

The "SI304" IC on the schematic has a signal named (V+) that does not connect to the rest of the circuit?

So, based on my reading of the schematic, the "SI3404" IC provides the power from the PoE connection, yet
I don't see where the +5vdc power comes from when only PoE is the power source for the board?

Is this signal Mislabeled?
Please see the attached schematic and screenshot.

T-ETH-POE.pdf
V+

T-ETH-Lite-ESP32S3: Unable to verify flash chip connection

Hiya

Apologies if I'm doing something silly, but I havent been able to upload exmaple code to the T-ETH-Lite-ESP32S3 boaerd.

Something's working because It's able to get the board info.

Any suggestions on what I can do next please? Details below.

Thanks!
Matt

Sketch uses 810413 bytes (25%) of program storage space. Maximum is 3145728 bytes.
Global variables use 47196 bytes (14%) of dynamic memory, leaving 280484 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.5.1
Serial port /dev/cu.usbserial-210
Connecting....
Chip is ESP32-S3 (revision v0.2)
Features: WiFi, BLE
Crystal is 40MHz
MAC: 84:fc:e6:6c:cc:10
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.

A fatal error occurred: Unable to verify flash chip connection (No serial data received.).
Failed uploading: uploading error: exit status 2

To reproduce:

  1. Open HelloServer.ino example code in arduino
  2. #define LILYGO_T_ETH_LITE_ESP32S3 in utilities.h
  3. Set board settings as per instructions (screenshot below)
  4. Plug USB TTL cable in
  5. Press and hold boot, press reset, let go of boot.
  6. Click upload in Arduino
  7. Compiles successfully
  8. Above output appears.
Screenshot 2023-11-04 at 00 26 05

Ethernet no longer functioning.

I have board revision 1.1. I powered my board with a new "gigabit" 60W PoE++ injector, the device is 802.3af/at compliant and is rated with an output voltage range of 48v-56v.

As soon as I used this injector, the Ethernet no longer works. So at this point I resorted to USB power and a non PoE connection to a network switch. With the basic TCP server example uploaded to the ESP32, there is no packet transfer, but the connectivity events are triggered. When the ethernet cable is connected, the LEDs on the RJ45 socket light up, orange is flashing, green solid, the program gets as far as "ETH Connected" (WifiEvent value of SYSTEM_EVENT_ETH_CONNECTED). If I am not using DHCP, I will also see the event SYSTEM_EVENT_ETH_GOT_IP.
If I unplug the ethernet cable, the lights on the RJ45 port remain lit solid. Could the LAN8720 chip be damaged?

I have tried inserting a delay before the ethernet library is initialized. I am going to try and replace the 8720 IC on the board, but if anyone can shed any light based on the symptoms of what has happened and why, (ie could something else be damaged?) that would be greatly appreciated.

Can't flash the board

Using the proper programmer daughter board, and data LEDs flashing on that board so connection seems to be fine, but no combination of RST/IO0 is letting me flash the board.
I've tried ESPHome Flasher and PyFlasher - is there a recommended tool for flashing these boards?

About DHCP Lease

Hi! If I use DHCP IP address, will it automatically renew when lease time expires? If no, is there a solution for that? maybe to call a function to do that? Or the only is to use a Static IP ?

StaticIPAddress example doesn't work

Hello,

Board used: ESP32-S3 T-ETH-Lite and WT5500

According to issue #44 we'd have to call Config AFTER ETH.begin();

I believe this line is way too early in the code:

if (ETH.config(staticIP, gateway, subnet, dns, dns) == false) {
Serial.println("Configuration failed.");
}

If I move Config after the beginSPI() it works as expected.

If I do the Config in the WiFi OnEvent ARDUINO_EVENT_ETH_START or ETH_CONNECTED then it works as well.

How to set staticIP?(LilyGO-T-ETH-POE)

I can't use any code to set staticIP for LilyGO-T-ETH-POE.
It can connect to the ethernet. If use staticIP, The IPs can set. But can't ping to the IP. And webserver can't be connected.
help!

POE status

hello
is there a way to get POE information?

Writing in the SD card and example problems

I'm working with the board and I tried to run the example using platformio. First I want to ask if there is a prefered board just to work in platformio with the LilyGO. The second question is about the example, I ran the example on my board and I'm having the next problem, It isn't printing by serial nothing at all. This is a little bit extrange and I changed some things trying to obtain something and I couldn't. Just to finish I want to know if you have some examples on how to write in the SD card. I understand that in the example you are initializing it and printing the amount of free memory by serial.

I'm having those problems so I wait for some help if it's posible.

Thank you

connecting to hw 147

Hi There,

I have been trying sometime to connect the NFC reader HW-147 but failing so far.

I have getting it to work succesfully on a esp 8266 with the following code.

#include <SoftwareSerial.h>
#include <PN532_SWHSU.h>
#include <PN532.h>
SoftwareSerial SWSerial( D3, D2 ); // RX, TX
 
PN532_SWHSU pn532swhsu( SWSerial );
PN532 nfc( pn532swhsu );
String tagId = "None", dispTag = "None";
byte nuidPICC[4];
 
void setup(void)
{
  Serial.begin(115200);
  Serial.println("Hello Maker!");
  //  Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
  nfc.begin();
  uint32_t versiondata = nfc.getFirmwareVersion();
  if (! versiondata)
  {
    Serial.print("Didn't Find PN53x Module");
    while (1); // Halt
  }
  // Got valid data, print it out!
  Serial.print("Found chip PN5");
  Serial.println((versiondata >> 24) & 0xFF, HEX);
  Serial.print("Firmware ver. ");
  Serial.print((versiondata >> 16) & 0xFF, DEC);
  Serial.print('.'); 
  Serial.println((versiondata >> 8) & 0xFF, DEC);
  // Configure board to read RFID tags
  nfc.SAMConfig();
  //Serial.println("Waiting for an ISO14443A Card ...");
}
 
 
void loop()
{
  readNFC();
}
 
 
void readNFC()
{
  boolean success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 };  // Buffer to store the returned UID
  uint8_t uidLength;                       // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);
  if (success)
  {
    Serial.print("UID Length: ");
    Serial.print(uidLength, DEC);
    Serial.println(" bytes");
    Serial.print("UID Value: ");
    for (uint8_t i = 0; i < uidLength; i++)
    {
      nuidPICC[i] = uid[i];
      Serial.print(" "); Serial.print(uid[i], DEC);
    }
    Serial.println();
    tagId = tagToString(nuidPICC);
    dispTag = tagId;
    Serial.print(F("tagId is : "));
    Serial.println(tagId);
    Serial.println("");
    delay(1000);  // 1 second halt
  }
  else
  {
    // PN532 probably timed out waiting for a card
    Serial.println("Timed out! Waiting for a card...");
  }
}
String tagToString(byte id[4])
{
  String tagId = "";
  for (byte i = 0; i < 4; i++)
  {
    if (i < 3) tagId += String(id[i]) + ".";
    else tagId += String(id[i]);
  }
  return tagId;
}

I tried the same code with the ttgo poe and the wire example but no luck so far. Anyone that can help me?

#include <Arduino.h>
#include <SoftwareSerial.h>
#include <PN532_SWHSU.h>
#include <PN532.h>
#include <ETH.h>
#include <SPI.h>
#include <PubSubClient.h>
#include <Wire.h>

#define ETH_CLK_MODE ETH_CLOCK_GPIO17_OUT
#define ETH_POWER_PIN 13 //16
#define ETH_TYPE ETH_PHY_LAN8720
#define ETH_ADDR 0
#define ETH_MDC_PIN 23
#define ETH_MDIO_PIN 18
#define NRST        5

#define I2C_SDA 14
#define I2C_SCL 15

static bool eth_connected = false;

//MQTT setup
WiFiClient espClient;
PubSubClient client(espClient);

#define sublight    "Throwit/light/1"
#define sendIP      "Throwit/IP/1"
#define sendNFC      "Throwit/NFC/1"

const char* mqtt_server = "192.168.0.120";     // IP of laptop that runs as server
const char* mqttUser = "Mqtt-user";     // your mqtt user
const char* mqttPassword = "MQTT"; // your mqtt password
int ipadr=0;

//String NFC;
SoftwareSerial SWSerial( 14, 15 ); // RX, TX
 
PN532_SWHSU pn532swhsu( SWSerial );
PN532 nfc( pn532swhsu );
String tagId = "None", dispTag = "None";
byte nuidPICC[4];

void WiFiEvent(WiFiEvent_t event)
{
    switch (event) {
    case ARDUINO_EVENT_ETH_START:
        Serial.println("ETH Started");
        //set eth hostname here
        ETH.setHostname("esp32-ethernet");
        break;
    case ARDUINO_EVENT_ETH_CONNECTED:
        Serial.println("ETH Connected");
        break;
    case ARDUINO_EVENT_ETH_GOT_IP:
        Serial.print("ETH MAC: ");
        Serial.print(ETH.macAddress());
        Serial.print(", IPv4: ");
        Serial.print(ETH.localIP());
        if (ETH.fullDuplex()) {
            Serial.print(", FULL_DUPLEX");
        }
        Serial.print(", ");
        Serial.print(ETH.linkSpeed());
        Serial.println("Mbps");
        eth_connected = true;
        break;
    case ARDUINO_EVENT_ETH_DISCONNECTED:
        Serial.println("ETH Disconnected");
        eth_connected = false;
        break;
    case ARDUINO_EVENT_ETH_STOP:
        Serial.println("ETH Stopped");
        eth_connected = false;
        break;
    default:
        break;
    }
}
// testing if internet works
void testClient(const char *host, uint16_t port)
{
    Serial.print("\nconnecting to ");
    Serial.println(host);

    WiFiClient client;
    if (!client.connect(host, port)) {
        Serial.println("connection failed");
        return;
    }
    client.printf("GET / HTTP/1.1\r\nHost: %s\r\n\r\n", host);
    while (client.connected() && !client.available())
        ;
    while (client.available()) {
        Serial.write(client.read());
    }

    Serial.println("closing connection\n");
    client.stop();
}
//connect to MQTT
void reconnect() {
  // Loop until we're reconnected
  while (!client.connected()) {
    Serial.print("Attempting MQTT connection...");
    // Create a random client ID
    String clientId = "ESP32Main-";
    clientId += String(random(0xffff), HEX);
    // Attempt to connect
    if (client.connect(clientId.c_str(), mqttUser, mqttPassword)) {
      Serial.println("connected");
      // Once connected, publish an announcement...
      client.publish("Trowit/connection", "main connected");
      String ipaddress = ETH.localIP().toString();
      char ipchar[ipaddress.length()+1];
      ipaddress.toCharArray(ipchar,ipaddress.length()+1);
      client.publish(sendIP, ipchar);

      // ... and subscribe to the channels of the interaction pads with QOS 1
      client.subscribe(sublight, 1);
    } else {
      Serial.print("failed, rc=");
      Serial.print(client.state());
      Serial.println(" try again in 5 seconds");
      // Wait 5 seconds before retrying
      delay(5000);
    }
  }
}


 String tagToString(byte id[4])
 {
  String tagId = "";
  for (byte i = 0; i < 4; i++)
  {
    if (i < 3) tagId += String(id[i]) + ".";
    else tagId += String(id[i]);
  }
  return tagId;
}
void readNFC()
{
  boolean success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 };  // Buffer to store the returned UID
  uint8_t uidLength;                       // Length of the UID (4 or 7 bytes depending on ISO14443A card type)
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, &uid[0], &uidLength);
  if (success)
  {
    Serial.print("UID Length: ");
    Serial.print(uidLength, DEC);
    Serial.println(" bytes");
    Serial.print("UID Value: ");
    for (uint8_t i = 0; i < uidLength; i++)
    {
      nuidPICC[i] = uid[i];
      Serial.print(" "); Serial.print(uid[i], DEC);
    }
    Serial.println();
    tagId = tagToString(nuidPICC);
    dispTag = tagId;
    Serial.print(F("tagId is : "));
    Serial.println(tagId);
    Serial.println("");
    delay(1000);  // 1 second halt
  }
  else
  {
    // PN532 probably timed out waiting for a card
    Serial.println("Timed out! Waiting for a card...");
  }
}

 
void setup(void)
{
  Serial.begin(115200);
  Wire.begin(I2C_SDA, I2C_SCL);
  Serial.println("Hello Maker!");
  //  Serial2.begin(115200, SERIAL_8N1, RXD2, TXD2);
  nfc.begin();
  uint32_t versiondata = nfc.getFirmwareVersion();
  if (! versiondata)
  {
    Serial.print("Didn't Find PN53x Module");
    while (1); // Halt
  }
  // Got valid data, print it out!
  Serial.print("Found chip PN5");
  Serial.println((versiondata >> 24) & 0xFF, HEX);
  Serial.print("Firmware ver. ");
  Serial.print((versiondata >> 16) & 0xFF, DEC);
  Serial.print('.'); 
  Serial.println((versiondata >> 8) & 0xFF, DEC);
  // Configure board to read RFID tags
  nfc.SAMConfig();
  //Serial.println("Waiting for an ISO14443A Card ...");

  WiFi.onEvent(WiFiEvent);

    pinMode(NRST, OUTPUT);

    digitalWrite(NRST, 0);
    delay(200);
    digitalWrite(NRST, 1);
    delay(200);
    digitalWrite(NRST, 0);
    delay(200);
    digitalWrite(NRST, 1);


    ETH.begin(ETH_ADDR, ETH_POWER_PIN, ETH_MDC_PIN,
              ETH_MDIO_PIN, ETH_TYPE, ETH_CLK_MODE);

  //mqtt setup
 client.setServer(mqtt_server, 1883);
  client.setCallback(callback);

}
 
 
void loop()
{
  readNFC();
    if (!client.connected()) {
    reconnect();
  }
  client.loop();
 
 String NFC = tagId;
      char NFCchar[NFC.length()+1];
      NFC.toCharArray(NFCchar,NFC.length()+1);
      client.publish(sendNFC, NFCchar);
 
 
 
 
//  byte buffer[tagId.length() + 1];
//  NFC=tagId.toCharArray(buffer, tagId.length() + 1);
   
//     char NFC[8];
//    // dtostrf( tagId , 1, 2, NFC);
//     Serial.println("NFC: ");
//     Serial.println(tagId);
//     client.publish(sendcolor, tagId);

    

}

Can't connect using a static IP

use that code

// Use static ip address config
IPAddress local_ip(192, 168, 1, 44);
IPAddress gateway(192, 168, 1, 1);
IPAddress subnet(255, 255, 255, 0);
IPAddress dns(8, 8, 8, 8);
IPAddress dns2(8, 8, 4, 4);


ETH.config(local_ip,
          gateway,
          subnet,
          dns,
          dns2);

AND when try to conect a server using this code:

void sendPOST(String data) {
HTTPClient http;

http.begin("http://MY_SERVER/test.php");

http.addHeader("Content-Type", "application/x-www-form-urlencoded");
http.addHeader("Content-Length", String(data.length()));

int httpResponseCode = http.POST(data);

Serial.println(httpResponseCode);

// Comprobar el código de respuesta
if (httpResponseCode == 200) {
String response = http.getString();
Serial.println(response);
} else if(httpResponseCode >= 400 and httpResponseCode<500)
{
Serial.println("No encontrado");
} else if(httpResponseCode >=500)
{
Serial.println("Error del servidor");
}
else {
// Imprimir el mensaje de error
Serial.print("Error al enviar la solicitud POST: ");
Serial.println(http.errorToString(httpResponseCode).c_str());
}

// Cerrar la conexión
http.end();
}

RECIBE this msg:

11:09:38.941 -> -1
11:09:38.941 -> Error al enviar la solicitud POST: connection refused

WHEN use dinamic ip, don't have any problem to connect.

Thank for all help.

Ethernet not working

When i run the exmaple sketch i get phy errors. I tried changing a few things around nohting works
I have the 1.0 Board with the WROOM no Pram

E (1200) emac: Timed out waiting for PHY register 0x2 to have value 0x0007(mask 0xffff). Current value 0xffff
E (2201) emac: Timed out waiting for PHY register 0x3 to have value 0xc0f0(mask 0xfff0). Current value 0xffff
E (2201) emac: Initialise PHY device Timeout
[E][ETH.cpp:101] begin(): esp_eth_enable error: -1
#define ETH_CLK_MODE    ETH_CLOCK_GPIO17_OUT
#define ETH_POWER_PIN   -1
#define ETH_TYPE        ETH_PHY_LAN8720
#define ETH_ADDR        0
#define ETH_MDC_PIN     23
#define ETH_MDIO_PIN    18
#define NRST            5

T-Internet-POE LED PIN

Hello LilyGO! Firstly i want to congratulate you for your amazing products!
I recently purchased "T-Internet-POE" ESP32. I wanted to ask if there is a pin that controls the Blue LED.

Thank you, all the best!

Board won't power up anymore

The board (v1.1) was working fine for a few days on PoE. Today I moved the PoeSwitch and the board to it's final destination, plugged everythign together and - nothing! No lights come up or ethernet connection established. Same result with alternative power via USB-C. With the daughter-board I can still power it up and program the ESP32.
So something wrong with the supply. On the input pin of U4 I do not see any voltage. And on D5 ther is a flaky voltage of a few hundred mV. Unfortunately there is no parts print on the board and I am not that good at trouble shooting. Any help appreciated!

Reset after closing a switch

hello, i have a new small problem. Sometimes after using the IO34 as an INPUT, the esp starts a reset process.

As an reset reason, i get from rtc_get_reset_reason the reason SDIO_RESET (Reset by SLC module, reset digital core).

Immediately after compiling everything works. It only triggers a reset after ca. 10 minutes if I want to close a switch between INPUT and 3.3V.

My circuit shows like this:

io-problem

(I used an external Pulldown-Resistor)

What can it be?

SD-Card Issue

Hey Lewis,

one question. When i try to execute the SharingSPIBus example, the sd-interface will never mounted.

I still have my Lora Shield attached to the SPI-Bus (PIN 2, 14, 15) with a separate CS-PIN. Since this is not addressed by the example, I cannot imagine that the error came from this?

What can i do?

image

Board dimensions / connector footprint

Hi,
I'd like to make a "hat" PCB for this board, It would be nice to have a drawing with dimensions, to not have to measure it manually. Even nicer would be a KiCad footprint :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.