Device data transmission method and device

Through the Bluetooth data encryption and decryption mechanism between devices, the decryption method is set only on the device that needs to use the data, and the server or user terminal is used for data transmission and decryption, which solves the problem of protecting data privacy and user privacy in the IoT device group and realizes secure collaboration between devices.

CN116266910BActive Publication Date: 2025-09-16ZHEJIANG SHAOXING SUPOR DOMESTIC ELECTRICAL APPLIANCE CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211518708.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-09-16
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In an IoT device group, how to protect data privacy between devices and user privacy data from being leaked, especially the security issues during transmission within the device group.

Method used

Through the Bluetooth data encryption and decryption mechanism between devices, the decryption method is set only on the devices that need to use the data, and the server or user terminal is used to transmit and decrypt data, ensuring that only authorized devices can decrypt and use the data.

Benefits of technology

It enhances the security of data transmission between devices, protects user privacy and data within the device group from being leaked, ensures the collaborative work of devices and improves data security.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116266910B_ABST
    Figure CN116266910B_ABST
Patent Text Reader

Abstract

Embodiments of this specification provide a device data transmission method and apparatus, including: a first device acquiring Bluetooth data ciphertext broadcasted by a second device, wherein the Bluetooth data ciphertext is obtained by the second device matching a corresponding encryption method based on the Bluetooth data type generated by the second device; determining whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein the existence of the first decryption method is determined based on the first device's usage requirements for the Bluetooth data; and, if the first decryption method exists, decrypting the Bluetooth data ciphertext using the first decryption method to obtain Bluetooth data plaintext. This method enhances the security of device group data transmission and protects user privacy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of communication technology, and more particularly to a method and apparatus for device data transmission. Background Art

[0002] With the application and development of IoT technology in home and commercial environments, devices in the same device group can collaborate to provide better services to users. For example, in a real-world home environment, when performing home service operations, home devices may generate service output data. For example, the weight information obtained by a kitchen scale from weighing ingredients needs to be output to a cooking machine so that the machine can determine the amount of cooking oil to be added.

[0003] In users' actual life scenarios, the data generated by different devices have different functions, and when home appliances are interconnected, the needs for data with different functions are also different. This leads to the possibility that some types of service output data may involve the privacy of the device group. In other words, these types of service output data belong to device group privacy data, which is only suitable for transmission between certain home appliances in the same device group, and is not suitable for disclosure to other devices outside the device group. For example, the weight information obtained by weighing ingredients on a kitchen scale belongs to device group privacy data, which is suitable for transmission to home appliances in the same device group (such as cooking machines, pressure cookers), but is not suitable for disclosure to other devices outside the device group (such as another cooking machine outside the device group).

[0004] Some types of service output data may involve the user's personal privacy. In other words, this type of service output data is user-private data and should only be disclosed to the user. For example, body fat and weight data from a body fat scale are user-private data and should only be disclosed to the user.

[0005] Based on this, a data transmission solution that can protect the privacy of the above data is needed. Summary of the Invention

[0006] In view of this, embodiments of this specification provide at least one device data transmission method and apparatus.

[0007] Specifically, the embodiments of this specification are implemented through the following technical solutions:

[0008] In a first aspect, a device data transmission method is provided, the method comprising:

[0009] The first device obtains the Bluetooth data ciphertext broadcasted by the second device, wherein the Bluetooth data ciphertext is obtained by the second device according to the Bluetooth data type generated by the second device and matching the corresponding encryption method;

[0010] Determining whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein whether the first decryption method exists is set based on a usage requirement of the first device for the Bluetooth data;

[0011] When it is determined that the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method to obtain the Bluetooth data plaintext.

[0012] In the device data transmission method provided by the technical solution of the first scheme, the Bluetooth data ciphertext sent by the second device is obtained by matching the corresponding encryption method according to the Bluetooth data type. For the first device that receives the broadcast Bluetooth data ciphertext, the corresponding first decryption method will be set only when the first device has a need to use the Bluetooth data, and it can be decrypted according to the first decryption method, so that other devices other than the first device that do not need the Bluetooth data cannot decrypt the Bluetooth data ciphertext - while ensuring that the devices can work together based on the communication connection, the security of data transmission is enhanced and the privacy of users is protected.

[0013] In some embodiments, the Bluetooth data ciphertext includes target data, and before the first device obtains the Bluetooth data ciphertext broadcasted by the second device, the method further includes:

[0014] In response to the server determining, based on the device function of the first device, that the first device needs to use the target data, a first decryption method used to decrypt the target data, issued by the server, is obtained.

[0015] Different devices need to obtain different types of data during operation due to different device functions. Only devices that have pre-obtained the first decryption method issued by the server can decrypt the Bluetooth data ciphertext, and impose certain restrictions on the decryption of data. Devices with demand can obtain the Bluetooth data plaintext to use the target data, while devices without demand cannot obtain it, which reduces the range of devices that can decrypt Bluetooth data ciphertext and improves data security.

[0016] In some embodiments, the Bluetooth data ciphertext includes target data, and when determining that the first decryption method exists, decrypting the Bluetooth data ciphertext using the first decryption method includes:

[0017] When it is determined that the first decryption method exists and the authority for the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method, and the authority for the first decryption method is granted when the function to be executed by the first device requires the use of target data.

[0018] By setting the decryption method permission, the decryption of data is further restricted. Even for devices with the first decryption method, the corresponding permission is granted only when the device actually needs this data to perform the corresponding function. When the device is on standby or performing functions unrelated to such data, the decryption method permission is not granted, further improving data security.

[0019] In some embodiments, the method further comprises:

[0020] When it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is transmitted to the server via Wi-Fi communication, so that the server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0021] The first device may also be a device that acts as a gateway, and the gateway device has a Wi-Fi module that connects and communicates with the Bluetooth module. In addition to being able to perform the normal functions of the device and the data transmission functions described in the above embodiments, the gateway device can also communicate with the user terminal. When the device has a Wi-Fi module, the Bluetooth data ciphertext can be directly uploaded to the server without broadcasting, further reducing the possibility of data leakage. The server can determine its encryption method based on the Bluetooth data ciphertext and query the device with its decryption method, that is, the user terminal associated with the device. The user terminal is a private device of the user, and various types of decryption methods can be pre-set on the user terminal so that the user can view various types of service output data through the user terminal.

[0022] In some embodiments, the method further comprises:

[0023] If it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is broadcasted so that other devices with Wi-Fi communication function upload the Bluetooth data ciphertext to the server after receiving it. The server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0024] When the first device does not have a Wi-Fi module, it can broadcast Bluetooth data ciphertext so that other devices with Wi-Fi modules can receive the Bluetooth data ciphertext and upload it to the server, so that the server can forward it to the user terminal, and the user can view various types of service output data through the user terminal.

[0025] In some embodiments, after obtaining the Bluetooth data plaintext, the method further includes:

[0026] The Bluetooth data plaintext is locally processed to perform device functions.

[0027] When the first device is able to decrypt the Bluetooth data ciphertext to obtain the Bluetooth data plaintext, it means that the first device itself needs to use the information in the Bluetooth data plaintext to perform corresponding device functions to achieve collaborative work between the first device and the second device.

[0028] In some embodiments, different Bluetooth data types have different data uses and usage restrictions. After generating the second device data, the second device determines the corresponding encryption method based on the Bluetooth data type of the second device data, and uses the encryption method to encrypt the second device data to obtain Bluetooth data ciphertext.

[0029] Different devices generate Bluetooth data of different types depending on their actual functional characteristics. Different encryption methods are used for Bluetooth data types with different data purposes and usage restrictions. The devices have corresponding decryption algorithms for the required Bluetooth data types to protect data security without affecting communication between devices.

[0030] In some embodiments, the method further comprises:

[0031] The first device generates first device data to be sent, determines whether the first device data needs to be encrypted according to data usage of the first device data, and determines a target encryption method to be used if encryption is required;

[0032] The first device data is encrypted using the target encryption method to obtain a device data ciphertext, and the device data ciphertext is broadcast and sent.

[0033] Devices generate different data depending on their functions and also need to obtain different data. After generating the device data to be sent, whether encryption is required is determined based on the data usage of the device data. Device data without confidentiality requirements does not need to be encrypted, saving computing resources and communication time.

[0034] In a second aspect, a device data transmission apparatus is provided, the apparatus comprising:

[0035] a data acquisition module, configured to: acquire the Bluetooth data ciphertext broadcasted by the second device, wherein the Bluetooth data ciphertext is obtained by the second device according to the Bluetooth data type generated by the second device and matching the corresponding encryption method;

[0036] a data determination module, configured to determine whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein whether the first decryption method exists is set based on a usage requirement of the first device for the Bluetooth data;

[0037] The data decryption module is used to: when it is determined that the decryption method exists, decrypt the Bluetooth data ciphertext using the decryption method to obtain the Bluetooth data plaintext.

[0038] According to a third aspect, an electronic device is provided, comprising a memory and a processor, wherein the memory is used to store computer instructions that can be executed on the processor, and the processor is used to implement the device data transmission method described in any embodiment of this specification when executing the computer instructions.

[0039] In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the device data transmission method described in any embodiment of this specification is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions in one or more embodiments of this specification or related technologies, the following briefly introduces the drawings required for use in the embodiments or related technology descriptions. Obviously, the drawings described below are only some embodiments recorded in one or more embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0041] Figure 1 is a flow chart of a device data transmission method shown in at least one embodiment of this specification;

[0042] Figure 2 is a block diagram of a device data transmission apparatus according to at least one embodiment of this specification;

[0043] Figure 3 is a block diagram of another device data transmission apparatus shown in at least one embodiment of this specification;

[0044] Figure 4 This is a schematic diagram of the hardware structure of an electronic device shown in at least one embodiment of this specification. DETAILED DESCRIPTION

[0045] Exemplary embodiments will be described in detail herein, with examples illustrated in the accompanying drawings. In the following description, when referring to the drawings, identical numerals in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments are not intended to represent all embodiments consistent with this specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of this specification, as detailed in the appended claims.

[0046] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. As used in this specification and the appended claims, the singular forms "a," "an," "the," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and / or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0047] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, such information should not be limited to these terms. These terms are merely used to distinguish information of the same type from one another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information without departing from the scope of this specification. Depending on the context, the term "if" as used herein may be interpreted as "when," "when," or "in response to determining."

[0048] The devices described in this specification generally refer to appliances used in various home environments, such as air conditioners, refrigerators, cooking appliances, robot vacuums, speakers, and televisions. Multiple devices in the same home environment are called a device group. Devices in a device group can be from the same vendor or user-configured. A home environment can have one or more device groups, and these groups need to be kept separate for confidentiality.

[0049] The devices described in this manual have the typical structure and functions of currently available household appliances (such as product housing, power interface, and basic household appliance functions), and are not specifically described in this manual. The devices also have communication capabilities and can communicate with other devices within the device group to better provide services to users.

[0050] like Figure 1 As shown, Figure 1 This is a flowchart of a device data transmission method shown in at least one embodiment of this specification. The method can be used for any device in the device group, including the following steps:

[0051] In step 102, the first device obtains the Bluetooth data ciphertext broadcasted by the second device, wherein the Bluetooth data ciphertext is obtained by the second device by matching the generated Bluetooth data type with the corresponding encryption method.

[0052] When a second device performs a device function, it generates second device data to be transmitted. The confidentiality requirements for second device data of different Bluetooth data types vary. For example, when a user uses a robot vacuum cleaner to clean, the actual cleaning path data generated by the robot vacuum cleaner involves the user's room privacy and is classified as highly confidential data, namely, user privacy data. Another example is when a user uses a kitchen scale to measure food, the weighing information generated by the kitchen scale needs to be shared with the smart cooking machine and is classified as general confidentiality data, namely, device group privacy data.

[0053] Different encryption methods are pre-set in the device for device data of different Bluetooth data types. The second device encrypts the second device data according to the encryption method that matches the Bluetooth data type to obtain Bluetooth data ciphertext, and then broadcasts it. This ensures that every device within the broadcast range of the home environment receives the Bluetooth data ciphertext. Bluetooth modules are low-cost and suitable for broadcasting within the home environment. Of course, not all data needs to be encrypted. Device data that does not require confidentiality can be unencrypted.

[0054] Different encryption methods are implemented by different encryption algorithms, and this embodiment does not limit the specific encryption algorithm used.

[0055] The first device receives the Bluetooth data ciphertext broadcasted by the second device via Bluetooth.

[0056] In step 104, it is determined whether a first decryption method for decrypting the Bluetooth data ciphertext exists, wherein whether the first decryption method exists is set based on the usage requirement of the first device for the Bluetooth data.

[0057] Devices with different functions generate and receive different data. Consequently, different devices have different requirements for encrypting and decrypting data after it is generated. Devices that require certain Bluetooth data types are configured with corresponding decryption methods. Specifically, a first decryption algorithm matching the encryption method used for the Bluetooth data ciphertext is distributed to the device, enabling it to decrypt the Bluetooth data ciphertext.

[0058] For example, the message content containing Bluetooth data ciphertext sent by the second device via Bluetooth broadcast contains at least one flag bit marking the encryption method used, so that the first device receiving the Bluetooth data ciphertext can determine whether there is a first decryption method for decrypting the Bluetooth data ciphertext based on the flag bit.

[0059] For devices that do not need to use Bluetooth data ciphertext, the corresponding decryption method is not set, that is, the first decryption algorithm matching the first decryption method is not sent to the device. After receiving the Bluetooth data ciphertext, the device does not process it if it finds that the first decryption method does not exist.

[0060] In step 106, when it is determined that the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method to obtain the Bluetooth data plaintext.

[0061] When the first device determines that the first decryption method exists, it means that the first device needs to use the Bluetooth data, and decrypts the Bluetooth data ciphertext according to the decryption algorithm in the first decryption method to obtain the Bluetooth data ciphertext, that is, the second device data generated by the second device.

[0062] The Bluetooth data ciphertext sent by the second device is obtained by matching the corresponding encryption method according to the Bluetooth data type. For the first device that receives the broadcast Bluetooth data ciphertext, the corresponding first decryption method will only be set when the first device has a need to use the Bluetooth data, and it can be decrypted according to the first decryption method. As a result, other devices other than the first device that do not need the Bluetooth data cannot decrypt the Bluetooth data ciphertext. While ensuring that the devices can work together based on the communication connection, the security of data transmission is enhanced and the privacy of users is protected.

[0063] In some embodiments, the Bluetooth data ciphertext includes target data, and before the first device obtains the Bluetooth data ciphertext broadcasted by the second device, the method further includes:

[0064] In response to the server determining, based on the device function of the first device, that the first device needs to use the target data, a first decryption method used to decrypt the target data, issued by the server, is obtained.

[0065] Different devices require different types of data during operation due to their varying capabilities. The server can analyze each device's need for access to relevant data based on its capabilities and send the decryption method to the corresponding device. For example, if the target data is cooking data, the server will send the decryption method required to decrypt the cooking data to the cooking device.

[0066] Only devices that have pre-obtained the first decryption method issued by the server can decrypt the Bluetooth data ciphertext, and the decryption of data is restricted to a certain extent. Devices with demand can obtain the Bluetooth data plaintext to use the target data, while devices without demand cannot obtain it. This reduces the range of devices that can decrypt the Bluetooth data ciphertext and improves data security.

[0067] In some embodiments, the Bluetooth data ciphertext includes target data, and when determining that the first decryption method exists, decrypting the Bluetooth data ciphertext using the first decryption method includes:

[0068] When it is determined that the first decryption method exists and the authority for the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method, and the authority for the first decryption method is granted when the function to be executed by the first device requires the use of target data.

[0069] When the first device needs to use the target data to execute a device function, it can request the corresponding decryption authority from the server, or the server can send the corresponding decryption authority to the first device when it detects that the first device has a function to be executed that requires the use of the target data.

[0070] By setting the decryption method permission, the decryption of data is further restricted. Even for devices with the first decryption method, the corresponding permission is granted only when the device actually needs this data to perform the corresponding function. When the device is on standby or performing functions unrelated to such data, the decryption method permission is not granted, further improving data security.

[0071] In some embodiments, the method further comprises:

[0072] When it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is transmitted to the server via Wi-Fi communication, so that the server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0073] The first device can also be a device that plays the role of a gateway. The gateway device has a Wi-Fi module that connects and communicates with the Bluetooth module. In addition to being able to perform the normal functions of the device and the data transmission function described in the above embodiment, the gateway device can also communicate with the user terminal. When the gateway device itself generates data, it can be reported directly through the Wi-Fi module or encrypted and reported. When receiving Bluetooth data ciphertext broadcast by other devices, it determines whether to decrypt or directly forward it to the server based on the encryption method of the received ciphertext.

[0074] When the first device has a Wi-Fi module, the Bluetooth data ciphertext can be directly uploaded to the server without broadcasting, further reducing the possibility of data leakage. The server can determine its encryption method based on the Bluetooth data ciphertext and query the device with its decryption method, that is, the user terminal associated with the device. The user terminal is the user's private device. Various types of decryption methods can be pre-set on the user terminal so that the user can view various types of device data through the user terminal.

[0075] For example, when the data generated by the second device is user-private data, this data does not need to be shared with other devices and involves important user privacy. Instead, the user can view it through a user terminal associated with the device group. A user terminal refers to the terminal device logged in by the user account, which can be a mobile phone, computer, tablet, wristband, etc. The user terminal can be in the home environment or outside the home environment to remotely view the relevant data of the device.

[0076] In some embodiments, the method further comprises:

[0077] If it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is broadcasted so that other devices with Wi-Fi communication function upload the Bluetooth data ciphertext to the server after receiving it. The server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0078] When the first device does not have a Wi-Fi module, since it cannot directly upload the Bluetooth data ciphertext to the server, it can broadcast the Bluetooth data ciphertext so that other devices with a Wi-Fi module can receive the Bluetooth data ciphertext and upload it to the server, so that the server can query the user terminal with the corresponding decryption method and forward the Bluetooth data ciphertext to the user terminal, and the user can view various types of device data through the user terminal.

[0079] In some embodiments, after obtaining the Bluetooth data plaintext, the method further includes:

[0080] The Bluetooth data plaintext is locally processed to perform device functions.

[0081] After obtaining the plaintext Bluetooth data, that is, the second device data generated by the second device, the first device uses the second device data to locally execute the function of the device. For example, after the smart cooking pot obtains the weight information of the food, it adjusts the power and time accordingly to execute the automatic cooking function.

[0082] When the first device is able to decrypt the Bluetooth data ciphertext to obtain the Bluetooth data plaintext, it means that the first device itself needs to use the information in the Bluetooth data plaintext to perform corresponding device functions to achieve collaborative work between the first device and the second device.

[0083] In some embodiments, the method further comprises:

[0084] The first device generates device data to be sent, determines whether the device data needs to be encrypted based on the data usage of the device data, and determines a target encryption method to be used if encryption is required;

[0085] The device data is encrypted using the target encryption method to obtain a device data ciphertext, and the device data ciphertext is broadcast and sent.

[0086] Any device in the device group may generate data and send it to other devices, or may receive data from other devices. Depending on the different functions of the devices, they will generate different data and also need to obtain different data. In this process, the Bluetooth data generated by the device needs to select a matching target encryption method according to the Bluetooth data type, and the Bluetooth data is encrypted into Bluetooth data ciphertext and then sent out. When receiving the Bluetooth data ciphertext from other devices, the device sets a corresponding decryption method according to the data requirements, and decrypts the Bluetooth data ciphertext if there is a corresponding decryption method.

[0087] After the first device generates the device data to be sent, it determines whether encryption is required based on the data usage of the device data. For device data without confidentiality requirements, encryption is not required, saving computing resources and communication time. For device data with confidentiality requirements, the target encryption method to be used is determined based on the data usage.

[0088] In some embodiments, different Bluetooth data types have different data uses and usage restrictions. After generating the second device data, the second device determines the corresponding encryption method based on the Bluetooth data type of the second device data, and uses the encryption method to encrypt the second device data to obtain Bluetooth data ciphertext.

[0089] Among them, different encryption methods use different types and numbers of encryption algorithms. For example, the second encryption method uses multiple encryption algorithms for repeated encryption to improve the security of the ciphertext, while the first encryption method uses fewer encryption algorithms, such as a single encryption algorithm for encryption, to reduce the time it takes for the device to decrypt the ciphertext and improve the speed of the service.

[0090] Different devices generate Bluetooth data of different types depending on their actual functional characteristics. Different encryption methods are used for Bluetooth data types with different data purposes and usage restrictions. The devices have corresponding decryption algorithms for the required Bluetooth data types to protect data security without affecting communication between devices.

[0091] The above technical solution is described below in conjunction with a specific embodiment.

[0092] Different encryption methods can be divided into multiple levels. This embodiment uses two levels as an example for illustration. The first encryption method is Level 1, representing a general encryption level (low encryption requirements), the second encryption method is Level 2, representing an advanced encryption level (high encryption requirements), and the third encryption method is Level 1, representing a general encryption level. Different encryption levels are implemented using different encryption algorithms. For example, Level 1 encryption can be implemented using a single encryption algorithm, while Level 2 encryption uses two encryption algorithms. Different encryption methods within the same level also use different encryption algorithms. For example, the first encryption method uses Encryption Algorithm A, while the third encryption method uses Encryption Algorithm B.

[0093] Different devices have different device types and functional characteristics, and the Bluetooth data types of the data generated are also different. Different Bluetooth data types have different data uses and usage restrictions, and the encryption methods used are also different. Table 1 shows the encryption methods set for different data in different devices.

[0094]

[0095] Table 1

[0096] In addition, different decryption methods and corresponding decryption permissions are set on the device side based on the different data usage requirements of different devices, as shown in Table 2.

[0097]

[0098]

[0099] Table 2

[0100] The devices mentioned in the table above are home appliances equipped with Bluetooth modules and capable of transmitting and receiving Bluetooth broadcasts, such as smart kitchen scales, smart body fat scales, and smart rice cookers. The device group can also include home appliances equipped with Wi-Fi and Bluetooth modules, which function as gateway devices. In addition to being able to transmit and receive Bluetooth broadcasts, they can also connect to a cloud server via Wi-Fi and upload received messages to the cloud server. In this embodiment, the gateway device is a smart cooking machine.

[0101] As shown in the table, when a device requires external data for operation or function, it has a decryption method for this data. When a device does not have this function, it does not have a decryption method for this data. For example, if a rice cooker requires food weight data via Bluetooth, it will have a first decryption method corresponding to the first encryption method used to encrypt food weight data. However, a thermometer does not require food weight data and does not have a first decryption method.

[0102] Furthermore, in addition to setting the decryption method, the decryption authority corresponding to the decryption method can also be set. The decryption authority can be set according to the usage restrictions of the data. For example, if the use of body fat data needs to be strictly restricted, the decryption authority corresponding to the second decryption method will be granted only when the cooking machine that needs this data actually needs body fat data to perform recipes related to cooking and oil. When the cooking machine is on standby or executing functions unrelated to body fat data, the decryption authority corresponding to the second decryption method will not be granted.

[0103] The encryption method that matches the Bluetooth data type is set according to the data purpose and usage restrictions. Users can set different encryption and decryption methods for different devices in advance on the APP (application software) of the user terminal associated with the device group according to actual needs, or they can use the default settings, or the server obtains the functions of each device and automatically gives the corresponding encryption and decryption methods and permissions to the corresponding device based on whether the specific capabilities of the function require relevant data. For example, the data generated by the body fat scale is used for user viewing and cooking assistance, and its use needs to be strictly restricted. A second encryption method with a higher degree of encryption is set on the body fat scale, and no decryption method is provided; the data generated by the thermometer is used for user viewing and other purposes, and its use is not restricted. No encryption and decryption methods are set on the thermometer. In addition, user terminals, such as smartphones or smart bracelets, are equipped with all encryption and decryption methods.

[0104] For example, a smart cooking machine has a screen that can display the content of the smart recipe, cooking mode, cooking data, indoor temperature and other information, and can present recommended recipes. The following uses the smart cooking machine as the execution subject for explanation. The smart cooking machine adopts different processing methods when receiving messages encrypted with different encryption methods:

[0105] The smart cooking machine receives the unencrypted broadcast information from the thermometer, processes it, displays the received temperature information on the screen, and sends the information to the cloud server via the Wi-Fi module.

[0106] The smart cooking machine receives the main ingredient weighing data from the kitchen scale, and determines through the flag bit that it is the first ciphertext encrypted using the first encryption method. The data can be uploaded to the cloud server through the Wi-Fi module, and the data is decrypted at the same time. Then, the information is processed and the main ingredient weighing is obtained to be 600g. Compared with the main ingredient of 500g in the original cooking mode recipe, the cooking time needs to be adjusted by 2 minutes, and then the cooking mode can be adjusted.

[0107] When the smart cooking machine receives the body fat data from the body fat scale and determines through the flag bit that it is the second ciphertext encrypted using the second encryption method, it cannot decrypt and process the data. It directly uploads the second ciphertext to the cloud server, which forwards it to the user terminal. The user's mobile phone APP or smart bracelet receives the second ciphertext, which can be decrypted and presented to the user.

[0108] It should be noted that encrypting the data generated by the device can prevent neighbors, surrounding devices or appliances of other brands outside the same brand device group from obtaining device data generated in the home environment. Encrypting the data generated by the device in different encryption methods according to the Bluetooth data type not only has the above-mentioned preventive effect, but also can prevent user privacy data from being obtained by other devices in the device group that do not need to use the data, thereby further reducing the risk of data leakage.

[0109] like Figure 2 As shown, Figure 2 This is a block diagram of a device data transmission apparatus according to at least one embodiment of this specification, the apparatus being applied to any device in the device group, and comprising:

[0110] The data acquisition module 21 is configured to acquire the Bluetooth data ciphertext broadcasted by the second device, wherein the Bluetooth data ciphertext is obtained by the second device according to the Bluetooth data type generated by the second device and the corresponding encryption method;

[0111] a data determination module 22 configured to determine whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein whether the first decryption method exists is set based on a usage requirement of the first device for the Bluetooth data;

[0112] The data decryption module 23 is configured to: when it is determined that the decryption method exists, decrypt the Bluetooth data ciphertext using the decryption method to obtain the Bluetooth data plaintext.

[0113] In some embodiments, the Bluetooth data ciphertext includes target data, and the data acquisition module 21 is further configured to:

[0114] In response to the server determining, based on the device function of the first device, that the first device needs to use the target data, a first decryption method used to decrypt the target data, issued by the server, is obtained.

[0115] In some embodiments, the Bluetooth data ciphertext includes target data, and the data decryption module 23 is specifically configured to:

[0116] When it is determined that the first decryption method exists and the authority for the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method, and the authority for the first decryption method is granted when the function to be executed by the first device requires the use of target data.

[0117] In some embodiments, as Figure 3 As shown, the device further includes a data uploading module 24, which is used to:

[0118] When it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is transmitted to the server via Wi-Fi communication, so that the server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0119] In some embodiments, the apparatus further includes a data sending module 25 configured to:

[0120] If it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is broadcasted so that other devices with Wi-Fi communication function upload the Bluetooth data ciphertext to the server after receiving it. The server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

[0121] In some embodiments, the apparatus further includes a data processing module 26 for locally processing the Bluetooth data plaintext to execute a device function after obtaining the Bluetooth data plaintext.

[0122] In some embodiments, different Bluetooth data types have different data uses and usage restrictions. After generating the second device data, the second device determines the corresponding encryption method based on the Bluetooth data type of the second device data, and uses the encryption method to encrypt the second device data to obtain Bluetooth data ciphertext.

[0123] In some embodiments, the data sending module 25 is also used to: generate first device data to be sent, determine whether the first device data needs to be encrypted based on the data purpose of the first device data, and determine the target encryption method to be used when encryption is required; encrypt the first device data using the target encryption method to obtain a device data ciphertext, and broadcast and send the device data ciphertext.

[0124] The implementation process of the functions and effects of each module in the above-mentioned device is specifically described in the implementation process of the corresponding steps in the above-mentioned method, and will not be repeated here.

[0125] The embodiment of this specification also provides an electronic device, such as Figure 4As shown, the electronic device includes a memory 41 and a processor 42, wherein the memory 41 is used to store computer instructions that can be executed on the processor, and the processor 42 is used to implement the device data transmission method described in any embodiment of this specification when executing the computer instructions.

[0126] An embodiment of this specification also provides a computer program product, which includes a computer program / instruction, and when the computer program / instruction is executed by a processor, it implements the device data transmission method described in any embodiment of this specification.

[0127] An embodiment of the present specification further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the device data transmission method described in any embodiment of the present specification.

[0128] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to the partial description of the method embodiments. The device embodiments described above are merely illustrative, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying any creative work.

[0129] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0130] Other embodiments of the present invention will readily occur to those skilled in the art upon consideration of the present invention and practice of the invention claimed herein. This specification is intended to cover any variations, uses, or adaptations of the present invention that follow the general principles of this specification and include common knowledge or customary techniques in the art not claimed herein. The description and examples are to be considered as exemplary only, with the true scope and spirit of the present invention being indicated by the following claims.

[0131] It should be understood that the present description is not limited to the exact structure that has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0132] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A device data transmission method, characterized in that: The method comprises: The first device obtains a Bluetooth data ciphertext broadcasted by the second device, wherein the Bluetooth data ciphertext is obtained by the second device by matching a corresponding encryption method based on a Bluetooth data type generated by the second device; different Bluetooth data types have different data uses and usage restrictions; and the encryption method corresponding to the Bluetooth data type of the data of the second device is determined based on the Bluetooth data type. Determining whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein whether the first decryption method exists is set based on a usage requirement of the first device for the Bluetooth data; When it is determined that the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method to obtain the Bluetooth data plaintext.

2. The method according to claim 1, characterized in that The Bluetooth data ciphertext includes target data. Before the first device obtains the Bluetooth data ciphertext broadcasted by the second device, the method further includes: In response to the server determining, based on the device function of the first device, that the first device needs to use the target data, a first decryption method used to decrypt the target data, issued by the server, is obtained.

3. The method according to claim 1, characterized in that The Bluetooth data ciphertext includes target data, and when it is determined that the first decryption method exists, decrypting the Bluetooth data ciphertext using the first decryption method includes: When it is determined that the first decryption method exists and the authority for the first decryption method exists, the Bluetooth data ciphertext is decrypted using the first decryption method, and the authority for the first decryption method is granted when the function to be executed by the first device requires the use of target data.

4. The method according to claim 1, wherein The method further comprises: When it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is transmitted to the server via Wi-Fi communication, so that the server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

5. The method according to claim 1, characterized in that The method further comprises: If it is determined that the first decryption method does not exist, the Bluetooth data ciphertext is broadcasted so that other devices with Wi-Fi communication function upload the Bluetooth data ciphertext to the server after receiving it. The server queries the user terminal with the first decryption method and forwards the Bluetooth data ciphertext to the user terminal.

6. The method according to claim 1, characterized in that After obtaining the Bluetooth data plaintext, the method further includes: The Bluetooth data plaintext is locally processed to perform device functions.

7. The method according to claim 1, characterized in that After generating the second device data, the second device determines a corresponding encryption method according to the Bluetooth data type of the second device data, and uses the encryption method to encrypt the second device data to obtain Bluetooth data ciphertext.

8. The method according to claim 1, characterized in that The method further comprises: The first device generates first device data to be sent, determines whether the first device data needs to be encrypted according to data usage of the first device data, and determines a target encryption method to be used if encryption is required; The first device data is encrypted using the target encryption method to obtain a device data ciphertext, and the device data ciphertext is broadcast and sent.

9. A device data transmission device, characterized in that: The device comprises: a data acquisition module, configured to: acquire ciphertext of Bluetooth data broadcasted by a second device, wherein the ciphertext of Bluetooth data is obtained by the second device by matching a corresponding encryption method based on a Bluetooth data type generated by the second device; different Bluetooth data types have different data uses and usage restrictions; and determine a corresponding encryption method based on the Bluetooth data type of the data of the second device; a data determination module, configured to determine whether a first decryption method exists for decrypting the Bluetooth data ciphertext, wherein whether the first decryption method exists is set based on a usage requirement of the first device for the Bluetooth data; The data decryption module is used to: when it is determined that the decryption method exists, decrypt the Bluetooth data ciphertext using the decryption method to obtain the Bluetooth data plaintext.

10. An electronic device, characterized in that: The device includes a memory and a processor, wherein the memory is used to store computer instructions that can be executed on the processor, and the processor is used to implement the method according to any one of claims 1 to 8 when executing the computer instructions.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Bluetooth communication encryption method, device and intelligent security device

    CN109168162A