A blood glucose meter data communication method based on bit encryption

By adopting the bit encryption method in the blood glucose monitoring system, the security of data transmission and low power consumption are both taken into account, solving the problems of insufficient information security and excessive power consumption in sensor data transmission.

CN114630294BActive Publication Date: 2025-09-19SHENZHEN COFOE BIOTECHNOLOGY CO LTD
View PDF 2 Cites -1 Cited by

Patent Information

Application Number
CN202210427701.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-22
Publication Date
2025-09-19
Estimated Expiration
2042-04-22

AI Technical Summary

Technical Problem

In medical communication systems, especially blood glucose monitoring systems, there are problems of insufficient information security and excessive power consumption during sensor data transmission. Existing technologies make it difficult to achieve effective data encryption without increasing the amount of transmitted data.

Method used

A data communication method based on bit encryption is adopted to achieve encryption of data transmission through a low-power standby state and a bit key generation process between the transmitter and the receiver. The process includes steps such as the receiver requesting a connection, generating a bit key, encrypting and decrypting the data packet, ensuring that only the communicating parties can decrypt it.

Benefits of technology

Without increasing the amount of transmitted data, the security of data transmission is improved, the computing burden is reduced, and it is suitable for low-power devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114630294B_ABST
    Figure CN114630294B_ABST
Patent Text Reader

Abstract

The present invention relates to a data communication method for blood glucose meters based on bit encryption. This method is used to encrypt data transmission during communication between a transmitter and a receiver. The transmitter passively returns data, while the receiver actively sends commands. A secure connection data packet is used to confirm communication security, and a bit key is generated at the receiver. Plaintext data is encrypted using the bit key at the transmitter and decrypted using the bit key at the receiver. This method provides a simple encryption method between plaintext and complex encryption algorithms without increasing the amount of transmitted data, thereby increasing data security and reducing data computation. It is suitable for low-power devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data communication, and in particular to a data communication method for a blood glucose meter based on bit encryption. Background Art

[0002] In medical communication systems, such as glucose monitoring systems, including continuous blood glucose monitoring systems and discrete blood glucose monitoring systems, sensors can use two, three, or four electrodes to detect current signals. The microprocessor unit collects these signals and transmits them wirelessly, such as through NFC or BLE.

[0003] For example, in a glucose monitoring system, the sensor acts as a transmitter. To reduce power consumption, it avoids excessive on-chip computations. Therefore, the transmitter transmits data to the receiver for computation. To ensure information security and minimize communication losses during the communication process, a method has been proposed to encrypt the transmitted data while maintaining the number of bits.

[0004] The above problems are worth solving. Summary of the Invention

[0005] In order to overcome the deficiencies of the existing technology, the present invention provides a blood glucose meter data communication method based on bit encryption.

[0006] The technical solution of the present invention is as follows:

[0007] A blood glucose meter data communication method based on bit encryption is used to encrypt data transmission during communication between a transmitter and a receiver. The transmitter passively returns data, and the receiver actively sends commands. Before data transmission, the transmitter is in a low-power standby state. Data transmission encryption includes the following steps:

[0008] Step 1: The receiver requests a connection command from the transmitter;

[0009] Step 2: The transmitter confirms the secure connection data packet and returns the secure connection data packet to the receiver;

[0010] Step 3: The receiver generates a key based on the secure connection data packet and sends it to the transmitter.

[0011] Step 4: The transmitter receives the digit key and saves it locally, and returns confirmation information to the receiver;

[0012] Step 5: The receiver packages the command word into a plaintext request data packet and sends it to the transmitter;

[0013] Step 6: After receiving the plaintext request data packet, the transmitter executes the command;

[0014] Step 7: The transmitter encrypts the plaintext data using the bit key to generate a ciphertext data packet, and returns the ciphertext data packet to the receiver;

[0015] Step 8: After receiving the ciphertext data packet, the receiver uses the bit key to decrypt it and obtain the plaintext data.

[0016] The present invention according to the above solution is characterized in that, in step 2, the secure connection data packet includes transmitter clock information, transmitter address information and time seed.

[0017] The present invention according to the above scheme is characterized in that in step 3, the receiver generates a bit key using the differential information of the clocks of both parties, the transmitter address information and the time seed, and saves the bit key.

[0018] The present invention according to the above aspect is characterized in that the time seed is a counting point for confirming that the transmitter and receiver clocks are consistent, and the time seed increases as time is counted.

[0019] The present invention according to the above scheme is characterized in that the preparation information of the bit key includes transmitter clock information, time seed, and transmitter address information. The transmitter clock information and transmitter address information are the main body of the bit key, and the time seed is additional information and does not participate in the process of the bit key. The calculation formula is:

[0020] RS=E(B,T,A)

[0021] In the formula, RS is the result of the bit key, E is the bit encryption algorithm model, B is the reference clock, T is the time seed, which is presented as 0 at the beginning and then increases by 1 as the transmitter is used, and A is the transmitter address.

[0022] The present invention according to the above aspect is characterized in that

[0023] In the first step, the first key macKey is obtained using the following formula (1), where mac[0] is the first bit of the transmitter's address, mac[1] is the second bit of the transmitter's address, mac[2] is the third bit of the transmitter's address, mac[3] is the fourth bit of the transmitter's address, mac[4] is the fifth bit of the transmitter's address, and mac[6] is the fifth bit of the transmitter's address;

[0024] macKey=mac[0]∣mac[1]&mac[2]∣mac[3]&mac[4]∣mac[5] (1)

[0025] Among them, ∣ is a mathematical logic symbol, representing the "OR" operation; & is a mathematical logic symbol, representing the "AND" operation.

[0026] In the second step, the bit key, RS, is obtained using the following formula (2);

[0027] KEY=mac[0]×macKey×macKey×macKey×macKey×macKey×macKey∣

[0028] mac[1]×macKey×macKey×macKey×macKey×macKey&

[0029] mac[2]×macKey×macKey×macKey×macKey∣

[0030] mac[3]×macKey×macKey×macKey&

[0031] mac[4]×macKey×macKey|

[0032] mac[5]×macKey (2)

[0033] In the formula, × is a mathematical operation symbol, which represents multiplication operation; ∣ is a mathematical logic symbol, which represents "or" operation; & is a mathematical logic symbol, which represents "and" operation.

[0034] The present invention according to the above solution is characterized in that, in step 5, the plaintext request data packet includes a frame header (0x55), a length, a command word, a data segment and a frame tail (0xFF).

[0035] The present invention according to the above scheme is characterized in that in step 7, the ciphertext data packet includes a frame header (0x55), length, command word, data segment and frame tail (0xFF); only the transmitter and receiver that have the bit key have the right to decrypt.

[0036] The present invention according to the above scheme is characterized in that in step 8, when the receiver obtains the ciphertext data packet, after confirming that the frame header (0x55), length, command word, and frame tail (0xFF) are correct, it reads a certain length of data and decrypts the ciphertext data packet by the number of bits.

[0037] The present invention according to the above aspect is characterized in that

[0038] In the bit encryption algorithm, the encryption model parameters are as follows:

[0039]

[0040] Among them, ∣ represents the "or" operation, Represents the "exclusive OR" operation.

[0041] In the bit encryption algorithm, the decryption model parameters are as follows:

[0042]

[0043] Among them, & represents the "and" operation, Indicates "exclusive or" operation;

[0044] RJ is the ciphertext, F is the encryption algorithm function, RS is the 32-digit key known in advance, and TEXT is the unencrypted text.

[0045] The present invention according to the above scheme has the following beneficial effects:

[0046] The present invention provides a simple encryption method between plain text and cumbersome encryption algorithms without increasing the amount of transmitted data. Compared with plain text and cipher text, no redundant data bits are actually generated. Therefore, the present invention increases the security of data transmission while helping to reduce data calculation and is suitable for low-power devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of data transmission according to the present invention;

[0048] Figure 2 The secure connection data packet of the present invention;

[0049] Figure 3 The data frame structure of the present invention;

[0050] Figure 4 The working process flow chart of the transmitter. DETAILED DESCRIPTION

[0051] In order to better understand the purpose, technical solutions and technical effects of the present invention, the present invention is further explained below with reference to the accompanying drawings and embodiments. It is also stated that the embodiments described below are only used to illustrate the present invention and are not intended to limit the present invention.

[0052] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it may be directly on the other element or there may be an intermediate element. When an element is considered to be "connected to" another element, it may be directly connected to the other element or there may be an intermediate element.

[0053] The directions or positions indicated by terms such as "up", "down", "left", "right", "front", "back", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the directions or positions shown in the accompanying drawings and are only for the convenience of description and should not be understood as limiting the present technical solution.

[0054] like Figures 1 to 4As shown, a data communication method for a blood glucose meter based on bit encryption is used for data transmission encryption during the communication process between a transmitter and a receiver (host). The transmitter, as a slave, passively returns data; the receiver, as a host, actively sends commands. Before data transmission, the transmitter is in a low-power standby state. Data transmission encryption includes the following steps:

[0055] Step 1: The receiver requests a connection command from the transmitter;

[0056] Step 2: The transmitter confirms the secure connection data packet and returns the secure connection data packet to the receiver;

[0057] When the transmitter is connected for the first time, the transmitter returns a secure connection data packet to the receiver. The secure connection data packet includes transmitter clock information, transmitter address information, and time seed.

[0058] Step 3: The receiver generates a key based on the secure connection data packet and sends it to the transmitter.

[0059] The receiver generates a bit key using the differential information of both clocks (transmitter clock information and receiver clock information), the transmitter address information, and the time seed. The time seed is a counting point that confirms that the transmitter and receiver clocks are consistent. It increases as time passes, so it can be measured.

[0060] Step 4: The transmitter receives the digit key and saves it locally, and returns confirmation information to the receiver;

[0061] At this time, both the receiver and the transmitter will save the generated bit key. After recording the key, the communication security of both parties will be guaranteed by the key.

[0062] The preparation information of the bit key includes the transmitter clock information, time seed, and transmitter address information. The transmitter clock information and transmitter address information are the main body of the bit key. The time seed is additional information and does not participate in the bit key process. The calculation formula is:

[0063] RS=E(B,T,A)

[0064] In the formula, RS is the result of the bit key, E is the bit encryption algorithm model, B is the reference clock, T is the time seed, which is presented as 0 at the beginning and then increases by 1 as the transmitter is used, and A is the transmitter address.

[0065] In the first step, the first key macKey is obtained using the following formula (1), where mac[0] is the first bit of the transmitter's address, mac[1] is the second bit of the transmitter's address, mac[2] is the third bit of the transmitter's address, mac[3] is the fourth bit of the transmitter's address, mac[4] is the fifth bit of the transmitter's address, and mac[6] is the fifth bit of the transmitter's address;

[0066] macKey=mac[0]∣mac[1]&mac[2]∣mac[3]&mac[4]∣mac[5] (1)

[0067] Among them, ∣ and & are digital logic symbols, ∣ represents the "OR" operation, and & represents the "AND" operation.

[0068] In the second step, the bit key, RS, is obtained using the following formula (2);

[0069] KEY=mac[0]×macKey×macKey×macKey×macKey×macKey×macKey∣

[0070] mac[1]×macKey×macKey×macKey×macKey×macKey&

[0071] mac[2]×macKey×macKey×macKey×macKey∣

[0072] mac[3]×macKey×macKey×macKey&

[0073] mac[4]×macKey×macKey|

[0074] mac[5]×macKey (2)

[0075] Among them, × is the multiplication sign, ∣ represents the "or" operation, and & represents the "and" operation.

[0076] Step 5: The receiver packages the command word into a plaintext request data packet and sends it to the transmitter;

[0077] The plaintext request data packet includes a frame header (0x55), length, command word, data segment, and frame tail (0xFF).

[0078] Step 6: After receiving the plaintext request data packet, the transmitter executes the command;

[0079] Step 7: The transmitter encrypts the plaintext data using the bit key to generate a ciphertext data packet, and returns the ciphertext data packet to the receiver;

[0080] The ciphertext data packet includes a frame header (0x55), length, command word, data segment, and frame tail (0xFF); only the transmitter and receiver with the bit key have the right to decrypt.

[0081] Step 8: After receiving the encrypted data packet, the receiver uses the bit key to decrypt it and obtain the plaintext data.

[0082] When the receiver obtains the ciphertext data packet, it confirms that the frame header (0x55), length, command word, and frame tail (0xFF) are correct, then reads a certain length of data and decrypts the ciphertext data packet by bit.

[0083] Frame header length Command word data Frame tail

[0084] In the bit-shifting encryption algorithm, the content of the communication is public, but the decryption method is known only to the communicating parties, because both parties have a time seed. Since the time seed is random, the communicating parties can assume that the communication is encrypted.

[0085] In the bit encryption algorithm, the encryption model parameters are as follows:

[0086]

[0087] Among them, ∣ represents the "or" operation, It is a digital logic symbol representing the "exclusive OR" operation.

[0088] In the bit encryption algorithm, the decryption model parameters are as follows:

[0089]

[0090] Among them, & represents the "and" operation, Indicates "exclusive or" operation;

[0091] RJ is the ciphertext, F is the encryption algorithm function, RS is the 32-digit key known in advance, and TEXT is the unencrypted text.

[0092] like Figure 4 As shown, in order to better understand the communication working process, the present invention provides a working process diagram of a transmitter as a slave. It can be seen that in this process, the transmitter is in a space state for a long time when the receiver does not request data, thereby saving energy consumption.

[0093] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0094] The above embodiments merely illustrate several implementations of the present invention, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the patent. It should be noted that a person skilled in the art would be able to make various modifications and improvements without departing from the spirit of the present invention, all of which fall within the scope of protection of the present invention. Therefore, the scope of protection of the patent for this invention shall be determined by the appended claims.

Claims

1. A data communication method for a blood glucose meter based on bit encryption is used to encrypt data transmission during communication between a transmitter and a receiver. The transmitter passively returns data, and the receiver actively sends commands. Before data transmission, the transmitter is in a low-power standby state. Data transmission encryption includes the following steps: Step 1: The receiver requests a connection command from the transmitter; Step 2: The transmitter confirms the secure connection data packet and returns the secure connection data packet to the receiver; Step 3: The receiver generates a key based on the secure connection data packet and sends it to the transmitter. Step 4: The transmitter receives the digit key and saves it locally, and returns confirmation information to the receiver; The preparation information of the bit key includes the transmitter clock information, time seed, and transmitter address information. The transmitter clock information and transmitter address information are the main body of the bit key. The calculation formula is: ; In the formula, RS is the result of the bit key, E is the bit encryption algorithm model, B is the reference clock, T is the time seed, which is presented as 0 at the beginning and then increases by 1 as the transmitter is used, and A is the transmitter address; The steps for obtaining the bit key include: the first step, using the following formula (1) to obtain the first key macKey, where mac[0] is the first bit of the transmitter address, mac[1] is the second bit of the transmitter address, mac[2] is the third bit of the transmitter address, mac[3] is the fourth bit of the transmitter address, mac[4] is the fifth bit of the transmitter address, and mac[5] is the fifth bit of the transmitter address; macKey=mac[0]∣mac[1] & mac[2]∣mac[3] & mac[4]∣mac[5] (1) Among them, | represents the "or" operation, and & represents the "and" operation; The second step is to use the following formula (2) to obtain the bit key, that is, RS; KEY=mac[0]×macKey×macKey×macKey×macKey×macKey×macKey∣ mac[1]×macKey×macKey×macKey×macKey×macKey & mac[2]×macKey×macKey×macKey×macKey∣ mac[3]×macKey×macKey×macKey & mac[4]×macKey×macKey| mac[5]×macKey (2) Among them, × is the multiplication sign, ∣ and & are digital logic symbols, ∣ represents the "OR" operation, and & represents the "AND" operation; Step 5: The receiver packages the command word into a plaintext request data packet and sends it to the transmitter; Step 6: After receiving the plaintext request data packet, the transmitter executes the command; Step 7: The transmitter encrypts the plaintext data using the bit key to generate a ciphertext data packet, and returns the ciphertext data packet to the receiver; Step 8: After receiving the ciphertext data packet, the receiver uses the bit key to decrypt it and obtain the plaintext data.

2. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In step 2, the secure connection data packet includes transmitter clock information, transmitter address information and time seed.

3. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In step 3, the receiver generates a bit key using the differential information of the clocks of both parties, the transmitter address information, and the time seed, and saves the bit key.

4. The blood glucose meter data communication method based on bit encryption according to claim 3, characterized in that: The time seed is a counting point that confirms that the transmitter and receiver clocks are consistent. The time seed increases as time counts.

5. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In step 5, the plaintext request data packet includes a frame header, a length, a command word, a data segment, and a frame trailer.

6. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In step 7, the ciphertext data packet includes a frame header, length, command word, data segment and frame trailer.

7. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In step 8, when the receiver obtains the ciphertext data packet, it confirms that the frame header, length, command word, and frame tail are correct, reads a certain length of data, and decrypts the ciphertext data packet by the number of bits.

8. The blood glucose meter data communication method based on bit encryption according to claim 1, characterized in that: In the bit encryption algorithm, the encryption model parameters are as follows: ; Among them, ∣ represents the "or" operation, Indicates "exclusive or" operation; In the bit encryption algorithm, the decryption model parameters are as follows: ; Among them, & represents the "and" operation, Indicates "exclusive or" operation; RJ is the ciphertext, F is the encryption algorithm function, RS is the 32-digit key known in advance, and TEXT is the unencrypted text.

Citation Information

Patent Citations

  • Encryption transmission method of wearable equipment

    CN110177000A

  • Data encryption control system based on USB interface and chip

    CN112329038A