lx.claudeheintzdesign.com Forum Index lx.claudeheintzdesign.com
A forum for discussion of LX Series lighting software
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ESP-DMX DMX to Artnet, sending to a multiple interfaces

 
Post new topic   Reply to topic    lx.claudeheintzdesign.com Forum Index -> Open Source Software/Hardware
View previous topic :: View next topic  
Author Message
Libeo



Joined: 27 Apr 2019
Posts: 1

PostPosted: Sat Apr 27, 2019 7:09 pm    Post subject: ESP-DMX DMX to Artnet, sending to a multiple interfaces Reply with quote

Hi Claude,
Thanks very much for your work and sharing your projeckts.
I built a Nodemcu with your ESP-DMX example in LXDMXWiFi_Library-master.
My purpouse was to connect the board to my DMX mixer output for converting DMX to Artnet and sending it via wifi. The board works very good when I set ESP-DMX in "station mode" and set "to net" field to "0.0.0.0".
In this mode I am able to send artnet packets to multiple interfaces Artnet to DMX (in the same network) and control the light connected with them.

I wish I could use ESP-DMX in AP mode but in this mode I can send Artnet packets only at one interface Artnet to DMX beacouse I must set the specific IP address in "to net" field.
Is it possible to modify the firmware tor send Artnet packets to all IP range in the network in AP mode?

Thanks a lot
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 05 Nov 2007
Posts: 1550

PostPosted: Sun Apr 28, 2019 5:13 pm    Post subject: Reply with quote

There are a couple of issues to consider.

First is sending Art-Net to a broadcast address. I'm not sure why, but I have not had any luck with a class A subnet mask and the corresponding broadcast address. Setting up the access point as follows works for me:

Code:

WiFi.mode(WIFI_AP);
WiFi.softAP(ssid);
WiFi.softAPConfig(IPAddress(10,110,115,10), IPAddress(10,110,115,10), IPAddress(255,255,255,0));


The broadcast address 10.255.255.255 and subnet mask 255.0.0.0 should send to all nodes. But, for some reason, I have to use 10.110.115.255 and a 255.255.255.0 subnet mask to make broadcast work. The default subnet mask for a class A address -(that is an address where the first octet is 10)- would be 255.0.0.0 with a corresponding broadcast address of 10.255.255.255. I don't know why the subnet mask needs to be narrower on the ESP8266. But, that's what happens for me.

The second issue is if the ESP8266 in access point mode is capable of supporting more than one connection. I was not successful connecting more than one computer to an ESP8266 in access mode while Broadcasting Art-Net dmx. Regardless of if you could get this to work, I don't think it is the best idea. The power consumption of the ESP8266 goes way up when it transmits WiFi. This tells me it is being taxed. So, for each node that connects
to the access point, the ESP8266 would need to broadcast an individual UDP Art-Net packet. The routing may be that a single packet goes to all connected addresses. But, that is different from the actual hardware part of sending it to connected devices. I think you'd have a much more reliable setup if you use even a cheap consumer WiFi route to distribute your broadcast packets. That way the transmitting ESP8266 only has to send one packet addressed to the broadcast address to the router and the hardware in the router will distribute it to listening devices from there. If you have lots of listening devices, you might need a beefier router on the same principal as why you might not want to try to connect more than one device to an ESP8266 in Access Point mode..
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    lx.claudeheintzdesign.com Forum Index -> Open Source Software/Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Notice: This site uses cookies to improve user experience and not for advertising or tracking. For more info see forum policies.