jmmorato / openddsharp

OpenDDS wrapper for .NET languages
http://www.openddsharp.com
GNU Lesser General Public License v3.0
53 stars 12 forks source link

Discovery via Unicast #241

Closed amielc1 closed 5 months ago

amielc1 commented 5 months ago

How can I set the discovery process via Unicast instead of Multicast? in rtps.ini file?

I have 2 participants that send messages to the same Topic. I need to use unicast addresses, so each participant sends messages to another IP (another transport). all transports defined in 'rtps.ini' file. I noticed that my application sends messages to other topic subscribers although I didn't specify their address in my rtps file. while I disabled the multicast.

[common] DCPSGlobalTransportConfig=participant1_transport DCPSDefaultDiscovery=unicast_rtps DCPSDebugLevel=10 ORBDebugLevel=10 ORBLogFile=LogFilePublisher.log

[domain/43] DiscoveryConfig=unicast_rtps

[rtps_discovery/unicast_rtps] SedpRtpsRelayAddress=172.198.166.99:8888 SpdpRtpsRelayAddress=172.198.166.99:8889 UseRtpsRelay=1

[config/participant1_transport] transports=udp1

[config/participant2_transport] transports=udp2

[transport/udp1] transport_type=rtps_udp use_multicast=0 local_address=172.198.166.124:5555 DataRtpsRelayAddress=192.198.166.99:6666
UseRtpsRelay=1

[transport/udp2] transport_type=rtps_udp use_multicast=0 local_address=172.198.166.124:3333 DataRtpsRelayAddress=172.198.166.124:4444
UseRtpsRelay=1

jmmorato commented 5 months ago

I would say this is more a question about OpenDDS than for OpenDDSharp. My first recommendation would be to open a Discussion in the OpenDDS project where the will advice you better 😉

PS: Feel free to reopen the issue here in case that you have already proven correct your configuration with OpenDDS but does not work with OpenDDSharp

amielc1 commented 5 months ago

Ok, I appreciate your help! Amiel