Insulin pump data migration method and system, electronic equipment and storage medium

By verifying the magnetic field characteristics and device identification of the insulin pump, and combining this with encryption, the reliability problem of secure migration of user data in existing technologies has been solved, enabling the secure migration of user data to a legitimate new pump.

CN121389103AActive Publication Date: 2026-01-23NAT INST OF ADVANCED MEDICAL DEVICES SHENZHEN
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202511960214.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-24
Publication Date
2026-01-23
Estimated Expiration
2045-12-24

AI Technical Summary

Technical Problem

Existing insulin pump data migration methods lack secure verification of the target pump's identity, which could lead to user data being received by a forged pump and cracked offline, or the device serial number being stolen, reducing the reliability of security verification.

Method used

The magnetic field characteristics of the target insulin pump are verified by acquiring the magnetic field feature information. The target device identifier and check code are combined for cascade encryption, and data integrity is verified to ensure that user data is only migrated to a legitimate new insulin pump.

Benefits of technology

This improves the reliability of insulin pump safety verification, reduces the risk of counterfeit pumps being connected and user data being tampered with, and ensures the safe migration of user data to legitimate new pumps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121389103A_ABST
    Figure CN121389103A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an insulin pump data migration method and system, electronic equipment and a storage medium, and belongs to the technical field of communication. The method is applied to an original insulin pump and comprises the following steps: acquiring magnetic field characteristic information of a target insulin pump, and performing magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; in response to the condition that the magnetic field verification result information meets a preset magnetic field verification passing condition, performing cascade encryption on a target equipment identifier and a check code sent by the target insulin pump according to the first key character to obtain an encrypted string body; performing data integrity verification on the encrypted string body to obtain data verification result information; in response to the condition that the data verification result information meets the preset integrity verification passing condition, migrating the user data to the target insulin pump. According to the embodiment of the invention, the safety verification reliability of the insulin pump can be improved, and then the user data of the old insulin pump can be safely migrated to the legal new pancreas islet pump.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to an insulin pump data migration method and system, an electronic device and a storage medium. BACKGROUND

[0002] With the rapid development of medical technology, as a micro device capable of continuously subcutaneous infusion of insulin, insulin pump is widely used in many fields. For example, in the field of children's health management, insulin pump can be attached to the subcutaneous of diabetic children's abdomen, and the infusion rate can be adjusted in real time according to the blood glucose fluctuation of the children to reduce the risk of high or low blood sugar.

[0003] During the use of the insulin pump, due to the problems of device life or failure, etc., it is necessary to replace a new pump, and the insulin pump is operated according to the user's own data, so it is necessary to transfer the user data of the old pump to the new pump. However, in the actual replacement process, if the identity of the new pump cannot be verified, there is a risk that the data will be stolen or tampered with by a fake insulin pump, which may cause the user data to be maliciously modified, resulting in excessive or insufficient insulin for the user, and causing serious life safety hazards to the user. Therefore, in order to prevent the user data of the old insulin pump from being accessed, falsified or stolen by an unauthorized insulin pump, the new insulin pump needs to be verified for security, so that the user data can be safely migrated to the legal insulin pump and continue to be accurately treated. SUMMARY

[0004] The main purpose of the embodiments of the present application is to provide an insulin pump data migration method and system, an electronic device and a storage medium, which aims to improve the reliability of the security verification of the insulin pump, and then safely migrate the user data of the old insulin pump to the legal new insulin pump.

[0005] To achieve the above-mentioned purpose, a first aspect of the embodiments of the present application provides an insulin pump data migration method applied to an original insulin pump, wherein the original insulin pump stores user data, and the method comprises: obtaining magnetic field characteristic information of a target insulin pump, and performing magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; wherein the target insulin pump is configured with a target identification magnet, and the magnetic field characteristic information is used to reflect the magnetic field characteristics of the target identification magnet; in response to the magnetic field verification result information satisfying a preset magnetic field verification passing condition, receiving a target device identification and a verification code sent from the target insulin pump; wherein the verification code is generated by the target insulin pump; concatenating and encrypting the target device identification and the verification code according to a first key symbol to obtain an encrypted string; wherein the first key symbol is pre-stored in the original insulin pump and the target insulin pump; perform data integrity verification on the encrypted string to obtain data verification result information; In response to the data verification result information satisfying a preset integrity verification pass condition, migrate the user data to the target insulin pump.

[0006] In some embodiments, the response to the data verification result information satisfying a preset integrity verification pass condition, migrating the user data to the target insulin pump, includes: In response to the data verification result information satisfying a preset integrity verification pass condition, migrating the user data to the target insulin pump, determining a first key calculation parameter according to a first random number and a first key symbol, and sending the first key calculation parameter to the target insulin pump; wherein the first random number is generated by the original insulin pump; Receiving a second key calculation parameter from the target insulin pump; wherein the second key calculation parameter is determined by the target insulin pump based on the first key symbol and a second random number, and the second random number is generated by the target insulin pump; In the original insulin pump, a second key symbol is generated based on the first key calculation parameter and the second key calculation parameter; wherein the second key symbol is also generated in the target insulin pump based on the first key calculation parameter and the second key calculation parameter; According to the first key symbol and the second key symbol, the user data is encrypted to obtain encrypted user data, and the encrypted user data is migrated to the target insulin pump, so that the target insulin pump decrypts the encrypted user data according to the first key symbol and the second key symbol to obtain the user data.

[0007] In some embodiments, the user data includes health-related data and health-unrelated data, and the data encryption according to the first key symbol and the second key symbol to obtain encrypted user data includes: In the original insulin pump, the health-related data is encrypted according to the second key symbol to obtain encrypted health-related data; The encrypted health-related data and the health-unrelated data are encrypted according to the first key symbol to obtain the encrypted user data.

[0008] In some embodiments, the second key symbol is generated in the original insulin pump based on the first key calculation parameter and the second key calculation parameter, including: The first key calculation parameter and the second key calculation parameter are XOR processed to obtain a target key calculation parameter; determine a target key generation algorithm from a preset key generation algorithm set according to the target key computation parameter; wherein the key generation algorithm set comprises a plurality of preset key generation algorithms; perform key generation on the target key computation parameter according to the target key generation algorithm, to obtain the second key symbol.

[0009] To achieve the above object, a second aspect of the embodiments of the present application proposes another insulin pump data migration method, applied to a target insulin pump, the target insulin pump being configured with a target identification magnet, the method comprising: generating a check code; sending a preconfigured target device identification and the check code to an original insulin pump, so that the original insulin pump performs concatenated encryption on the target device identification and the check code according to a first key symbol to obtain an encrypted string body, and performs data integrity verification on the encrypted string body to obtain data verification result information; wherein the first key symbol is pre-stored in the original insulin pump and the target insulin pump; in response to the data verification result information satisfying a preset integrity verification passing condition, receiving user data migrated from the original insulin pump; wherein the user data is stored in the original insulin pump.

[0010] In some embodiments, before the generating a check code, the method further comprises: obtaining magnetic field characteristic information corresponding to the target identification magnet, the magnetic field characteristic information being used to reflect the magnetic field characteristics of the target identification magnet; performing magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; in response to the magnetic field verification result information satisfying a preset magnetic field verification passing condition, generating the check code.

[0011] To achieve the above object, a third aspect of the embodiments of the present application proposes an insulin pump data migration system, the system comprising: a target insulin pump, the target insulin pump comprising: a target identification magnet; The original insulin pump is in communication connection with the target insulin pump, and the original insulin pump comprises a first magnetic field sensor and a first control unit; the first magnetic field sensor is configured to acquire magnetic field characteristic information corresponding to the target identification magnet; the first control unit is in electrical connection with the first magnetic field sensor, and is configured to determine magnetic field verification result information according to the insulin pump data migration method in the first aspect and the magnetic field characteristic information; the first control unit is further configured to, in response to the magnetic field verification result information satisfying a preset magnetic field verification pass condition, acquire target device identification and a verification code of the target insulin pump, and determine data verification result information according to the insulin pump data migration method in the first aspect, the target device identification and the verification code; and the first control unit is further configured to, in response to the data verification result information satisfying a preset integrity verification pass condition, migrate user data to the target insulin pump.

[0012] In some embodiments, the original insulin pump further comprises a first indicator light; and the target insulin pump further comprises a second indicator light and a second control unit in communication connection with the second indicator light. The first control unit is in communication connection with the second control unit and the first indicator light, and is further configured to, in response to the magnetic field verification result information satisfying the preset magnetic field verification pass condition, control the light-emitting color of the first indicator light to be a first preset color, and send a first synchronization instruction to the second control unit, so that the second control unit controls the light-emitting color of the second indicator light to be the first preset color as well. The first control unit is further configured to, in response to the data verification result information satisfying the preset integrity verification pass condition, control the light-emitting color of the first indicator light to be a second preset color, and send a second synchronization instruction to the second control unit, so that the second control unit controls the light-emitting color of the second indicator light to be the second preset color as well.

[0013] To achieve the above-mentioned purposes, a fourth aspect of the embodiments of the present application provides an electronic device, which comprises a memory and a processor, the memory stores a computer program, and the processor implements the insulin pump data migration method in the first aspect and the second aspect when executing the computer program.

[0014] To achieve the above-mentioned purposes, a fifth aspect of the embodiments of the present application provides a computer readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the insulin pump data migration method in the first aspect and the second aspect.

[0015] The insulin pump data migration method and system, the electronic device and the storage medium provided by the application obtain magnetic field characteristic information corresponding to a target identification magnet of a target insulin pump configuration, and perform magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; if the magnetic field verification result information meets a preset magnetic field verification passing condition, the target device identification and the check code sent by the target insulin pump are concatenated and encrypted to obtain an encrypted string, and data integrity verification is performed on the encrypted string to obtain data verification result information; if the data verification result information meets a preset integrity verification passing condition, user data is migrated to the target insulin pump. In this way, the safety of the new insulin pump can be verified from the hardware level and the software level of the old insulin pump, the risk of counterfeit insulin pumps accessing and tampering with user data is reduced, that is, the reliability of the safety verification of the insulin pump can be improved, and the user data of the old insulin pump can be safely migrated to the legal new insulin pump. BRIEF DESCRIPTION OF DRAWINGS

[0016] Figure 1 is a flowchart of the insulin pump data migration method provided by the embodiment of the application; Figure 2 is a flowchart of step S102 in Figure 1 Figure 3 is a flowchart of step S204 in Figure 2 Figure 4 is a flowchart of step S203 in Figure 2 Figure 5 is another flowchart of the insulin pump data migration method provided by the embodiment of the application; Figure 6 is a flowchart of a step before step S501 in Figure 5 Figure 7 is a structural schematic diagram of the insulin pump data migration system provided by the embodiment of the application; Figure 8 is a hardware structural schematic diagram of the electronic device provided by the embodiment of the application.

[0017] Reference signs: Target insulin pump 710, target identification magnet 711, second control unit 712, original insulin pump 720, first magnetic field sensor 721, first control unit 722. DETAILED DESCRIPTION

[0018] ​​​​In order to make the purposes, technical solutions and advantages of the present application clearer, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application and not to limit the present application.

[0019] It should be noted that although the functional modules are divided in the device schematic diagram, and the logical sequence is shown in the flowchart, in some cases, the steps shown or described can be performed in a manner different from the module division in the device or the sequence in the flowchart. The terms "first", "second", and the like in the specification and claims and the above-described drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0020] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which the present application belongs. The terms used herein are only for the purpose of describing the embodiments of the present application and are not intended to limit the present application.

[0021] First, the terms involved in the present application are analyzed: Insulin pump: refers to a micro-pump type treatment device that is carried on the body and continuously infuses insulin subcutaneously at a set rate.

[0022] Data migration: refers to a data transfer operation of transferring data in the original device to a new device. For example, safely transferring user data from an old insulin pump to a new insulin pump.

[0023] The wide application of the insulin pump data migration method provides a convenient treatment parameter synchronization means for users when replacing a new pump. However, the existing insulin pump data migration method still has limitations. For example, the existing technology usually uses an asymmetric encryption algorithm (such as an elliptic curve encryption algorithm) to encrypt the user data that needs to be transmitted, and then migrates the encrypted data to a new pump. However, this method only guarantees the confidentiality of the data transmission channel, lacks security verification of the identity of the target pump, and the user data can still be received by a fake pump and cracked offline; or the existing technology uses a near field communication method to migrate user data to a new pump, and uses a device serial code as the only credential to verify the security of the new pump. However, this method cannot verify whether the hardware of the new pump has been modified, and the device serial code as static information can be stolen, reducing the reliability of the security verification of the insulin pump. Based on this, the embodiments of the present application provide an insulin pump data migration method and system, an electronic device and a storage medium, aiming to improve the reliability of the security verification of the insulin pump, and then safely migrate the user data of the old insulin pump to a legal new insulin pump.

[0024] The insulin pump data migration method provided by the embodiments of the present application relates to the technical field of communication. The insulin pump data migration method provided by the embodiments of the present application can be applied to a terminal, can be applied to a server end, and can also be software running in the terminal or the server end. In some embodiments, the terminal can be a smart phone, a tablet computer, a notebook computer, a desktop computer, etc.; the server end can be configured as a separate physical server, can be configured as a server cluster or a distributed system formed by multiple physical servers, can also be configured as a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, and big data and artificial intelligence platforms; and the software can be an application that implements the insulin pump data migration method, but is not limited to the above forms.

[0025] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld devices or portable devices, tablet devices, multi-processor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in a distributed computing environment in which tasks are performed by remote processing devices connected by a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media, including storage devices.

[0026] It should be noted that in each specific embodiment of the present application, when relevant processing is required according to user information, user historical data, and other data related to the identity or characteristics of the user, the user's permission or consent will be obtained first, and the collection, use, and processing of such data will comply with relevant laws, regulations, and standards. In addition, when the embodiments of the present application need to obtain sensitive personal information of the user, the separate permission or separate consent of the user will be obtained through a pop-up window or a jump to a confirmation page, and after obtaining the separate permission or separate consent of the user, the necessary user-related data required for the normal operation of the embodiments of the present application will be obtained.

[0027] Figure 1 is an optional flowchart of the insulin pump data migration method provided by the embodiments of the present application, Figure 1 The method in the method can be applied to an original insulin pump, and the original insulin pump stores user data. The method can include, but is not limited to, steps S101 to S105: Step S101, obtain the magnetic field characteristic information of the target insulin pump, and verify the magnetic field characteristic information to obtain magnetic field verification result information; Step S102, in response to the magnetic field verification result information satisfying a preset magnetic field verification pass condition, receive the target device identifier and the check code sent from the target insulin pump; Step S103, cascade encrypt the target device identifier and the check code according to the first key symbol to obtain an encrypted string body; Step S104, verify the data integrity of the encrypted string body to obtain data verification result information; Step S105, in response to the data verification result information satisfying a preset integrity verification pass condition, migrate the user data to the target insulin pump.

[0028] The steps S101 to S105 shown in the embodiments of the present application obtain the magnetic field characteristic information corresponding to the target identifier magnet configured by the target insulin pump, and verify the magnetic field characteristic information to obtain the magnetic field verification result information. If the magnetic field verification result information satisfies the preset magnetic field verification pass condition, the target device identifier and the check code sent from the target insulin pump are cascade encrypted to obtain an encrypted string body, and the data integrity of the encrypted string body is verified to obtain the data verification result information. If the data verification result information satisfies the preset integrity verification pass condition, the user data is migrated to the target insulin pump. In this way, the security of the new insulin pump can be verified from the hardware level and the software level by the old insulin pump, the risk of accessing and tampering with the user data by a fake insulin pump is reduced, that is, the reliability of the safety verification of the insulin pump can be improved, and the user data of the old insulin pump can be safely migrated to the legal new insulin pump.

[0029] In step S101 of some embodiments, the original insulin pump can refer to an old pump in which user data is stored. The user data can refer to a collection of information including user identity and user treatment parameters, etc. The target insulin pump can refer to a new pump that receives the user data and replaces the original insulin pump. The target insulin pump is configured with a target identification magnet. The target identification magnet can refer to a permanent magnet arranged in the target insulin pump. For example, the target identification magnet can be a cylindrical neodymium iron boron magnet or a rectangular ferrite magnet, without limitation. The magnetic field characteristic information can refer to the magnetic field characteristics corresponding to the target identification magnet. For example, the magnetic field characteristic information can be the magnetic field strength and the magnetic field direction corresponding to the target identification magnet, etc. The magnetic field characteristic verification can refer to a process of comparing and analyzing the magnetic field characteristic information according to a preset magnetic field verification pass condition. The magnetic field verification result information can refer to verification information obtained after the magnetic field characteristic information is subjected to the magnetic field characteristic verification, and used to indicate whether the magnetic field characteristics meet the preset magnetic field verification pass condition. For example, the embodiments of the present application can preselect a preset magnetic field verification pass condition stored on the cloud, and then the original insulin pump sends the magnetic field characteristic information to the cloud, so as to compare the magnetic field characteristic information with the preset magnetic field verification pass condition according to the cloud, and then determine the magnetic field verification result information; or the embodiments of the present application can also store the preset magnetic field verification pass condition in the original insulin pump, and then the original insulin pump compares the magnetic field characteristic information with the preset magnetic field verification pass condition, and then determines the magnetic field verification result information. It can be understood that the embodiments of the present application can adjust the way of magnetic field characteristic verification of the magnetic field characteristic information according to actual needs.

[0030] It should be noted that the magnetic field verification result information can satisfy the preset magnetic field verification pass condition or not satisfy the preset magnetic field verification pass condition. The preset magnetic field verification pass condition can refer to a preset magnetic field characteristic threshold range used to determine the legitimacy of the target insulin pump identity. For example, the preset magnetic field verification pass condition can be that the magnetic field strength is between 42 mT and 48 mT, and the magnetic field direction has an angle of 10-15 degrees with the long axis of the pump body. When the magnetic field strength indicated by the magnetic field characteristic information is 46 mT, and the magnetic field direction is 10 degrees with the long axis of the pump body, it indicates that the magnetic field verification result information satisfies the preset magnetic field verification pass condition. Or, when the magnetic field strength indicated by the magnetic field characteristic information is 42 mT, and the magnetic field direction is 9 degrees with the long axis of the pump body, it indicates that the magnetic field verification result information does not satisfy the preset magnetic field verification pass condition. It can be understood that the preset magnetic field verification pass condition can be determined according to the magnetic field characteristics corresponding to the target identification magnet when the target insulin pump is shipped. In this way, when the target insulin pump is modified, such as the shell being opened to cause the target identification magnet to be displaced, the magnetic field characteristic information obtained by the original insulin pump is the magnetic field characteristics corresponding to the target identification magnet after the position is changed. This magnetic field characteristic information will deviate from the preset magnetic field verification pass condition, so that the magnetic field characteristic verification fails. Thus, the safety of the target insulin pump can be judged from the physical layer.

[0031] In step S102 of some embodiments, if the magnetic field verification result information satisfies the preset magnetic field verification pass condition, it indicates that the target insulin pump is safe at the physical layer, and the original insulin pump can receive the target device identity and the verification code sent from the target insulin pump. The target device identity can refer to a string used to represent the identity of the target insulin pump. For example, the target device identity can be "001S2304" or "A001", which is not limited in particular. The verification code can refer to a verification code generated by the target insulin pump to verify the safety of the target insulin pump. For example, the verification code can be a random number such as "482739"; or the verification code can also be a verification code combined according to the factory time, the network card hardware address and the operation password of the target insulin pump. For example, assuming that the factory time is XXXX year XX month XX day, the network card hardware address is 00E04C56, and the operation password is "9876", the verification code can be "XXXXXXXX00E04C569876". It can be understood that the generation method of the verification code can be adjusted according to actual needs.

[0032] It should be noted that if the magnetic field verification result information does not satisfy the preset magnetic field verification pass condition, it indicates that the target insulin pump is not safe at the physical level, and the current insulin pump data migration process needs to be stopped, and the subsequent steps are not performed. At this time, the target insulin pump can be replaced or the safety of the target insulin pump is verified manually, and then the insulin pump data migration is continued.

[0033] In step S103 of some embodiments, the cascade encryption can refer to a process of connecting the target device identifier and the check code together, and encrypting the whole connection according to the first key symbol. The encrypted string body can refer to encrypted data obtained by cascade encrypting the target device identifier and the check code according to the first key symbol. The first key symbol can refer to a key stored in the original insulin pump and the target insulin pump in advance. For example, the first key symbol can be "ABCefg12345" or "Key_123459", which is not limited in particular.

[0034] In steps S104-S105 of some embodiments, the data integrity verification can refer to a process of performing integrity comparison analysis on the encrypted string body. The data verification result information can refer to verification information obtained by indicating whether the encrypted string body is complete after performing the data integrity verification on the encrypted string body. For example, in the embodiment of the present application, when the original insulin pump receives the target device identifier and the check code sent from the target insulin pump, the target device identifier and the check code are cascade encrypted by the first key symbol stored in the target insulin pump, the encrypted string body is generated, and the encrypted string body generated by the target insulin pump is sent to the cloud, and the encrypted string body generated by the original insulin pump is sent to the cloud, so that the integrity comparison analysis of the encrypted string body generated by the original insulin pump is performed by the cloud according to the encrypted string body generated by the target insulin pump, and then the data verification result information is determined. The data verification result information can satisfy the preset integrity verification pass condition or not satisfy the preset integrity verification pass condition. The preset integrity verification pass condition can refer to that the encrypted string body generated by the target insulin pump is completely consistent with the encrypted string body generated by the original insulin pump.

[0035] It should be noted that if the data verification result information satisfies the preset integrity verification pass condition, it indicates that the target insulin pump is safe at the software level, and the user data can be migrated to the target insulin pump. If the data verification result information does not satisfy the preset integrity verification pass condition, it indicates that the target insulin pump is not safe at the software level, and the current insulin pump data migration process needs to be stopped. At this time, the check code can be generated again to perform data integrity verification again, or the safety of the device at the software level can be manually verified, and then the insulin pump data migration is continued.

[0036] Please refer to Figure 2In some embodiments, step S102 can include, but is not limited to, steps S201 to S204: In step S201, in response to the fact that the integrity verification result information satisfies the preset integrity verification pass condition, the first key calculation parameter is determined according to the first random number and the first key symbol, and the first key calculation parameter is sent to the target insulin pump. In step S202, the second key calculation parameter is received from the target insulin pump. In step S203, in the original insulin pump, the second key symbol is generated based on the first key calculation parameter and the second key calculation parameter. In step S204, the user data is encrypted according to the first key symbol and the second key symbol, the encrypted user data is obtained, and the encrypted user data is migrated to the target insulin pump, so that the target insulin pump decrypts the encrypted user data according to the first key symbol and the second key symbol to obtain the user data.

[0037] In step S201 of some embodiments, if the magnetic field verification result information satisfies the preset magnetic field verification pass condition, the original insulin pump determines the first key calculation parameter according to the first random number and the first key symbol, and sends the first key calculation parameter to the target insulin pump. The first random number can refer to a random number generated by the original insulin pump. For example, the first random number can be "482917" or "739248", which is not limited. The first key calculation parameter can refer to an intermediate value obtained by combining the first random number and the first key symbol according to a preset algorithm, which is used for subsequent generation of the second key symbol. For example, if the first key symbol is "Key_123459" and the first random number is "482917", the first key calculation parameter can be the first thirteen bits "Key_123459482" after splicing the first random number and the first key symbol. It can be understood that the generation method of the first key calculation parameter can be adjusted according to actual needs.

[0038] In step S202 of some embodiments, the second key calculation parameter can refer to an intermediate value obtained by combining the first key symbol and the second random number according to a preset algorithm by the target insulin pump, which is used for subsequent generation of the second key symbol. The second random number can refer to a random number generated by the target insulin pump. For example, if the first key symbol is "Key_123459" and the second random number is "628415", the second key calculation parameter can be "628415Key_123459" obtained by splicing the second random number and the first key symbol. It can be understood that the generation method of the second key calculation parameter can be adjusted according to actual needs, and the generation method of the second key calculation parameter can be the same as or different from the generation method of the first key calculation parameter.

[0039] In step S203 of some embodiments, the second key symbol can refer to a session key generated in the original insulin pump based on the first key calculation parameter and the second key calculation parameter according to a preset key generation algorithm. For example, the second key symbol can splice the first key calculation parameter and the second key calculation parameter, and generate based on the spliced parameters according to a key derivation function (KDF); or the second key symbol can also directly generate according to a hash-based key derivation function (HKDF) with the first key calculation parameter as the input key material and the second key calculation parameter as the salt. It can be understood that the generation mode of the second key symbol can be adjusted according to actual needs. It should be noted that the same mode is required in the target insulin pump to generate the second key symbol based on the first key calculation parameter and the second key calculation parameter sent by the original insulin pump.

[0040] In step S204 of some embodiments, data encryption can refer to a process of double-layer encryption of user data based on the first key symbol and the second key symbol according to a preset encryption algorithm. Encrypted user data can refer to the ciphertext data obtained after data encryption of user data based on the first key symbol and the second key symbol. For example, the present application can first encrypt user data based on the first key symbol through the advanced encryption standard algorithm (AES), and then encrypt based on the second key symbol through the advanced encryption standard algorithm, to finally obtain encrypted user data; or the present application can also first encrypt user data based on the second key symbol through the SM4 block cipher algorithm, and then encrypt based on the first key symbol through the SM4 block cipher algorithm, to finally obtain encrypted user data. It can be understood that the generation mode of the encrypted user data can be adjusted according to actual needs. The original insulin pump then migrates the encrypted user data to the target insulin pump. The target insulin pump can obtain the user data by data decryption of the encrypted user data through the second key symbol generated locally before and the stored first key symbol.

[0041] It can be understood that, by sending the first key calculation parameter determined according to the first random number and the first key symbol to the target insulin pump, receiving the second key calculation parameter determined by the first key symbol and the second random number from the target insulin pump, generating the second key symbol in the target insulin pump and the original insulin pump based on the first key calculation parameter and the second key calculation parameter respectively, then performing data encryption on the user data according to the first key symbol and the second key symbol to obtain encrypted user data, and finally migrating the encrypted user data to the target insulin pump, so that the target insulin pump performs data decryption on the encrypted user data according to the first key symbol and the second key symbol to obtain the user data. In this way, the user data that needs to be migrated can be double-encrypted according to the real-time generated key and the pre-stored key, and the target insulin pump needs to perform data decryption on the key generated in the same way and the pre-stored key to obtain the user data, thereby reducing the risk of user data leakage and improving the security of insulin pump data migration.

[0042] Please refer to Figure 3 In some embodiments, the user data includes health-related data and health-unrelated data, and in step S204, performing data encryption on the user data according to the first key symbol and the second key symbol to obtain encrypted user data can include but is not limited to steps S301 to S302: Step S301, in the original insulin pump, performing data encryption on the health-related data according to the second key symbol to obtain encrypted health-related data; Step S302, performing data encryption on the encrypted health-related data and the health-unrelated data according to the first key symbol to obtain encrypted user data.

[0043] In steps S301 to S302 of some embodiments, the health-related data can refer to data in the user data related to the user's treatment plan. For example, the health-related data can be a basal rate plan, an insulin sensitivity coefficient, a blood glucose history record, or an alarm threshold setting, etc. The health-unrelated data can refer to data in the user data related to device operation or user preferences, which is not directly related to treatment decisions. For example, the health-unrelated data can be a pump body serial number, screen brightness, language setting, or key volume, etc. The encrypted health-related data can refer to ciphertext data obtained by performing data encryption on the health-related data based on the second key symbol according to a preset encryption algorithm. The encrypted user data can refer to ciphertext data obtained by performing data encryption on the encrypted health-related data and the health-unrelated data based on the first key symbol according to a preset encryption algorithm. For example, the embodiments of the present application can perform data encryption on the health-related data based on the second key symbol according to the AES algorithm to obtain encrypted health-related data, then combine the encrypted health-related data with the health-unrelated data, and perform data encryption on the combined data based on the first key symbol according to the AES algorithm, and finally obtain encrypted user data.

[0044] It can be understood that the embodiments of the present application divide the user data into health-related data and health-unrelated data, and performs data encryption on the health-related data according to the second key symbol to obtain encrypted health-related data, and then performs data encryption on the combination data of the encrypted health-related data and the health-unrelated data according to the first key symbol to obtain encrypted user data. In this way, only important data can be double-encrypted, and the time consumption of data encryption of the original insulin pump and the time consumption of data decryption of the target insulin pump can be reduced, thereby improving the efficiency of insulin pump data migration.

[0045] Please refer to Figure 4 In some embodiments, step S203 can include but is not limited to steps S401 to S403: Step S401, performing exclusive-OR processing on the first key calculation parameter and the second key calculation parameter to obtain a target key calculation parameter; Step S402, determining a target key generation algorithm from a preset key generation algorithm set according to the target key calculation parameter; wherein the key generation algorithm set includes a plurality of preset key generation algorithms; Step S403, performing key generation on the target key calculation parameter according to the target key generation algorithm to obtain the second key symbol.

[0046] In step S401 of some embodiments, the exclusive-OR processing can refer to the process of performing exclusive-OR operation on the first key calculation parameter and the second key calculation parameter bit by bit. The target key calculation parameter can refer to the intermediate value used to calculate the second key after the exclusive-OR processing on the first key calculation parameter and the second key calculation parameter. For example, if the first key calculation parameter is "ABCdef1234567890" and the second key calculation parameter is "FEDcba0987654321", the target key calculation parameter can be the result of 32-bit byte exclusive-OR "5655555555555555"; or, if the first key calculation parameter is "1234abcd" and the second key calculation parameter is "5678ef01", the target key calculation parameter can be the result of bit-wise exclusive-OR "444c4c4c", i.e., bit-wise exclusive-OR. It can be understood that the generation mode of the target key calculation parameter can be adjusted according to actual needs.

[0047] In steps S402 to S403 of some embodiments, the target key generation algorithm can refer to an algorithm determined from a set of preset key generation algorithms included in the key generation algorithm set based on the target key calculation parameters, used to calculate the second key symbol. For example, if the target key calculation parameters are "56555555555555555", then the last digit "5" of the target key calculation parameters can be taken, and the fifth preset key generation algorithm can be selected sequentially from the key generation algorithm set as the target key generation algorithm; or, if the target key calculation parameters are "444c4c4c", then the number of bits in the target key calculation parameters can be taken, i.e., "8", and the eighth preset key generation algorithm can be selected sequentially from the key generation algorithm set as the target key generation algorithm. It is understood that the selection method of the target key generation algorithm can be adjusted according to actual needs. The second key symbol can refer to a session key obtained after key generation based on the target key calculation parameters according to the target key generation algorithm.

[0048] It is understood that, in this embodiment of the application, the target key calculation parameter is obtained by XORing the first key calculation parameter and the second key calculation parameter. Then, a target key generation algorithm is determined from a preset set of key generation algorithms based on the target key calculation parameter. Finally, the target key generation algorithm is used to generate a key based on the target key calculation parameter to obtain the second key symbol. In this way, the key generation algorithm can be dynamically selected based on the real-time XOR processing result, reducing the risk of the second key symbol being predicted or leaked during data encryption or decryption, reducing the possibility of user data leakage, and thus improving the security of insulin pump data migration.

[0049] Figure 5 This is another optional flowchart of the insulin pump data migration method provided in the embodiments of this application. Figure 5 The method described above is applied to a target insulin pump equipped with a target identification magnet. This method may include, but is not limited to, steps S501 to S503. Step S501: Generate a verification code; Step S502: The pre-configured target device identifier and verification code are sent to the original insulin pump so that the original insulin pump performs concatenated encryption of the target device identifier and verification code according to the first key to obtain an encrypted string, and performs data integrity verification on the encrypted string to obtain data verification result information. Step S503: In response to the data verification result information meeting the preset integrity verification pass condition, the user data migrated from the original insulin pump is received.

[0050] In steps S501 to S503 of some embodiments, firstly, provided that the magnetic field verification result information has met the preset magnetic field verification pass conditions, the target insulin pump generates a verification code. The verification code can refer to a verification code generated by the target insulin pump used to verify the security of the target insulin pump. Then, the target insulin pump sends the generated verification code and a pre-configured target device identifier to the original insulin pump, so that the original insulin pump concatenates and encrypts the target device identifier and verification code according to a first key, obtaining an encrypted string, and performs data integrity verification on the encrypted string to obtain data verification result information. If the data verification result information corresponding to the original insulin pump meets the preset integrity verification pass conditions, the target insulin pump can receive user data migrated from the original insulin pump. If the data verification result information corresponding to the original insulin pump does not meet the preset integrity verification pass conditions, it indicates that the identity of the target insulin pump is questionable, and the current insulin pump data migration process needs to be terminated.

[0051] Understandably, in this embodiment, assuming the original insulin pump verifies that the target insulin pump has not been modified, the target insulin pump sends a generated checksum and a pre-configured target device identifier to the original insulin pump. This allows the original insulin pump to verify the integrity of the encrypted string obtained by concatenating and encrypting the target device identifier and checksum using a first key. If the encrypted string generated by the original insulin pump is complete, the target insulin pump can receive user data migrated from the original insulin pump. This ensures that the target insulin pump undergoes software-level verification even after magnetic field verification, reducing the possibility of counterfeit or tampered pumps accessing and receiving user data. In other words, this application improves the reliability of security verification for new insulin pumps, thereby enabling the secure migration of user data to legitimate new insulin pumps.

[0052] In some embodiments, prior to step S501, the insulin pump data migration method may also include, but is not limited to, steps S601 to S603: Step S601: Obtain the magnetic field feature information corresponding to the target identification magnet. The magnetic field feature information is used to reflect the magnetic field characteristics of the target identification magnet. Step S602: Verify the magnetic field characteristics of the magnetic field feature information to obtain the magnetic field verification result information; Step S603: In response to the magnetic field verification result information meeting the preset magnetic field verification pass conditions, a verification code is generated.

[0053] In steps S601 to S603 of some embodiments, the target insulin pump can acquire magnetic field feature information corresponding to the target identification magnet. This magnetic field feature information reflects the magnetic field characteristics of the target identification magnet. Then, the magnetic field feature information is verified, for example, by comparing the magnetic field features stored in the cloud at the time of the target insulin pump's manufacture with the currently acquired magnetic field feature information. Only after the magnetic field verification result meets preset magnetic field verification pass conditions is a verification code generated. In this way, the target insulin pump can perform a self-test using its factory magnetic field features: verification is only generated if it passes, otherwise the process is immediately terminated, avoiding subsequent encryption and communication overhead, thereby improving the efficiency of insulin pump data migration.

[0054] Please see Figure 7 This application also provides an insulin pump data migration system, which includes a target insulin pump 710 and a source insulin pump 720. The target insulin pump 710 includes: a target marking magnet 711; The primary insulin pump 720 is communicatively connected to the target insulin pump 710. The primary insulin pump 720 includes a first magnetic field sensor 721 and a first control unit 722. The first magnetic field sensor 721 acquires magnetic field characteristic information corresponding to the target identifier magnet 711. The first control unit 722 is electrically connected to the first magnetic field sensor 721 and is used to determine magnetic field verification result information based on the aforementioned insulin pump data migration method and magnetic field characteristic information. The first control unit 722 is also used to acquire the target device identifier and verification code of the target insulin pump 710 in response to the magnetic field verification result information meeting preset magnetic field verification pass conditions, and to determine data verification result information based on the aforementioned insulin pump data migration method, target device identifier, and verification code. The first control unit 722 is also used to migrate user data to the target insulin pump 710 in response to the data verification result information meeting preset integrity verification pass conditions.

[0055] In this embodiment, a target identification magnet is provided inside the target insulin pump 710. The original insulin pump 720 is communicatively connected to the target insulin pump 710. For example, the original insulin pump 720 and the target insulin pump 710 can be connected via near-field communication, that is, a near-field communication chip can be provided in each of the two pumps to realize information transmission. The first magnetic field sensor 721 can refer to a magnetically sensitive element capable of sensing the magnetic field strength and direction of the target identification magnet. For example, the first magnetic field sensor 721 can be a triaxial Hall sensor or an anisotropic magnetoresistive sensor, and is not specifically limited. The first control unit 722 can refer to a controller used to execute the insulin pump data migration method. For example, the first control unit 722 can be a microcontroller or a security chip, and is not specifically limited.

[0056] It is understood that the insulin pump data migration system constructed in this application, which includes a target insulin pump and an original insulin pump, acquires the magnetic field characteristic information corresponding to the target identifier magnet through a first magnetic field sensor. Then, it executes the above-mentioned insulin pump data migration method through a first control unit and the magnetic field characteristic information to obtain magnetic field verification result information and data verification result information. If the magnetic field verification result information meets the preset magnetic field verification pass condition and the data verification result information meets the preset integrity verification pass condition, then the user data is migrated to the target insulin pump. In this way, user data from the old pump can be securely migrated to the new pump, reducing the risk of counterfeit pump access and tampering, and improving the security and reliability of data migration.

[0057] In some embodiments, the primary insulin pump 720 further includes a first indicator light; the target insulin pump 710 further includes a second indicator light and a second control unit 712, the second control unit 712 being communicatively connected to the second indicator light. The first control unit 722 is communicatively connected to the second control unit 712 and the first indicator light. The first control unit 722 is also used to control the light emission color of the first indicator light to the first preset color in response to the magnetic field verification result information meeting the preset magnetic field verification pass conditions, and to send a first synchronization command to the second control unit 712 so that the second control unit 712 controls the light emission color of the second indicator light to the same first preset color. The first control unit 722 is also used to control the light color of the first indicator light to a second preset color in response to the data verification result information meeting the preset integrity verification pass condition, and to send a second synchronization command to the second control unit 712 so that the second control unit 712 controls the light color of the second indicator light to also be the second preset color.

[0058] In this embodiment, the first indicator light may refer to the indicator light within the original insulin pump 720 used to display the migration process status. The second indicator light may refer to the indicator light within the target insulin pump 710 used to display the migration process status. For example, both the first and second indicator lights can be LED lights or OLED lights, and there is no specific limitation. The first preset color may refer to a pre-selected color used to indicate that the magnetic field verification has passed and migration can continue. The second preset color may refer to a pre-selected color used to indicate that the data integrity verification has passed and migration is about to be completed. For example, the first preset color may be green, and the second preset color may be blue. It is understood that the first preset color and the second preset verification can be adjusted according to actual needs, but the colors must be different.

[0059] It should be noted that, in this embodiment of the application, the first indicator light and the second indicator light can be controlled to display a solid white light when the user data migration is completed, and to display a red flashing light when the migration is terminated; different colors, flashing frequencies or display times can also be used to further distinguish the states such as "verification in progress", "transmission in progress", "transmission completed" and "transmission failed". The specific colors and flashing frequencies can be set according to actual needs.

[0060] It is understood that, in this embodiment of the application, indicator lights are respectively set in the original insulin pump and the target insulin pump, and the two indicator lights are controlled by the first control unit to display the same color. This allows for a clear display of the insulin pump data migration process, reducing the time-consuming problem caused by the inability to detect verification failures in a timely manner, and improving the efficiency of insulin pump data migration and the user experience.

[0061] It should be noted that, in this embodiment of the application, prompt sound modules can also be set in the original insulin pump and the target insulin pump respectively. Similarly, the first control unit controls the two prompt sound modules to emit different tones or rhythms for different verification stages or abnormal states. For example, a short "beep" is emitted when the magnetic field verification is successful, two "beeps" are emitted when the data integrity verification is successful, and a continuous long "beep" is emitted when the migration fails. This allows the user to quickly grasp the migration status through sound without having to observe the indicator lights or screen, further improving the ease of operation.

[0062] In some embodiments, the primary insulin pump 720 further includes a protruding key; the target insulin pump 710 further includes a recess. A protruding key may refer to a positioning protrusion disposed on the edge of the primary insulin pump housing, and a recess may refer to a corresponding positioning notch disposed on the edge of the target insulin pump housing. It is understood that the size and position of the protruding key and the recess can be adjusted according to actual needs. When the primary insulin pump 720 and the target insulin pump 710 need to be paired, the protruding key is inserted into the recess, so that the housings of the two are completely fitted together and the target identification magnet is precisely aligned with the first magnetic field sensor, ensuring accurate reading of the magnetic field feature information, thereby improving the reliability of subsequent verification of the magnetic field feature information.

[0063] In some embodiments, the original insulin pump 720 also includes a button. The button can refer to a switch used to start or cancel insulin pump data migration. For example, the button can be a capacitive button or a Hall effect touch button, and the specific type is not limited. It should be noted that the first magnetic field sensor 721 can also continuously acquire the magnetic field strength corresponding to the target identifier magnet and send it to the first control unit 722. After receiving the data, the first control unit 722 can compare it according to a preset magnetic field strength threshold. When the magnetic field strength acquired by the first magnetic field sensor 721 is greater than the magnetic field strength threshold, the first control unit 722 sends a control signal to the button, causing the button to be pressed, thereby triggering the entire insulin data migration process. This ensures that subsequent steps are only initiated after the magnetic field feature information has been accurately read and verified, improving the accuracy of data migration.

[0064] In some embodiments, the original insulin pump 720 includes a main memory and a backup memory. The main memory relies on the built-in power supply of the original insulin pump 720 to function properly. The backup memory does not rely on the built-in power supply of the original insulin pump 720. Both the main memory and the backup memory are used to store user data. During insulin pump data migration, the user data stored in the main memory is typically migrated to the target insulin pump 710. However, if the original insulin pump 720 completely fails during insulin pump data migration for any reason (such as battery depletion or hardware failure), and if the target insulin pump 710 has passed security verification but the user data migration is interrupted, the original insulin pump 720 can power the backup storage area by setting the near-field communication chip, thereby migrating the user data stored in the backup memory to the target insulin pump 710. In this way, data can be resumed under the condition of old pump failure, avoiding data loss caused by migration interruption and improving the integrity and reliability of data migration.

[0065] This application also provides an electronic device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the above-described insulin pump data migration method. This electronic device can be any smart terminal, including tablet computers, in-vehicle computers, etc.

[0066] Please see Figure 8 , Figure 8 The hardware structure of an electronic device according to another embodiment is illustrated. The electronic device includes: The processor 801 can be implemented using a general-purpose central processing unit (CPU), microprocessor, application specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this application. The memory 802 can be implemented as a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 802 can store the operating system and other applications. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 802 and is called and executed by the processor 801 using the insulin pump data migration method of the embodiments of this application. The 803 input / output interface is used to implement information input and output. The communication interface 804 is used to enable communication and interaction between this device and other devices. Communication can be achieved through wired means (such as USB, Ethernet cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.). Bus 805 transmits information between various components of the device (e.g., processor 801, memory 802, input / output interface 803, and communication interface 804); The processor 801, memory 802, input / output interface 803, and communication interface 804 are connected to each other within the device via bus 805.

[0067] This application also provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described insulin pump data migration method.

[0068] Memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer-executable programs. Furthermore, memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory may optionally include memory remotely located relative to the processor, and these remote memories can be connected to the processor via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0069] The embodiments described in this application are for the purpose of more clearly illustrating the technical solutions of the embodiments of this application, and do not constitute a limitation on the technical solutions provided by the embodiments of this application. As those skilled in the art will know, with the evolution of technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems.

[0070] Those skilled in the art will understand that the technical solutions shown in the figures do not constitute a limitation on the embodiments of this application, and may include more or fewer steps than shown, or combine certain steps, or different steps.

[0071] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.

[0072] Those skilled in the art will understand that all or some of the steps in the methods disclosed above, as well as the functional modules / units in the systems and devices, can be implemented as software, firmware, hardware, or suitable combinations thereof.

[0073] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0074] It should be understood that in this application, "at least one (item)" means one or more, and "more than" means two or more. "And / or" is used to describe the relationship between related objects, indicating that three relationships can exist. For example, "A and / or B" can represent three cases: only A exists, only B exists, and both A and B exist simultaneously, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one (item) of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, and c can be single or multiple.

[0075] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of the units described above is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0076] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0077] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.

[0078] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes multiple instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing programs, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0079] The preferred embodiments of the present application have been described above with reference to the accompanying drawings, but this does not limit the scope of the claims of the present application. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and substance of the embodiments of the present application shall be within the scope of the claims of the present application.

Claims

1. A method of insulin pump data migration, the method comprising: The method is applied to an original insulin pump which stores user data, and the method comprises: obtaining magnetic field characteristic information of a target insulin pump, and performing magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; wherein the target insulin pump is configured with a target identification magnet, and the magnetic field characteristic information is used to reflect the magnetic field characteristics of the target identification magnet; in response to the magnetic field verification result information satisfying a preset magnetic field verification passing condition, receiving a target device identification and a verification code sent from the target insulin pump; wherein the verification code is generated by the target insulin pump; concatenating and encrypting the target device identification and the verification code according to a first key symbol to obtain an encrypted string; wherein the first key symbol is pre-stored in the original insulin pump and the target insulin pump; performing data integrity verification on the encrypted string to obtain data verification result information; in response to the data verification result information satisfying a preset integrity verification passing condition, migrating the user data to the target insulin pump.

2. The method of claim 1, wherein, The response to the data verification result information satisfying the preset integrity verification passing condition and the migration of the user data to the target insulin pump comprise: in response to the data verification result information satisfying the preset integrity verification passing condition, migrating the user data to the target insulin pump, determining a first key calculation parameter according to a first random number and a first key symbol, and sending the first key calculation parameter to the target insulin pump; wherein the first random number is generated by the original insulin pump; receiving a second key calculation parameter from the target insulin pump; wherein the second key calculation parameter is determined by the target insulin pump based on the first key symbol and a second random number, and the second random number is generated by the target insulin pump; in the original insulin pump, generating a second key symbol based on the first key calculation parameter and the second key calculation parameter; wherein the second key symbol is also generated based on the first key calculation parameter and the second key calculation parameter in the target insulin pump; encrypting the user data according to the first key symbol and the second key symbol to obtain encrypted user data, and migrating the encrypted user data to the target insulin pump, so that the target insulin pump decrypts the encrypted user data according to the first key symbol and the second key symbol to obtain the user data.

3. The method of claim 2, wherein, The user data comprises health-related data and health-unrelated data, and the encryption of the user data according to the first key symbol and the second key symbol to obtain encrypted user data comprises: in the original insulin pump, encrypting the health-related data according to the second key symbol to obtain encrypted health-related data; encrypting the encrypted health-related data and the health-unrelated data according to the first key symbol to obtain the encrypted user data.

4. The method of claim 2, wherein, The generation of the second key symbol based on the first key calculation parameter and the second key calculation parameter in the original insulin pump comprises: XOR processing is performed on the first key calculation parameter and the second key calculation parameter to obtain a target key calculation parameter; A target key generation algorithm is determined from a preset key generation algorithm set according to the target key calculation parameter; wherein the key generation algorithm set includes a plurality of preset key generation algorithms; A target key is generated according to the target key generation algorithm and the target key calculation parameter to obtain the second key symbol.

5. A method for insulin pump data migration, the method comprising: The method is applied to a target insulin pump, and the target insulin pump is configured with a target identification magnet, and the method comprises: generating a check code; sending a preconfigured target device identification and the check code to an original insulin pump, so that the original insulin pump performs cascade encryption on the target device identification and the check code according to a first key symbol to obtain an encrypted string body, and performs data integrity verification on the encrypted string body to obtain data verification result information; wherein the first key symbol is pre-stored in the original insulin pump and the target insulin pump; in response to the data verification result information satisfying a preset integrity verification passing condition, receiving user data migrated from the original insulin pump; wherein the user data is stored in the original insulin pump.

6. The method of claim 5, wherein, Before generating the check code, the method further comprises: obtaining magnetic field characteristic information corresponding to the target identification magnet, the magnetic field characteristic information being used to reflect the magnetic field characteristics of the target identification magnet; performing magnetic field characteristic verification on the magnetic field characteristic information to obtain magnetic field verification result information; in response to the magnetic field verification result information satisfying a preset magnetic field verification passing condition, generating the check code.

7. An insulin pump data migration system, comprising: The system comprises: a target insulin pump, the target insulin pump comprising a target identification magnet; an original insulin pump, the original insulin pump being in communication connection with the target insulin pump, the original insulin pump comprising a first magnetic field sensor and a first control unit; wherein the first magnetic field sensor is used to obtain magnetic field characteristic information corresponding to the target identification magnet; the first control unit is in electrical connection with the first magnetic field sensor, and the first control unit is used to determine magnetic field verification result information according to the insulin pump data migration method and the magnetic field characteristic information according to any one of claims 1 to 4; the first control unit is also used to obtain a target device identification and a check code of the target insulin pump in response to the magnetic field verification result information satisfying a preset magnetic field verification passing condition, and is used to determine data verification result information according to the insulin pump data migration method, the target device identification and the check code according to any one of claims 1 to 4; the first control unit is also used to migrate user data to the target insulin pump in response to the data verification result information satisfying a preset integrity verification passing condition.

8. The system of claim 7, wherein, The original insulin pump further comprises a first indicator light; the target insulin pump further comprises a second indicator light and a second control unit, and the second control unit is in communication connection with the second indicator light; The first control unit is in communication connection with the second control unit and the first indicator light, and is configured to control the light-emitting color of the first indicator light to be a first preset color in response to the magnetic field verification result information satisfying a preset magnetic field verification pass condition, and to send a first synchronization instruction to the second control unit, so that the second control unit controls the light-emitting color of the second indicator light to be the first preset color as well. The first control unit is further configured to control the light-emitting color of the first indicator light to be a second preset color in response to the data verification result information satisfying a preset integrity verification pass condition, and to send a second synchronization instruction to the second control unit, so that the second control unit controls the light-emitting color of the second indicator light to be the second preset color as well.

9. An electronic device, comprising: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the insulin pump data migration method in any one of claims 1 to 6 when executing the computer program.

10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. The computer program is executed by the processor to implement the insulin pump data migration method in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Method for migrating data and related equipment

    CN114120498A

  • Method and system for data migration of in-vitro program control equipment

    CN116931835A

  • Method of identifying an object and a tag carrying identification information

    US20050017082A1

  • Device identity authentication method and apparatus, electronic device, and computer-readable medium

    US20240097895A1

  • Secure communication architecture for medical devices

    US9980140B1