OpenDDS通讯rtps_discovery对等发现模式的pub和sub匹配的日志(举例)

OpenDDS的通讯体系中,提供了丰富的日志输出,通过日志输出可以清晰的看到pub和sub方的主题匹配的过程,是加深对OpenDDS过程了解的一个好方法。t100k
下面的日志,以OpenDDS3.8为基础,增加了部分日志和时间戳输出。
rtps_discovery对等发现模式下,通过单播地址进行发布方和订阅方的匹配过程。
(1)sub方
配置文件
[common]
DCPSGlobalTransportConfig=$file
ORBDebugLevel=0
DCPSDebugLevel=10
DCPSTransportDebugLevel=0
ORBLogFile=sub.log
[domain/2]
DiscoveryConfig=fast_rtps
[rtps_discovery/fast_rtps]
ResendPeriod=2
InteropMulticastOverride=239.255.0.11
SpdpSendAddrs=192.168.102.1:7910
##PB=30000
##DX=0
##D1=0
SedpMulticast=0
SedpLocalAddress=192.168.102.1:涂塑钢管连接
TTL=20
sub方日志
(13532|6612) NOTICE: using DCPSDebugLevel value from command option (overrides value if it's in config file).
(13532|6612) NOTICE: using DCPSTransportDebugLevel value from command option (overrides value if it's in config file).
(13532|6612) NOTICE: using ORBLogFile value from command option, overriding config file
Configuration InteropMulticastOverride=239.255.0.11
Configuration SedpMulticast=0
Configuration ResendPeriod=2
Configuration SedpLocalAddress=192.168.102.1:
Configuration SpdpSendAddrs=192.168.102.1:7910
Configuration TTL=20
Configuration transport_type=rtps_udp
Configuration use_multicast=0
Configuration local_address=192.168.179.1:
Configuration ttl=20
Configuration DiscoveryConfig=fast_rtps
2018-02-09 17:18:35.997322 (13532|6612)
Service_Participant::set_repo_domain: Domain[ 2] = Repo[ fast_rtps]. (13532|6612) NOTICE: StaticDiscovery::parse_topics no [topic] sections. (13532|6612) NOTICE: StaticDiscovery::parse_datawriterqos no [datawriterqos] sections.
(13532|6612) NOTICE: StaticDiscovery::parse_datareaderqos no [datareaderqos] sections.
(13532|6612) NOTICE: StaticDiscovery::parse_publisherqos no [publisherqos] sections.
(13532|6612) NOTICE: StaticDiscovery::parse_subscriberqos no [subscriberqos] sections.
(13532|6612) NOTICE: StaticDiscovery::parse_endpoints no [endpoint] sections.
(13532|6612) NOTICE: Service_Participant::intializeScheduling() - no scheduling policy specified, not setting policy.
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) WARNING:open_appropriate_socket_type: socket open not successful:errno: 10048
(13532|6612) Spdp::SpdpTransport::open_unicast_socket() - failed to open_appropriate_socket_type unicast socket on port 7910
ACE_SOCK_Dgram::open: address already in use.  Trying
2018-02-09 17:18:36.036022 (13532|6612)
SUCCESS:open_appropriate_socket_type: socket open successful(SPDP or SEDP or transport): socketid: 488, local[0.0.0.0:7912], port=7912 2018-02-09 17:18:36.036022 (13532|6612)
Spdp::SpdpTransport::open_unicast_socket() - opened unicast socket on port 7912
(13532|6612) Spdp::SpdpTransport::SpdpTransport joining
group  239.255.0.11:7900
2018-02-09 17:18:36.082822 (13532|6612)
SUCCESS:open_appropriate_socket_type: socket open successful(SPDP or SEDP or transport): socketid: 692, local[192.168.102.1:0], port=50699 (13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612)
DDS::ParticipantBuiltinTopicDataDataReaderImpl::enable_specific-data Cached_Allocator_With_Overflow 1f0c6f0 with 20 chunks
(13532|6612) DataReaderImpl::enable Cached_Allocator_With_Overflow
玻璃瓶盖1f0c738 with 20 chunks
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) SubscriberImpl::reader_enabled,金折网
datareader(topic_name=DCPSParticipant) enabled
(13532|6612)
DDS::TopicBuiltinTopicDataDataReaderImpl::enable_specific-data Cached_Allocator_With_Overflow 1f0c780 with 20 chunks
(13532|6612) DataReaderImpl::enable Cached_Allocator_With_Overflow
1f0c7c8 with 20 chunks
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) SubscriberImpl::reader_enabled,
datareader(topic_name=DCPSTopic) enabled
(13532|6612)
DDS::PublicationBuiltinTopicDataDataReaderImpl::enable_specific-data Cached_Allocator_With_Overflow 1f0c810 with 20 chunks
(13532|6612) DataReaderImpl::enable Cached_Allocator_With_Overflow
1f0c858 with 20 chunks
微机消谐装置umg92
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) SubscriberImpl::reader_enabled,
datareader(topic_name=DCPSPublication) enabled
(13532|6612)
DDS::SubscriptionBuiltinTopicDataDataReaderImpl::enable_specific-data Cached_Allocator_With_Overflow 1f0c8a0 with 20 chunks
(13532|6612) DataReaderImpl::enable Cached_Allocator_With_Overflow
1f0c8e8 with 20 chunks
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) SubscriberImpl::reader_enabled,
datareader(topic_name=DCPSSubscription) enabled
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|6612) Ocean::OceanMsgDataReaderImpl::enable_specific-data Cached_Allocator_With_Overflow 1f0c930 with 20 chunks
2018-02-09 17:18:36.114022 (13532|8344) Spdp::SpdpTransport::write_i send SPDPdiscoveredParticipantData to 192.168.102.1:7910(unicast or multicast), socketid=488
(13532|6612) DataReaderImpl::enable Cached_Allocator_With_Overflow
1f0c9c0 with 20 chunks
(13532|6612) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
2018-02-09 17:18:36.114022 (13532|8344) Spdp::SpdpTransport::write_i send SPDPdiscoveredParticipantData to 239.255.0.11:7900(unicast or multicast), socketid=488
2018-02-09 17:18:36.114022 (13532|8344)
Spdp::SpdpTransport::handle_input() - recvBytes=208,
(192.168.179.1:7912->0.0.0.0:7900)
2018-02-09 17:18:36.114022 (13532|8344)
Spdp::SpdpTransport::handle_input() - received subMsgType[DATA]=21 2018-02-09 17:18:36.114022 (13532|6612)
SUCCESS:open_appropriate_socket_type: socket open successful(SPDP or SEDP or transport): socketid: 1184, local[192.168.179.1:0], port=50700 2018-02-09 17:18:36.114022 (13532|8344)
Spdp::SpdpTransport::handle_input() - recvBytes=208,
(192.168.102.1:7910->0.0.0.0:7912)
2018-02-09 17:18:36.114022 (13532|8344)
Spdp::SpdpTransport::handle_input() - received subMsgType[DATA]=21 2018-02-09 17:18:36.114022 (13532|8344) Spdp::data_received() - add a new participant local <01030050.37c00008.34dc0000.000001c1(b8f0199)> discovered remote <01030050.37c00008.35c40000.000001c1(9314d3ae)> createTime=1518167916, leaseDuration=20s.
(13532|8344) Service_Participant::get_discovery: returning repository for domain 2, repo fast_rtps.
(13532|8344) ConditionImpl::signal_all()
(13532|8344) StatusConditionImpl::get_trigger_value() -
mask==0xffffffff, changes==0x200.
(13532|8344) ConditionImpl::signal_all() - number of sets: 0, locally: 0.
(13532|8344) ConditionImpl::signal_all()
软膜布(13532|8344) StatusConditionImpl::get_trigger_value() -
mask==0xffffffff, changes==0x400.
(13532|8344) ConditionImpl::signal_all() - number of sets: 0, locally: 0.
(13532|8344) DataLink::make_reservation() - creating association local subscription 01030050.37c00008.34dc0000.000003c7(d0dac62e) <--> with remote publication  01030050.37c00008.35c40000.000003c2(382be096). (13532|8344) DataLink::make_reservation() - creating association local subscription 01030050.37c00008.34dc0000.000004c7(9f9b50e9) <--> with
remote publication  01030050.37c00008.35c40000.000004c2(776a7651). (13532|8344) DataLink::make_reservation() - creating association local subscription 01030050.37c00008.34dc0000.000200c7(f8734183) <--> with remote publication  01030050.37c00008.35c40000.000200c2(1082673b). 2018-02-09 17:18:36.114022 (13532|8344) Spdp::SpdpTransport::write_i send SPDPdiscoveredParticipantData to 192.168.102.1:7910(unicast or multicast), socketid=488
2018-02-09 17:18:36.114022 (13532|8344) Spdp::SpdpTransport::write_i send SPDPdiscoveredParticipantData to 239.255.0.11:7900(unicast or multicast), socketid=488

本文发布于:2024-09-21 21:57:12,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/1/211121.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:日志   过程   输出   单播   进行   发布   订阅   匹配
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议