Data management method and system

By generating and transmitting the validity information of the data group at the sending end, the problem of resource and bandwidth occupation in data transmission is solved, the processing efficiency of the receiving end is improved, and the rapid determination and operation of the validity information in the data group are realized.

CN118784592APending Publication Date: 2024-10-15Z-ONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411035744.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing data management method, since each data carries tag information during the data transmission process, the resource and bandwidth usage increases, and the receiving end needs to sort out multiple data, which is inefficient.

Method used

The sending end generates the validity information of the data group based on the validity information of multiple data, and only transmits the validity information of the data group without transmitting the validity information of each data. The receiving end determines the data based on the validity information of the data group. The validity of each data in the group can be directly followed up.

Benefits of technology

It reduces the resources and bandwidth occupied by data during transmission, improves the processing efficiency of the receiving end, and reduces the need for data sorting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784592A_ABST
    Figure CN118784592A_ABST
Patent Text Reader

Abstract

The invention discloses a data management method and system, the system comprises a sending end and a receiving end, and the method comprises the following steps: the sending end determines multiple pieces of data, determines validity information of each piece of data, generates a data group according to the multiple pieces of data, and determines validity information of the data group according to the validity information of each piece of data, the data set and validity information of the data set are sent to a receiving end, and the validity information of the data set comprises all valid data, partial valid data and all invalid data; and the receiving end determines the validity information of each data in the data group according to the validity information of the data group. Therefore, during data transmission, the validity information of each piece of data in the data group does not need to be transmitted, and resources and bandwidth occupied by the data in the transmission process are reduced. The receiving end can directly determine the valid data and the invalid data in the data group based on the validity information of the data group, and can directly perform subsequent operation based on the valid data or the invalid data, so that the processing efficiency of the receiving end is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data management technology, and in particular to a data management method, system and system. Background Art

[0002] Currently, during data transmission, the data is assumed to be valid, and the data receiving end also assumes that the data is valid after receiving the data. Alternatively, validity information of the data is added to the data field of the message by default, so that when the receiving end receives the data, it can know that the current data is valid based on the validity information of the data. However, in this case, the originally invalid data may be considered as valid data by the receiving end, resulting in data misreporting and other faults.

[0003] Therefore, in the prior art, the data sending end tags the data with a valid label or an invalid label by encoding, and then sends the data carrying the label information to the receiving end in sequence, and the receiving end determines whether the data is valid data or invalid data based on the label information of the received data. However, in this way, whether it is valid data or invalid data, each data will occupy fixed resources and bandwidth during the transmission process due to the label information. In addition, when the receiving end receives multiple data, it is necessary to filter the data according to the label information of each data to filter out valid data and invalid data. The receiving end needs to sort out the multiple received data before performing subsequent operations on valid data or invalid data.

[0004] Therefore, in the existing data management method, each data carries tag information, which occupies transmission resources and bandwidth during data transmission. In addition, the receiving end sorts out valid data and invalid data, which makes the efficiency of subsequent operations based on valid data or invalid data low. Summary of the invention

[0005] The present application provides a data management method and system, which is used to solve the problem in the prior art that each data carries label information that identifies whether the data is valid or invalid, so that in the process of data transmission, the transmission resources and bandwidth are occupied, and the receiving end sorts out the valid data and invalid data, which makes the efficiency of subsequent operations performed by the receiving end based on the valid data or invalid data low. Among them, the sending end marks the validity information of the data group according to the validity information of each data in the multiple data. During the transmission process, there is no need to transmit the validity information (that is, label information) of each data in the data group, which reduces the resources and bandwidth occupied by the data during the transmission process. In addition, the receiving end can directly determine the valid data and invalid data based on the validity information of the data group, and can directly perform subsequent operations based on the valid data or invalid data, which improves the processing efficiency of the receiving end.

[0006] To solve the above technical problems, on the first aspect, an embodiment of the present application discloses a data management method, which is applied to a data management system. The data management system includes a sending end and a receiving end. The method includes: the sending end determines multiple data and determines the validity information of each data, generates a data group according to the multiple data, and determines the validity information of the data group according to the validity information of each data, and sends the data group and the validity information of the data group to the receiving end, wherein the validity information of the data group includes that all the data is valid, part of the data is valid, and all the data is invalid; the receiving end determines the validity information of each data in the data group according to the validity information of the data group.

[0007] The data management method provided by the implementation of the present application determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to the receiving end, that is, the entire generated data group is labeled as all data valid, part of the data valid, or all data invalid, and the data group and the validity information of the data group are sent to the receiving end. Therefore, when data is transmitted, the validity information of the data group is directly transmitted, and there is no need to transmit the validity information of each data in the data group, which reduces the resources and bandwidth occupied by the data during the transmission process. In addition, the receiving end can directly determine the valid data and invalid data based on the validity information of the data group, and can directly perform subsequent operations based on the valid data or invalid data, thereby improving the processing efficiency of the receiving end.

[0008] According to another specific embodiment of the present application, the embodiment of the present application discloses a data management method, in which a sending end determines the validity information of a data group based on the validity information of each data, including: if the sending end determines that among multiple data, the validity information of each data is valid, then the validity information of the data group is determined to be that all the data is valid; if it is determined that among multiple data, the validity information of some data is valid and the validity information of some data is invalid, then the validity information of the data group is determined to be that partially the data is valid; if it is determined that among multiple data, the validity information of each data is invalid, then the validity information of the data group is determined to be that all the data is invalid.

[0009] By adopting the above technical solution, the sending end can determine the validity information of the data group containing multiple data by determining the validity information of the multiple data. In this way, during the data transmission process, only the validity information of the data group needs to be transmitted, and there is no need to transmit the validity information of each data, thereby reducing the resources and bandwidth occupied by the data during the transmission process.

[0010] According to another specific embodiment of the present application, an embodiment of the present application discloses a data management method, if the validity information of a data group is that the data is partially valid, the method also includes: storing data identification information of data whose validity information is invalid among multiple data in an invalid data list; sending the data group and the validity information of the data group to a receiving end, including: sending the data group, the validity information of the data group and the invalid data list to the receiving end.

[0011] By adopting the above technical solution, for a data group with partially valid data, invalid data is written into an invalid data list, so that the receiving end can determine the valid data and invalid data in the data group based on the invalid data list. The receiving end does not need to sort the data according to the validity information of each data, which reduces the operation of the receiving end and speeds up the data processing efficiency of the receiving end.

[0012] According to another specific embodiment of the present application, an embodiment of the present application discloses a data management method, in which a receiving end determines the validity information of each data in a data group based on the validity information of the data group, including: if the receiving end determines that the validity information of the data group is that all data is valid, then the validity information of each data in the data group is determined to be valid; if the receiving end determines that the validity information of the data group is that part of the data is valid, then according to the invalid data list, the validity of the data included in the data group whose data identification information is the same as the data identification information in the invalid data list is determined to be invalid, and the validity information of other data is valid; if the receiving end determines that the validity information of the data group is that all data is invalid, then the validity information of each data in the data group is determined to be invalid.

[0013] By adopting the above technical solution, the receiving end can directly determine the validity information of each data in the data group based on the validity information of the data group. If the validity information of the data group is partially valid, the valid data and invalid data in the data group can be determined based on the invalid data list. The receiving end does not need to sort the data according to the validity information of each data, which reduces the operation of the receiving end and speeds up the data processing efficiency of the receiving end.

[0014] According to another specific embodiment of the present application, an embodiment of the present application discloses a data management method, in which a sending end sends data groups and validity information of the data groups to a receiving end, including: when the sending end determines that a communication connection has been established with the receiving end, the sending end sends the data groups and validity information of the data groups to the receiving end.

[0015] By adopting the above technical solution, data groups and validity information of data groups will be transmitted only when a communication connection is established between the sending end and the receiving end, thereby avoiding data leakage and causing security risks.

[0016] According to another specific implementation of the present application, the implementation of the present application discloses a data management method, wherein the multiple data are multiple data with the same data name, and the data identification information is the data type.

[0017] By adopting the above technical solution, a data group is generated for multiple data with the same data name, and validity information of the data group is generated. The subsequent sending end can directly generate the same validity information for the data group composed of multiple data with the same data name, without having to judge the validity information of the data group with the same data name each time, thereby reducing the number of validity information determination times. Moreover, when the receiving end receives a data group with the same data name, it can directly determine that the validity information of the data group is the same as the validity information of the data group with the same data name received previously. Therefore, when generating a data group containing multiple identical data names based on the data name, validity information generation can be performed only once, thereby reducing the number of validity information determination times.

[0018] According to another specific embodiment of the present application, the embodiment of the present application discloses a data management method, in which the validity information of the data group is sent to the receiving end based on the service quality policy, and the sending end sends the data group and the validity information of the data group to the data domain, and sends it to the receiving end via the data domain.

[0019] By adopting the above technical solution, data groups and validity information of data groups are transmitted via the data domain, multiple data groups can be transmitted, and the data transmission speed is accelerated.

[0020] In a second aspect, an implementation of the present application provides a data management method, which is applied to a sending end, and the method includes: the sending end determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, and determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to a receiving end, so that the receiving end determines the validity information of each data in the data group based on the validity information of the data group, wherein the validity information of the data group includes that all the data is valid, partially the data is valid, and all the data is invalid.

[0021] On the third aspect, the implementation of the present application provides a data management method, which is applied to a receiving end, and the method includes: the receiving end receives a data group and valid information of the data group, determines the validity of each data in the data group according to the validity information of the data group, the validity information of the data group is obtained by the sending end by determining multiple data and determining the validity information of each data, generating a data group according to the multiple data, and determining it according to the validity information of each data, the validity information of the data group includes that all the data is valid, part of the data is valid, and all the data is invalid.

[0022] In a fourth aspect, the implementation method of the present application provides a data set management system, including a receiving end and a sending end, the sending end is used to determine multiple data and determine the validity information of each data, generate a data group based on the multiple data, and determine the validity information of the data group based on the validity information of each data, and send the data group and the validity information of the data group to the receiving end, wherein the validity information of the data group includes that all the data is valid, part of the data is valid, and all the data is invalid; the receiving end is used to determine the validity information of each data in the data group based on the validity information of the data group.

[0023] In a fifth aspect, an implementation of the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores a computer program; the processor executes the computer program stored in the memory, so that the electronic device implements the data management method provided in any one of the implementations of the first to third aspects above.

[0024] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement a data management method provided in any one of the implementation methods of the first to third aspects above.

[0025] In a seventh aspect, an embodiment of the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the data management method provided in any one of the implementations of the first to third aspects above.

[0026] It can be understood that the beneficial effects of the second to seventh aspects mentioned above can also be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic diagram showing the structure of a data management system provided by an embodiment of the present application is shown;

[0028] Figure 2 A flow chart showing a data management method provided by an embodiment of the present application is shown;

[0029] Figure 3 A schematic diagram showing a flow chart of another data management method provided in an embodiment of the present application;

[0030] Figure 4 A schematic diagram showing the location of the quality of service policy provided in an embodiment of the present application in a data stream;

[0031] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0032] Currently, during data transmission, the data is assumed to be valid, and the data receiving end also assumes that the data is valid after receiving the data. For example, a valid data tag (valid_data flag) is used to indicate whether there is data. If there is data, it is valid data, and if there is no data, it is invalid data. Alternatively, the validity information of the data is added to the data field of the message by default, so that when the receiving end receives the data, it can know that the current data is valid data based on the validity information of the data. However, this method of assuming that data is valid may result in the receiving end considering the originally invalid data as valid data, resulting in data misreporting and other faults.

[0033] Therefore, in the prior art, the data sending end tags the data with a valid label (such as Valid) or an invalid label (such as Invalid) by encoding, and then sends the data carrying the label information to the receiving end in sequence, and the receiving end determines whether the data is valid data or invalid data based on the label information of the received data. However, in this way, whether it is valid data or invalid data, each data will occupy fixed resources and bandwidth during the transmission process due to the label information. Therefore, there is no difference in the resources and bandwidth occupied by the data depending on whether the data is valid or not, and it is impossible to divide the range of valid data and invalid data. In addition, when the receiving end receives multiple data, it is necessary to filter the data according to the label information of each data to filter out valid data and invalid data. The receiving end needs to sort out the multiple data received before performing subsequent operations on valid data or invalid data.

[0034] Therefore, as mentioned above, in the existing data management method, each data carries tag information, which occupies transmission resources and bandwidth during data transmission. In addition, the receiving end sorts out valid data and invalid data, which makes the efficiency of subsequent operations based on valid data or invalid data low.

[0035] Based on this, the implementation of the present application provides a data management method, where the data sending end can define the validity of the transmitted data, generate a data group from multiple data, and define the validity information of the data group according to the validity information of each data, so that when the receiving end receives the data group, it can determine the validity information of the data in the data group based on the validity information of the data group. In this way, there is no need to transmit the validity information of each data during the transmission process, which reduces the resources and bandwidth occupied by each data during the transmission process. In addition, the receiving end can directly determine the valid data and invalid data based on the validity information of the data group, and can directly perform subsequent operations based on the valid data or invalid data, thereby improving the processing efficiency of the receiving end.

[0036] Next, the data management method and system provided by the implementation of this application are described in detail.

[0037] See also Figure 1 The implementation method of the present application provides a data management system, which includes a sending end and a receiving end.

[0038] The sending end is used to determine multiple data and determine the validity information of each data, generate a data group according to the multiple data, and determine the validity information of the data group according to the validity information of each data, and send the data group and the validity information of the data group to the receiving end, wherein the validity information of the data group includes that all the data is valid, part of the data is valid, and all the data is invalid.

[0039] The receiving end is used to determine the validity information of each data in the data group according to the validity information of the data group.

[0040] like Figure 2 As shown, in one implementation of the present application, the data management method provided in the implementation of the present application is applied to a data management system, and the method includes the following steps:

[0041] S110, the sending end determines multiple data and determines the validity information of each data, generates a data group according to the multiple data, determines the validity information of the data group according to the validity information of each data, and sends the data group and the validity information of the data group to the receiving end.

[0042] The validity information of the data group includes whether all the data is valid, part of the data is valid, or all the data is invalid.

[0043] S120, the receiving end determines the validity information of each data in the data group according to the validity information of the data group.

[0044] The data management method provided by the implementation of the present application determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to the receiving end, that is, the entire generated data group is labeled as all data valid, part of the data valid, or all data invalid, and the data group and the validity information of the data group are sent to the receiving end. Therefore, when data is transmitted, the validity information of the data group is directly transmitted, and there is no need to transmit the validity information of each data in the data group, which reduces the resources and bandwidth occupied by the data during the transmission process. In addition, the receiving end can directly determine the valid data and invalid data based on the validity information of the data group, and can directly perform subsequent operations based on the valid data or invalid data, thereby improving the processing efficiency of the receiving end.

[0045] The data management method provided by the implementation of the present application is applied to the data service quality strategy (Quality of Service, referred to as QoS)-Valid in the data transmission process based on the data distribution service (Data Distribution Service, referred to as DDS). That is, when data is transmitted based on DDS, QoS-Valid information is carried, and the QoS-Valid information carries the validity information of the data group.

[0046] In step S110 , the plurality of data are a plurality of data having the same parameter name (as an example of a data name).

[0047] That is, in the implementation of the present application, the sending end determines the validity information of multiple data corresponding to the parameter name in units of parameter names and forms a data group.

[0048] Therefore, the sending end generates a data group, and the data parameter names (that is, data names) in the data group are the same. If the sending end determines that the validity information of the data group is that all data is valid based on the validity information of each data, then when it is determined that new data with multiple parameter names are the same, it can directly determine that the validity information of the data group generated by the new multiple data is that all data is valid. And if the receiving end receives the validity information of the data group as all data is valid, then when it receives a new data group with the same parameter name, it can directly determine that the validity of the new data group is that all data is valid. Similarly, if the sending end determines that the validity information of the data group is that the data is partially valid based on the validity information of each data, and generates an invalid data list, then when it is determined that new data with multiple parameter names are the same, it can directly determine that the validity information of the data group generated by the new multiple data is that the data is partially valid, and it is only necessary to determine the invalid data list of partially valid data. Similarly, the principle of judging that all data is invalid is the same. Therefore, the data management method provided by the implementation of the present application can make only one validity determination for data groups with the same parameter names.

[0049] In step S110, the sending end determines the validity information of the data group according to the validity information of each data, including: if the sending end determines that the validity information of each data among multiple data is valid, then the validity information of the data group is determined to be that all data are valid.

[0050] Exemplarily, the Qos-Valid information includes the following three types of setting information: Allright, Invalid_scope (ie, partially valid), and Invalid.

[0051] Among them, for all valid validity information, the subscriber (as an example of a receiving end) can consider that the validity information of the received data is all valid data.

[0052] Therefore, for the determined multiple data, if it is determined that the validity information of each data is all valid, the multiple data are generated into a data group, and the Qos-Valid of the data group is set to Allright (that is, the validity information of the data group is all valid), and the sending end sends the data group and the validity information of the data group to the receiving end.

[0053] Further, if it is determined that among the multiple data, the validity information of some data is valid and the validity information of some data is invalid, then the validity information of the data group is determined to be partially valid data.

[0054] Furthermore, in the implementation of the present application, if the validity information of the data group indicates that the data is partially valid, the method further includes: storing data identification information of data whose validity information is invalid among the multiple data in an invalid data list.

[0055] Sending the data group and the validity information of the data group to the receiving end includes: sending the data group, the validity information of the data group and the invalid data list to the receiving end.

[0056] Exemplarily, for the data group with valid scope, it is mainly to control the invalid scope of service data. If the validity information is valid scope, the data identification information (such as data type) of invalid data is set for Invalid_scope in Qos, and the parameters (including sub-parameters in complex data types such as Struct) with parameter names in the Parameter invalidity list (that is, the invalid data list) are invalid. At this time, the parameter data in the invalid data list written by DataWriter (the data writing end, that is, the sending end) is the initial value (that is, the written data is invalid data), and the parameter data outside the invalid data list written by DataWriter are all valid.

[0057] Therefore, for the determined multiple data, if it is determined that the validity information of some data among the multiple data is valid, and the validity information of some data is invalid, the multiple data are generated into a data group, and the data type (that is, the parameter name) of the data with invalid validity information is written into the invalid data list, and the Qos-Valid of the data group is set to Invalid_scope (that is, the validity information of the data group is partially valid), and the sending end sends the data group, the valid data list and the validity information of the data group to the receiving end.

[0058] Furthermore, in another implementation of the present application, data identification information of valid data (e.g., data type Parameter) can be set for Invalid_scope in Qos, and all parameters with parameter names in the Parameter validity list (i.e., valid data list) are valid. At this time, the parameter data in the valid data list written by DataWriter (the data writing end, i.e., the sending end) is the real data read, and the parameter data outside the valid data list written by DataWriter are all initial values.

[0059] Therefore, for the determined multiple data, if it is determined that the validity information of some data among the multiple data is valid, and the validity information of some data is invalid, the multiple data are generated into a data group, and the data type of the data with valid validity information is written into the valid data list, and the Qos-Valid of the data group is set to Invalid_scope (that is, the validity information of the data group is partially valid), and the sending end sends the data group, the valid data list and the validity information of the data group to the receiving end.

[0060] Furthermore, if it is determined that the validity information of each data among the plurality of data is invalid, then the validity information of the data group is determined to be that all the data is invalid.

[0061] Exemplarily, if the data written by the data writing end is data when the system initialization is not completed or the sensor fails, the data validity information is considered to be invalid data, that is, the data written by the data writing end is empty data, then the validity information of the data received by the subscriber end is invalid data.

[0062] Therefore, for the determined multiple data, if it is determined that the validity information of each data is all invalid, the multiple data are generated into a data group, and the Qos-Valid of the data group is set to Invalid (that is, the validity information of the data group is all invalid), and the sending end sends the data group and the validity information of the data group to the receiving end.

[0063] That is, in the data management method provided by the implementation of the present application, the validity information of the data group is sent to the receiving end based on the quality of service strategy (QoS).

[0064] Furthermore, in one implementation of the present application, the sending end sends the data group and the validity information of the data group to the receiving end, including: when the sending end determines that a communication connection is established with the receiving end, the sending end sends the data group and the validity information of the data group to the receiving end.

[0065] Exemplarily, the sending end and the receiving end first perform a handshake service to establish a communication connection (that is, the first phase of the communication establishment phase of service discovery). When the handshake is determined to be successful (that is, a communication connection is established), the data group and the QoS settings of the data group are sent to the receiving end in the second node endpoint discovery phase of service discovery.

[0066] Furthermore, in another implementation of the present application, the sending end sends a data group to the receiving end at a preset time period, wherein if the sending end does not receive the data, empty data is written, and the validity information of the data group generated by the empty data is determined to be that all data is invalid, and the data group and the validity information of the data group are sent to the receiving end; if the sending end receives the data, the validity information of each data is determined, and a data group and the validity information of the data group are generated and sent to the receiving end.

[0067] Furthermore, in step S120, the receiving end determines the validity information of each data in the data group according to the validity information of the data group, including: if the receiving end determines that the validity information of the data group is that all data is valid, then determining the validity information of each data in the data group is valid.

[0068] Exemplarily, after receiving the data group and the QoS setting of the data group, the receiving end may subsequently determine the validity of the received data according to the setting.

[0069] For example, if it is determined that the validity information of a data group is all valid, then it is determined that all data in the data group are valid data. In this way, when such data is subsequently received, it can be determined that such data are all valid data according to the parameter name.

[0070] Furthermore, if the receiving end determines that the validity information of the data group is partially valid, then based on the invalid data list, the validity of the data included in the data group whose data identification information is the same as the data identification information in the invalid data list is invalid, and the validity information of other data is valid.

[0071] Furthermore, if the receiving end determines that the validity information of the data group is that all data is invalid, then the validity information of each data in the data group is determined to be invalid. In this way, when such data is subsequently received, it can be determined that such data is invalid data according to the parameter name.

[0072] Furthermore, if Figure 3As shown, taking the sending end as the data writer DataWriter and the receiving end as the data reader DataReader as an example, the data management method provided by the implementation method of this application first writes multiple data with the same parameter name in units of parameter name when the Datawriter end writes data, and defines the validity information of each data, and then determines the validity information of the data group composed of multiple data, and performs Qos-Valid settings. For example, set all valid Allright, or valid range Invalid_scope and its Invalid Parameter List (invalid data list) (invalid parameter name is enumerated in the List, such as Vehspd, Odometer, WheelSpd, etc.) or all invalid Invalid, and write the set information into Qos-Valid. As the information of published data, this data group and Qos setting (that is, Qos-Valid) are transmitted from the DataWriter to the Publisher in the second stage (that is, the endpoint discovery stage) of RTPS (Real Time Streaming Protocol) service discovery. The data group and Qos-Valid are sent to the data domain through the publisher, and then sent to the Subscriber through the data domain. The subscriber sends the data group and Qos-Valid to the DataReader.

[0073] That is, in one implementation of the present application, the sending end sends the data group and the validity information of the data group to the data field, and sends it to the receiving end via the data field.

[0074] After the DataReader receives the data group and Qos settings, it determines the validity information of the received data group with the same parameter name according to the setting information. That is, in the implementation of the present application, the validity information is defined for the data group including multiple data with the same parameter name, and the validity information of the data group is sent to the DataReader. If it is subsequently determined that the validity information of the data with the parameter name is valid, the definition of the validity information of the data group does not need to be performed, and the DataReader can determine that the validity information of the data group is valid based on the parameter name. In this way, the DataReader determines whether the data is fully valid, range valid, or fully invalid through the validity in Qos-Valid.

[0075] Therefore, in the data management method provided by the implementation of the present application, the associated entity of Qos-Valid is the DataWriter end, that is, the validity information of the data is determined only at the DataWriter end, so the DataReader end does not need to judge the compatibility of Qos, and Qos-Valid is only sent to the DataReader end as a notification. Therefore, in the second phase of the endpoint discovery phase of RTPS service discovery, there will be no Qos-Valid in the subscription data information sent from the DataReader end to the DataWriter end. Therefore, the compatibility RxO of Qos is set to "N / A", and the service quality policy can only be specified at the publishing end, and does not need to be specified at both the publishing end and the subscribing end, so there is no need to consider compatibility.

[0076] Furthermore, in another implementation of the present application, if the second phase of service discovery is restarted, the new validity setting of the data group needs to be sent from the data writer DataWriter to the data reader DataReader via Qos-Valid. Figure 4 As shown, Qos-Valid exists in the serialized data and is identified with a PID prefix:

[0077] Real-Tme ​​Publish-Subscribe Wire Protocol

[0078] …

[0079] submessageId: DATA (0x15)

[0080] …

[0081] serializedData

[0082]

[0083]

[0084] The data management method provided by the implementation of this application is actually a QoS service quality setting method based on DDS to identify data validity, which meets the requirements for the validity of transmitted data, occupies fewer resources, and does not occupy message data field (ie, data domain) resources. Normally, the validity information of the data group with the same parameter name is that all data is valid. It only needs to send the Allright flag once in the second stage of service discovery. It does not need to be sent repeatedly if the validity remains unchanged, and it does not need to be sent during normal user data interaction. Compared with sending multiple data valid bit signals, it occupies fewer resources and bandwidth. In addition, it has better applicability and can define the range of valid data. It is more flexible than the existing method of defaulting to a valid label to only indicate whether there is data or not.

[0085] Furthermore, in another implementation of the present application, the data management method provided by the implementation of the present application is applied to a sending end, and the method includes: the sending end determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, and determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to the receiving end, so that the receiving end determines the validity information of each data in the data group based on the validity information of the data group, wherein the validity information of the data group includes that all the data is valid, part of the data is valid, and all the data is invalid.

[0086] In the implementation method of the present application, the sending end determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, and determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to the receiving end. The receiving end determines the validity information of each data in the data group based on the validity information of the data group. Please refer to the contents of the aforementioned steps S110 to S120.

[0087] Furthermore, in another implementation of the present application, the data management method provided by the implementation of the present application is applied to a receiving end, and the method includes: the receiving end receives a data group and valid information of the data group, and determines the validity of each data in the data group according to the validity information of the data group. The validity information of the data group is obtained by the sending end by determining multiple data and determining the validity information of each data, generating a data group according to the multiple data, and determining it according to the validity information of each data. The validity information of the data group includes that all data is valid, partially data is valid, and all data is invalid.

[0088] In the implementation method of the present application, the sending end determines multiple data and determines the validity information of each data, generates a data group based on the multiple data, and determines the validity information of the data group based on the validity information of each data, and sends the data group and the validity information of the data group to the receiving end. The receiving end determines the validity information of each data in the data group based on the validity information of the data group. Please refer to the contents of the aforementioned steps S110 to S120.

[0089] The implementation method of the present application also provides an electronic device, including a transmitting end and / or a receiving end, for executing the technical solution of the transmitting end and / or the receiving end.

[0090] See also Figure 5 , Figure 5 The figure shows a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device may include: a transceiver 121 , a processor 122 , and a memory 123 .

[0091] The processor 122 executes the computer execution instructions stored in the memory, so that the processor 122 executes the technical solution of the data management method in the above embodiment. The processor 122 can be a general-purpose processor, including a central processing unit CPU, a network processor (NP), etc.; it can also be a digital data processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0092] The memory 123 is connected to the processor 122 via a system bus and completes communication between them. The memory 123 is used to store computer program instructions.

[0093] By way of example and not limitation, the memory 123 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 123 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 123 may be inside or outside the integrated gateway device. In a particular embodiment, the memory 123 is a non-volatile solid-state memory. In a particular embodiment, the memory 123 includes a read-only memory (ROM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or a flash memory, or a combination of two or more of these.

[0094] The transceiver 121 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.

[0095] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.

[0096] An embodiment of the present application also provides a chip for running instructions, which is used to execute the technical solution of the data management method in the above embodiment.

[0097] An embodiment of the present application also provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a processor of an electronic device, the processor of the electronic device executes the technical solution of the data management method of the above embodiment.

[0098] In some possible implementations, various aspects of the method provided in the present application may also be implemented in the form of a program product, which includes a program code. When the program product is run on a processor of an electronic device, the program code is used to enable the processor of the electronic device to execute the steps of the method according to various exemplary implementations of the present application described above in this specification. For example, the electronic device may execute the data management method recorded in the embodiments of the present application.

[0099] The program product may employ any combination of one or more readable media. The readable medium may be a readable data medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.

[0100] The implementation method of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, it can implement the technical solution of the data management method in the above embodiment.

[0101] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices and computer program products according to the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable information processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable information processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0102] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable information processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0103] These computer program instructions can also be loaded onto a computer or other programmable information processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0104] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary technical means in the art that are not disclosed in the present application.

[0105] It should be noted that, in addition to the implementation methods of the present application described in the above-mentioned specific embodiments, those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. Although the description of the present application is introduced in conjunction with the preferred embodiment, this does not mean that the features of this invention are limited to the embodiment. On the contrary, the purpose of introducing the invention in conjunction with the implementation method is to cover other options or modifications that may be extended based on the claims of the present application. In order to provide an in-depth understanding of the present application, the above description contains many specific details, and the present application may also be implemented without using these details. In addition, in order to avoid confusion or blurring the focus of the present application, some specific details will be omitted in the description. It should be noted that, in the absence of conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

[0106] It should be noted that in this specification, similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings.

[0107] Although the present application has been illustrated and described by referring to certain preferred embodiments of the present application, it should be understood by those skilled in the art that the above contents are further detailed descriptions of the present application in combination with specific embodiments, and it cannot be determined that the specific implementation of the present application is limited to these descriptions. Those skilled in the art may make various changes in form and details, including making several simple deductions or substitutions, without departing from the spirit and scope of the present application.

Claims

1. A data management method, characterized in that: Applied to a data management system, the data management system includes a sending end and a receiving end, and the method includes: The sending end determines a plurality of data and determines validity information of each of the data, generates a data group according to the plurality of data, determines validity information of the data group according to validity information of each of the data, and sends the data group and the validity information of the data group to the receiving end, wherein the validity information of the data group includes that all data is valid, part of the data is valid, and all data is invalid; The receiving end determines the validity information of each data in the data group according to the validity information of the data group.

2. The data management method according to claim 1, characterized in that: The sending end determines the validity information of the data group according to the validity information of each data, including: If the sending end determines that the validity information of each of the multiple data is valid, then the validity information of the data group is determined to be all valid data. If it is determined that the validity information of some of the multiple data is valid and the validity information of some of the data is invalid, then the validity information of the data group is determined to be partially valid data. If it is determined that the validity information of each of the multiple data is invalid, then the validity information of the data group is determined to be all invalid data.

3. The data management method according to claim 2, characterized in that: If the validity information of the data group indicates that the data is partially valid, the method further includes: storing data identification information of the data whose validity information is invalid among the plurality of data in an invalid data list; Sending the data group and validity information of the data group to the receiving end includes: The data group, validity information of the data group and the invalid data list are sent to the receiving end.

4. The data management method according to claim 3, characterized in that: The receiving end determines the validity information of each data in the data group according to the validity information of the data group, including: If the receiving end determines that the validity information of the data group is that all data is valid, then the receiving end determines that the validity information of each data in the data group is valid; If the receiving end determines that the validity information of the data group is partially valid, then according to the invalid data list, the validity of the data included in the data group, the data whose data identification information is the same as the data identification information in the invalid data list, is invalid, and the validity information of other data is valid; If the receiving end determines that the validity information of the data group indicates that all data is invalid, then the receiving end determines that the validity information of each data in the data group is invalid.

5. The data management method according to any one of claims 1 to 4, characterized in that: The sending end sends the data group and the validity information of the data group to the receiving end, including: When the sending end determines that a communication connection is established with the receiving end, the sending end sends the data group and validity information of the data group to the receiving end.

6. The data management method according to claim 3, characterized in that: The multiple data are multiple data with the same data name, and the data identification information is the data type.

7. The data management method according to any one of claims 1 to 6, characterized in that: The validity information of the data group is sent to the receiving end based on the service quality policy. The sending end sends the data group and the validity information of the data group to the data domain, and sends them to the receiving end via the data domain.

8. A data management method, characterized in that: Applied to the sending end, the method includes: The sending end determines multiple data and determines the validity information of each data, generates a data group according to the multiple data, and determines the validity information of the data group according to the validity information of each data, and sends the data group and the validity information of the data group to the receiving end, so that the receiving end determines the validity information of each data in the data group according to the validity information of the data group, wherein the validity information of the data group includes that all data is valid, part of the data is valid, and all data is invalid.

9. A data management method, characterized in that: Applied to the receiving end, the method comprises: The receiving end receives the data group and the validity information of the data group, and determines the validity of each data in the data group according to the validity information of the data group. The validity information of the data group is obtained by the sending end by determining multiple data and determining the validity information of each data, generating a data group according to the multiple data, and determining it according to the validity information of each data. The validity information of the data group includes that all data is valid, part of the data is valid, and all data is invalid.

10. A data management system, characterized in that: The data management system includes a sending end and a receiving end. The sending end is used to determine a plurality of data and determine validity information of each of the data, generate a data group according to the plurality of data, determine validity information of the data group according to validity information of each of the data, and send the data group and the validity information of the data group to the receiving end, wherein the validity information of the data group includes that all data is valid, part of the data is valid, and all data is invalid; The receiving end is used to determine the validity information of each data in the data group according to the validity information of the data group.