Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

W5500 #13

Open
particlerain opened this issue Aug 5, 2023 · 5 comments
Open

W5500 #13

particlerain opened this issue Aug 5, 2023 · 5 comments

Comments

@particlerain
Copy link

Hi Yves,

i already tried your code with lan8720 and it works fine for 16 universes.
Now i need to use the W5500 because i have 4 of them laying arund. But somehow am not able to modifiy youre cpp so that it lstens for the W5500 UDP packets for Artnet. Have you tried with W5500 yet? If yes can you share your modified code for it?

@michifx512
Copy link

michifx512 commented Aug 9, 2023

Hi, I'm also having problems with the W5500 module. The ESP32 keeps rebooting when I try to listen to port 6454.

@hpwit
Copy link
Owner

hpwit commented Aug 10, 2023

Hello
can you share the code ?
yves

@louisnorwood
Copy link

louisnorwood commented Sep 18, 2023

Hello, Yeah same issue, shame as this performs excellantly on Wifi, but I need stability of Wired connection.
I get a backtrace error as soon as the artnet.listen gets called. Maybe missing the UDP prototocol, or relying on lwip or some other function in the library?

`
#define UNIVERSE_SIZE_IN_CHANNEL (170 * 3)
#define LEDS_PER_PIN 340
#define CHANNELS_PER_PIN (LEDS_PER_PIN *3)

#include <FastLED.h>
#include "Arduino.h"
#include <Ethernet.h>
#include "WiFi.h"
#include "artnetESP32V2.h"

#define LEDPin8 32
#define WIZ_CSPin 5

// FastLED
#define NUM_LEDS 340
CRGB leds[8][NUM_LEDS];

artnetESP32V2 artnet = artnetESP32V2();

Ethernet.init( WIZ_CSPin );

// Setup ###############################################################################
void setup() {
Serial.begin(2000000);
if (Ethernet.begin(mac)) { // Dynamic IP setup
Serial.println("DHCP OK!");
}else{
Serial.println("Failed to configure Ethernet using DHCP");
Ethernet.begin(mac, ip);
Serial.println("STATIC OK!");
}

Serial.println("Ethernet Successfully Initialized");

artnet.addSubArtnet(0 ,CHANNELS_PER_PIN, UNIVERSE_SIZE_IN_CHANNEL, &callbackfunction );  

if(artnet.listen(6454)) { // This function creates REBOOT !!!!!!!!!
  if (useEthernet){
    Serial.print("Ethernet Listening on IP: ");
    Serial.println(Ethernet.localIP());
  }

}
}
`


Ethernet Successfully Initialized

assert failed: tcpip_api_call IDF/components/lwip/lwip/src/api/tcpip.c:497 (Invalid mbox)

Backtrace: 0x400836ed:0x3ffb2050 0x4008837d:0x3ffb2070 0x4008d711:0x3ffb2090 0x400e06f6:0x3ffb21c0 0x400d472e:0x3ffb21f0 0x400d474c:0x3ffb2230 0x400d1e28:0x3ffb2250 0x400d696a:0x3ffb2290

ELF file SHA256: dea375f08c5e3ba2

@louisnorwood
Copy link

louisnorwood commented Sep 18, 2023

SOLVED - You posted an example of fixing the same issue (not using Arduino Ethernet lib) in your V2 lib. I had same issue, so I suspect it is the same fix by using this other WIZ5500 specific library.

hpwit/artnetesp32v2#3

Your example:
https://gist.github.com/hpwit/4effc96f24b5ec5678bcf57879945c1e

@PolyEng
Copy link

PolyEng commented Jul 13, 2024

Hi Yves,

i already tried your code with lan8720 and it works fine for 16 universes. Now i need to use the W5500 because i have 4 of them laying arund. But somehow am not able to modifiy youre cpp so that it lstens for the W5500 UDP packets for Artnet. Have you tried with W5500 yet? If yes can you share your modified code for it?

Hi, i'm kinda new to the whole uc world, could you share the code you used to get the LAN8720 running? since i'm having an hard time understanding how it all works without examples?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants