-
Notifications
You must be signed in to change notification settings - Fork 82
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
feature request: mDNS support #49
Comments
Do you have experience with multicast libraries for the Arduino? If you could supply some code snippets including the kind of information you would like to be broadcasted, that would help. |
I am no Arduino expert, when I am finished with the BSB-Lan integration for Home-Assistant I could take a look. But my only language I know by a tiny bit is Python. |
found this with a quick search. https://gist.github.com/mqu/f8d4f6877703bb39676d68733801871d |
It would already help to define what kind of information would be necessary for your task that BSB-LAN would need to provide... |
The example looks doable, but I wonder which port to use because 8266 sounds more like a demo/example port for the ESP8266. Or can this be choosen freely for your purpose? |
It should be the port that is defined in BSB_lan_config.h |
No, I mean the port that the broadcast is transmitted on (which then contains the ip-address, port, device name and mac address of BSB-LAN). I'm pretty sure that this can't be port 80 because that is reserved for webservers. |
Than your lucky number would be fine I guess;) |
I think that won't work because the program you want to use this broadcast with expects the broadcast message on a specific port. So when you want to use it with Home Automation, you should be able to identify the port where Home Automation expects the broadcast and then I would use this port as default. |
From wiki. The default is this it looks like UDP port 5353
|
Ah, thanks, that helps a lot! However, I just found out that the Arduino Ethernet library is not able to send UDP multicast packets, only the ESP could do so. Patches for the Arduino are flying around, but to include these would be futile once people update their libraries... |
I found https://github.com/TrippyLighting/EthernetBonjour and the fork https://github.com/arduino-libraries/ArduinoMDNS for mDNS on Arduino |
Thanks, someone in the forum also came up with a solution, I just haven't found the time to implement it... |
A more simple approach would be to include the bsblan title in unauthorized html response, too:
Solution:
Now the device can be detected automatically (at least with iobroker) |
Should it say "BSB-LAN Web" or just "BSB-LAN"? |
I would prefer the same title as from authorized site. There it is BSB-LAN Web |
I know, I'm just wondering if "BSB-LAN" fits in easier in external systems because this is what people might know. Then I'd change it in all titles. |
does that mean the mDNS option is abandonned ? To my mind that would be the better option to follow. I see the W5500 is compatible for example... |
Iobroker also supports detection over mdns and it would be the first choice I think. |
No, it's not abandoned. |
Implemented now for Ethernet connections. WiFiSpi library somehow creates neverending repeating error messages. Not sure if this is a general issue or a problem of misconfiguration or bug. |
support for Multicast DNS
This would make the device discoverable and automatically detectable for a home automation platform.
https://en.wikipedia.org/wiki/Multicast_DNS
The text was updated successfully, but these errors were encountered: