Data transmission method and device, computer equipment and storage medium

文档序号:48749 发布日期:2021-09-28 浏览:45次 中文

阅读说明:本技术 数据传输方法、装置、计算机设备和存储介质 (Data transmission method and device, computer equipment and storage medium ) 是由 汪滔 蒯柏 邱宏伟 于 2021-05-14 设计创作,主要内容包括:本申请涉及一种数据传输方法、装置、计算机设备和存储介质。所述方法包括:获取传输通信列表;传输通信列表中包含至少一项传输参数的传输数据、传输数据对应的传输校验值以及传输参数对应的传输优先级;接收数据请求方发送的查询请求,查询请求中携带有数据请求方中存储的各项传输参数的传输数据对应的参考校验值;按照传输通信列表中各项传输参数对应的传输优先级顺序,对比传输数据对应的传输校验值和接收到的参考校验值,确定发生更新的目标传输数据,并将目标传输数据以及目标传输数据对应的传输校验值发送给数据请求方。采用本方法可以提高数据传输效率。(The application relates to a data transmission method, a data transmission device, computer equipment and a storage medium. The method comprises the following steps: acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter; receiving an inquiry request sent by a data request party, wherein the inquiry request carries reference check values corresponding to transmission data of various transmission parameters stored in the data request party; and comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority sequence corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester. The method can improve the data transmission efficiency.)

1. A method of data transmission, the method comprising:

acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

receiving an inquiry request sent by a data requester, wherein the inquiry request carries reference check values corresponding to transmission data of various transmission parameters stored in the data requester;

and comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

2. The method of claim 1, further comprising:

monitoring transmission data of each transmission parameter;

if the transmission data of the first transmission parameter is monitored to be updated, calculating a transmission check value of the transmission data of the first transmission parameter after updating, updating the transmission check value of the transmission data after updating into the transmission communication list, and adding a candidate transmission identifier for the first transmission parameter.

3. The method of claim 2, wherein the determining the updated target transmission data by comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list comprises:

identifying, in the transmission communication list, the transmission parameter to which the candidate transmission identifier is added as a candidate transmission parameter;

and comparing the transmission check value corresponding to the transmission data of the candidate transmission parameter with the received reference check value according to the transmission priority order corresponding to the candidate transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

4. The method of claim 2, further comprising:

if the transmission data of the first transmission parameter is monitored to be updated, updating the transmission data updating times of the first transmission parameter in a first preset period;

determining transmission priorities corresponding to the transmission parameters according to the updated transmission data updating times of the first transmission parameter and the updated transmission data updating times of other transmission parameters in the first preset period, and updating the determined transmission priorities corresponding to the transmission parameters into the transmission communication list.

5. The method according to claim 4, wherein the determining, according to the updated transmission data update times of the first transmission parameter and the updated transmission data update times of other transmission parameters in the first preset period, the transmission priority corresponding to each transmission parameter includes:

sorting the updated transmission data updating times of the first transmission parameter and the transmission data updating times of other transmission parameters in the first preset period from large to small to obtain a sorting result of the transmission data updating times of all the transmission parameters;

and determining the transmission priority corresponding to each transmission parameter according to the sequencing result.

6. The method according to claim 4, wherein the determining, according to the updated transmission data update times of the first transmission parameter and the updated transmission data update times of other transmission parameters in the first preset period, the transmission priority corresponding to each transmission parameter includes:

acquiring the data type of each transmission parameter;

and determining the transmission priority corresponding to each transmission parameter according to the updated transmission data updating times of the first transmission parameter, the updated transmission data updating times of other transmission parameters in the first preset period and the data types of the transmission parameters.

7. The method of claim 5, further comprising:

in a second preset period, counting the transmission data accumulated updating times of each transmission parameter in the transmission communication list;

calculating the data change rate of each transmission parameter according to the accumulated updating times and the duration of the second preset period;

determining the data type corresponding to each transmission parameter according to the data change rate and a preset change rate threshold; wherein the data types include a dynamic data type and a static data type.

8. The method according to claim 1, wherein the comparing, according to the transmission priority order corresponding to each of the transmission parameters in the transmission communication list, the transmission check value corresponding to the transmission data with the received reference check value, determining target transmission data in which updating occurs, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requestor, comprises:

in the transmission communication list, sequentially reading transmission check values corresponding to transmission data of the transmission parameters according to the transmission priority order of the transmission parameters;

and when a transmission check value corresponding to the transmission data of the transmission parameter is read, determining the transmission data as target transmission data according to the transmission check value corresponding to the transmission data and the received reference check value, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

9. A data transmission apparatus, characterized in that the apparatus comprises:

an acquisition module for acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

a receiving module, configured to receive an inquiry request sent by a data requester, where the inquiry request carries reference check values corresponding to transmission data of transmission parameters stored in the data requester;

and the sending module is used for comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 8.

11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 8.

Technical Field

The present application relates to the field of communication transmission technologies, and in particular, to a data transmission method, an apparatus, a computer device, and a storage medium.

Background

In the blade server, a BMC (Baseboard Management Controller) on a motherboard node communicates with a CMM (Chassis Management Module) on a Management board via an IPMB (Intelligent Platform Management Bus). In the communication process, the BMC is mainly responsible for collecting data, the collected data may include power supply start/stop data, energy consumption data, FRU (Field replaceable Unit) data, sensor information, and the like, and the CMM is mainly responsible for displaying data.

The traditional communication mode between the BMC and the CMM is completed in a mode of regular inquiry of the CMM, namely the CMM continuously sends an inquiry command to the BMC according to a fixed period, after receiving the inquiry command, the BMC processes all data collected at the current moment according to the inquiry command and returns all processed data to the CMM through the IPMB bus.

However, the conventional BMC and CMM have a large data transmission amount, which results in a busy IPMB bus, and further results in a long data transmission duration and low communication efficiency.

Disclosure of Invention

In view of the above, it is necessary to provide a data transmission method, an apparatus, a computer device and a storage medium for solving the above technical problems.

A method of data transmission, the method comprising:

acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

receiving an inquiry request sent by a data requester, wherein the inquiry request carries reference check values corresponding to transmission data of various transmission parameters stored in the data requester;

and comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In the data transmission method, the BMC node acquires a transmission communication list; based on the transmission priority order corresponding to each transmission parameter in the transmission communication list; and comparing the transmission check value corresponding to each transmission parameter in the transmission communication list with the reference check value carried in the received query request in sequence, determining the updated target transmission data in the transmission communication list, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester. By adopting the method, the changed data is firstly identified according to the sequence of the query priority in the transmission communication list, and meanwhile, only the changed data is sent to the data receiving party, so that the data transmission amount is reduced, the transmission time is saved, and the transmission efficiency is improved.

In one embodiment, the method further comprises:

monitoring transmission data of each transmission parameter;

if the transmission data of the first transmission parameter is monitored to be updated, calculating a transmission check value of the transmission data of the first transmission parameter after updating, updating the transmission check value of the transmission data after updating into the transmission communication list, and adding a candidate transmission identifier for the first transmission parameter;

in one embodiment, the determining, according to a transmission priority order corresponding to each transmission parameter in the transmission communication list, target transmission data with an update by comparing a transmission check value corresponding to the transmission data with the received reference check value includes:

identifying, in the transmission communication list, the transmission parameter to which the candidate transmission identifier is added as a candidate transmission parameter;

and comparing the transmission check value corresponding to the transmission data of the candidate transmission parameter with the received reference check value according to the transmission priority order corresponding to the candidate transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In this embodiment, the BMC node monitors transmission data of the transmission parameter, identifies update of the transmission data, and adds a candidate transmission identifier to the transmission parameter corresponding to the identified updated transmission data, as a candidate transmission parameter, so as to implement preliminary screening of the transmission parameter, so that the BMC node can further identify the transmission data from the preliminarily screened candidate transmission parameter as updated according to the transmission check value after receiving the query request, and obtain a screening result of the transmission data that is finally updated. By adding the candidate transmission identification to the transmission data which is identified to be updated, the identification range of the check value after the BMC receives the query request is narrowed, a mode of directly comparing the transmission check values of the full transmission data is replaced, the time for identifying the updated data is shortened, and the data transmission efficiency is improved.

In one embodiment, the method further comprises:

if the transmission data of the first transmission parameter is monitored to be updated, updating the transmission data updating times of the first transmission parameter in a first preset period;

determining transmission priorities corresponding to the transmission parameters according to the updated transmission data updating times of the first transmission parameter and the updated transmission data updating times of other transmission parameters in the first preset period, and updating the determined transmission priorities corresponding to the transmission parameters into the transmission communication list.

In this embodiment, transmission data of each transmission parameter is monitored, and when transmission data of the transmission parameters is updated, transmission priority of each transmission parameter is updated by sequencing update times of the transmission data of each transmission parameter from large to small in the same first preset period after updating, so that transmission parameters which are updated actively in a transmission communication list are realized, have higher transmission priority, and can be identified and transmitted earlier.

In one embodiment, the determining, according to the updated transmission data update times of the first transmission parameter and the updated transmission data update times of other transmission parameters in the first preset period, the transmission priority corresponding to each transmission parameter includes:

sorting the updated transmission data updating times of the first transmission parameter and the transmission data updating times of other transmission parameters in the first preset period from large to small to obtain a sorting result of the transmission data updating times of all the transmission parameters;

and determining the transmission priority corresponding to each transmission parameter according to the sequencing result.

In one embodiment, the determining, according to the updated transmission data update times of the first transmission parameter and the updated transmission data update times of other transmission parameters in the first preset period, the transmission priority corresponding to each transmission parameter includes:

acquiring the data type of each transmission parameter;

and determining the transmission priority corresponding to each transmission parameter according to the updated transmission data updating times of the first transmission parameter, the updated transmission data updating times of other transmission parameters in the first preset period and the data types of the transmission parameters.

In this embodiment, all transmission parameters are classified according to the data types of the transmission parameters to obtain classification results of the transmission parameters, and the transmission priorities are updated individually for the transmission parameters included in the classification results of each transmission parameter, so that the data volume of the transmission parameters during the priority ordering processing is reduced, and the time for the priority ordering processing is reduced.

In one embodiment, the data types include a dynamic data type and a static data type; determining transmission priorities corresponding to the transmission parameters according to the updated transmission data update times of the first transmission parameter, the updated transmission data update times of other transmission parameters in the first preset period, and the data types of the transmission parameters, including:

if the data type of the first transmission parameter is a dynamic data type, sorting the transmission parameters of the dynamic data type in the transmission parameters according to the sequence that the updating times of the transmission data in the first preset period are from large to small to obtain a sorting result of the transmission parameters of the dynamic data type;

determining the transmission priority corresponding to the transmission parameters of the dynamic data types according to the sequencing result;

if the data type of the first transmission parameter is a static data type, sorting the transmission parameters of the static data type in the transmission parameters according to the sequence of the update times of the transmission data in the first preset period from large to small to obtain a sorting result of the transmission parameters of the static data type;

and determining the transmission priority corresponding to the transmission parameters of the static data types according to the sequencing result.

In one embodiment, the method further comprises:

in a second preset period, counting the transmission data accumulated updating times of each transmission parameter in the transmission communication list;

calculating the data change rate of each transmission parameter according to the accumulated updating times and the duration of the second preset period;

determining the data type corresponding to each transmission parameter according to the data change rate and a preset change rate threshold; wherein the data types include a dynamic data type and a static data type.

In one embodiment, the comparing, according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, the transmission check value corresponding to the transmission data with the received reference check value, determining target transmission data with which update occurs, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requestor includes:

in the transmission communication list, sequentially reading transmission check values corresponding to transmission data of the transmission parameters according to the transmission priority order of the transmission parameters;

and when a transmission check value corresponding to the transmission data of the transmission parameter is read, determining the transmission data as target transmission data according to the transmission check value corresponding to the transmission data and the received reference check value, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In this embodiment, whether transmission data of the transmission parameter is updated is identified by comparing the received reference check value with the transmission check value of the transmission data, and when the transmission data of the updated transmission parameter is identified, the transmission data that is updated is used as target transmission data to perform data transmission, so that the data amount of the transmission data that needs to be sent in full amount is reduced, the transmission time is reduced, and the transmission efficiency is improved.

A data transmission apparatus, the apparatus comprising:

an acquisition module for acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

a receiving module, configured to receive an inquiry request sent by a data requester, where the inquiry request carries reference check values corresponding to transmission data of transmission parameters stored in the data requester;

and the sending module is used for comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:

acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

receiving an inquiry request sent by a data requester, wherein the inquiry request carries reference check values corresponding to transmission data of various transmission parameters stored in the data requester;

and comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:

acquiring a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

receiving an inquiry request sent by a data requester, wherein the inquiry request carries reference check values corresponding to transmission data of various transmission parameters stored in the data requester;

and comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

According to the data transmission method, the data transmission device, the computer equipment and the storage medium, the BMC node acquires the transmission communication list; based on the transmission priority order corresponding to each transmission parameter in the transmission communication list; and comparing the transmission check value corresponding to each transmission parameter in the transmission communication list with the reference check value carried in the received query request in sequence, determining the updated target transmission data in the transmission communication list, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester. By adopting the method, the data is identified according to the sequence of the transmission priority in the transmission communication list, so that the frequently updated data is identified firstly, and meanwhile, only the changed data is sent to the data receiving party, thereby reducing the data transmission amount, saving the transmission time and improving the transmission efficiency.

Drawings

FIG. 1 is a flow diagram illustrating a data transmission method according to one embodiment;

FIG. 2 is a flow diagram illustrating an exemplary process for identifying transmission data updates;

FIG. 3 is a flowchart illustrating the step of updating priorities based on candidate transmission identifications in one embodiment;

FIG. 4 is a flowchart illustrating the transmission priority step of updating transmission parameters according to an embodiment;

FIG. 5 is a flowchart illustrating exemplary steps for determining transmission priority based on the ordering result in one embodiment;

FIG. 6 is a flow diagram of the separately determining transmission priority by data type classification in one embodiment;

FIG. 7 is a diagram illustrating prioritization based on data type classification results, under an embodiment;

FIG. 8 is a flowchart illustrating a method for determining a data type of a transmission parameter according to an embodiment;

FIG. 9 is a diagram illustrating a data partitioning process for transmission parameters according to one embodiment;

FIG. 10 is a flowchart illustrating steps for sending transmission data one by one based on transmission priority in one embodiment;

FIG. 11 is a block diagram showing the structure of a data transmission device according to an embodiment;

FIG. 12 is a diagram illustrating an internal structure of a computer device according to an embodiment.

Detailed Description

In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.

First, before specifically describing the technical solution of the embodiment of the present application, a technical background or a technical evolution context on which the embodiment of the present application is based is described. In general, in the technical field of server data transmission, the current technical background is: a BMC (Baseboard Management Controller) on the motherboard collects server parameter data according to a preset period, and then, a CMM (Chassis Management Module) sends a query request to the BMC according to a periodic query manner to obtain server parameter data collected in a current period of the BMC. However, when the BMC and the CMM perform full data transmission, the IPMB bus for transmission is busy, and further, the data transmission duration is long, and the communication efficiency is not high. Based on this background, the applicant finds that, through long-term model simulation research and development and experimental data collection, demonstration and verification, when all server parameters are transmitted between the BMC and the CMM, the problems of busy IPMB bus and low transmission efficiency occur due to large data volume of all server parameters, and therefore, how to solve the problem of low transmission efficiency between the BMC and the CMM becomes a problem to be solved urgently at present. In addition, it should be noted that, in the present application, it is found that the data size of all server parameters between the BMC and the CMM is huge, and a technical problem that the IPMB bus is busy occurs, and the technical solutions described in the following embodiments, and the applicant has paid a lot of creative labor.

In one embodiment, as shown in fig. 1, a data transmission method is provided, and this embodiment is illustrated by applying the method to a blade server. In this embodiment, the method includes the steps of:

step 101, a transmission communication list is obtained.

The transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter. For example, as shown in table 1 below:

TABLE 1

Table 1 includes transmission data, a transmission Check value (CRC) and corresponding priorities corresponding to the n transmission parameters. Where there may be a parallel priority in the transmission communication list, e.g., data 2 and data 3 each correspond to priority 1.

In implementation, the BMC node on the blade server motherboard may obtain a transmission communication list pre-stored by the blade server. Specifically, the record of one of the transmission parameters included in the transmission communication list may be: sensor temperature, 25 ℃, transmission check value 3, priority 3. Meanwhile, the transmission data in the transmission communication list is updated, and after the transmission in the transmission communication list is updated, the corresponding transmission check value and the transmission priority both need to be updated.

Step 102, receiving a query request sent by a data requester.

The query request carries reference check values corresponding to transmission data of each transmission parameter stored in the CMM of the data requester. The reference check value is obtained by calculating the transmission data which is received and stored by the CMM last time and sent by the BMC. Each reference check value is represented by 32-bit data, the reference check value of 32-bit being much smaller than the amount of transmission carrying the transmission data.

In implementation, because the transmission data of the transmission parameters collected by the BMC node is continuously updated, in order to maintain the consistency of the transmission parameters of the CMM in the blade server with the transmission data of the BMC node, the CMM sends an inquiry request to the BMC in a preset period, and the BMC node receives the inquiry request and reads a reference check value carried in the inquiry request. The reference check value is used for identifying whether transmission data of each transmission parameter in the BMC is updated or not.

Step 103, comparing the transmission check value corresponding to the transmission data with the received reference check value according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In implementation, the BMC node reads the transmission data of the transmission parameter 1 having the highest transmission priority (i.e., transmission priority 1) and the transmission check value 1 corresponding to the transmission data first according to the transmission priority order corresponding to each transmission parameter in the transmission communication list, for example, the transmission priority 1 is prior to the transmission priority 2, the transmission priority 2 is prior to the transmission priority 3, and so on, and then the BMC node compares the transmission check value 1 corresponding to the transmission data 1 with the reference check value 1 of the received transmission parameter 1, determines that the transmission data of the transmission parameter 1 is updated if the transmission check value 1 is not consistent with the reference check value 1, and further determines that the updated transmission data is the target transmission data. After determining the target transmission data, the BMC node may send the target transmission data and a transmission check value corresponding to the target transmission data to the data requester CMM.

Optionally, after receiving the target transmission data and the transmission check value corresponding to the target transmission data, the CMM performs verification according to the transmission check value corresponding to the target transmission data, so as to ensure that the target transmission data is not tampered in the transmission process. And then, the CMM updates the local storage by using the target transmission data and the transmission check value of the target transmission data so as to ensure the transmission data consistency of each transmission parameter in the CMM and the BMC node. The transmission check value of the transmission data of each transmission parameter updated by the CMM may be used as a reference check value carried when the CMM initiates an inquiry request next time.

In the data transmission method, the BMC node acquires a transmission communication list; based on the transmission priority order corresponding to each transmission parameter in the transmission communication list; and comparing the transmission check value corresponding to each transmission parameter in the transmission communication list with the reference check value carried in the received query request in sequence, determining the updated target transmission data in the transmission communication list, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester. By adopting the method, the data is identified according to the sequence of the transmission priority in the transmission communication list, so that the frequently updated data is identified firstly, and meanwhile, only the changed data is sent to the data receiving party, thereby reducing the data transmission amount, saving the transmission time and improving the transmission efficiency.

In one embodiment, as shown in fig. 2, prior to step 103, the method further comprises the steps of:

step 201, monitoring transmission data of each transmission parameter.

In an implementation, the transmission parameters of the blade server include: the system comprises a fan, a power supply, a power. The BMC node monitors transmission data of various transmission parameters of the blade server according to a preset period, and identifies the transmission data of which the transmission parameters are updated.

Step 202, if it is monitored that the transmission data of the first transmission parameter is updated, calculating a transmission check value of the transmission data of the updated first transmission parameter, updating the transmission check value of the updated transmission data into a transmission communication list, and adding a candidate transmission identifier for the first transmission parameter.

In implementation, if the BMC node monitors that the transmission data of the first transmission parameter is updated, the transmission check value of the transmission data after the update of the first transmission parameter is calculated. The method for calculating the transmission check value may be as follows: for the numerical transmission data, the specific field characteristic information included in the transmission data is used for calculation, and for the state information type transmission data, the field characteristic information included in the transmission data and the current time information may also be used together for calculating the transmission check value corresponding to the transmission data. And then, the BMC node updates the transmission data after the first transmission parameter is updated and the corresponding transmission check value into the transmission communication list, and adds a candidate transmission identifier for the first transmission parameter. The candidate transmission identifies a change in transmission data characterizing the first transmission parameter.

In an optional embodiment, as shown in fig. 3, on the basis that the BMC preliminarily identifies that the transmission data of the first transmission parameter is updated and adds the candidate transmission identifier, the processing manner of step 103 may further include the following steps:

in step 301, in the transmission communication list, the transmission parameter added with the candidate transmission identifier is identified as a candidate transmission parameter.

In implementation, the BMC node performs initial identification and screening on the transmission parameters in the transmission communication list, that is, the transmission parameters with the candidate transmission identifiers are used as candidate transmission parameters, so as to obtain an initial screening result. For example, in all transmission parameters included in the transmission communication list, the transmission parameter 1, the transmission parameter 3, and the transmission parameter 5 to which the candidate transmission identifier is added are identified, and the transmission parameter 1, the transmission parameter 3, and the transmission parameter 5 are used as the candidate transmission parameters, so that the initial screening result including the transmission parameter 1, the transmission parameter 3, and the transmission parameter 5 is obtained.

Step 302, comparing the transmission check value corresponding to the transmission data of the candidate transmission parameter with the received reference check value according to the transmission priority order corresponding to the candidate transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In implementation, the BMC node uses the screened candidate transmission parameters as a new screening range, sequentially compares the transmission check values corresponding to the transmission data of the candidate transmission parameters with the received reference check value according to the transmission priority order corresponding to the candidate transmission parameters, and finally determines the updated target transmission data. And then, the BMC sends the target transmission data determined from the candidate transmission parameters and the transmission check value corresponding to the target transmission data to the CMM of the data requesting party.

In this embodiment, the BMC node monitors transmission data of the transmission parameter, identifies update of the transmission data, and adds a candidate transmission identifier to the transmission parameter corresponding to the identified updated transmission data, as a candidate transmission parameter, so as to implement preliminary screening of the transmission parameter, so that the BMC node can further identify the transmission data from the preliminarily screened candidate transmission parameter as updated according to the transmission check value after receiving the query request, and obtain a screening result of the transmission data that is finally updated. By adding the candidate transmission identification to the transmission data which is identified to be updated, the identification range of the check value after the BMC receives the query request is narrowed, a mode of directly comparing the transmission check values of the full transmission data is replaced, the time for identifying the updated data is shortened, and the data transmission efficiency is improved.

In one embodiment, it is monitored that the transmission data is updated in step 202, and a transmission check value of the updated transmission data is calculated, and as shown in fig. 4, the method further includes:

in step 401, if it is monitored that the transmission data of the first transmission parameter is updated, updating the transmission data update times of the first transmission parameter in a first preset period.

In an implementation, the first preset period is a unit time, for example, one unit time may be 10 seconds, 1 minute, 10 minutes, and the like, and the embodiment of the present application is not limited. Meanwhile, the first preset period performs recursive update according to a unit time less than the duration of the first preset period, for example, the duration of the first preset period is 10 seconds, and then the cycle recursive rule of the first preset period is as follows: according to the recursion rule of the first preset period, if the BMC node monitors that the transmission data of the first transmission parameter in the transmission communication list is updated, the BMC node re-counts the transmission data update times of the first transmission parameter in the first preset period corresponding to the current time, and then updates the transmission data update times of the updated first transmission parameter in the first preset period into the update time record in the transmission communication list.

Step 402, determining transmission priorities corresponding to the transmission parameters according to the updated transmission data update times of the first transmission parameter and the transmission data update times of other transmission parameters in a first preset period, and updating the determined transmission priorities corresponding to the transmission parameters into a transmission communication list.

In implementation, the BMC node performs ranking of the transmission data update times from large to small according to the updated transmission data update times of the first transmission parameter and the transmission data update times of other transmission parameters in the same first preset period, obtains a ranking result of the transmission data update times, and determines the transmission priority corresponding to each transmission parameter according to the ranking result of the transmission data update times. Namely, the transmission parameter with the first transmission priority is determined as the transmission parameter with the first transmission data updating time sequencing result. The transmission priority update determination process will be described in detail later, and will not be described in detail here.

In this embodiment, transmission data of each transmission parameter is monitored, and when transmission data of the transmission parameters is updated, transmission priority of each transmission parameter is updated by sequencing update times of the transmission data of each transmission parameter from large to small in the same first preset period after updating, so that transmission parameters which are updated actively in a transmission communication list are realized, have higher transmission priority, and can be identified and transmitted earlier.

In an embodiment, as shown in fig. 5, in step 402, the transmission priority corresponding to each transmission parameter is determined according to the updated transmission data update times of the first transmission parameter and the updated transmission data times of other transmission parameters in the first preset period, and the processing procedure may include the following steps:

and step 501, sorting the updated transmission data update times of the first transmission parameter and the transmission data update times of other transmission parameters in a first preset period from large to small to obtain a sorting result of the transmission data update times of all the transmission parameters.

In implementation, the BMC node sorts the updated transmission data update times of the first transmission parameter and the transmission data update times of other transmission parameters in the same first preset period from large to small to obtain a transmission data update time sorting result of each transmission parameter, as shown in table 2 below, which is shown in table 2 as a transmission data update time sorting result of each transmission parameter in the transmission communication list.

TABLE 2

Step 502, determining the transmission priority corresponding to each transmission parameter according to the sorting result.

In implementation, the sequence included in the sequencing result is a descending sequence of the update times of the transmission data from large to small, and the BMC node determines the transmission priorities of the transmission parameters corresponding to the transmission data to be the same according to the sequence, for example, if the update times of the transmission data of the transmission parameter 1 are ranked at the 2 nd bit in the update times of the transmission data of each transmission parameter, the transmission priority of the corresponding transmission parameter 1 is the priority 2, that is, the transmission priority is also ranked at the 2 nd bit.

In an alternative embodiment, as shown in fig. 6, in step 402, the transmission priority corresponding to each transmission parameter is determined according to the updated transmission data update times of the first transmission parameter and the updated transmission data times of other transmission parameters in the first preset period, and the processing procedure may include the following steps:

step 601, acquiring data types of each transmission parameter.

In implementation, after a period of transmission data update, the BMC node may determine the data type of each transmission parameter according to the transmission data update frequency of each transmission parameter in the period of time, and then the BMC node may obtain the data type determined by each transmission parameter in the transmission communication list. The data types can include static data types and dynamic data types, and the data types are used for characterizing the transmission data activity degree of the transmission parameters. In addition, the determination method of the data type of the transmission parameter by the BMC node will be described in detail later, and will not be described herein again.

Step 602, determining a transmission priority corresponding to each transmission parameter according to the updated transmission data update times of the first transmission parameter, the transmission data update times of other transmission parameters in a first preset period, and the data type of each transmission parameter.

In implementation, after the BMC node obtains the data types of the transmission parameters in the transmission communication list, the BMC node may classify the transmission parameters according to the difference in the data types, as shown in fig. 7, divide all the transmission parameters in the transmission communication list into the transmission parameters of the static data type and the transmission parameters of the dynamic data type according to the difference in the data types, and determine the transmission priority corresponding to each transmission parameter according to the transmission data update times of each transmission parameter in each data type for the transmission parameters of each data type.

In this embodiment, all transmission parameters are classified according to the data types of the transmission parameters to obtain classification results of the transmission parameters, and the transmission priorities are updated individually for the transmission parameters included in the classification results of each transmission parameter, so that the data volume of the transmission parameters during the priority ordering processing is reduced, and the time for the priority ordering processing is reduced.

In one embodiment, the data types include a dynamic data type and a static data type. The specific processing procedure of step 602 may update the transmission priority according to the classification result of the transmission parameters divided by the data type, and has the following manner:

in the first mode, if the data type of the first transmission parameter is a dynamic data type, the transmission parameters of the dynamic data type in each transmission parameter are sorted according to the sequence of the update times of the transmission data in the first preset period from large to small, and the sorting result of the transmission parameters of the dynamic data type is obtained.

In the implementation, the transmission priority update will be described by taking the classified data update of any one of the transmission parameters as an example. Specifically, in the classified data, if the data type of the first transmission parameter in which the data update occurs is a dynamic data type, the transmission priority is updated only in each transmission parameter of the dynamic data type in which the data update occurs, as shown in fig. 7, in the transmission parameters of the dynamic data type, the transmission parameters are sorted in the order of the number of times of updating the transmission data in the same first preset period from large to small, and then the sorting result of the transmission parameters of each dynamic data type is obtained.

Optionally, as shown in fig. 7, in the transmission parameters of the static data types, if no transmission data is updated in the first preset period, the transmission data update times of the transmission data remain unchanged, that is, all transmission data update times are zero, the transmission parameter update times of the corresponding static data types are sorted in parallel, and if the minimum sorting of the dynamic data types is the 4 th bit, all static data types are the 5 th bit in parallel.

And determining the transmission priority corresponding to the transmission parameters of the dynamic data type according to the sequencing result.

In implementation, the BMC node determines the transmission priority corresponding to the transmission parameter of the dynamic data type according to the ordering result. The determination of the transmission priority for the obtained sorting result is the same as the processing procedure in step 502, and is not described in detail in this embodiment of the present application.

And secondly, if the data type of the first transmission parameter is a static data type, sequencing the transmission parameters of the static data type in the transmission parameters according to the sequence of the update times of the transmission data in the first preset period from large to small to obtain a sequencing result of the transmission parameters of the static data type.

In the implementation, the transmission priority update will be described by taking the classified data update of any one of the transmission parameters as an example. Specifically, in the classified data, if the data type of the first transmission parameter with the data update is the static data type, the transmission priority is updated only in each transmission parameter of the static data type with the data update, and the transmission parameters are sorted in the order of increasing transmission data update times in the same first preset period, so as to obtain the sorting result of the transmission parameters of each static data type.

And determining the transmission priority corresponding to the transmission parameters of the static data types according to the sequencing result.

In implementation, the BMC node determines the transmission priority corresponding to the transmission parameter of the static data type according to the ordering result. The determination of the transmission priority for the obtained sorting result is the same as the processing procedure in step 502, and is not described in detail in this embodiment of the present application.

Alternatively, the transmission priority of each transmission parameter of the static data type may be determined separately from the transmission priority of each transmission parameter of the dynamic data type, but the minimum transmission priority of each transmission parameter of the dynamic data type is prioritized over the maximum transmission priority of each transmission parameter of the static data type. That is, if the minimum transmission priority among the transmission parameters of the dynamic data type is priority 4, the maximum transmission priority among the transmission parameters of the static data type is priority 5.

In an alternative embodiment, as shown in fig. 8, the method for determining the data type of the transmission parameter in the method includes the following steps:

step 801, in a second preset period, counting the transmission data accumulation update times of each transmission parameter in the transmission communication list.

In implementation, the second preset period is greater than the first preset period, optionally, the second preset period may be in a multiple relationship with the first preset period, and in the second preset period, the data change of each transmission parameter in the transmission communication list gradually tends to be stable, that is, the data change has a stable change frequency, and then the BMC node counts the cumulative update times of the transmission data of each transmission parameter in the transmission communication list in the second preset period.

Step 802, calculating the data change rate of each transmission parameter according to the accumulated updating times and the duration of the second preset period.

And aiming at the accumulated updating times of each transmission parameter, carrying out division operation between the accumulated updating times and the duration of a second preset period to obtain the data change rate of each transmission parameter.

Step 803, determining the data type corresponding to each transmission parameter according to the data change rate and a preset change rate threshold.

The data types comprise dynamic data types and static data types.

In implementation, a change rate threshold of the transmission parameter in the second preset period is preset in the BMC node, and according to the change rate threshold, the BMC node compares the data change rate of each transmission parameter with the preset change rate threshold, as shown in fig. 9, if the data change rate is greater than or equal to the preset change rate threshold, it is determined that the data type of the transmission parameter is the dynamic data type. And if the data change rate is smaller than a preset change rate threshold value, determining that the data type of the transmission parameter is a static data type. Further, transmission parameters may be classified into two types according to the classification of data types.

In an alternative embodiment, as shown in fig. 10, the specific processing procedure of step 103 is as follows:

step 1001, in the transmission communication list, according to the transmission priority order of the transmission parameters, sequentially reading the transmission check values corresponding to the transmission data of the transmission parameters.

In implementation, the CMM sends a data query request to the BMC node, and according to a trigger of the data query request, the BMC may further read transmission check values of transmission parameters stored in a current transmission communication list, specifically, in the transmission communication list, the BMC sequentially reads transmission data of the transmission parameters and transmission check values corresponding to the transmission data according to a transmission priority order of the transmission parameters, for example, in the transmission communication list, the BMC first reads the transmission parameter with the priority of 1, where the transmission parameter is sensor information, and then reads the current transmission data of the transmission parameter, which is the sensor information, and the corresponding transmission check values.

Step 1002, when a transmission check value corresponding to transmission data of the transmission parameter is read, determining the transmission data as target transmission data according to the transmission check value corresponding to the transmission data and the received reference check value, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In implementation, for a transmission check value corresponding to read transmission data, the BMC node may identify and send the transmission check value one by one, specifically, when transmission data of one transmission parameter and a transmission check value corresponding to the transmission data are read, the transmission check value corresponding to the transmission data is directly used to compare with a received reference check value of the same transmission parameter, if the transmission check value corresponding to the transmission data is not consistent with the received reference check value, the transmission data is determined to be target transmission data, and the target transmission data and the transmission check value of the target transmission data are directly sent to a data requester (i.e., CMM).

Optionally, if the transmission check value corresponding to the transmission data is consistent with the received reference check value of the same transmission parameter, it indicates that the transmission data is not substantially updated, where the substantially updating means that the transmission data of the numeric transmission parameter changes in value within a first preset period, or the transmission data of the status information type transmission parameter corresponds to different status information within the first preset period, for example, if the transmission data changes from 1 to 2 and then changes from 2 to 3 within the first preset period, such a change is that the value of the transmission data is substantially updated. For another example, if the alarm information is converted from the temperature alarm information to the power consumption alarm information, it indicates that the status transmission data is substantially updated. If the transmission data of the numerical transmission parameter is changed from 1 to 2 and then from 2 to 1, the data value 1 corresponding to the current transmission data and the corresponding transmission check value are consistent with the received reference check value based on the first transmission data 1, and the transmission data is not substantially updated.

In the embodiment, whether the transmission data of the transmission parameter is updated or not is identified by comparing the received reference check value with the transmission check value of the transmission data, when the transmission data of the updated transmission parameter is identified, the transmission data which is updated is used as target transmission data for data transmission, the data amount of the whole transmission data which needs to be transmitted is reduced, the transmission time is reduced, meanwhile, the transmission data is transmitted immediately after the update of the transmission parameter is identified, the data with frequent data update can be identified earlier according to the transmission priority, meanwhile, the data transmission is realized earlier, and the real-time performance of the transmission data is improved.

It should be understood that, although the steps in the flowcharts of fig. 1 to 6, 8 and 10 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 to 6, 8, and 10 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.

In one embodiment, as shown in fig. 11, there is provided a data transmission apparatus 1100, including: an obtaining module 1110, a receiving module 1120, and a sending module 1130, wherein:

an obtaining module 1110, configured to obtain a transmission communication list; the transmission communication list comprises transmission data of at least one transmission parameter, a transmission check value corresponding to the transmission data and a transmission priority corresponding to the transmission parameter;

a receiving module 1120, configured to receive an inquiry request sent by a data requester, where the inquiry request carries reference check values corresponding to transmission data of each transmission parameter stored in the data requester;

the sending module 1130 is configured to compare a transmission check value corresponding to the transmission data with the received reference check value according to a transmission priority order corresponding to each transmission parameter in the transmission communication list, determine target transmission data that is updated, and send the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In an alternative embodiment, the apparatus 1100 further comprises:

the monitoring module is used for monitoring transmission data of each transmission parameter;

the identification module is used for calculating a transmission check value of the transmission data after the first transmission parameter is updated if the transmission data of the first transmission parameter is monitored to be updated, updating the transmission check value of the updated transmission data into a transmission communication list, and adding a candidate transmission identifier for the first transmission parameter;

a sending module 1130, configured to identify, in the transmission communication list, the transmission parameter with the candidate transmission identifier added thereto as a candidate transmission parameter;

and comparing the transmission check value corresponding to the transmission data of the candidate transmission parameter with the received reference check value according to the transmission priority sequence corresponding to the candidate transmission parameter in the transmission communication list, determining the updated target transmission data, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

In an alternative embodiment, the apparatus 1100 further comprises:

the updating module is used for updating the transmission data updating times of the first transmission parameter in a first preset period if the transmission data of the first transmission parameter is monitored to be updated;

and the priority determining module is used for determining the transmission priority corresponding to each transmission parameter according to the updated transmission data updating times of the first transmission parameter and the transmission data updating times of other transmission parameters in a first preset period, and updating the determined transmission priority corresponding to each transmission parameter into the transmission communication list.

In an optional embodiment, the priority determining module is further configured to sort the updated transmission data update times of the first transmission parameter and the transmission data update times of other transmission parameters in a first preset period from large to small to obtain a transmission data update time sorting result of each transmission parameter;

and determining the transmission priority corresponding to each transmission parameter according to the sequencing result.

In an optional embodiment, the priority determining module is further configured to obtain data types of the transmission parameters;

and determining the transmission priority corresponding to each transmission parameter according to the updated transmission data updating times of the first transmission parameter, the transmission data updating times of other transmission parameters in a first preset period and the data type of each transmission parameter.

In an alternative embodiment, the data types include a dynamic data type and a static data type; the priority determining module is further configured to, if the data type of the first transmission parameter is a dynamic data type, sort the transmission parameters of the dynamic data type in the transmission parameters according to a descending order of the update times of the transmission data in the first preset period, and obtain a result of sorting the transmission parameters of the dynamic data type;

determining the transmission priority corresponding to the transmission parameters of the dynamic data type according to the sequencing result;

if the data type of the first transmission parameter is a static data type, sorting the transmission parameters of the static data type in the transmission parameters according to the sequence of the update times of the transmission data in a first preset period from large to small to obtain a sorting result of the transmission parameters of the static data type;

and determining the transmission priority corresponding to the transmission parameters of the static data types according to the sequencing result.

In an alternative embodiment, the apparatus 1100 further comprises:

the calculation module is used for counting the transmission data accumulated updating times of each transmission parameter in the transmission communication list in a second preset period;

calculating the data change rate of each transmission parameter according to the accumulated updating times and the duration of a second preset period;

the data type determining module is used for determining the data types corresponding to the transmission parameters according to the data change rate and a preset change rate threshold; the data types comprise dynamic data types and static data types.

In an optional embodiment, the sending module 1130 is further configured to sequentially read, in the transmission communication list, transmission check values corresponding to transmission data of the transmission parameters according to the transmission priority order of the transmission parameters;

and when the transmission check value corresponding to the transmission data of the transmission parameter is read, determining the transmission data as target transmission data according to the transmission check value corresponding to the transmission data and the received reference check value, and sending the target transmission data and the transmission check value corresponding to the target transmission data to the data requester.

For specific limitations of the data transmission device, reference may be made to the above limitations of the data transmission method, which are not described herein again. The modules in the data transmission device can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.

In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 12. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the transmission parameters of the server, the transmission data corresponding to the transmission parameters, the transmission check values of the transmission data and the priority data corresponding to the transmission parameters. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data transmission method.

Those skilled in the art will appreciate that the architecture shown in fig. 12 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.

In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.

In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.

It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.

The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.

The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种通过消息驱动的刷新方法及刷新系统

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!