How to implement an mDNS responder? #427
Replies: 5 comments 7 replies
-
It's probably not possible to implement mDNS with the unmodified network stack
of Circle, because it does not support multicasts.
|
Beta Was this translation helpful? Give feedback.
-
I'd also be interested in this. Could be used, e.g, for RTP MIDI (AppleMIDI) announcement on the network for plug-and-play. |
Beta Was this translation helpful? Give feedback.
-
There is IP multicast send support (conformity level 1 according to RFC1112) on the develop branch. This could be enough to publish an Apple-MIDI service using Bonjour (mDNS-SD) on an Ethernet network. IP multicast receive (level 2) would require much more effort, because it requires four Ethernet NIC drivers updated for multicast receive (including multicast filter support) and the implementation of the IGMP group management protocol, which has three different versions. There would be much reading required to do so. That's why I hope, it will work without this. The attached test program publishes an
I needed to open the firewall on my Linux PC, so that it works. Unfortunately I do not know yet, if this works with macOS and/or Windows. This has to be tested. If so, the class Of course, this is not an implementation of RTP-MIDI. It only publishes a RTP-MIDI service for Plug-and-Play configuration, the service itself must be provided by yourself. |
Beta Was this translation helpful? Give feedback.
-
An updated class |
Beta Was this translation helpful? Give feedback.
-
I'm trying to implement this on MiniDexed, so far it works when it is first boots up then it stops responding to discovery. Arduino mDNS library has mdns.run() I tried to understand recommended intervals for mdns requests but it seems it does not work as intervals. |
Beta Was this translation helpful? Give feedback.
-
I wonder what's the best way of implementing an mDNS responder. In line with the design patterns of Circle. Is there a similar component example to follow?
Beta Was this translation helpful? Give feedback.
All reactions