Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 9:56am
281
@Stef_Weicks
Hello
Cool ! so maybe I should publish it here in the community if you think it’s stable enough
I am not a specialist of that library because I do not use 16x16 matrices. But you can try this one
wich is to be used a lot by the people here
and you have MatrixTilesExample.ino
then when that’s is working it will be pretty straight forward.
@Yves_BAZIN
Now I am working again with the artnet wifi code and would like to assign a static IP. I set the IP
IPAddress local_ip(192,168, 1, 103);
IPAddress gateway_ip(192,168, 1, 1);
IPAddress subnet_ip(255, 255, 255, 0);
and assigned it in the void setup () like this …
WiFi.begin (“3WebCube568B”, “dcF52eC5”);
WiFi.config(local_ip, gateway_ip, subnet_ip);
the router connects to the IP and is connected … but if i start the transmission … it doesn´t work…
do you know what the problem could be?.. with my esp8266 i did it always like this … and it worked fine
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:02pm
283
@Stef_Weicks hello stupid question first. have you changed your mapping in jinx ?
If yes then we will need to have some debug output in the program.
Yves
no … i have set the same ip address in jinx … double checked all… did you set a static ip on your pannel?
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:07pm
285
@Stef_Weicks I have never used static ip.
Let do some test on my configuration and see if it works or not. Just got home give me couple of minutes
no problem! … i have time
router : espressif 192.168.1.103
and jinx: 192.168.1.103
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:27pm
287
@Stef_Weicks hello just go to you router stop and start the WiFi.
When I tried first I had the same issue but in my router I could not see my esp.
certainly because it creates a pair MAC address/dynamic ip (this is why you esp always had the same IP address)
So I just stop and restarted it and it worked I have tried two different ip adresses.
Btw I put the line WiFi.config before WiFi.connect
@Yves_BAZIN hm… first test … didn´t work…
…i rebooted my router … router says …
Static-30:AE:A3:18:36:6A 30:AE:A3:18:36:6A 192.168.1.103 Statisch
jinx is running … if i delete the lines all works well
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:42pm
289
@Stef_Weicks ‘if i delete the lines all works well’ you mean when it goes dynamic ip ?
Have you exchanged the two lines ?
on the serial monitor … it does not connect … the router says it is connected…
yes i meant if its dynamic ip it worked
yes i have exchanged them…
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:46pm
292
@Stef_Weicks reboot the esp?
i rebooted with no improvements
maybe … there is something in my code … i don´t see
void setup() {
xTaskCreatePinnedToCore(FastLEDshowTask2, “FastLEDshowTask2”, 1000, NULL,3, &FastLEDshowTaskHandle2, FASTLED_SHOW_CORE);
WiFi.mode(WIFI_STA);
Serial.begin(115200);
Serial.printf("Connecting ");
WiFi.begin("3WebCube568B", "dcF52eC5");
WiFi.config(local_ip, gateway_ip, subnet_ip);
while (WiFi.status() != WL_CONNECTED) {
Serial.println(WiFi.status());
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
FastLED.addLeds<WS2812B, PIN1, GRB>(leds, 0PIXEL_PER_PIN, PIXEL_PER_PIN);
FastLED.addLeds<WS2812B, PIN2, GRB>(leds, 1 PIXEL_PER_PIN, PIXEL_PER_PIN);
FastLED.addLeds<WS2812B, PIN3, GRB>(leds, 2PIXEL_PER_PIN, PIXEL_PER_PIN);
FastLED.addLeds<WS2812B, PIN4, GRB>(leds, 3 PIXEL_PER_PIN, PIXEL_PER_PIN);
FastLED.addLeds<WS2812B, PIN5, GRB>(leds, 4*PIXEL_PER_PIN, PIXEL_PER_PIN);
artnet.begin(NUM_LEDS+160,UNIVERSE_SIZE,9); //the number of pixels and the maximum size of your iniverses
}
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:51pm
295
@Stef_Weicks
my code
WiFi.mode(WIFI_STA);
IPAddress local_ip(192,168, 1, 120);
IPAddress gateway_ip(192,168, 1, 1);
IPAddress subnet_ip(255, 255, 255, 0);
Serial.printf("Connecting ");
WiFi.config(local_ip, gateway_ip, subnet_ip);
WiFi.begin(“WiFi-2.4-E19C”, “yvesyves”);
while (WiFi.status() != WL_CONNECTED) {
Serial.println(WiFi.status());
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
what I see serial monitor
onnecting 6
.6
.6
.6
.6
.6
.6
.
WiFi connected.
IP address:
192.168.1.120
Starting Artnet nbNeededUniverses:35
Ready to record…
Recording has started
Recording has started
Recording has started
Recording has started
Recording has started
Recording stopped …
frames saved:2000 frames lues:2005 lost frames:1 depassement:0
time per frame 19.224501
lol … i did it with your code …
Connecting 6
.6
.6
.6
.6
.6
.6
.6
.6
.6
.6
.6
.6
.6
.6
…
router: says connected ?!
Static-30:AE:A5:18:36:6A 192.168.1.100 Statisch
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 5:58pm
297
@Stef_Weicks try with another IP address
Or just reboot sometimes issue of connectivity with esp32 to the wifi
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 6:02pm
298
@Stef_Weicks I meant reboot the esp once I had to do it 5 times before it connected correctly
ah ok … i tried it now with an other wifi-router … same result…
i will try to reboot a few times…moment
Yves_BAZIN
(Yves BAZIN)
August 13, 2018, 6:06pm
300
@Stef_Weicks wait couple of second when the 6 become 1 before rebooting