Data communication method and system and anesthesia depth monitor
By transforming byte count and transmitting data frames of the anesthesia depth monitor in parallel, encrypted communication between the parameter board and the main control board is realized, which solves the problem of insufficient data transmission security, simplifies the encryption circuit and reduces the signal interference.
Patent Information
- Application Number
- CN202411048307.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
AI Technical Summary
The data communication between the parameter board of the anesthesia depth monitor and the main control board needs to be encrypted to ensure the security of data transmission, but the prior art is difficult to implement complex encryption circuits while considering signal interference issues, resulting in insufficient security of data transmission.
By performing preset quantity transformation rules processing on the bytes of the data frame, an encrypted frame is formed and synchronously transmitted on the parallel transmission interface, the encrypted data transmission is realized during the transmission process using inverse data splitting and merging rules.
The security of data transmission of the anesthesia depth monitor is realized, while reducing electrical signal interference, simplifying the encryption circuit, and ensuring the security and stability of data transmission.
Smart Images

Figure CN119011228A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical detection data security, and in particular to a data communication method, system and anesthesia depth monitor. Background Art
[0002] The monitoring results or intermediate data of medical testing equipment involve privacy protection. Security permissions need to be set, which means that the data communication process between devices or between functional modules needs to be encrypted. For example, the anesthesia depth monitor is equipped with a parameter board and a main control board. The parameter board is responsible for amplifying and converting analog signals to obtain the original source data, and the main control board is responsible for processing the raw data obtained by monitoring and interacting with the human-computer interface. In order for the parameter board to send the raw data obtained by monitoring to the main control board, data communication is required. In order to ensure the communication security of the transmitted data (raw data) between the parameter board and the main control board, it is necessary to set a data transmission method with encryption function during the communication process. Summary of the invention
[0003] The main technical problem solved by the present application is how to encrypt the data communication between the parameter board and the main control board of the anesthesia depth monitor.
[0004] According to the first aspect, an embodiment provides a data communication method for encrypting communication transmitted between a parameter board and a main control board in an anesthesia depth monitor, the data communication method comprising: The data sending end of the parameter board splits the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and the data transmission sequence is a sequence of frames arranged in a preset order; each of the frames includes at least n bytes, where n is an integer greater than 3; the parameter board transmits the raw data to the main control board in units of the frames in sequence; According to a preset first byte quantity conversion rule, the number of bytes of the frame to be transmitted is converted from n to m to obtain an encrypted frame, and the encrypted frame is transmitted to the main control board for communication; wherein the encrypted frame includes m bytes, m is an integer not equal to n and greater than 2; each byte of the encrypted frame is obtained based on each byte of the frame; When the data receiving end of the main control board receives all bytes of the encrypted frame, the m bytes of the encrypted frame are converted into n bytes according to a preset second byte quantity conversion rule to obtain the frame; wherein the first byte quantity conversion rule and the second byte quantity conversion rule are rules of mutually inverse processes; After the main control board obtains all the frames, it arranges the frames according to the preset order to obtain the data transmission sequence, and restores the data transmission sequence to the original data according to a preset data merging rule; wherein the data splitting rule and the data merging rule are rules of inverse processes.
[0005] In one embodiment, the step of converting the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to obtain an encrypted frame includes: The first byte quantity conversion rule is a quantity increase rule, and the quantity increase rule is used to obtain m bytes of data of the encrypted frame according to n bytes of data of the frame, wherein m is greater than n; The quantity increase rules include: The encrypted frame includes n bytes of data of the frame, and each byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected from the n bytes of data of the frame according to a preset selection position rule.
[0006] In one embodiment, the quantity increase rule further includes: m is equal to n+1, and the one byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected at the same position from the n bytes of data in the frame.
[0007] In one embodiment, the converting the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to obtain an encrypted frame includes: The first byte quantity transformation rule is a quantity reduction rule, and the quantity reduction rule is used to obtain m bytes of data of the encrypted frame according to n bytes of data of the frame, wherein m is less than n; The quantity reduction rules include: At least one byte data is selected from the n byte data of the frame according to a preset byte selection rule for splitting, and the byte data obtained after splitting is merged into the unselected byte data, so that the n byte data of the frame is converted into m byte data, thereby obtaining the encrypted frame.
[0008] In one embodiment, the quantity reduction rule further includes: m-1 is equal to n, and the one byte of data reduced in the encrypted frame compared to the frame is a byte of data randomly selected from the n bytes of data in the frame, which is split and the split byte data is merged into other bytes.
[0009] In one embodiment, the parameter board splits the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and the data transmission sequence is a sequence of frames arranged in a preset order, including: The number of bytes of each frame is the same, and when the number of bytes of the last frame is insufficient, it is supplemented according to a preset value of 1 or 0.
[0010] In one embodiment, the data communication method further includes: The data communication between the parameter board and the main control board is performed via a parallel transmission interface, and the number of data transmission lines used for the parallel transmission interface is the same as the number of bytes of the encrypted frame.
[0011] According to the second aspect, an embodiment provides a computer-readable storage medium, on which a computer program is stored. The computer program can be executed by a processor to implement the data communication method described in the first aspect.
[0012] According to the third aspect, an embodiment provides an anesthesia depth monitor, comprising a computer program and / or instructions, wherein the computer program and / or instructions, when executed by a processor, implement the data communication method described in the first aspect.
[0013] According to a fourth aspect, an embodiment provides a data communication system for applying the data communication method according to the first aspect, the data communication system comprising: A data sending module is arranged on the parameter board of the anesthesia depth monitor; the data sending module comprises a frame acquisition unit and an encrypted frame acquisition unit; The frame acquisition unit is used to split the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and the data transmission sequence is a sequence of frames arranged in a preset order; each of the frames includes at least n bytes, where n is an integer greater than 3; the parameter board transmits the raw data to the main control board in units of the frames in sequence; The encrypted frame acquisition unit is used to convert the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to acquire an encrypted frame, and transmit the encrypted frame to the main control board for communication; wherein the encrypted frame includes m bytes, m is an integer not equal to n and greater than 2; each byte of the encrypted frame is acquired based on each byte of the frame; The data communication system further comprises a data receiving module arranged on the main control board of the anesthesia depth monitor; the data receiving module comprises a frame conversion unit and a data recovery unit; The frame conversion unit is used for converting m bytes of the encrypted frame into n bytes according to a preset second byte quantity conversion rule after the main control board receives all bytes of the encrypted frame, so as to obtain the frame; wherein the first byte quantity conversion rule and the second byte quantity conversion rule are rules of mutually inverse processes; The data recovery unit is used to arrange the frames according to the preset order after the main control board obtains all the frames to obtain the data transmission sequence, and restore the data transmission sequence to the original data according to a preset data merging rule; wherein the data splitting rule and the data merging rule are rules of inverse processes.
[0014] According to the data communication method of the above embodiment, by converting the number of bytes of the frames in the transmission process before transmission, the data communication between the parameter board and the main control board is encrypted, thereby ensuring the security of data transmission of the anesthesia depth monitor. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of a flow chart of a data communication method in an embodiment; Figure 2 A structural block diagram of a data communication system in an embodiment; Figure 3 A schematic diagram of byte arrangement of a frame in an embodiment; Figure 4 A schematic diagram of byte addition in one embodiment; Figure 5 A schematic diagram of byte arrangement of an encrypted frame in an embodiment; Figure 6 A schematic diagram of frame byte data recovery in an embodiment; Figure 7 A schematic diagram of byte arrangement of a restored frame in an embodiment. DETAILED DESCRIPTION
[0016] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0017] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0018] The serial numbers assigned to the components herein, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0019] There are many encryption methods for data communication in the prior art. However, when designing the data sending device used for communication on the parameter board of the anesthesia depth monitor, it is necessary to consider the signal interference problem. Therefore, the circuit should be simplified as much as possible, and complex encryption circuits should not be used, and encryption circuits that may interfere with product signals should not be set.
[0020] In the embodiment of the present application, the byte arrangement order in each frame of data is transformed before transmission, which not only realizes the encryption of the communication process, but also can apply non-interference and simple encryption circuits, which can not only ensure the security of data transmission but also minimize the interference of its own electrical signals.
[0021] Embodiment 1: Please refer to Figure 1 , is a flow chart of a data communication method in an embodiment, the data communication method is used for communication encryption between a parameter board and a main control board in an anesthesia depth monitor, and specifically includes: Step 101: Acquire a data transmission sequence.
[0022] The data transmitting end of the parameter board of the anesthesia depth monitor splits the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule. The data transmission sequence is a sequence of frames arranged in a preset order, wherein each frame includes at least n bytes, wherein n is an integer greater than 3, and the parameter board transmits the raw data to the main control board in units of frames. In one embodiment, the number of bytes of each frame of the data transmission sequence is the same, and when the number of bytes of the last frame is insufficient, it is supplemented by a preset value of 1 or 0.
[0023] Step 102, obtaining an encrypted frame.
[0024] According to a preset first byte quantity conversion rule, the number of bytes of the current frame to be transmitted is converted from n to m to obtain an encrypted frame, and the encrypted frame is transmitted to the main control board for communication. The encrypted frame includes m bytes, m is an integer not equal to n and greater than 2, and each byte of the encrypted frame is obtained according to each byte of the frame.
[0025] In one embodiment, data communication between the parameter board and the main control board is performed through a parallel transmission interface. The number of data transmission lines used for the parallel transmission interface is the same as the number of bytes in the encryption frame to ensure that all bytes of each encryption frame are synchronously transmitted to the main control board.
[0026] In one embodiment, the first byte quantity transformation rule is a quantity increase rule, and the quantity increase rule is used to obtain m bytes of data of the encrypted frame based on n bytes of data of the frame, wherein m is greater than n, and the quantity increase rule specifically includes: the encrypted frame includes n bytes of data of the frame, and each byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected from the n bytes of data of the frame according to a preset selection position rule. In one embodiment, m is equal to n+1, and the one byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected from the same position of the n bytes of data of the frame.
[0027] In one embodiment, the first byte quantity conversion rule is a quantity reduction rule, and the quantity reduction rule is used to obtain m bytes of data of the encrypted frame based on n bytes of data of the frame, wherein m is less than n, and the quantity reduction rule includes: selecting at least one byte of data from the n bytes of data of the frame according to a preset byte selection rule for splitting, and merging the byte data obtained after splitting into the byte data not selected, so that the n bytes of data of the frame are converted into m bytes of data, and then the encrypted frame is obtained. In one embodiment, m-1 is equal to n, and the one byte of data reduced by the encrypted frame compared to the frame is a byte of data randomly selected from the n bytes of data of the frame for splitting, and the split byte data is merged into other bytes.
[0028] Step 103: Convert the received encrypted frame back to a frame.
[0029] When the data receiving end of the main control board receives all bytes of the encrypted frame, the m bytes of the encrypted frame are converted into n bytes according to a preset second byte quantity conversion rule to obtain the frame. The first byte quantity conversion rule and the second byte quantity conversion rule are rules of mutually inverse processes.
[0030] Step 104, obtaining original data.
[0031] After the main control board acquires all frames, it arranges the frames according to a preset order to acquire a data transmission sequence, and restores the data transmission sequence to original data according to a preset data merging rule, wherein the data splitting rule and the data merging rule are rules of mutually inverse processes.
[0032] Please refer to Figure 2 , is a structural block diagram of a data communication system in an embodiment. An embodiment of the present application also discloses a data communication system for applying the data communication method as described above, including a data sending module 1 arranged on a parameter board of anesthesia depth monitor, and the data sending module 1 includes a frame acquisition unit 11 and an encrypted frame acquisition unit 12. The frame acquisition unit 11 is used to split the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule. The data transmission sequence is a sequence of frames arranged in a preset order, and each frame includes at least n bytes, where n is an integer greater than 3. The parameter board transmits the raw data to the main control board in units of frames. The encrypted frame acquisition unit 12 is used to convert the number of bytes of the current frame to be transmitted from n to m according to a preset first byte quantity conversion rule to obtain an encrypted frame, and transmit the encrypted frame to the main control board for communication. Among them, the encrypted frame includes m bytes, m is an integer not equal to n and greater than 2, and each byte of the encrypted frame is acquired based on each byte of the frame.
[0033] In one embodiment, the data communication system also includes a data receiving module 2 disposed on the main control board of the anesthesia depth monitor, and the data receiving module 2 includes a frame conversion unit 21 and a data recovery unit 22. The frame conversion unit 21 is used to convert the m bytes of the encrypted frame into n bytes according to a preset second byte quantity conversion rule after the main control board receives all the bytes of the encrypted frame to obtain a frame. The first byte quantity conversion rule and the second byte quantity conversion rule are rules of an inverse process. The data recovery unit 22 is used to arrange the frames according to a preset order after the main control board obtains all the frames to obtain a data transmission sequence, and restore the data transmission sequence to the original data according to a preset data merging rule, wherein the data splitting rule and the data merging rule are rules of an inverse process.
[0034] The following describes the application of the data communication method disclosed in the present application through a specific embodiment, which specifically includes: The data communication between the parameter board and the main control board is transmitted in units of 8 bytes. When the original data is split into frames, if the bytes of the frame are less than 8 bytes, data 0 or 1 is used to fill it until 8 bytes are met.
[0035] The conversion process of the encrypted frame is as follows: Please refer to Figure 3 , is a schematic diagram of the byte arrangement of a frame in an embodiment, where data is taken out from the original data stream in units of bytes and divided into a group of 8 bytes, that is, n=8.
[0036] Please refer to Figure 4 , is a schematic diagram of byte addition in an embodiment, where 1 byte of data is added after the data group of 8 bytes from the 0th byte to the 7th byte, i.e., the 8th byte is obtained. Specifically, the lowest bit of bytes 0-7 is taken out, and copied to the 8th byte in sequence in bits: the 0th bit of the 0th byte is copied to the 0th bit of the 8th byte, the 0th bit of the 1st byte is copied to the 1st bit of the 8th byte, the 0th bit of the 2nd byte is copied to the 2nd bit of the 8th byte, the 0th bit of the 3rd byte is copied to the 3rd bit of the 8th byte, the 0th bit of the 4th byte is copied to the 4th bit of the 8th byte, the 0th bit of the 5th byte is copied to the 5th bit of the 8th byte, the 0th bit of the 6th byte is copied to the 6th bit of the 8th byte, and the 0th bit of the 7th byte is copied to the 7th bit of the 8th byte; Please refer to Figure 5 , is a schematic diagram of the byte arrangement of an encrypted frame in an embodiment, where the 0th bits from the 0th byte to the 7th byte are all set to 0, such as Figure 4 At this time, m=9, and these 9 bytes of data are used as encrypted data.
[0037] The frame recovery process is as follows: Please refer to Figure 6 , is a schematic diagram of frame byte data recovery in an embodiment, taking out the 9 bytes of data of the encrypted frame. Taking out each bit in the 8th byte, and filling it into the first bit of the 0th to 7th bytes in sequence, as shown in FIG. Figure 5 shown.
[0038] Please refer to Figure 7 , is a schematic diagram of the byte arrangement of a restored frame in an embodiment. After deleting the 8th byte, the 0th to 7th bytes are arranged in the original order, and the frame can be restored.
[0039] The data communication method used in this embodiment uses only relatively low computing power, has high speed and low delay.
[0040] The data communication method disclosed in the present application includes: first, the data sending end of the parameter board splits the original data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and transmits the original data to the main control board in sequence in units of frames of the data transmission sequence; then, the number of bytes of the frame to be transmitted is converted from n to m, and the encrypted frame acquired after the conversion is sent to the main control board; when the main control board receives all the bytes of the encrypted frame, the encrypted frame is converted back to a frame; finally, when the main control board acquires all the frames, the original data is restored according to a data merging rule that is the inverse of the data splitting rule. Since the frames in the transmission process are converted in number of bytes before being transmitted, the data communication between the parameter board and the main control board is encrypted, thereby ensuring the security of data transmission of the anesthesia depth monitor.
[0041] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0042] The above specific examples are used to illustrate the present invention, which are only used to help understand the present invention and are not used to limit the present invention. For those skilled in the art to which the present invention belongs, some simple deductions, modifications or substitutions can be made according to the idea of the present invention.
Claims
1. A data communication method for encrypting the communication between the parameter board and the main control board in an anesthesia depth monitor, characterized in that: include: The data sending end of the parameter board splits the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and the data transmission sequence is a sequence of frames arranged in a preset order; each of the frames includes at least n bytes, where n is an integer greater than 3; the parameter board transmits the raw data to the main control board in units of the frames in sequence; According to a preset first byte quantity conversion rule, the number of bytes of the frame to be transmitted is converted from n to m to obtain an encrypted frame, and the encrypted frame is transmitted to the main control board for communication; wherein the encrypted frame includes m bytes, m is an integer not equal to n and greater than 2; each byte of the encrypted frame is obtained based on each byte of the frame; When the data receiving end of the main control board receives all bytes of the encrypted frame, the m bytes of the encrypted frame are converted into n bytes according to a preset second byte quantity conversion rule to obtain the frame; wherein the first byte quantity conversion rule and the second byte quantity conversion rule are rules of mutually inverse processes; After the main control board obtains all the frames, it arranges the frames according to the preset order to obtain the data transmission sequence, and restores the data transmission sequence to the original data according to a preset data merging rule; wherein the data splitting rule and the data merging rule are rules of inverse processes.
2. The data communication method according to claim 1, wherein: The step of converting the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to obtain an encrypted frame includes: The first byte quantity conversion rule is a quantity increase rule, and the quantity increase rule is used to obtain m bytes of data of the encrypted frame according to n bytes of data of the frame, wherein m is greater than n; The quantity increase rules include: The encrypted frame includes n bytes of data of the frame, and each byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected from the n bytes of data of the frame according to a preset selection position rule.
3. The data communication method according to claim 2, characterized in that: The quantity increase rules also include: m is equal to n+1, and the one byte of data added to the encrypted frame compared to the frame is obtained by combining byte data selected at the same position from the n bytes of data in the frame.
4. The data communication method according to claim 1, wherein: The step of converting the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to obtain an encrypted frame includes: The first byte quantity transformation rule is a quantity reduction rule, and the quantity reduction rule is used to obtain m bytes of data of the encrypted frame according to n bytes of data of the frame, wherein m is less than n; The quantity reduction rules include: At least one byte data is selected from the n byte data of the frame according to a preset byte selection rule for splitting, and the byte data obtained after splitting is merged into the unselected byte data, so that the n byte data of the frame is converted into m byte data, thereby obtaining the encrypted frame.
5. The data communication method according to claim 4, characterized in that: The quantity reduction rules also include: m-1 is equal to n, and the one byte of data reduced in the encrypted frame compared to the frame is a byte of data randomly selected from the n bytes of data in the frame, which is split and the split byte data is merged into other bytes.
6. The data communication method according to claim 1, wherein: The parameter board splits the raw data acquired through monitoring into a data transmission sequence according to a preset data splitting rule. The data transmission sequence is a sequence of frames arranged in a preset order, including: The number of bytes of each frame is the same, and when the number of bytes of the last frame is insufficient, it is supplemented according to a preset value of 1 or 0.
7. The data communication method according to claim 6, characterized in that: Also includes: The data communication between the parameter board and the main control board is performed via a parallel transmission interface, and the number of data transmission lines used for the parallel transmission interface is the same as the number of bytes of the encrypted frame.
8. A computer-readable storage medium, characterized in that: A computer program is stored on the medium, and the computer program can be executed by a processor to implement the data communication method according to any one of claims 1 to 7.
9. An anesthesia depth monitor, comprising a computer program and / or instructions, characterized in that: When the computer program and / or the instructions are executed by a processor, the data communication method according to any one of claims 1 to 7 is implemented.
10. A data communication system, characterized in that: For applying the data communication method according to any one of claims 1 to 7, the data communication system comprises: A data sending module is arranged on the parameter board of the anesthesia depth monitor; the data sending module comprises a frame acquisition unit and an encrypted frame acquisition unit; The frame acquisition unit is used to split the raw data acquired by monitoring into a data transmission sequence according to a preset data splitting rule, and the data transmission sequence is a sequence of frames arranged in a preset order; each of the frames includes at least n bytes, where n is an integer greater than 3; the parameter board transmits the raw data to the main control board in units of the frames in sequence; The encrypted frame acquisition unit is used to convert the number of bytes of the frame to be transmitted from n to m according to a preset first byte number conversion rule to acquire an encrypted frame, and transmit the encrypted frame to the main control board for communication; wherein the encrypted frame includes m bytes, m is an integer not equal to n and greater than 2; each byte of the encrypted frame is acquired based on each byte of the frame; The data communication system further comprises a data receiving module arranged on the main control board of the anesthesia depth monitor; the data receiving module comprises a frame conversion unit and a data recovery unit; The frame conversion unit is used for converting m bytes of the encrypted frame into n bytes according to a preset second byte quantity conversion rule after the main control board receives all bytes of the encrypted frame, so as to obtain the frame; wherein the first byte quantity conversion rule and the second byte quantity conversion rule are rules of mutually inverse processes; The data recovery unit is used to arrange the frames according to the preset order after the main control board obtains all the frames to obtain the data transmission sequence, and restore the data transmission sequence to the original data according to a preset data merging rule; wherein the data splitting rule and the data merging rule are rules of inverse processes.
