Data transmission link verification method, device and gait closed-loop stimulation output method

By comparing the data flow between the data sending end and the receiving end, verifying the reliability of the data transmission link, the problem of data loss or damage caused by unreliability of the data transmission link is solved, and the accuracy and reliability of data transmission are achieved.

CN119743413APending Publication Date: 2025-04-01MEGAROBO TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411958507.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-27
Publication Date
2025-04-01

AI Technical Summary

Technical Problem

The prior art is difficult to effectively verify the reliability of the data transmission link, resulting in the possibility of loss or damage of data during transmission, especially in application fields where data transmission accuracy is high.

Method used

By forming a first data stream and a second data stream between the data sending end and the receiving end, the reliability of the data transmission link is verified by comparing the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream.

Benefits of technology

This method can accurately judge the reliability of the data transmission link, ensure the accuracy of data transmission, and thus improve the reliability of subsequent data analysis and processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119743413A_ABST
    Figure CN119743413A_ABST
Patent Text Reader

Abstract

The embodiments of the present invention provide a verification method, device and gait closed-loop stimulation output method for a data transmission link. The data transmission link is used to connect a data transmitting end and a data receiving end, wherein the data transmitting end is used to send the first verification data of each of a plurality of data channels to the data receiving end, and the verification method includes: controlling the data transmitting end to form a first data stream with the first verification data of each of the data channels according to the first frequency, and sending it to the data receiving end; controlling the data receiving end to receive the actual data stream sent by the data transmitting end as the second data stream; and verifying the reliability of the data transmission link according to the transmission data of each data channel in the first data stream and the reception data of the data channel in the second data stream. This scheme can accurately verify the reliability of the data transmission link, thereby ensuring the accuracy of data transmission using the data transmission link.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and more specifically to a data transmission link verification method, a physiological data sampling method, a gait closed-loop stimulation output method, a data transmission link verification device, a gait closed-loop stimulation output device, an electronic device and a storage medium. Background Art

[0002] Data transmission is the process of transferring data from the source to the destination. The source is the party that sends data, which can also be called the data sender, which can be a computer, server, sensor, electronic circuit, chip or other device. The destination is the party that receives data, which can also be called the data receiver, which can be a computer, server, electronic circuit, chip or other device. With the development of science and technology, data transmission technology is applied in various scenarios, such as data transmission in communication systems, data transmission between industrial equipment, data transmission involved in financial services, data transmission in medical systems, etc.

[0003] Data transmission often passes through complex data transmission links including, for example, SPI bus, DMA, network cable, etc. In the process of data transmission through the data transmission link, data loss or damage may occur, and in many application fields, the accuracy of data transmission is required to be very high.

[0004] Therefore, there is an urgent need for a data transmission link verification method to verify the reliability of the data transmission link. Summary of the invention

[0005] The present invention has been made in view of the above-mentioned problems.

[0006] According to one aspect of the present invention, a verification method for a data transmission link is provided, wherein the data transmission link is used to connect a data sending end and a data receiving end, wherein the data sending end is used to send first verification data of each of a plurality of data channels to the data receiving end, and the verification method comprises:

[0007] Control the data transmitting end to form a first data stream with the first verification data of all data channels according to the first frequency, and send the first data stream to the data receiving end;

[0008] Controlling the data receiving end to receive the actual data stream sent by the data sending end as the second data stream;

[0009] The reliability of the data transmission link is verified according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream.

[0010] Exemplarily, verifying the reliability of the data transmission link according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream includes:

[0011] For each data channel, determine whether at least one of the data value and data amount of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream is the same; if they are the same, determine that the data channel is reliable; when all data channels are reliable, determine that the data transmission link is reliable.

[0012] Exemplarily, verifying the reliability of the data transmission link based on the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream also includes: determining that the data transmission link is unreliable when at least one data channel is unreliable.

[0013] Exemplarily, the first verification data associated with each data channel has a fixed value, and the fixed values ​​of the first verification data associated with different data channels are different.

[0014] Exemplarily, for each data channel, determining whether data values ​​of transmitted data related to the data channel in the first data stream and received data related to the data channel in the second data stream are the same includes:

[0015] For each data channel, determine whether the sending duration of the first data stream reaches a first duration threshold, or whether the amount of data sent by all data channels in the first data stream reaches a first number threshold, so as to obtain a first judgment result; if the first judgment result indicates yes, calculate the average value of the data values ​​of the data channel in the received second data stream; determine whether the average value is the same as a fixed value, so as to determine whether the data values ​​of the sending data related to the data channel in the first data stream and the receiving data related to the data channel in the second data stream are the same.

[0016] Exemplarily, the first verification data of at least some of the data channels among the multiple data channels include multiple data having a specific functional relationship with the sending time; and determining whether the data values ​​of the sending data related to the data channel in the first data stream and the receiving data related to the data channel in the second data stream are the same includes:

[0017] It is determined whether the specific functional relationship between the transmission data related to the data channel in the first data stream and the reception data related to the data channel in the second data stream is the same.

[0018] Exemplarily, the data receiving end includes a host computer, and the verification method further includes: displaying the waveform of the received data of each data channel in the second data stream on the host computer.

[0019] Exemplarily, the verification method also includes: in response to the user selecting the verification mode on the host computer, generating a verification request instruction, so as to control the data sending end to form a first data stream according to the first frequency of the first verification data of all data channels based on the verification request instruction, and send it to the data receiving end.

[0020] Exemplarily, the data sending end includes an analog-to-digital conversion module and a programmable logic device, wherein the programmable logic device is connected between the analog-to-digital conversion module and the host computer; the analog-to-digital conversion module stores first verification data of each of multiple data channels; the programmable logic device is used to interact with the analog-to-digital conversion module under the control of the host computer, and form a first data stream with the first verification data of all data channels according to a first frequency, and send it to the host computer.

[0021] According to another aspect of the present invention, a physiological data sampling method is provided, which is applied to a sampling system. The sampling system includes a data sending end and a data receiving end, and the data sending end and the data receiving end are connected via a data transmission link; the data sending end is used to send physiological data sampled by multiple data channels to the data receiving end via the data transmission link according to the sampling frequency; the method includes:

[0022] The link verification step uses the verification method described above to verify the reliability of the data transmission link; wherein the first frequency is the sampling frequency; and the first verification data is used as the sampled physiological data;

[0023] In the sampling step, when the data transmission link is reliable, the physiological data sampled by the multiple data channels are sent to the data receiving end through the data transmission link according to the sampling frequency.

[0024] Exemplarily, the data sending end includes an analog-to-digital conversion module and a programmable logic device, the analog-to-digital conversion module is used to send a trigger signal to the programmable logic device at a preset sampling rate, and the programmable logic device is used to receive and store physiological data after the analog-to-digital conversion of the sampled physiological data by the analog-to-digital conversion module according to the trigger signal; read and send the stored physiological data at the sampling frequency to obtain target physiological data; wherein the difference between the preset sampling rate and the sampling frequency is less than a first threshold.

[0025] Exemplarily, the preset sampling rate is greater than the sampling frequency.

[0026] Exemplarily, the data receiving end includes a host computer; the host computer is used to obtain the sampling frequency in response to the user's input operation on the host computer before the analog-to-digital conversion module sends a trigger signal to the programmable logic device according to the preset sampling rate; determine the preset sampling rate based on the sampling frequency; and configure the preset sampling rate for the analog-to-digital conversion module.

[0027] According to another aspect of the present invention, a gait closed-loop stimulation output method is provided, comprising:

[0028] Perform data transmission link verification using the data transmission link verification method as described above;

[0029] Using the data transmission link, the physiological data of the target object is obtained;

[0030] Predict the target subject’s gait based on physiological data;

[0031] If the prediction result indicates that the target object is about to take a step, a stimulation signal for the target object is output.

[0032] According to another aspect of the present invention, there is also provided a verification device for a data transmission link, wherein the data transmission link is used to connect a data sending end and a data receiving end, wherein the data sending end is used to send first verification data of each of a plurality of data channels to the data receiving end,

[0033] The verification device includes:

[0034] A first control module, used for controlling the data transmitting end to form a first data stream with the first verification data of all data channels according to the first frequency, and send the first data stream to the data receiving end;

[0035] A second control module, used for controlling the data receiving end to receive the actual data stream sent by the data sending end as a second data stream; and

[0036] The verification module is used to verify the reliability of the data transmission link according to the sent data of each data channel in the first data stream and the received data of each data channel in the second data stream.

[0037] According to another aspect of the present invention, there is also provided a gait closed-loop stimulation output device, comprising:

[0038] Verification device, used for verifying the data transmission link by using the verification method of the data transmission link as described above;

[0039] An acquisition module, used to acquire physiological data of a target object using a data transmission link;

[0040] A prediction module, used to predict the gait of the target object based on physiological data;

[0041] The stimulation module is used to output a stimulation signal for the target object if the prediction result indicates that the target object is about to take a step.

[0042] According to another aspect of the present invention, there is also provided an electronic device comprising: a processor and a memory, wherein the memory stores computer program instructions, and when the computer program instructions are executed by the processor, they are used to execute the data transmission link verification method as described above, the physiological data sampling method as described above, or the gait closed-loop stimulation output method as described above.

[0043] According to another aspect of the present invention, a storage medium is provided, on which program instructions are stored. When the program instructions are run, they are used to execute the data transmission link verification method as described above, the physiological data sampling method as described above, or the gait closed-loop stimulation output method as described above.

[0044] In the above technical solution, by judging whether the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream meet the reliability requirements of data transmission, it can be judged whether the data after transmission through the data transmission link is lost or damaged, and thus the reliability of the data transmission link can be verified more accurately. Data transmission based on the verified data transmission link can ensure the accuracy of data transmission, and thus facilitate the subsequent analysis and processing of the transmitted data.

[0045] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] The above and other purposes, features and advantages of the present invention will become more apparent by describing the embodiments of the present invention in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention.

[0047] Figure 1 A schematic flow chart of a method for verifying a data transmission link according to an embodiment of the present invention is shown;

[0048] Figure 2 A schematic block diagram of a human-computer interaction interface according to an embodiment of the present invention is shown;

[0049] Figure 3 A schematic flow chart of a method for sampling physiological data according to an embodiment of the present invention is shown;

[0050] Figure 4 A schematic flow chart of a gait closed-loop stimulation output method according to an embodiment of the present invention is shown;

[0051] Figure 5 A schematic block diagram of a data transmission link verification device according to an embodiment of the present invention is shown;

[0052] Figure 6 A schematic block diagram of a gait closed-loop stimulation output device according to an embodiment of the present invention is shown;

[0053] Figure 7 A schematic block diagram of an electronic device according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0054] In order to make the purpose, technical solution and advantages of the present invention more obvious, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention.

[0055] As described in the background technology, in many application fields, the accuracy of data transmission is very high. For example, in the acquisition of electrophysiological ECG monitoring signals, an analog-to-digital (AD) conversion chip is usually used to convert analog signals into digital signals, wherein the sampling rate of the analog-to-digital conversion chip represents the number of times the analog-to-digital conversion chip converts analog signals into digital signals per unit time. After the data is converted by the AD conversion chip, it is transmitted to the host computer for storage via many data transmission links, such as SPI bus, DMA, network cable, etc. The data transmission links are diverse and complex, which may cause damage or loss during the data transmission process. However, users often need to analyze and study the collected physiological data in different directions, and the accuracy of the sampled data is very high.

[0056] In order to at least solve the above technical problems, the present invention provides a method for verifying a data transmission link. During the data transmission process, data is often sent from a data sending end to a data receiving end via a data transmission link. The method for verifying the data transmission link can be applied to the verification of a data transmission link that performs data transmission using a data transmission method. For example, the data transmission link may include an SPI bus, a DMA, a network cable, and the like. In the method for verifying the data transmission link, by judging whether a specific data stream sent by a data sending end and an actual data stream received by a data receiving end meet the reliability requirements of the data transmission, it is determined whether the data after being transmitted via the data transmission link is lost or damaged, thereby verifying the reliability of the data transmission link.

[0057] The data transmission link is used to connect the data transmitting end and the data receiving end, and the data transmitting end is used to send the first verification data of each of the multiple data channels to the data receiving end. The data transmitting end may include multiple data channels. Each data channel is used to send the first verification data corresponding to each of the multiple data channels, and the first verification data may be pre-set at the data transmitting end. In other words, the first verification data corresponding to each data channel is known. The multiple data channels of the data transmitting end send their respective first verification data to the data receiving end, which may be serial transmission, that is, the multiple data channels send the first verification data in sequence; or it may be parallel transmission, that is, the multiple data channels send their respective first verification data at the same time.

[0058] Figure 1 FIG. 1 is a schematic flow chart showing a method for verifying a data transmission link according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0059] In step S110, the data transmitting end is controlled to form a first data stream with the first verification data of all data channels according to the first frequency, and send the first data stream to the data receiving end.

[0060] Exemplarily, for each data channel, the first verification data sent may be data having a specific value, or data having a specific change rule that changes over time. The first verification data corresponding to all data channels of the data transmitting end may be completely the same, different, or partially the same.

[0061] The first frequency can represent the speed at which the multiple data channels of the data transmitting end send the first verification data. The data transmitting end sends the first verification data in the form of a digital signal, and the first frequency can be represented by the number of times the first verification data is sent per unit time. For the first verification data corresponding to each of the multiple data channels, the data in the first verification data is sent at the first frequency to form a first data stream. The first data stream is a continuous data stream composed of the data in the first verification data of each data channel at the first frequency. The data transmitting end can repeatedly send the data in the first verification data corresponding to each of the data channels at the first frequency to form a first data stream until the verification is completed.

[0062] In a specific embodiment, the data transmitting end may include three data channels, and the first verification data corresponding to the first data channel may include 1, 2, and 3; the first verification data corresponding to the second data channel may also include 1, 2, and 3; and the first verification data corresponding to the third data channel may include 4, 5, and 6. In this embodiment, the first verification data corresponding to each data channel is partially the same. It can be understood that the transmission data in the first data stream corresponding to the first data channel may be 1, 2, 3, 1, 2, 3, ...; similarly, the transmission data in the first data stream corresponding to the second data channel may also be 1, 2, 3, 1, 2, 3, ...; the transmission data in the first data stream corresponding to the third data channel may be 4, 5, 6, 4, 5, 6, ...

[0063] The data transmitting end may send a first data stream consisting of first verification data sent at a first frequency to the data receiving end via an internal link of the data transmitting end, a data transmission link between the data transmitting end and the data receiving end, and an internal link of the data receiving end.

[0064] In step S120, the data receiving end is controlled to receive the actual data stream sent by the data sending end as the second data stream.

[0065] While controlling the data transmitting end to send the first data stream to the data receiving end via the data transmission link, the data receiving end can be controlled to receive the actual data stream. If the transmission process is accurate, the first data stream sent by the data transmitting end and the actual data stream received by the data receiving end should be completely consistent. However, the first data stream may be lost or damaged during the process of being transmitted to the data receiving end via the data transmission link. In other words, the actual data stream received by the data receiving end may be inconsistent with the first data stream sent by the data transmitting end. Therefore, the actual data stream received by the data receiving end can be used as the second data stream.

[0066] In step S130, the reliability of the data transmission link is verified based on the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream.

[0067] The transmission data of each data channel in the first data stream is formed by sending the corresponding first verification data at the first frequency. The second data stream is the actual data stream received by the data receiving end, and the actual data corresponding to each data channel in the second data stream is the received data corresponding to the data channel. The reliability of the data channel can be verified by judging whether the received data corresponding to each data channel in the second data stream and the transmission data of each data channel in the first data stream meet the reliability requirements of data transmission. Furthermore, the reliability of the data transmission link is determined according to the reliability of each data channel. For each data channel, if the transmission data corresponding to the data channel is completely consistent with the reception data, the data channel can be judged to be reliable. Furthermore, if all data channels are reliable, the data transmission link is reliable.

[0068] Still taking the specific embodiment in which the data transmitting end includes 3 data channels, and the first verification data of the 3 data channels are 1, 2, 3, 1, 2, 3 and 4, 5, 6 respectively as an example. For the sake of brevity, the sending data corresponding to each data channel in the first data stream will not be repeated here. Exemplarily, in the second data stream, the receiving data corresponding to data channel No. 1 is 1, 2, 3...; the receiving data corresponding to data channel No. 2 is 2, 2, 3...; the receiving data corresponding to data channel No. 3 is 4, 5, 6... It can be understood that the sending data corresponding to data channel No. 2 does not meet the completely consistent reliability requirements with the receiving data, and there is data corruption. The data channel is judged to be unreliable, and therefore the data transmission link is unreliable.

[0069] In the above technical solution, by judging whether the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream meet the reliability requirements of data transmission, it can be judged whether the data after transmission through the data transmission link is lost or damaged, and thus the reliability of the data transmission link can be verified more accurately. Data transmission based on the verified data transmission link can ensure the accuracy of data transmission, and thus facilitate the subsequent analysis and processing of the transmitted data.

[0070] Exemplarily, the above step S130 verifies the reliability of the data transmission link according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream, and includes step S131 and step S132.

[0071] In step S131, for each data channel, determine whether at least one of the data value and data volume of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same; if they are the same, determine that the data channel is reliable.

[0072] The transmission data associated with a data channel is the data in the first data stream transmitted by the data transmitting end via the data channel, which may also be referred to as the transmission data corresponding to the data channel. The reception data associated with a data channel is the data in the second data stream received by the data receiving end via the data channel, which may also be referred to as the reception data corresponding to the data channel. The data value may be the value of each data in the transmission data and reception data corresponding to each data channel. The data amount may be the amount of all data in the transmission data and reception data corresponding to each data channel.

[0073] In a specific embodiment, the sending data corresponding to data channel No. 1 is 1, 2, 3, 1, 2, 3..., and the receiving data is 1, 2, 3, 1, 2, 3...; the sending data corresponding to data channel No. 2 is 1, 2, 3, 1, 2, 3..., and the receiving data is 2, 2, 3, 1, 2, 3...; the sending data corresponding to data channel No. 3 is 4, 5, 6, 4, 5, 6..., and the receiving data is 4, 5, 6, 4, 5, 6...

[0074] First, the data values ​​of the received data and the sent data corresponding to each data channel can be compared one by one. If the data values ​​of the sent data and the received data corresponding to the data channel are all the same, then the data channel is reliable. In the above specific embodiment, the data values ​​of the sent data and the received data corresponding to the second data channel are not completely the same, so the second data channel is unreliable. The data values ​​of the sent data and the received data corresponding to the first and third data channels are completely the same, so the first and third data channels are reliable.

[0075] In the case where it is determined that there is an unreliable data channel in the data transmission link according to the data value, the reliability of the data channel can be further determined by the data volume of the received data and the sent data corresponding to each data channel. In the above specific embodiment, the data volume of the sent data corresponding to data channel No. 1 is 6, and the data volume of the received data is 6, so the data channel is reliable. Similarly, data channels No. 2 and No. 3 are both reliable. It can be understood that when the data volume of the received data is different from that of the sent data, data loss may occur, and the lost data volume is the difference between the data volume of the sent data and the data volume of the received data.

[0076] Although in the above description, whether the data channel is reliable is first determined based on the data values ​​of the sending data and the receiving data related to the data channel, and then whether the data channel is reliable is determined based on the data amounts of the sending data and the receiving data related to the data channel. However, it can be understood that the execution order of these two steps can be opposite, or they can be performed simultaneously. Therefore, when either the data value or the data amount is the same, it can be determined that the data channel is reliable.

[0077] In step S132, when all data channels are reliable, it is determined that the data transmission link is reliable.

[0078] If all data channels are judged to be reliable, the data transmission link is reliable. In other words, as long as one data channel is judged to be unreliable, the data transmission link is unreliable.

[0079] If the data channels are all reliable based on the data values ​​of the sent data and received data corresponding to each data channel, or the data volume of the sent data and received data corresponding to each data channel, the data transmission link can be further determined to be reliable. If any one or more data channels are unreliable, then although other data channels are reliable, the data transmission link is still determined to be unreliable based on the unreliability of the data channel.

[0080] In the above technical solution, by comprehensively judging whether the sending data and receiving data corresponding to each data channel are the same according to the data value and / or data volume, it is judged whether the data channel is reliable. This method is particularly suitable for the field of physiological data, where the amount of sampled physiological data is large and the sampling time alignment requirements are high, the sampled data volume requirements are strict, and the sampled data value at a certain sampling moment is relatively low.

[0081] For step S131, alternatively, it can be determined whether the data value and data amount of the transmitted data and the received data corresponding to each data channel are consistent, so as to determine whether the data channel is reliable based on the two. If the data value and data amount of the transmitted data and the received data corresponding to the data channel are exactly the same, then the data channel is reliable.

[0082] In another specific embodiment, it is assumed that the transmission data corresponding to the No. 1 data channel is 1, 2, 3, 1, 2, 3..., and the received data is 1, 2, 3, 1, 2, 3...; the transmission data corresponding to the No. 2 data channel is 1, 2, 3, 1, 2, 3..., and the received data is 2, 2, 3, 1, 2, 3...; the transmission data corresponding to the No. 3 data channel is 4, 5, 6, 4, 5, 6..., and the received data is 4, 5, 6, 4, 5, 6... As mentioned above, the data values ​​of the transmission data and the received data corresponding to the No. 2 data channel are not exactly the same. Although the data volume is the same, the No. 2 data channel is still determined to be unreliable. The data values ​​and data volumes of the transmission data and the received data corresponding to the No. 1 and No. 3 data channels are exactly the same, so the No. 1 and No. 3 data channels are reliable. Combined with step S132, in this alternative embodiment, it can be determined that the data transmission link including the No. 1, No. 2 and No. 3 data channels is unreliable.

[0083] Exemplarily, the above step S130 verifies the reliability of the data transmission link according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream, and further includes step S133.

[0084] In step S133, when at least one data channel is unreliable, it is determined that the data transmission link is unreliable.

[0085] After step S131, for multiple data channels, when it is determined that at least one data channel is unreliable, it is proved that the data value and / or data volume of the transmitted data and the received data corresponding to at least one data channel are inconsistent. Further, the first data stream and the second data stream respectively include the transmitted data and the received data corresponding to the multiple data channels, so the first data stream and the second data stream are inconsistent, and it can be determined that the data transmission link is unreliable.

[0086] In the above technical solution, if there is an unreliable data channel, the data transmission link is judged to be unreliable, which improves the sensitivity of the verification method. It further ensures that when data transmission is performed using the data transmission link verified to be reliable, the transmitted data can be accurately transmitted from the data sending end to the data receiving end.

[0087] Exemplarily, the first verification data associated with each data channel has a fixed value, and the fixed values ​​of the first verification data associated with different data channels are different.

[0088] For each data channel, the first verification data sent by the data transmitting end via the data channel may include only one data with a fixed value. The first verification data associated with each data channel may be a different fixed value.

[0089] In a specific embodiment, the data transmitting end may include three data channels, namely data channel No. 1, data channel No. 2 and data channel No. 3. The fixed values ​​corresponding to these three data channels are 1, 2 and 3 respectively. Specifically, the data transmitting end sends data "1" via data channel No. 1, sends data "2" via data channel No. 2, and sends data "3" via data channel No. 3 according to the first frequency. When judging whether the received data related to the data channel is the same as the sent data, each data in the received data can be compared with the fixed value of the first verification data corresponding to the data channel. If each data in the received data is the same as the fixed value corresponding to the data channel, the data channel is reliable.

[0090] In the above technical solution, the first verification data related to the multiple data channels are fixed values, and the fixed values ​​related to different data channels are different. This can reduce the amount of calculation when judging whether the data value and / or data amount of the sent data and the received data of the data channel are the same, improve the simplicity of the algorithm, and increase the speed of verifying the reliability of the data transmission link.

[0091] Exemplarily, step S131 determines, for each data channel, whether at least one of a data value and a data amount of transmitted data related to the data channel in the first data stream and a received data related to the data channel in the second data stream are the same; if they are the same, the data channel is determined to be reliable, including executing steps S131a, S131b, S131c and S131d for each data channel.

[0092] In step S131a, it is determined whether the sending duration of the first data stream reaches a first duration threshold, or whether the data volume of all data channels in the first data stream respectively sends data reaches a first number threshold, so as to obtain a first determination result.

[0093] The first duration threshold and the first number threshold can be set by the user according to the verification requirements of the data transmission link. In other words, before executing step S131a for judgment, the first duration threshold or the first number threshold can be set by the user. The first duration threshold and the first number threshold can also be pre-set for the data transmission link, and need to be set by the user before executing step S131a.

[0094] When the data transmitting end starts to send the first data stream, the sending duration is started to be counted. When the sending duration reaches the first duration threshold, the data transmitting end is controlled to stop sending the first data stream to obtain the first judgment result. Alternatively, when the data transmitting end starts to send the first data stream, the data volume of each data channel's sending data is started to be counted. When the data volume of each data channel's sending data reaches the first counting threshold, the data transmitting end is controlled to stop sending the first data stream to obtain the first judgment result.

[0095] In step S131b, when the first judgment result indicates yes, the average value of the data value of the data channel in the received second data stream is calculated.

[0096] The first judgment result indicates that the transmission duration reaches the first duration threshold or the data volume of the data transmitted by all data channels in the first data stream reaches the first number threshold. At this time, it indicates that the data volume transmitted by the data transmission link is sufficient to verify the reliability of the data transmission link. At this time, according to the data value and data volume of the received data corresponding to each data channel in the second data stream, the received data corresponding to the data channel can be summed and then divided by the corresponding data volume to obtain the average value of the data value of the received data corresponding to the data channel.

[0097] In a specific embodiment, the received data corresponding to the data channel is 1, 1, 1, 2, 1, 1, ..., and the data volume is 100. The sum of the values ​​of the received data is 101, so the average value of the data values ​​of the data channel is 1.01.

[0098] In step S131c, it is determined whether the average value is the same as the fixed value of the first verification data related to the data channel to determine whether the data values ​​of the sent data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same.

[0099] Since the first verification data of each data channel has a specific fixed value, and the fixed values ​​of different data channels are different, it is possible to determine whether the data values ​​of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same by comparing the average value of the data value of the received data of the data channel in the second data stream with the fixed value corresponding to the data channel. Taking the above average value of 1.01 as an example, the fixed value of the first verification data corresponding to the data channel is 1, and the average value is inconsistent with the fixed value.

[0100] If the average value of the data value of the received data corresponding to the data channel in the second data stream is the same as the fixed value, in other words, the sent data of the data channel in the first data stream is consistent with the received data of the data channel in the second data stream, then it is determined whether the data channel is reliable based on the above rules.

[0101] In the above technical solution, when the transmission duration reaches the first duration threshold or the data volume reaches the first number threshold, by judging whether the average value of the data value received via the data channel is the same as the fixed value, the first duration threshold and the first number threshold ensure the data volume used to verify the reliability of the data transmission link, thereby ensuring the accuracy of the verification result. Judging whether the data value of the data transmission is reliable by judging whether the data value is reliable by the average value of the data value of the data channel in the second data stream can avoid accuracy judgment of each data, reduce the amount of calculation, and improve the verification speed.

[0102] Exemplarily, the first verification data of at least some of the multiple data channels include multiple data having a specific functional relationship with the sending time. Optionally, some of the first verification data corresponding to the multiple data channels sent by the data sending end may have fixed values. Exemplarily, the specific functional relationship may be a linear functional relationship, a quadratic functional relationship, an exponential relationship, a trigonometric functional relationship, etc. The specific functional relationship corresponding to the multiple data channels may be the same or different functional relationships. In the case where the specific functional relationship corresponding to the multiple data channels is the same functional relationship, the specific functional relationship corresponding to each data channel may be different.

[0103] In a specific embodiment, for the linear function relationship, the slopes of the linear function relationship corresponding to the data in different data channels may be different. For example, the first verification data of the first data channel includes the data with a transmission time of y. 1 = data of a linear function relationship of t, where y 1 represents the data in the first verification data of the first data channel, t represents the sending time, and the first verification data includes 0, 1, 2, 3, 4, 5, etc., which are sent according to the first frequency. In other words, at the start of sending, the data sending end sends data 0, after 1 time period, the data sending end sends data 1, after 2 time periods, the data sending end sends data 2... The first verification data of the second data channel includes y with the sending time. 2 =2t linear function relationship, where y 2 Represents the data in the first verification data of data channel No. 2, then the first verification data includes 0, 2, 4, 6, 8, 10... sent according to the first frequency. In other words, at the beginning of sending, the data sending end sends data 0, after 1 time period, the data sending end sends data 2, after 2 time periods, the data sending end sends data 4...

[0104] Step S131 determines whether the data values ​​of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same, which may include step S131e. In step S131e, it is determined whether the specific functional relationship between the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream is the same.

[0105] For a data channel whose first verification data includes a plurality of data in a specific functional relationship with the sending time, if the first verification data of the data channel is in a specific functional relationship with the sending time, the sending data of the data channel in the first data stream is in a specific functional relationship with the sending time. The receiving data corresponding to the data channel in the second data stream should also be in the same specific functional relationship with the sending time. Therefore, the functional relationship between the receiving data of the data channel and the sending time can be determined, and it is judged whether the functional relationship between the sending data related to the data channel and the determined receiving data and the sending time is the same. If they are the same, the data channel is reliable.

[0106] In the above technical solution, the first verification data of the data channel includes a plurality of data having a specific functional relationship with the transmission time. By setting more complex verification data, the accuracy of the data transmission link verification is improved.

[0107] Exemplarily, the data receiving end is a host computer. The data transmission link verification method further includes step S140, displaying the waveform of the received data of each data channel in the second data stream on the host computer (ie, displaying the waveform of the second data stream).

[0108] The host computer can be a personal computer, a workstation, a server, a mobile device, etc. The host computer can be used as a data receiving end to receive the actual data stream sent by the data sending end via the data transmission link as the second data stream. The host computer can write the received data corresponding to each data channel in the second data stream into the memory, and at the same time display the received data corresponding to each data channel as a waveform through the display interface. The waveform displays the received data in the order of the receiving time. The horizontal axis of the waveform represents the time, and the vertical axis represents the data value. Optionally, before displaying the data in the second data stream, it can be downsampled to make the displayed data clearer.

[0109] In the above technical solution, the upper computer displays the waveform of the received data of each data channel in the second data stream, which more intuitively displays the actual data stream transmitted via the data transmission link, facilitates user observation, and improves user experience.

[0110] Exemplarily, the above-mentioned data transmission link verification method also includes step S100, in response to the user's operation of selecting a verification mode on the host computer, generating a verification request instruction, so as to control the data sending end to form a first data stream according to the first frequency of the first verification data of all data channels based on the verification request instruction, and send it to the data receiving end.

[0111] Figure 2 FIG. 1 is a schematic block diagram of a human-computer interaction interface according to an embodiment of the present invention. Figure 2As shown, a human-computer interaction interface 200 can be displayed on the host computer. A verification mode control 210 is provided on the human-computer interaction interface 200. The operation of the user selecting the verification mode on the host computer can be that the user uses an input device to operate the verification mode control 210 to select the verification mode. The input device can be a mouse, keyboard, touch pad, touch screen, etc. In response to the user's operation of selecting the verification mode, a verification request instruction is generated so that the above step S110 is performed based on the verification request instruction. In other words, in this example, when the user selects the verification mode, the above-mentioned data transmission link verification method is executed to verify the data transmission link.

[0112] The above technical solution generates a verification request instruction in response to the user's operation of selecting the verification mode on the host computer, and starts the verification method of the data transmission link according to the verification request instruction. It is convenient for the user to quickly enter the verification mode according to the expectation to verify the data transmission link, thereby improving the user experience.

[0113] For example, Figure 2As shown, the human-computer interaction interface 200 may also include a recording synchronization control 230 and a waveform display area 250. In response to the user's operation of the recording synchronization control 230 using an input device, the recording synchronization mode can be entered. In the recording synchronization mode, the user can operate the verification mode control 210 to enter the verification mode. In other words, the recording synchronization mode and the verification mode can be performed simultaneously. In the verification mode under the recording synchronization mode, while verifying the data link, the waveform image of the received data of each data channel in the second data stream is displayed and recorded in real time in the waveform display area 250. Further, the human-computer interaction interface 200 may also include a start acquisition control 220 and a start recording control 240. The start acquisition control 220 is used to control the start or stop of data acquisition using the data transmission link. The start recording control 240 is used to control the start or stop of recording the real-time waveform image in the waveform display area 250. In the recording synchronization mode, the user can also control the start or stop of data acquisition using the data transmission link by operating the start recording control 240 using an input device. Similarly, the user can also control the start or stop of recording the real-time waveform image in the waveform display area 250 by operating the start acquisition control 220 using the input device. In other words, in the acquisition and recording synchronization mode, the acquisition of data using the data transmission link and the recording of the real-time waveform image in the waveform display area 250 can be performed synchronously. The start acquisition control 220 and the start recording control 240 can both have the function of controlling the start and stop of acquisition and recording. In the verification mode, the acquisition and recording synchronization mode will stop acquisition and recording when the transmission time of the first data stream reaches the first time threshold, or the data volume of all data channels in the first data stream reaches the first number threshold. In other words, the acquisition and recording synchronization mode can automatically end after a period of time. When not in the verification mode but in the acquisition and recording synchronization mode, after the acquisition and recording are started, the acquisition and recording operations will continue until the user operates the start acquisition control 220 or the start recording control 240 to end the acquisition and recording synchronization mode. In other words, the acquisition and recording synchronization mode needs to be ended under the operation of the user and will not end automatically.

[0114] Exemplarily, the data transmitting end includes an analog-to-digital conversion module and a programmable logic device. The programmable logic device is connected between the analog-to-digital conversion module and the host computer. The analog-to-digital conversion module stores first verification data of each of a plurality of data channels. The programmable logic device is used to interact with the analog-to-digital conversion module under the control of the host computer, form a first data stream with the first verification data of each of all data channels according to the first frequency, and send it to the host computer.

[0115] The analog-to-digital conversion module is used to convert analog signals into digital signals, and it may have multiple data channels for converting analog signals into digital signals. A programmable logic device is a semiconductor integrated circuit that can be reprogrammed by the user after manufacturing to perform specific logic functions. The programmable logic device may be a field programmable gate array (FPGA), a complex programmable logic device (CPLD), a generic array logic (GAL), etc. The programmable logic device may process the data sent by the analog-to-digital conversion module and send the processed data to the data receiving end. The programmable logic device may be arranged between the analog-to-digital conversion module and the host computer as part of the data sending end.

[0116] According to an embodiment of the present invention, a register may be provided on the analog-to-digital conversion module, and the register may store first verification data of each of the plurality of data channels. Before the analog-to-digital conversion module performs data sampling, the analog-to-digital conversion module may be initialized by reading and writing the register. After starting sampling, the programmable logic device may sequentially send data conversion instructions to the data channels of the analog-to-digital conversion module to obtain the sampled data of the corresponding data channels after analog-to-digital conversion.

[0117] When the user selects the verification mode on the host computer, the host computer can use the embedded software to control the programmable logic device to perform a read operation on the register, so as to read the first verification data in the corresponding register through multiple data channels of the analog-to-digital conversion module. The programmable logic device is also used to form a first data stream with the first verification data of each data channel according to the first frequency, and send it to the host computer.

[0118] In the above technical scheme, the data sending end includes an analog-to-digital conversion module and a programmable logic device, and the programmable logic device is connected between the analog-to-digital conversion module and the host computer. The host computer can control the interaction between the programmable logic device and the analog-to-digital conversion module so that the programmable logic device forms a first data stream according to the first frequency with the first verification data in the analog-to-digital conversion module and sends it to the host computer. The control of sending the first data stream is realized by the programmable logic device, which has high flexibility, and the implementation method is simple and the cost is low. Through the above scheme, it can be ensured that after the subsequent analog-to-digital conversion module collects the analog signal, the corresponding converted digital signal can be accurately sent to the host computer via the data transmission link for subsequent signal analysis and processing.

[0119] According to one aspect of the present application, a physiological data sampling method is also provided, which is applied to a sampling system. The sampling system includes a data transmitting end and a data receiving end. The data transmitting end and the data receiving end are connected via a data transmission link. The data transmitting end is used to send the physiological data sampled by multiple data channels to the data receiving end through the data transmission link according to the sampling frequency. Figure 3 FIG. 1 is a schematic flow chart showing a method for sampling physiological data according to an embodiment of the present application. Figure 3 As shown, the physiological data sampling method includes the following steps S310 and S320.

[0120] Step S310 is a link verification step. In this step S310, the verification method as described above is used to verify the reliability of the data transmission link. Specifically, in step S310, the data transmitting end is controlled to form a first data stream with the first verification data of each data channel according to the first frequency, and send it to the data receiving end; the data receiving end is controlled to receive the actual data stream sent by the data transmitting end as the second data stream; the reliability of the data transmission link is verified according to the transmission data of each data channel in the first data stream and the reception data of the data channel in the second data stream. Among them, the first frequency is the sampling frequency of the above-mentioned sampled physiological data. The first verification data is used as the sampled physiological data.

[0121] Exemplarily, when verifying the data transmission link, the first verification data preset at the data sending end is used as the sampled physiological data. In other words, when verifying the link, it is not necessary to sample the physiological data. And the first verification data corresponding to each data channel is sent at a preset sampling frequency as the first frequency to form a first data stream. According to the above verification method, verify whether the data transmission link is reliable.

[0122] Step S320 is a sampling step. In step S320, when the data transmission link is reliable, the physiological data sampled by the multiple data channels are sent to the data receiving end through the data transmission link according to the sampling frequency.

[0123] Before starting to perform step S320 for sampling, first perform step S310 to verify whether the data transmission link is reliable. If the data transmission link is reliable, then perform step S320 for sampling. The data transmitting end sends the physiological data sampled by multiple data channels to the data receiving end through the data transmission link according to the sampling frequency.

[0124] In the above technical solution, the data transmission link is verified before sampling the physiological data. When the data transmission link is verified to be reliable, the physiological data is sampled. The reliability of physiological data transmission is ensured, and inaccurate physiological data received due to unreliable data transmission links is avoided.

[0125] Exemplarily, the data transmitting end includes an analog-to-digital conversion module and a programmable logic device. The analog-to-digital conversion module is used to send a trigger signal to the programmable logic device according to a preset sampling rate. The programmable logic device is used to receive and store physiological data after the analog-to-digital conversion of the sampled physiological data by the analog-to-digital conversion module according to the trigger signal; read and send the stored physiological data according to the sampling frequency to obtain target physiological data; wherein the difference between the preset sampling rate and the sampling frequency is less than a first threshold value.

[0126] The analog-to-digital conversion module can support one or more sampling rates for analog-to-digital conversion. Exemplarily, the analog-to-digital conversion module can support the following sampling rates: 500 Hz, 1000 Hz, 2000 Hz, 4000 Hz, 8000 Hz, 16000 Hz and 32000 Hz. The user can configure the analog-to-digital conversion module to enable the analog-to-digital conversion module to perform analog-to-digital conversion at a certain sampling rate, which is the preset sampling rate. For example, the preset sampling rate can be set in advance to the register of the analog-to-digital conversion module. When the analog-to-digital conversion module performs analog-to-digital conversion at the preset sampling rate, after each analog-to-digital conversion is completed, a trigger signal will be sent to indicate that an analog-to-digital conversion has been completed and the data after the analog-to-digital conversion can be obtained. It can be understood that the analog-to-digital conversion module sends a trigger signal according to a preset sampling frequency. For example, the preset sampling rate can be 16000 Hz, so the analog-to-digital conversion module performs analog-to-digital conversion at 16000 Hz and also sends a trigger signal at 16000 Hz. However, in actual application, the sampling rate of the analog-to-digital conversion module for analog-to-digital conversion is not stable and may fluctuate. Taking the preset sampling rate of the analog-to-digital conversion module as 16000 Hz as an example, in the actual analog-to-digital conversion process, the frequency of the trigger signal sent by it may change over time to be greater than 16000 Hz or less than 16000 Hz, which may be caused by reasons such as chips and circuits. In other words, the frequency of the trigger signal sent by the analog-to-digital conversion module may not be completely consistent with the preset sampling rate.

[0127] The programmable logic device is used to receive and store the physiological data after the analog-to-digital conversion module performs analog-to-digital conversion on the sampled physiological data according to the trigger signal. Each trigger signal represents that the analog-to-digital conversion module has completed an analog-to-digital conversion on the sampled physiological signal. Therefore, the programmable logic device can obtain the sampled data corresponding to each trigger signal after the analog-to-digital conversion module performs analog-to-digital conversion on the sampled physiological signal according to each trigger signal. It can be understood that each trigger signal corresponds to a sampled data, that is, a sampling point. As mentioned above, the trigger signal sent by the analog-to-digital conversion module is not strictly and accurately sent according to the preset sampling rate. Therefore, for the same sampling duration, the number of sampling points obtained by the programmable logic device may be different. Specifically, still taking the preset sampling rate of 16000 Hz as an example, two continuous samplings are performed with a sampling duration of 1 second. The number of sampling points of the first continuous sampling may be 15990, while the number of sampling points of the second continuous sampling may be 16005. Therefore, for the same preset sampling rate and the same sampling duration, the number of sampling points obtained by the programmable logic device may be different.

[0128] The programmable logic device can receive and store the physiological data after the analog-to-digital conversion module performs analog-to-digital conversion on the sampled physiological data according to the trigger signal. It can be understood that the trigger signal is sent by the analog-to-digital conversion module at a preset sampling rate, so multiple trigger signals have a time sequence. In addition, each corresponding acquired physiological data has a time sequence. Therefore, when storing the acquired physiological data, each physiological data should be stored in the order of time to ensure its sequence and integrity, so as to facilitate subsequent data processing and analysis. Physiological data can be stored in storage devices such as memory and hard disk.

[0129] The frequency at which the analog-to-digital conversion module sends a trigger signal may fluctuate and is inaccurate. As described above, the sampling data acquired and stored by the programmable logic device according to the trigger signal is in time sequence and is stored in chronological order. The user can set the sampling frequency according to relevant requirements. The programmable logic device can read and send the stored physiological data according to the sampling frequency as the target physiological data. The sampling frequency will not be affected by the unstable preset sampling rate of the analog-to-digital conversion module. In other words, the programmable logic device can stably and accurately read and send the stored physiological data according to the sampling frequency, so the number of sampling points of the target sampling data is accurate. The physiological data is stored in chronological order. The stored physiological data can be read and sent from front to back according to the sampling frequency, that is, the first stored is read first. It can be understood that the sampling frequency may be inconsistent with the preset sampling rate. Since it is difficult for the analog-to-digital conversion module to accurately send the trigger signal according to the preset sampling rate, the number of sampling points of the physiological data acquired within a fixed time length is unstable. Specifically, the sampling frequency may be 16500 Hz, and the preset sampling rate may be 16000 Hz. Within a sampling time of 1 second, the number of sampling points of the acquired and stored physiological data may be 15990 or 16005. The number of sampling points required to read and send the stored physiological data according to the sampling frequency is 16500. In the case where the number of stored sampling points is insufficient relative to the number of sampling points to be read, a part of the physiological data can be repeatedly read during the reading process to meet the sampling frequency requirement. In other words, there are some repeated physiological data in the target physiological data. In the case where the number of stored sampling points is greater than the number of sampling points to be read and sent, only the required part of the sampling points can be read and sent according to the sampling frequency, and the excess part is not read.

[0130] The preset sampling rate and the sampling frequency may be different, the preset sampling rate may be greater than the sampling frequency, or the preset sampling rate may be less than the sampling frequency. Therefore, for the same sampling duration, there may be a situation where the physiological data is read repeatedly or partially read. Even if the preset sampling rate is the same as the sampling frequency, it is difficult for the analog-to-digital conversion module to accurately and strictly sample according to the preset sampling rate. Therefore, the above-mentioned situation of repeated reading of physiological data or partial reading of sampled data may also occur. Therefore, this method is particularly suitable for the field of physiological data sampling, in which the amount of physiological data sampled is large and the sampling time alignment requirements are high, the amount of data at the sampling point is strict, and the requirements for the sampling data value at a certain sampling moment are relatively low.

[0131] Exemplarily, the difference between the preset sampling rate and the sampling frequency is less than the first threshold value. According to an embodiment of the present application, the difference in numerical values ​​between the preset sampling rate and the sampling frequency is small to ensure that there will not be too much repeated reading of physiological data or only a small part of the physiological data is read. It can be understood that since the amount of sampled data is usually large as the sampling time of physiological data passes, in the prior art, the number of sampling points is inaccurate, and the deviation will accumulate over time to cause a large error, thereby failing to meet the requirements of real-time performance in the field of physiological data. In the case where the difference between the numerical values ​​of the sampling frequency and the preset sampling rate is less than the first threshold value, the stored physiological data is read and sent according to the sampling frequency, and the physiological data that is repeatedly read or the redundant physiological data that is not read in the stored physiological data accounts for a small proportion of the stored physiological data, that is, the analog-to-digital conversion module will not make many unnecessary calculations, nor will it greatly affect the accuracy of the data.

[0132] In the link verification step S310, the first frequency is the sampling frequency, the programmable logic device is controlled to receive and save the first verification data sent by the analog-to-digital conversion module, and read and send the stored first verification data according to the sampling frequency as the first data stream. The actual data stream received by the data receiving end is used as the second data stream.

[0133] The above step S130 may also include step S134, for each data channel, determining whether the data volume or data value of the transmission data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same; if they are the same, the data channel is determined to be reliable. The data volume or data value of the received data and the transmission data corresponding to each data channel may be determined, if the data volume or data value of the transmission data and the received data are all the same, the data channel is reliable, if there is a difference, the data transmission link is unreliable.

[0134] In the above technical solution, physiological data is acquired and stored based on a trigger signal sent at a preset sampling rate, and target physiological data is obtained by reading and sending the stored physiological data based on the sampling frequency. When the preset sampling rate is less than the sampling frequency, the target physiological data can be obtained by repeatedly reading and sending the stored physiological data; otherwise, when the preset sampling rate is greater than the sampling frequency, the target physiological data can be obtained by partially reading and sending the stored physiological data. Thus, compatibility with different sampling rates is achieved, and the accuracy of the number of sampling points of physiological data is guaranteed. And the accuracy of the data value of the physiological data transmitted by the data transmission link is guaranteed.

[0135] Exemplarily, the preset sampling rate is greater than the sampling frequency. Under the same duration, the number of sampling points acquired and stored is relatively large, while the number of sampling points required to read the stored physiological data according to the sampling frequency is relatively small, so only part of the stored physiological data needs to be read, and the same sampling data will not be read repeatedly multiple times. Specifically, the preset sampling rate can be 16000 Hz, and within a sampling duration of 1 second, the number of sampling points of the corresponding stored physiological data is 16,000. The sampling frequency can be 14000 Hz, and the number of sampling points required is 14,000. Therefore, according to the sampling frequency, 14,000 sampling points of the physiological data in the stored physiological data can be read at the corresponding moment, without reading the non-corresponding parts at other moments. In other words, the target physiological data only includes part of the sampling data.

[0136] In the above technical solution, the preset sampling rate is greater than the sampling frequency, which avoids repeated reading and sending of stored physiological data and improves the validity of target sampling data.

[0137] Exemplarily, the data receiving end includes a host computer. The host computer is used to obtain the sampling frequency in response to the user's input operation on the host computer before obtaining the trigger signal sent by the analog-to-digital conversion module according to the preset sampling rate; determine the preset sampling rate according to the sampling frequency; and configure the preset sampling rate for the analog-to-digital conversion module.

[0138] Before the analog-to-digital conversion module starts analog-to-digital conversion, the preset sampling rate of the analog-to-digital conversion module can be configured. The host computer can be electrically connected to a sampling device for implementing the above-mentioned sampling method of physiological data. The sampling device can also be connected to the above-mentioned analog-to-digital conversion module. Control software can be installed on the host computer to communicate with the sampling device and perform relevant data calculation and processing. The user can determine a sampling frequency based on the sampling requirements of physiological data. The sampling frequency is input to the host computer using the input device of the host computer. The input device can be a mouse, keyboard, touch panel, touch screen, etc. The host computer can be a personal computer, a workstation, a server, a mobile device, etc. According to the sampling frequency, a sampling rate can be selected as a preset sampling rate from multiple sampling rates supported by the analog-to-digital conversion module.

[0139] Specifically, the difference between a plurality of sampling rates supported by the analog-to-digital conversion module and the sampling frequency can be calculated respectively. According to the calculated difference, a sampling rate whose difference with the sampling frequency is less than a first threshold value is selected from the plurality of sampling rates supported as the preset sampling rate. If there are a plurality of sampling rates whose differences with the sampling frequency are all less than the first threshold value, the sampling rate with the smallest difference with the sampling frequency can be selected as the preset sampling rate. Preferably, the preset sampling rate is greater than the sampling frequency. A configurable register can be provided in the analog-to-digital conversion module, through which the sampling rate of the analog-to-digital conversion module can be configured so that its sampling rate is the preset sampling rate. In the above specific example, a programmable logic device can be used to determine the preset sampling rate according to the sampling frequency. Then the value of the required register can be calculated according to the preset sampling rate. Through the interface on the analog-to-digital conversion module, the value of the register corresponding to the preset sampling rate is written into the register to configure the sampling rate of the analog-to-digital conversion module to the preset sampling rate.

[0140] The above technical solution obtains the sampling frequency through the user's operation on the host computer, and then determines the preset sampling rate and configures the analog-to-digital conversion module to perform analog-to-digital conversion at the preset sampling rate. As a result, the user can flexibly select the sampling frequency according to the sampling requirements of physiological data, and automatically determine and configure the preset sampling rate. While meeting the user's requirements for different sampling rates, the user experience is improved.

[0141] According to another aspect of the present application, a gait closed-loop stimulation output method is also provided. In the field of sports rehabilitation, neuroregulation technology has received increasing attention, and neuroregulation is of great significance for restoring motor function and improving the quality of life. In the rehabilitation treatment of the lower limbs, walking exercises are an important process in sports rehabilitation, among which gait becomes an important indicator for evaluating motor function and neural control. Gait includes walking and standing. During the rehabilitation treatment of the lower limbs, patients need to restore neural control of the lower limbs through continuous practice. In addition, auxiliary stimulation therapy can be used to increase the excitability of muscles and neurons and promote neural rehabilitation. Figure 4 FIG. 1 is a schematic flow chart of a closed-loop gait stimulation output method according to an embodiment of the present application. Figure 4 As shown, the method includes the following steps.

[0142] In step S410, the data transmission link verification is performed using the data transmission link verification method described above.

[0143] First, step S410 is performed to verify whether the data transmission link is reliable. Subsequent steps are performed only when the data transmission link is reliable to ensure that the physiological data of the target object transmitted using the data transmission link is accurate.

[0144] In step S420, the physiological data of the target object is acquired using the data transmission link.

[0145] During the walking process of the target object, its neural signals reflect the process of the brain sending commands to the muscles. For example, the signal of the motor cortex of the brain reflects the generation of movement intention, the sciatic nerve signal is an important structure in the descending conduction nerve, and the electromyographic signal also reflects the movement state of the muscle. Therefore, the signal of the motor cortex of the brain, the sciatic nerve signal or the electromyographic signal during walking can be collected through the above-mentioned data transmission link as physiological data to judge the walking gait of the target object.

[0146] In step S430, the gait of the target object is predicted based on the physiological data.

[0147] The pre-trained neural network model can be used to extract the features of the target object's physiological data under different gaits to accurately classify and predict the target object's walking and standing gaits. The target object's physiological data is collected in real time using the above-mentioned physiological data collection method, so the neural network model can be used to predict the target object's walking and standing gaits in real time.

[0148] In step S440, if the prediction result indicates that the target object is about to take a step, a stimulation signal for the target object is output.

[0149] As mentioned above, the prediction result can represent walking and standing. If the prediction result indicates that the target object is about to walk, a stimulation signal can be output to the target object to increase the excitability of muscles and neurons, promote nerve rehabilitation, and assist the target object to walk.

[0150] The above technical scheme relates to gait closed-loop stimulation output. For the gait closed-loop stimulation output scheme, the output time of the stimulation signal is of critical significance. If and only if the stimulation signal is output to the target object at the moment when the target object is about to take a step, can the target object be effectively assisted to take a step and the effect of its rehabilitation training be improved. The accuracy of this moment seriously affects the effect of the rehabilitation training of the target object. If the data transmission link is unreliable, the acquired physiological data will be inaccurate, which will affect the accuracy of the result of predicting the gait of the target object. As a result, the stimulation signal may be output to the target object at the wrong time. Through the gait closed-loop stimulation output method of the present application, accurate physiological data can be obtained, and gait prediction and stimulation output can be performed more accurately. Therefore, the rehabilitation training effect of the target object can be guaranteed to the greatest extent.

[0151] According to another aspect of the present invention, a data transmission link verification device is also provided. Figure 5 FIG. 5 shows a schematic block diagram of a data transmission link verification device 500 according to an embodiment of the present invention. Figure 5 As shown, the data transmission link verification device 500 includes a first control module 510 , a second control module 520 and a verification module 530 .

[0152] The first control module 510 is used to control the data transmitting end to form a first data stream with the first verification data of each data channel according to the first frequency, and send it to the data receiving end. The second control module 520 is used to control the data receiving end to receive the actual data stream sent by the data transmitting end as the second data stream. The verification module 530 is used to verify the reliability of the data transmission link according to the transmission data of each data channel in the first data stream and the reception data of each data channel in the second data stream.

[0153] Exemplarily, the verification module 530 includes a judgment submodule and a first determination submodule. The judgment submodule is used to judge, for each data channel, whether at least one of the data value and the data amount of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream is the same; if they are the same, the data channel is determined to be reliable. The determination submodule is used to determine that the data transmission link is reliable when all data channels are reliable.

[0154] Exemplarily, the verification module 530 further includes a second determination submodule. The second determination submodule is configured to determine that the data transmission link is unreliable when at least one data channel is unreliable.

[0155] Exemplarily, the first verification data associated with each data channel has a fixed value, and the fixed values ​​of the first verification data associated with different data channels are different. The judgment submodule includes a first judgment unit, a calculation unit, a second judgment unit and a determination unit. The first judgment unit is used to judge, for each data channel, whether the sending duration of the first data stream reaches a first duration threshold, or whether the amount of data sent by all data channels in the first data stream reaches a first number threshold, so as to obtain a first judgment result. The calculation unit is used to calculate the average value of the data value of the data channel in the received second data stream when the first judgment result indicates yes. The second judgment unit is used to judge whether the average value is the same as the fixed value, so as to determine whether the data values ​​of the sending data associated with the data channel in the first data stream and the receiving data associated with the data channel in the second data stream are the same.

[0156] Exemplarily, the first verification data of at least some of the data channels among the multiple data channels include multiple data in a specific functional relationship with the sending time, and the judgment submodule includes a third judgment unit. The third judgment unit is used to judge whether the specific functional relationship between the sending data related to the data channel in the first data stream and the receiving data related to the data channel in the second data stream is the same.

[0157] Exemplarily, the data receiving end includes a host computer, and the verification device of the data transmission link also includes a display module, and the display module is used to display the waveform of the received data of each data channel in the second data stream on the host computer.

[0158] Exemplarily, the verification device of the data transmission link further includes a third control module. The third control module is used to generate a verification request instruction in response to the user selecting the verification mode on the host computer, so as to control the data transmitting end to form a first data stream according to the first frequency of the respective first verification data of all data channels based on the verification request instruction, and send it to the data receiving end.

[0159] According to yet another aspect of the present invention, a gait closed-loop stimulation output device is also provided. Figure 6 FIG. 6 is a schematic block diagram of a gait closed-loop stimulation output device 600 according to an embodiment of the present invention. Figure 6 As shown, the gait closed-loop stimulation output device 600 includes a verification device 610 , an acquisition module 620 , a prediction module 630 and a stimulation module 640 .

[0160] The verification device 610 is used to verify the data transmission link using the verification method of the data transmission link as described above. The acquisition module 620 is used to obtain the physiological data of the target object using the data transmission link. The prediction module 630 is used to predict the gait of the target object based on the physiological data. The stimulation module 640 is used to output a stimulation signal for the target object if the prediction result indicates that the target object is about to take a step.

[0161] According to another aspect of the present invention, an electronic device is also provided. Figure 7 FIG. 8 is a schematic block diagram of an electronic device 700 according to an embodiment of the present invention. Figure 7 As shown, the electronic device 700 includes a processor 710 and a memory 720. The memory 720 stores computer program instructions, which are used by the processor 710 to execute the above-mentioned data transmission link verification method, the above-mentioned physiological data sampling method or the above-mentioned gait closed-loop stimulation output method when the computer program instructions are executed.

[0162] According to another aspect of the present invention, a storage medium is also provided, on which program instructions are stored, and the program instructions are used to execute the verification method of the data transmission link as described above, the sampling method of physiological data as described above, or the gait closed-loop stimulation output method as described above when running. The storage medium may include, for example, an erasable programmable read-only memory (EPROM), a portable read-only memory (CD-ROM), a USB memory, or any combination of the above storage media. The storage medium may be any combination of one or more computer-readable storage media.

[0163] A person of ordinary skill in the art can understand the specific implementation schemes and beneficial effects of the verification method of the data transmission link, the sampling method of physiological data and the gait closed-loop stimulation output method by reading the above-mentioned descriptions of the verification method of the data transmission link, the sampling method of physiological data and the gait closed-loop stimulation output method. For the sake of brevity, they will not be elaborated here.

[0164] Although exemplary embodiments have been described herein with reference to the accompanying drawings, it should be understood that the exemplary embodiments described above are merely exemplary and are not intended to limit the scope of the present invention thereto. Various changes and modifications may be made therein by one of ordinary skill in the art without departing from the scope and spirit of the present application. All such changes and modifications are intended to be included within the scope of the present application as required by the appended claims.

[0165] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0166] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed.

[0167] In the description provided herein, a large number of specific details are described. However, it is understood that the embodiments of the present application can be practiced without these specific details. In some instances, well-known methods, structures and techniques are not shown in detail so as not to obscure the understanding of this description.

[0168] Similarly, it should be understood that in order to streamline the present application and help understand one or more of the various inventive aspects, in the description of the exemplary embodiments of the present application, the various features of the present application are sometimes grouped together into a single embodiment, figure, or description thereof. However, the method of the present application should not be interpreted as reflecting the following intention: the claimed application requires more features than the features clearly stated in each claim. More specifically, as reflected in the corresponding claims, the inventive point is that the corresponding technical problem can be solved with features less than all the features of a single disclosed embodiment. Therefore, the claims following the specific embodiment are hereby explicitly incorporated into the specific embodiment, wherein each claim itself serves as a separate embodiment of the present application.

[0169] It will be understood by those skilled in the art that, except for mutually exclusive features, all features disclosed in this specification (including the accompanying claims, abstracts and drawings) and all processes or units of any method or device disclosed in this specification may be combined in any combination. Unless otherwise expressly stated, each feature disclosed in this specification (including the accompanying claims, abstracts and drawings) may be replaced by an alternative feature that provides the same, equivalent or similar purpose.

[0170] In addition, those skilled in the art will appreciate that, although some embodiments described herein include certain features included in other embodiments but not other features, the combination of features of different embodiments is meant to be within the scope of the present application and form different embodiments. For example, in the claims, any one of the claimed embodiments can be used in any combination.

[0171] The various component embodiments of the present application can be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. It should be understood by those skilled in the art that a microprocessor or digital signal processor (DSP) can be used in practice to implement some or all functions of some modules in the verification device of the data transmission link according to the embodiment of the present application and / or the gait closed-loop stimulation output device. The application can also be implemented as a device program (e.g., computer program and computer program product) for executing part or all of the methods described herein. Such a program implementing the present application can be stored on a computer-readable medium, or can have the form of one or more signals. Such a signal can be downloaded from an Internet website, or provided on a carrier signal, or provided in any other form.

[0172] It should be noted that the above embodiments illustrate the present application rather than limit the present application, and that those skilled in the art may design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference symbol between brackets should not be constructed as a limitation to the claims. The word "comprising" does not exclude the presence of elements or steps not listed in the claims. The word "one" or "an" preceding an element does not exclude the presence of multiple such elements. The present application may be implemented by means of hardware including several different elements and by means of a suitably programmed computer. In a unit claim that lists several devices, several of these devices may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order. These words may be interpreted as names.

[0173] The above is only a specific implementation or description of a specific implementation of the present application, and the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. The protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A method for verifying a data transmission link, characterized in that: The data transmission link is used to connect a data sending end and a data receiving end, wherein the data sending end is used to send first verification data of each of the multiple data channels to the data receiving end, and the verification method includes: Control the data transmitting end to form a first data stream with the first verification data of all data channels according to the first frequency, and send the first data stream to the data receiving end; Controlling the data receiving end to receive the actual data stream sent by the data sending end as the second data stream; The reliability of the data transmission link is verified according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream.

2. The data transmission link verification method according to claim 1, wherein: The verifying the reliability of the data transmission link according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream includes: For each data channel, determining whether at least one of a data value and a data volume of transmitted data related to the data channel in the first data stream and received data related to the data channel in the second data stream is the same; if they are the same, determining that the data channel is reliable; When all data channels are reliable, it is determined that the data transmission link is reliable.

3. The data transmission link verification method according to claim 2, wherein: The verifying the reliability of the data transmission link according to the transmitted data of each data channel in the first data stream and the received data of the data channel in the second data stream further includes: When at least one data channel is unreliable, it is determined that the data transmission link is unreliable.

4. The data transmission link verification method according to claim 2 or 3, wherein: The first verification data associated with each data channel has a fixed value, and the fixed values ​​of the first verification data associated with different data channels are different.

5. The data transmission link verification method according to claim 4, wherein: The step of determining, for each data channel, whether data values ​​of transmitted data related to the data channel in the first data stream and received data related to the data channel in the second data stream are the same includes: For each data channel, Determine whether the sending duration of the first data stream reaches a first duration threshold, or whether the amount of data sent by all data channels in the first data stream reaches a first number threshold, to obtain a first determination result; If the first judgment result indicates yes, calculating an average value of data values ​​of the data channel in the received second data stream; It is determined whether the average value is the same as the fixed value to determine whether the data values ​​of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same.

6. The data transmission link verification method according to claim 2 or 3, wherein: The first verification data of at least some of the data channels among the plurality of data channels include a plurality of data in a specific functional relationship with the sending time; The determining whether the data values ​​of the transmitted data related to the data channel in the first data stream and the received data related to the data channel in the second data stream are the same includes: It is determined whether the specific functional relationship between the transmission data related to the data channel in the first data stream and the reception data related to the data channel in the second data stream is the same.

7. The data transmission link verification method according to claim 1, wherein: The data receiving end includes a host computer, The verification method further includes: The waveform of the received data of each data channel in the second data stream is displayed on the host computer.

8. The data transmission link verification method according to claim 7, wherein: The verification method further comprises: In response to the user selecting the verification mode on the host computer, a verification request instruction is generated, so as to control the data sending end to form a first data stream with the first verification data of all data channels according to the first frequency based on the verification request instruction, and send it to the data receiving end.

9. The data transmission link verification method according to claim 7, wherein: The data transmitting end includes an analog-to-digital conversion module and a programmable logic device, and the programmable logic device is connected between the analog-to-digital conversion module and the host computer; The analog-to-digital conversion module stores first verification data of respective multiple data channels; The programmable logic device is used to interact with the analog-to-digital conversion module under the control of the host computer, convert the first verification data of each of all data channels into the first data stream according to the first frequency, and send it to the host computer.

10. A method for sampling physiological data, characterized in that: Applied to a sampling system, the sampling system comprises a data sending end and a data receiving end, the data sending end and the data receiving end are connected via a data transmission link; The data transmitting end is used to send the physiological data sampled by multiple data channels to the data receiving end through the data transmission link according to the sampling frequency; the method includes: The link verification step adopts the verification method described in any one of claims 1 to 9 to verify the reliability of the data transmission link; wherein the first frequency is the sampling frequency; and the first verification data is used as the sampled physiological data; The sampling step includes sending the physiological data sampled by the plurality of data channels to the data receiving end through the data transmission link at a sampling frequency when the data transmission link is reliable.

11. The physiological data sampling method according to claim 10, wherein: The data sending end includes an analog-to-digital conversion module and a programmable logic device, wherein the analog-to-digital conversion module is used to send a trigger signal to the programmable logic device according to a preset sampling rate, and the programmable logic device is used to receive and store physiological data after the analog-to-digital conversion of the sampled physiological data by the analog-to-digital conversion module according to the trigger signal; read and send the stored physiological data according to the sampling frequency to obtain target physiological data; wherein the difference between the preset sampling rate and the sampling frequency is less than a first threshold value.

12. The physiological data sampling method according to claim 11, wherein: The preset sampling rate is greater than the sampling frequency.

13. The physiological data sampling method according to claim 11, wherein: The data receiving end includes a host computer; the host computer is used to obtain the sampling frequency in response to the user's input operation on the host computer before the analog-to-digital conversion module sends a trigger signal to the programmable logic device according to the preset sampling rate; determine the preset sampling rate according to the sampling frequency; and configure the preset sampling rate for the analog-to-digital conversion module.

14. A gait closed-loop stimulation output method, characterized in that: include: Using the data transmission link verification method according to claims 1 to 9 to perform data transmission link verification; Acquiring physiological data of a target object using the data transmission link; predicting the gait of the target object based on the physiological data; If the prediction result indicates that the target object is about to take a step, a stimulation signal for the target object is output.

15. A data transmission link verification device, characterized in that: The data transmission link is used to connect a data sending end and a data receiving end, wherein the data sending end is used to send first verification data of each of the multiple data channels to the data receiving end, The verification device comprises: A first control module, used for controlling the data transmitting end to form a first data stream with the first verification data of all data channels at a first frequency, and send the first data stream to the data receiving end; A second control module, used for controlling the data receiving end to receive the actual data stream sent by the data sending end as a second data stream; and A verification module is used to verify the reliability of the data transmission link based on the sent data of each data channel in the first data stream and the received data of each data channel in the second data stream.

16. A gait closed-loop stimulation output device, characterized in that: include: A verification device, used to verify the data transmission link using the verification method of the data transmission link according to claims 1 to 9; An acquisition module, used to acquire physiological data of a target object using the data transmission link; A prediction module, configured to predict the gait of the target object based on the physiological data; The stimulation module is used to output a stimulation signal for the target object if the prediction result indicates that the target object is about to take a step.

17. An electronic device comprising: A processor and a memory, wherein the memory stores computer program instructions, characterized in that the computer program instructions are used by the processor to execute the data transmission link verification method as described in any one of claims 1 to 9, the physiological data sampling method as described in any one of claims 10 to 13, or the gait closed-loop stimulation output method as described in claim 14 when the processor is running.

18. A storage medium having program instructions stored thereon, characterized in that: The program instructions are used to execute the data transmission link verification method as described in any one of claims 1 to 9, the physiological data sampling method as described in any one of claims 10 to 13, or the gait closed-loop stimulation output method as described in claim 14 when running.

Citation Information

Cited By

  • Data verification method and system for virtual electronic test instrument platform

    CN121167330A

  • Data validation method and system for virtual electronic test instrument platform

    CN121167330B