A data transmission method, device, sensing device and data transmission system

CN116193510BActive Publication Date: 2026-10-23BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310125295.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-07
Publication Date
2026-10-23
Estimated Expiration
2043-02-07

AI Technical Summary

Technical Problem

[0004]患者配戴的可穿戴医疗设备与智能终端的距离较远时,通信信号较弱,蓝牙连接断断续续会导致数据丢失以及数据传输错乱,从而无法为远程诊断提供可靠的数据参考

Benefits of technology

[0035]上述发明中的一个实施例具有如下优点或有益效果:通过近场传输协议从传感设备获取多个数据帧,每一个所述数据帧包括监测数据、第一校验字节以及数据序号;循环执行以下步骤,直至获取到完整的监测数据:根据所述第一校验字节和所述数据序号对所述监测数据进行完整性校验;在校验出所述监测数据不完整的情况下,根据不完整的所述监测数据对应的一个或多个目标数据帧生成对应的数据获取指令;向所述传感设备返回所述数据获取指令;所述数据获取指令指示了所述一个或多个目标数据帧分别对应的数据序号;通过所述近场传输协议接收所述传感设备根据所述数据获取指令返回的目标数据帧。由此实现了通过校验字节进行数据准确性校验,以及根据准确性校验结果和数据序号进行数据完整性的校验,在校验出监测数据不完整的情况下,重新获取缺失的数据,直至获取到正确、完整的数据,以此避免了数据丢失和数据传输错乱的情况,实现了为远程诊断提供可靠数据的目的。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116193510B_ABST
    Figure CN116193510B_ABST
Patent Text Reader

Abstract

The application discloses a data transmission method and device, a sensing device and a data transmission system, and relates to the technical field of digital medical health. A specific embodiment of the method comprises: acquiring a plurality of data frames from the sensing device through a near field transmission protocol, each data frame comprising monitoring data, a first check byte and a data serial number; and performing the following steps in a loop until the complete monitoring data is acquired: performing integrity checking on the monitoring data according to the first check byte and the data serial number; in the case that the monitoring data is incomplete, generating a corresponding data acquisition instruction according to a target data frame corresponding to the incomplete monitoring data; returning the data acquisition instruction to the sensing device; the data acquisition instruction indicating the data serial number corresponding to the target data frame respectively; and receiving the target data frame returned by the sensing device according to the data acquisition instruction through the near field transmission protocol. Thus, the data loss and transmission disorder are avoided, and the purpose of providing reliable data for remote diagnosis is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of digital healthcare technology, and in particular to a data transmission method, apparatus, sensing device, and data transmission system. Background Technology

[0002] In remote diagnosis and treatment, smart wearable medical devices transmit data to smart terminals via the BLE (Bluetooth Low Energy) protocol. Ideally, the Bluetooth connection distance is between 8-30 meters. However, in reality, there is often interference from wireless signals and obstructions such as walls, so the Bluetooth connection distance is generally around 10 meters. When patients wear wearable medical devices for monitoring, the distance between them and the smart terminal often exceeds the Bluetooth connection range.

[0003] In the process of realizing this invention, the inventors discovered at least the following problems in the prior art:

[0004] When the distance between the wearable medical device worn by the patient and the smart terminal is far, the communication signal is weak, and the intermittent Bluetooth connection will lead to data loss and data transmission errors, thus failing to provide reliable data reference for remote diagnosis. Summary of the Invention

[0005] In view of this, embodiments of the present invention provide a data transmission method, apparatus, sensing device, and data transmission system. Multiple data frames are acquired from the sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired: The monitoring data is subjected to integrity verification based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames; and the target data frames returned by the sensing device based on the data acquisition instruction are received via the near-field transmission protocol. This achieves data accuracy verification via the check byte and data integrity verification based on the accuracy verification result and the data sequence number. If incomplete monitoring data is detected, the missing data is reacquired until correct and complete data is obtained, thereby avoiding data loss and data transmission errors, and achieving the goal of providing reliable data for remote diagnosis.

[0006] To achieve the above objectives, a data transmission method is provided according to one aspect of the present invention.

[0007] An embodiment of the present invention provides a data transmission method comprising: acquiring multiple data frames from a sensing device via a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; cyclically executing the following steps until complete monitoring data is acquired: performing an integrity check on the monitoring data based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, generating a corresponding data acquisition instruction based on one or more target data frames corresponding to the incomplete monitoring data; returning the data acquisition instruction to the sensing device; the data acquisition instruction indicating the data sequence number corresponding to the one or more target data frames; and receiving the target data frames returned by the sensing device according to the data acquisition instruction via the near-field transmission protocol.

[0008] Optionally, the integrity verification of the monitoring data based on the first verification byte and the data sequence number includes at least one of the following:

[0009] Determine whether the data sequence numbers are consecutive in order to perform integrity verification on the monitoring data;

[0010] The monitoring data is subjected to accuracy verification based on the first verification byte, and the monitoring data is subjected to integrity verification based on the accuracy verification result and the data sequence number.

[0011] Optionally, the step of verifying the accuracy of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to the verification byte generation algorithm; and comparing the second verification bytes with the first verification bytes respectively to verify the accuracy of the monitoring data.

[0012] Optionally, generating the second verification byte corresponding to each of the plurality of data frames according to the verification byte generation algorithm includes: for each data frame: generating a position number for each byte of the monitoring data included in the data frame; and generating the second verification byte according to the position number and the value corresponding to each byte.

[0013] Optionally, generating the second verification byte based on the position number and the value corresponding to each byte includes: calculating the product of the value corresponding to each byte and the corresponding position number; summing the products corresponding to the multiple bytes included in the monitoring data to obtain a summing result; and obtaining the second verification byte based on the summing result.

[0014] The step of performing integrity verification on the monitoring data based on the accuracy verification result and the data sequence number includes: if the comparison result of the second verification byte and the first verification byte is consistent, generating a data array based on the monitoring data and the corresponding data sequence number; if the comparison result of the second verification byte and the first verification byte is inconsistent, generating a verification error identifier, and generating a data array based on the verification error identifier and the corresponding data sequence number; determining whether the data array contains the verification error identifier, so as to perform integrity verification on the monitoring data.

[0015] To achieve the above objectives, according to another aspect of the present invention, a data transmission apparatus is provided.

[0016] A data transmission device according to an embodiment of the present invention includes:

[0017] The first receiving module is configured to acquire multiple data frames from the sensing device via a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; it is also configured to receive a target data frame returned by the sensing device according to the data acquisition instruction via the near-field transmission protocol.

[0018] The data verification module is used to repeatedly execute the following steps until complete monitoring data is obtained:

[0019] The monitoring data is checked for integrity based on the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, the transmission feedback module is triggered.

[0020] The transmission feedback module is used to generate a corresponding data acquisition instruction based on one or more target data frames corresponding to the incomplete monitoring data, and return the data acquisition instruction to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively.

[0021] To achieve the above objectives, according to another aspect of the present invention, a data transmission method is provided.

[0022] An embodiment of the present invention provides a data transmission method comprising: sending multiple data frames to a data transmission device via a near-field transmission protocol, so that the data transmission device verifies the data frames; each data frame includes monitoring data, a first verification byte, and a data sequence number; upon receiving a data acquisition instruction sent by the data transmission device, wherein the data acquisition instruction indicates that the monitoring data is incomplete, and according to the data sequence number corresponding to one or more target data frames indicated by the data acquisition instruction, sending the target data frame corresponding to the data sequence number to the data transmission device via the near-field transmission protocol, so that the data transmission device continues to verify the target data frame.

[0023] Optionally, the method provided by the present invention further includes: grouping the monitoring data and generating a first verification byte and a data sequence number for each group of monitoring data; assembling each group of monitoring data and the corresponding first verification byte and data sequence number into a data frame according to a predetermined data format.

[0024] Optionally, generating a first verification byte for each set of monitoring data includes: generating the first verification byte for each set of monitoring data according to the same algorithm used by the data transmission device for generating verification bytes.

[0025] To achieve the above objectives, according to another aspect of the present invention, a sensing device is provided.

[0026] An embodiment of the present invention provides a sensing device comprising: a second receiving module, configured to receive a data acquisition instruction returned by the data transmission device, the data acquisition instruction indicating a data sequence number corresponding to one or more target data frames; a data acquisition module, configured to acquire a target data frame corresponding to a data sequence number from a local memory according to the data sequence number indicated by the data acquisition instruction; a sending module, configured to send multiple data frames to the data transmission device via a near-field transmission protocol, each data frame including monitoring data, a first checksum byte, and a data sequence number; and further configured to send the target data frame to the data transmission device.

[0027] To achieve the above objectives, according to another aspect of the present invention, a data transmission system is provided.

[0028] A data transmission system according to an embodiment of the present invention includes: a data transmission device and a sensing device, wherein,

[0029] A data transmission device is configured to acquire multiple data frames from a sensing device via a near-field transmission protocol, each data frame including monitoring data, a first checksum byte, and a data sequence number; and to repeatedly execute the following steps until complete monitoring data is acquired:

[0030] The monitoring data is subjected to integrity verification based on the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively; the target data frames returned by the sensing device based on the data acquisition instruction are received through the near-field transmission protocol.

[0031] To achieve the above objectives, according to another aspect of the present invention, an electronic device for data transmission is provided.

[0032] An electronic device for data transmission according to an embodiment of the present invention includes: one or more processors; and a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement a data transmission method according to an embodiment of the present invention.

[0033] To achieve the above objectives, according to another aspect of the present invention, a computer-readable storage medium is provided.

[0034] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the program, when executed by a processor, implements a data transmission method according to an embodiment of the present invention.

[0035] One embodiment of the above invention has the following advantages or beneficial effects: Multiple data frames are acquired from a sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired: The monitoring data is checked for integrity based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames; the target data frames returned by the sensing device based on the data acquisition instruction are received via the near-field transmission protocol. This achieves data accuracy verification via the check byte and data integrity verification based on the accuracy verification result and the data sequence number. If incomplete monitoring data is detected, the missing data is reacquired until correct and complete data is obtained, thereby avoiding data loss and data transmission errors, and achieving the goal of providing reliable data for remote diagnosis.

[0036] The further effects of the aforementioned unconventional alternative methods will be explained below in conjunction with specific implementation methods. Attached Figure Description

[0037] The accompanying drawings are provided to better understand the invention and are not intended to unduly limit the scope of the invention. Wherein:

[0038] Figure 1 This is a schematic diagram of the main steps of a data transmission method according to an embodiment of the present invention;

[0039] Figure 2 This is a schematic diagram of the main steps of a data transmission method according to an embodiment of the present invention;

[0040] Figure 3 This is a schematic diagram of the main modules of a data transmission device according to an embodiment of the present invention;

[0041] Figure 4 This is a schematic diagram of the main steps of a data transmission method according to an embodiment of the present invention;

[0042] Figure 5 This is a schematic diagram of the main modules of a sensing device according to an embodiment of the present invention;

[0043] Figure 6 This is a schematic diagram of the main modules of a data transmission system according to an embodiment of the present invention;

[0044] Figure 7 This is an exemplary system architecture diagram in which embodiments of the present invention can be applied;

[0045] Figure 8 This is a schematic diagram of the structure of a computer system suitable for implementing terminal devices or servers of the present invention. Detailed Implementation

[0046] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of the present invention, including various details to aid understanding. These details should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the invention. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0047] It should be noted that, unless otherwise specified, the embodiments of the present invention and the technical features thereof can be combined with each other.

[0048] It should be noted that the collection, gathering, updating, analysis, processing, use, transmission, and storage of user personal information involved in this disclosed technical solution all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken to prevent unauthorized access to user personal information data and to safeguard user personal information security, network security, and national security.

[0049] Figure 1 This is a schematic diagram of the main steps of the data transmission method according to an embodiment of the present invention.

[0050] like Figure 1 As shown, the data transmission method of this invention mainly includes the following steps:

[0051] Step S101: Obtain multiple data frames from the sensing device via the near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number.

[0052] The data transmission method of this invention is applicable to various scenarios involving near-field communication. For example, it involves two terminals transmitting data via Bluetooth. These two terminals can be a sensing device that monitors human physiological signals and a data transmission device that acquires the physiological signals collected by the sensing device and provides the physiological data to a monitoring and diagnostic system. The sensing device can be a blood glucose meter, a blood oxygen and blood pressure monitor, an electrocardiogram monitor, or a fetal heart rate monitor, etc. The data transmission device can be a smart terminal, which can be used solely for data transmission or for both data transmission and diagnosis and monitoring of the human body's physiological state based on physiological signals.

[0053] The device that transmits and interacts with the sensing device can be a terminal, a remote server, or a system consisting of both a terminal and a remote server.

[0054] The sensing device collects bioelectrical signals and converts them into digital signals. Then, according to the data format specified in the near-field transmission protocol, the digital signals are assembled into data frames. Finally, multiple data frames are combined into a single data packet and sent to the data transmission device. The data format can be one of the formats shown in Table 1.

[0055] Table 1

[0056] … … … … …

[0057] After receiving the data packet sent by the sensing device, the data transmission device first finds the start position of each data frame from the data packet according to the frame header and frame trailer to determine multiple data frames; then, according to the format characteristics of the data frame, it determines the monitoring data, data sequence number and first check byte of each data frame.

[0058] It is understandable that data frames can also contain data types, which can be used to indicate what kind of data the monitoring data is, such as electrocardiogram data, fetal heart rate data, etc.

[0059] Step S102: Repeat steps S1021 to S1024 until complete monitoring data is obtained:

[0060] Step S1021: Perform integrity verification on the monitoring data based on the first verification byte and the data sequence number.

[0061] In one embodiment of the present invention, the integrity verification of the monitoring data based on the first verification byte and the data sequence number includes at least one of the following:

[0062] Determine whether the data sequence numbers are consecutive in order to perform integrity verification on the monitoring data;

[0063] The monitoring data is subjected to accuracy verification based on the first verification byte, and the monitoring data is subjected to integrity verification based on the accuracy verification result and the data sequence number.

[0064] To verify the completeness of the acquired monitoring data, we first determine whether the data sequence numbers of the acquired data frames are consecutive. Then, based on the continuity of the data sequence numbers, we determine whether there are any missing data frames. If the data sequence numbers are not consecutive, we identify the missing data sequence number, and the data frame corresponding to that data sequence number is the missing data frame, i.e., the target data frame. If the data sequence numbers are consecutive, we determine that the acquired monitoring data is complete.

[0065] Verifying the completeness of acquired monitoring data requires not only confirming the continuity of data sequence numbers but also verifying the accuracy of the acquired data. If accuracy verification determines that the acquired monitoring data is incorrect, the data frame corresponding to that monitoring data is identified as the missing data frame, i.e., the target data frame, and the data sequence number corresponding to the monitoring data is identified as the data sequence number corresponding to the target data frame.

[0066] In one embodiment of the present invention, the step of verifying the accuracy of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to the verification byte generation algorithm; and comparing the second verification bytes with the first verification bytes respectively to verify the accuracy of the monitoring data.

[0067] Data accuracy verification involves the data transmission device generating a second verification byte based on the received monitoring data, comparing the second verification byte with the received first verification byte. If the comparison results match, the received monitoring data is determined to be correct; if the comparison results do not match, the received monitoring data is determined to be incorrect. The algorithms used to generate the first and second verification bytes are the same.

[0068] In one embodiment of the present invention, generating the second verification byte corresponding to each of the plurality of data frames according to the verification byte generation algorithm includes: for each data frame: generating a position number for each byte of the monitoring data included in the data frame; and generating the second verification byte according to the position number and the value corresponding to each byte.

[0069] Each data frame includes monitoring data, which is multiple bytes long. Each byte is numbered from right to left. The second check byte is calculated using the number and the corresponding value of each byte. For example, if the monitoring data is 501 bytes long, and the monitoring data is: ... 0001000101100110, the first byte from the right, 01100110, is numbered 1; the second byte from the right, 00010001, is numbered 2, and so on, up to 501. The value of each byte is then determined. The first byte from the right, 01100110, has a value of 102; the second byte from the right, 00010001, has a value of 17.

[0070] In one embodiment of the present invention, generating the second verification byte based on the position number and the value corresponding to each byte includes: calculating the product of the value corresponding to each byte and the corresponding position number; summing the products corresponding to the multiple bytes included in the monitoring data to obtain a summing result; and obtaining the second verification byte based on the summing result.

[0071] The product of each byte of the monitored data is obtained by multiplying its value by its corresponding position number. For example, if the value of the first byte from the right is 102, and the first byte from the right is numbered 1, multiplying 102 by 1 gives a product of 102 for the first byte from the right. Similarly, the product of the second byte from the right is 34, calculated by multiplying 17 by 2. This process continues, resulting in 501 products for every 501 bytes.

[0072] Add the products of each byte of the monitored data to obtain the first sum. Determine the number of bytes corresponding to the first sum. Add the values ​​of each byte in the first sum to obtain the second sum. Then add the values ​​of each byte in the second sum to obtain a sum result, which can be identified as the second check byte. For example, if the first sum is 10111100101010100011001100111111, add the values ​​corresponding to 10111100, 10101010, 00110011, and 00111111 to obtain the second sum 0000000111011000. Add the values ​​corresponding to 00000001 and 11011000 to obtain 11011001, which can be identified as the check byte. It is understandable that the check byte can be a single byte or multiple bytes, and the number of check bytes can be set according to the length of the monitored data in each data frame.

[0073] In one embodiment of the present invention, the step of performing integrity verification on the monitoring data based on the accuracy verification result and the data sequence number includes: if the comparison result of the second verification byte and the first verification byte is consistent, generating a data array based on the monitoring data and the corresponding data sequence number; if the comparison result of the second verification byte and the first verification byte is inconsistent, generating a verification error identifier, and generating a data array based on the verification error identifier and the corresponding data sequence number; determining whether the data array contains the verification error identifier, so as to perform integrity verification on the monitoring data.

[0074] Based on the received monitoring data, a second check byte is generated using a check byte generation algorithm. This second check byte is then compared with the received first check byte. If the comparison results match, the received monitoring data is confirmed to be correct; otherwise, the received monitoring data is determined to be incorrect. If the received monitoring data is correct, it is saved in a data array along with its corresponding data sequence number, ensuring a one-to-one correspondence between the data sequence number and the monitoring data. If the received monitoring data is incorrect, a check error identifier is generated for the erroneous monitoring data. The corresponding data sequence number and the check error identifier are then saved in a data array, ensuring a one-to-one correspondence between the data sequence number and the check error identifier. The missing data frame corresponding to this data sequence number is the target data frame.

[0075] After data accuracy verification, it is determined whether the data sequence numbers in the data array are consecutive and whether the data array contains error identifiers. The data frames corresponding to missing data sequence numbers and the data frames corresponding to error identifiers are the data frames lost or erroneously transmitted during transmission. If the data sequence numbers in the data array are not consecutive and / or contain error identifiers, the monitoring data is determined to be incomplete. In other words, if there is transmission loss and / or transmission error, the monitoring data is determined to be incomplete.

[0076] Step S1022: If the monitoring data is found to be incomplete, generate a corresponding data acquisition instruction based on one or more target data frames corresponding to the incomplete monitoring data; if the monitoring data is found to be complete, end the verification.

[0077] Step S1023: Return the data acquisition instruction to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively.

[0078] Step S1024: Receive the target data frame returned by the sensing device according to the data acquisition instruction via the near-field transmission protocol.

[0079] In the case of incomplete monitoring data, the missing data sequence number and / or the data sequence number corresponding to the error identifier are determined, wherein the missing data frame corresponding to the data sequence number is the target data frame; the data sequence number is assembled into a data acquisition instruction frame, and the data acquisition instruction frame is sent to the sensing device to obtain the target data frame; the sensing device returns the target data frame corresponding to the data sequence number to the data transmission device according to the data sequence number indicated in the data acquisition instruction frame, wherein the data format of the data acquisition instruction frame is shown in Table 2:

[0080] Table 2

[0081] … Data sequence number …

[0082] Figure 2 This is a schematic diagram of the main steps of a data transmission method according to an embodiment of the present invention.

[0083] The following describes in detail the data transmission method provided in this embodiment of the invention, taking data transmission between a sensing device, a smart terminal, and a remote monitoring terminal as an example. The data transmission device provided in this embodiment can be on a smart terminal, on a remote monitoring terminal, or on a system composed of a smart terminal and a remote monitoring terminal. Figure 2 As shown, the method may include the following steps:

[0084] Step S201: The sensing device assembles the data frame.

[0085] The sensing device groups the collected monitoring data, generates a data sequence number and a first check byte for each group of monitoring data, and assembles the monitoring data, the corresponding data sequence number, and the first check byte into a data frame.

[0086] Step S202: Send multiple data frames to the smart terminal.

[0087] The sensing device sends multiple data frames to the smart terminal via a near-field communication protocol.

[0088] Step S203: The smart terminal uploads multiple data frames to the remote monitoring terminal.

[0089] The smart terminal uploads multiple data frames to the remote monitoring terminal according to the set transmission frequency.

[0090] Step S204: The remote monitoring terminal receives multiple data frames and determines the monitoring data, data sequence number, and first check byte of each data frame by parsing.

[0091] The remote monitoring terminal parses the received data to obtain multiple data frames, each of which includes monitoring data, a first check byte, and a data sequence number.

[0092] Step S205: Generate a second check byte for the monitoring data of each data frame.

[0093] The data transmission device generates a second check byte for each received data frame, wherein the algorithm for generating the second check byte is the same as the algorithm for generating the first check byte, and the second check byte is generated based on the monitoring data in each data frame.

[0094] Step S206: Determine whether the second check byte is consistent with the first check byte. If yes, proceed to step S207; otherwise, proceed to step S208.

[0095] Determine whether the generated second check byte is the same as the received first check byte.

[0096] Step S207: Save the monitoring data and the corresponding data sequence number to the data array.

[0097] If the second check byte is the same as the first check byte, the monitoring data is confirmed to be correct, and the monitoring data and the corresponding data sequence number are saved to the data array.

[0098] Step S208: Generate error identifiers for the monitoring data, and save the error identifiers and the corresponding data sequence numbers of the monitoring data into the data array.

[0099] If the second check byte is different from the first check byte, an error identifier is generated for the monitoring data, and the error identifier and the corresponding data sequence number of the monitoring data are saved to the data array.

[0100] Step S209: Determine whether the monitored data in the data array is complete. If yes, proceed to step S210; otherwise, proceed to step S211.

[0101] Determine whether the data sequence number in the data array is missing and / or whether the data array contains error identifiers, that is, determine whether there are data frames lost during transmission and / or whether there are data frames with errors during transmission.

[0102] Step S210: End verification.

[0103] If there are no missing data numbers or error indicators in the data array, the received monitoring data is considered complete, and the verification ends.

[0104] Step S211: Return the data array to the smart terminal.

[0105] The data array indicates the missing data sequence number and the data sequence number corresponding to the monitoring data with transmission errors.

[0106] Step S212: The smart terminal parses the data array and generates a data acquisition instruction.

[0107] The smart terminal parses the data array, determines the data sequence number corresponding to the missing monitoring data in the data array, and generates a data acquisition instruction based on the data sequence number indicated by the data array.

[0108] Step S213: The smart terminal sends the data acquisition command to the sensing device.

[0109] A data acquisition command is sent to the sensing device to obtain the target data frame. The data acquisition command indicates the data sequence number corresponding to the target data frame.

[0110] Step S214: The sensing device acquires the target data frame according to the data acquisition instruction.

[0111] The sensing device retrieves the target data frame corresponding to the data sequence number indicated by the data acquisition command from the local memory.

[0112] Step S215: The sensing device sends the target data frame to the smart terminal.

[0113] Step S216: Execute step S203.

[0114] As can be seen from the data transmission method of this embodiment, multiple data frames are acquired from a sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired: the monitoring data is checked for integrity based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames; and the target data frames returned by the sensing device based on the data acquisition instruction are received via the near-field transmission protocol. This achieves data accuracy verification via the check byte and data integrity verification based on the accuracy verification result and the data sequence number. If incomplete monitoring data is detected, the missing data is reacquired until correct and complete data is obtained, thereby avoiding data loss and data transmission errors, and achieving the goal of providing reliable data for remote diagnosis.

[0115] Figure 3 This is a schematic diagram of the main modules of a data transmission device according to an embodiment of the present invention.

[0116] The data transmission device in this embodiment of the invention can be a terminal, a remote server, or a system composed of a terminal and a remote server.

[0117] like Figure 3 As shown, the data transmission device 300 of this embodiment includes:

[0118] The first receiving module 301 is configured to acquire multiple data frames from the sensing device via a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; and is also configured to receive a target data frame returned by the sensing device according to the data acquisition instruction via the near-field transmission protocol.

[0119] The data verification module 302 is used to repeatedly execute the following steps until complete monitoring data is obtained: perform integrity verification on the monitoring data according to the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, trigger the transmission feedback module 303;

[0120] The transmission feedback module 303 is used to generate a corresponding data acquisition instruction based on one or more target data frames corresponding to the incomplete monitoring data, and return the data acquisition instruction to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively.

[0121] In one embodiment of the present invention, the data verification module 302 is further configured to perform at least one of the following:

[0122] Determine whether the data sequence numbers are consecutive in order to perform integrity verification on the monitoring data;

[0123] The monitoring data is subjected to accuracy verification based on the first verification byte, and the monitoring data is subjected to integrity verification based on the accuracy verification result and the data sequence number.

[0124] In one embodiment of the present invention, the data verification module 302 is further configured to generate second verification bytes corresponding to the plurality of data frames respectively according to the verification byte generation algorithm; and compare the second verification bytes with the first verification bytes respectively to verify the accuracy of the monitoring data.

[0125] In one embodiment of the present invention, the data verification module 302 is further configured to, for each data frame, generate a position number for each byte of the monitoring data included in the data frame; and generate a second verification byte based on the position number and the value corresponding to each byte.

[0126] In one embodiment of the present invention, the data verification module 302 is further configured to calculate the product of the value corresponding to each byte and the corresponding position number; sum the products corresponding to the multiple bytes included in the monitoring data to obtain a summing result; and obtain the second verification byte based on the summing result.

[0127] In one embodiment of the present invention, the data verification module 302 is further configured to: generate a data array based on the monitoring data and the corresponding data sequence number when the comparison results of the second verification byte and the first verification byte are consistent; generate a verification error identifier when the comparison results of the second verification byte and the first verification byte are inconsistent, and generate a data array based on the verification error identifier and the corresponding data sequence number; and determine whether the data array contains the verification error identifier in order to perform integrity verification on the monitoring data.

[0128] Figure 4 This is a schematic diagram illustrating the main steps of applying the data transmission method according to an embodiment of the present invention to a sensing device.

[0129] like Figure 4 As shown, the data transmission method of this invention applied to a sensing device mainly includes the following steps:

[0130] Step S401: Send multiple data frames to the data transmission device via the near-field transmission protocol so that the data transmission device can verify the data frames; each data frame includes monitoring data, a first verification byte, and a data sequence number.

[0131] In this embodiment of the invention, the data transmission device may be a terminal, a remote server, or a system composed of a terminal and a remote server.

[0132] In one embodiment of the present invention, the method further includes: grouping the monitoring data and generating a first verification byte and a data sequence number for each group of monitoring data; assembling each group of monitoring data and the corresponding first verification byte and data sequence number into a data frame according to a predetermined data format.

[0133] The sensing device can divide the monitoring data into multiple data segments according to the monitoring duration, generate a first check byte for each data segment, and assign a data sequence number to each data segment. The check byte generation algorithm used by the sensing device is the same as that used by the data transmission device. Each data segment, along with its corresponding first check byte and data sequence number, is assembled into a data frame according to the data format specified in the protocol. Multiple data frames are then sent to the data transmission device via a near-field transmission protocol. After receiving the multiple data frames, the data transmission device verifies each data frame and determines the integrity of the monitoring data based on the verification results.

[0134] In one embodiment of the present invention, generating a first verification byte for each set of monitoring data includes: generating the first verification byte for each set of monitoring data according to the same algorithm as the verification byte generation algorithm used by the data transmission device.

[0135] Before assembling the data frame, the sensing device generates a first check byte for the monitoring data corresponding to each data segment. The algorithm used to generate the first check byte is the same as the algorithm used by the data transmission device to generate the second check byte. This achieves the purpose of verifying whether the sent data and the received data are consistent by comparing whether the first check byte and the second check byte are consistent.

[0136] Step S402: Upon receiving a data acquisition instruction sent by the data transmission device, wherein the data acquisition instruction indicates that the monitoring data is incomplete, the target data frame corresponding to the data sequence number indicated by the data acquisition instruction is sent to the data transmission device via the near-field transmission protocol, so that the data transmission device continues to verify the target data frame.

[0137] After the data transmission device performs integrity verification on the monitoring data and determines that the received monitoring data is incomplete, it generates a data acquisition instruction based on the verification result and sends the instruction to the sensing device. The data acquisition instruction specifies the data sequence number corresponding to the target data frame to be acquired by the data transmission device. Upon receiving the data acquisition instruction, the sensing device sends the corresponding target data frame to the data transmission device according to its data sequence number. After receiving the target data frame, the data transmission device continues to verify it until a complete set of monitoring data is obtained.

[0138] Figure 5 This is a schematic diagram of the main modules of a sensing device according to an embodiment of the present invention.

[0139] like Figure 5 As shown, the sensing device 500 of this embodiment includes:

[0140] The second receiving module 501 is used to receive a data acquisition instruction returned by the data transmission device, wherein the data acquisition instruction indicates the data sequence number corresponding to one or more target data frames respectively;

[0141] The data acquisition module 502 is used to acquire the target data frame corresponding to the data sequence number from the local memory according to the data sequence number indicated by the data acquisition instruction;

[0142] The sending module 503 is used to send multiple data frames to the data transmission device via a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; it is also used to send the target data frame to the data transmission device.

[0143] In one embodiment of the present invention, the second receiving module 501 is further configured to group the monitoring data and generate a first verification byte and a data sequence number for each group of monitoring data; and assemble each group of monitoring data and the corresponding first verification byte and data sequence number into a data frame according to a predetermined data format.

[0144] In one embodiment of the present invention, the second receiving module 501 is further configured to generate the first verification byte for each group of the monitoring data according to the same verification byte generation algorithm used by the data transmission device.

[0145] Figure 6 This is a schematic diagram of the main modules of a data transmission system according to an embodiment of the present invention.

[0146] like Figure 6 As shown, the data transmission system 600 of this embodiment includes: a data transmission device 300 and a sensing device 500, wherein,

[0147] Data transmission device 300 is used to acquire multiple data frames from sensing device 500 via a near-field transmission protocol. Each data frame includes monitoring data, a first checksum byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired:

[0148] The monitoring data is subjected to integrity verification based on the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device 500; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively; the target data frames returned by the sensing device 500 according to the data acquisition instruction are received through the near-field transmission protocol.

[0149] Data transmission device 300 is used to acquire multiple data frames from sensing device 500 via a near-field transmission protocol, each data frame including monitoring data, a first checksum byte, and a data sequence number; and to repeatedly execute the following steps until complete monitoring data is acquired:

[0150] The monitoring data is subjected to integrity verification based on the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device 500; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively; the target data frames returned by the sensing device 500 according to the data acquisition instruction are received through the near-field transmission protocol.

[0151] In one embodiment of the present invention, the data transmission device 300 is further configured to determine whether the data sequence number is continuous in order to perform integrity verification on the monitoring data; and / or perform accuracy verification on the monitoring data based on the first verification byte, and perform integrity verification on the monitoring data based on the accuracy verification result and the data sequence number.

[0152] In one embodiment of the present invention, the data transmission device 300 is further configured to generate second verification bytes corresponding to the plurality of data frames respectively according to the verification byte generation algorithm; and compare the second verification bytes with the first verification bytes respectively to verify the accuracy of the monitoring data.

[0153] In one embodiment of the present invention, the data transmission device 300 is further configured to, for each data frame, generate a position number for each byte of monitoring data included in the data frame; and generate a second verification byte based on the position number and the value corresponding to each byte.

[0154] In one embodiment of the present invention, the data transmission device 300 is further configured to calculate the product of the value corresponding to each byte and the corresponding position number; sum the products corresponding to the multiple bytes included in the monitoring data to obtain a summing result; and obtain the second verification byte based on the summing result.

[0155] In one embodiment of the present invention, the data transmission device 300 is further configured to: generate a data array based on the monitoring data and the corresponding data sequence number when the comparison result of the second verification byte and the first verification byte is consistent; generate a verification error identifier when the comparison result of the second verification byte and the first verification byte is inconsistent, and generate a data array based on the verification error identifier and the corresponding data sequence number; determine whether the data array contains the verification error identifier, so as to perform integrity verification on the monitoring data.

[0156] The sensing device 500 is configured to receive a data acquisition instruction returned by the data transmission device 300, wherein the data acquisition instruction indicates a data sequence number corresponding to one or more target data frames; acquire the target data frame corresponding to the data sequence number indicated by the data acquisition instruction from a local memory; send multiple data frames to the data transmission device 300 via a near-field transmission protocol, wherein each data frame includes monitoring data, a first checksum byte, and a data sequence number; and further be configured to send the target data frame to the data transmission device 300.

[0157] In one embodiment of the present invention, the sensing device 500 is further configured to group the monitoring data and generate a first verification byte and a data sequence number for each group of monitoring data; and assemble each group of monitoring data and the corresponding first verification byte and data sequence number into a data frame according to a predetermined data format.

[0158] In one embodiment of the present invention, the sensing device 500 is further configured to generate the first check byte for each set of the monitoring data according to the same check byte generation algorithm used by the data transmission device 300.

[0159] As can be seen from the data transmission system of this embodiment, multiple data frames are acquired from a sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired: the monitoring data is checked for integrity based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames; and the target data frames returned by the sensing device based on the data acquisition instruction are received via the near-field transmission protocol. This achieves data accuracy verification via the check byte and data integrity verification based on the accuracy verification result and the data sequence number. If incomplete monitoring data is detected, the missing data is reacquired until correct and complete data is obtained, thereby avoiding data loss and data transmission errors, and achieving the goal of providing reliable data for remote diagnosis.

[0160] Figure 7 An exemplary system architecture 700 is shown that can be applied to the data transmission method or data transmission system of the present invention.

[0161] like Figure 7 As shown, system architecture 700 may include terminal devices 701, 702, and 703, a network 704, and a server 705. Network 704 serves as the medium for providing communication links between terminal devices 701, 702, and 703 and server 705. Network 704 may include various connection types, such as wired or wireless communication links, or fiber optic cables, etc.

[0162] Users can use terminal devices 701, 702, and 703 to interact with server 705 via network 704 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 701, 702, and 703, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social media platform software, etc.

[0163] Terminal devices 701, 702, and 703 can be various electronic devices with displays and web browsing capabilities, including but not limited to smartphones, tablets, laptops, and desktop computers.

[0164] Server 705 can be a server providing various services, such as a backend management server supporting shopping websites browsed by users using terminal devices 701, 702, and 703. The backend management server can analyze and process received data acquisition commands and other data, and then feed back the target data frame indicated by the data acquisition command to the terminal device.

[0165] It should be understood that Figure 7 The number of terminal devices, networks, and servers shown is merely illustrative. Depending on implementation needs, any number of terminal devices, networks, and servers can be included.

[0166] The following is for reference. Figure 8 It shows a schematic diagram of the structure of a computer system 800 suitable for implementing a terminal device of the present invention. Figure 8 The terminal device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0167] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 802 or programs loaded from storage section 808 into random access memory (RAM) 803. The RAM 803 also stores various programs and data required for the operation of the system 800. The CPU 801, ROM 802, and RAM 803 are interconnected via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.

[0168] The following components are connected to I / O interface 805: an input section 806 including a keyboard, mouse, etc.; an output section 807 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN card, modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to I / O interface 805 as needed. A removable medium 811, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 810 as needed so that computer programs read from it can be installed into storage section 808 as needed.

[0169] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 809, and / or installed from removable medium 811. When the computer program is executed by central processing unit (CPU) 801, it performs the functions defined above in the system of this invention.

[0170] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0171] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0172] The modules described in the embodiments of the present invention can be implemented in software or hardware. The described modules can also be housed in a processor; for example, a processor can be described as including a first receiving module, a data verification module, and a transmission feedback module. The names of these modules do not necessarily limit the module itself; for example, the transmission feedback module can also be described as a "module that returns data acquisition instructions to a sensing device."

[0173] In another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiments; or it may exist independently and not assembled into the device. The computer-readable medium carries one or more programs that, when executed by the device, cause the device to: acquire multiple data frames from a sensing device via a near-field transmission protocol, each data frame including monitoring data, a first checksum byte, and a data sequence number; and cyclically execute the following steps until complete monitoring data is acquired:

[0174] The monitoring data is subjected to integrity verification based on the first verification byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively; the target data frames returned by the sensing device based on the data acquisition instruction are received through the near-field transmission protocol.

[0175] According to the technical solution of this invention, multiple data frames are acquired from a sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The following steps are executed cyclically until complete monitoring data is acquired: The monitoring data is checked for integrity based on the first check byte and the data sequence number; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames; and the target data frames returned by the sensing device based on the data acquisition instruction are received via the near-field transmission protocol. This achieves data accuracy verification via the check byte and data integrity verification based on the accuracy verification result and the data sequence number. If incomplete monitoring data is detected, the missing data is reacquired until correct and complete data is obtained, thereby avoiding data loss and data transmission errors, and achieving the goal of providing reliable data for remote diagnosis.

[0176] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A data transmission method, characterized in that, include: Multiple data frames are acquired from a sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first checksum byte, and a data sequence number. The sensing device is used to monitor human physiological signals. Repeat the following steps until complete monitoring data is obtained: The integrity verification of the monitoring data based on the first verification byte and the data sequence number specifically includes: performing an accuracy verification of the monitoring data based on the first verification byte, and performing an integrity verification of the monitoring data based on the accuracy verification result and the data sequence number; the accuracy verification of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to a verification byte generation algorithm; comparing the second verification byte with the first verification byte respectively to perform an accuracy verification of the monitoring data; specifically including: if the comparison result of the second verification byte and the first verification byte is consistent, performing an accuracy verification of the monitoring data based on the monitoring data and the corresponding data sequence number. A data array is generated from the data sequence number. If the comparison results of the second and first verification bytes are inconsistent, a verification error identifier is generated, and a data array is generated based on the verification error identifier and the corresponding data sequence number. It is determined whether the data array contains the verification error identifier to perform integrity verification on the monitoring data. Specifically, after the data accuracy verification is completed, it is determined whether the data sequence numbers in the data array are consecutive and whether the data array contains an error identifier. The data frames corresponding to missing data sequence numbers and the data frames corresponding to error identifiers are the data frames lost or erroneously transmitted during transmission. If the data sequence numbers in the data array are not consecutive and / or contain an error identifier, the monitoring data is determined to be incomplete. If the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data. The data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively; The target data frame returned by the sensing device according to the data acquisition instruction is received through the near-field transmission protocol.

2. The method according to claim 1, characterized in that, The step of performing integrity verification on the monitoring data based on the first verification byte and the data sequence number further includes: Determine whether the data sequence numbers are consecutive in order to perform integrity verification on the monitoring data.

3. The method according to claim 1, characterized in that, The step of generating second check bytes corresponding to the plurality of data frames according to the check byte generation algorithm includes: For each of the data frames: generate a position number for each byte of the monitoring data included in the data frame; The second verification byte is generated based on the position number and the value corresponding to each byte.

4. The method according to claim 3, characterized in that, The step of generating the second verification byte based on the position number and the value corresponding to each byte includes: Calculate the product of the value corresponding to each byte and its corresponding position number; The products corresponding to the multiple bytes included in the monitoring data are summed to obtain a summation result; The second check byte is obtained based on the summation result.

5. A data transmission device, characterized in that, include: The first receiving module is used to acquire multiple data frames from the sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first check byte, and a data sequence number. The sensing device is used to monitor human physiological signals. The module is also used to receive the target data frame returned by the sensing device according to the data acquisition instruction via the near-field transmission protocol. The data verification module is used to repeatedly execute the following steps until complete monitoring data is obtained: The integrity verification of the monitoring data based on the first verification byte and the data sequence number specifically includes: performing an accuracy verification of the monitoring data based on the first verification byte, and performing an integrity verification of the monitoring data based on the accuracy verification result and the data sequence number; the accuracy verification of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to a verification byte generation algorithm; comparing the second verification byte with the first verification byte respectively to perform an accuracy verification of the monitoring data; specifically including: if the comparison result of the second verification byte and the first verification byte is consistent, performing an accuracy verification of the monitoring data based on the monitoring data and the corresponding data sequence number. A data array is generated from the data sequence number. If the comparison results of the second and first verification bytes are inconsistent, a verification error identifier is generated, and a data array is generated based on the verification error identifier and the corresponding data sequence number. It is determined whether the data array contains the verification error identifier to perform integrity verification on the monitoring data. Specifically, after the data accuracy verification is completed, it is determined whether the data sequence numbers in the data array are consecutive and whether the data array contains an error identifier. The data frames corresponding to missing data sequence numbers and the data frames corresponding to error identifiers are the data frames lost or erroneously transmitted during transmission. If the data sequence numbers in the data array are not consecutive and / or contain an error identifier, the monitoring data is determined to be incomplete. If the monitoring data is found to be incomplete, the transmission feedback module is triggered; The transmission feedback module is used to generate a corresponding data acquisition instruction based on one or more target data frames corresponding to the incomplete monitoring data, and return the data acquisition instruction to the sensing device; the data acquisition instruction indicates the data sequence number corresponding to the one or more target data frames respectively.

6. A data transmission method, characterized in that, include: Multiple data frames are sent to the data transmission device via a near-field transmission protocol so that the data transmission device can verify the data frames. Each data frame includes monitoring data, a first checksum byte, and a data sequence number; the monitoring data is obtained by monitoring human physiological signals. The data transmission device is used to perform accuracy verification on the monitoring data based on the first verification byte, and to perform integrity verification on the monitoring data based on the accuracy verification result and the data sequence number. The accuracy verification of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to the verification byte generation algorithm; comparing the second verification bytes with the first verification bytes respectively to verify the accuracy of the monitoring data; specifically including: when the comparison results of the second verification byte and the first verification byte are consistent, generating a data array based on the monitoring data and the corresponding data sequence number; when the comparison results of the second verification byte and the first verification byte are inconsistent, generating a verification error identifier, and generating a data array based on the verification error identifier and the corresponding data sequence number; determining whether the data array contains the verification error identifier to verify the integrity of the monitoring data; wherein, after the data accuracy verification is completed, determining whether the data sequence numbers in the data array are consecutive, and determining whether the data array contains an error identifier, the data frame corresponding to the missing data sequence number and the data frame corresponding to the error identifier are the data frames lost or erroneous during transmission; if the data sequence numbers in the data array are not consecutive and / or contain an error identifier, it is determined that the monitoring data is incomplete; Upon receiving a data acquisition instruction from the data transmission device, wherein the data acquisition instruction indicates that the monitoring data is incomplete, According to the data sequence number corresponding to one or more target data frames indicated by the data acquisition instruction, the target data frame corresponding to the data sequence number is sent to the data transmission device through the near-field transmission protocol, so that the data transmission device can continue to verify the target data frame.

7. The method according to claim 6, characterized in that, Also includes: The monitoring data is grouped, and a first check byte and a data sequence number are generated for each group of monitoring data. Each set of monitoring data, along with the corresponding first verification byte and the data sequence number, is assembled into a data frame according to a predetermined data format.

8. The method according to claim 7, characterized in that, The process of generating a first verification byte for each set of monitoring data includes: The first check byte is generated for each set of monitoring data according to the same check byte generation algorithm used by the data transmission device.

9. A sensing device, characterized in that, Used to monitor human physiological signals, including: The second receiving module is used to receive a data acquisition instruction returned by the data transmission device, wherein the data acquisition instruction indicates the data sequence number corresponding to one or more target data frames respectively; the data transmission device is used to acquire multiple data frames from the sensing device through a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; the sensing device is used to monitor human physiological signals; the data transmission device is used to repeatedly execute the following steps until complete monitoring data is acquired: performing accuracy verification on the monitoring data according to the first check byte, and performing integrity verification on the monitoring data according to the accuracy verification result and the data sequence number; the accuracy verification on the monitoring data according to the first check byte includes: generating a second check byte corresponding to each of the multiple data frames according to a check byte generation algorithm; and performing separate processing on the second check byte and the first check byte respectively. The system performs line comparison to verify the accuracy of the monitoring data; it is also used to generate a data array based on the monitoring data and the corresponding data sequence number when the comparison results of the second verification byte and the first verification byte are consistent; when the comparison results of the second verification byte and the first verification byte are inconsistent, a verification error identifier is generated, and a data array is generated based on the verification error identifier and the corresponding data sequence number; it determines whether the data array contains the verification error identifier to perform integrity verification of the monitoring data; wherein, after the data accuracy verification is completed, it is determined whether the data sequence numbers in the data array are consecutive and whether the data array contains an error identifier, the data frame corresponding to the missing data sequence number and the data frame corresponding to the error identifier are the data frames lost or erroneous during transmission; if the data sequence numbers in the data array are not consecutive and / or contain an error identifier, it is determined that the monitoring data is incomplete; The data acquisition module is used to acquire the target data frame corresponding to the data sequence number from the local memory according to the data sequence number indicated by the data acquisition instruction; The sending module is used to send multiple data frames to the data transmission device via a near-field transmission protocol, each data frame including monitoring data, a first check byte, and a data sequence number; it is also used to send the target data frame to the data transmission device.

10. A data transmission system, characterized in that, include: The data transmission device of claim 5 and the sensing device of claim 9, wherein, The data transmission device is used to acquire multiple data frames from the sensing device via a near-field transmission protocol. Each data frame includes monitoring data, a first checksum byte, and a data sequence number. The sensing device is used to monitor human physiological signals. The following steps are executed cyclically until complete monitoring data is acquired: The integrity verification of the monitoring data based on the first verification byte and the data sequence number specifically includes: performing an accuracy verification of the monitoring data based on the first verification byte, and performing an integrity verification of the monitoring data based on the accuracy verification result and the data sequence number; the accuracy verification of the monitoring data based on the first verification byte includes: generating second verification bytes corresponding to the plurality of data frames respectively according to a verification byte generation algorithm; comparing the second verification byte with the first verification byte respectively to perform an accuracy verification of the monitoring data; specifically including: if the comparison result of the second verification byte and the first verification byte is consistent, generating a data array based on the monitoring data and the corresponding data sequence number; if the comparison result of the second verification byte and the first verification byte is inconsistent, generating a verification error identifier, and performing an accuracy verification based on the verification error identifier and the corresponding data sequence number. A data array is generated; it is determined whether the data array contains the verification error identifier to perform integrity verification on the monitoring data; wherein, after the data accuracy verification is completed, it is determined whether the data sequence numbers in the data array are consecutive and whether the data array contains error identifiers. The data frames corresponding to missing data sequence numbers and the data frames corresponding to error identifiers are data frames lost or erroneous during transmission; if the data sequence numbers in the data array are not consecutive and / or contain error identifiers, the monitoring data is determined to be incomplete; if the monitoring data is found to be incomplete, a corresponding data acquisition instruction is generated based on one or more target data frames corresponding to the incomplete monitoring data; the data acquisition instruction is returned to the sensing device; the data acquisition instruction indicates the data sequence numbers corresponding to the one or more target data frames respectively; the target data frames returned by the sensing device according to the data acquisition instruction are received through the near-field transmission protocol.

11. An electronic device for data transmission, characterized in that, include: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-4, 6-8.

12. A computer-readable medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the method as described in any one of claims 1-4 and 6-8.

Citation Information

Patent Citations

  • CAN bus data transmission method

    CN101764730A

  • Processing method, monitoring equipment and computer readable storage medium for monitoring data

    CN113812930A