openlcb / OpenLCB_Java

Java implementation of OpenLCB / LCC protocols. This implementation operates inside JMRI, and can also be used inside Android apps.
6 stars 9 forks source link

mDNS support #120

Closed balazsracz closed 1 year ago

balazsracz commented 6 years ago

In the draft TCP standard there are mDNS names set for automatically connecting to an OpenLCB network. We should have an implementation for this in openlcb.jar or downstream in JMRI.

pabender commented 6 years ago

JMRI has capabilities to advertise mDNS services already. It will be pretty simple to add that. I’ll try to review the relevant documentation for the names to use.

balazsracz commented 6 years ago

The name should be _openlcb-can._tcp when the hub is running. This is documented in the TcpStandard (not sure if it's the S or TN).

thanks Balazs

icklesteve commented 1 year ago

Hi @balazsracz , can this be closed down?

The JMRI Hub Control should be advertising on _openlcb-can._tcp.local. ? https://github.com/JMRI/JMRI/blob/master/java/src/jmri/jmrix/openlcb/swing/hub/HubPane.java#L211

Ta, Steve.

bobjacobsen commented 1 year ago

I confirm that JMRI is advertising as required. This can be closed.