DDS (Date Distribution Service) standard-based ''request-response'' type data communication method
暂无分享,去创建一个
The invention provides a DDS (Date Distribution Service) standard-based ''request-response'' type data communication method. The method includes the following steps that: 1) a ''request-response'' domain is defined; 2) a ''request-response'' theme and a message structure are defined; 3) all participants containing ''request-response'' application needs are joined to the domain, and the theme is subscribed; 4) a requester creates a request message according to unified message definition; 5) the requester sends the request message by using the ''distribution'' operation of the DDS standard; 6) all subscribers in the domain filter received messages through using a targetId field; and 7) a responder performs deserialization on the param field of the request message by using corresponding technologies so as to obtain a request parameter. According to the DDS standard-based ''request-response'' type data communication method of the invention, based on the DDS, the unified message structure is defined, and the subscribers perform filtering, and therefore, point-to-point transmission under the same theme can be realized, and based on the point-to-point transmission, a ''request-response'' type communication mode can be completed.