CN113329399A - Data transmission, distribution network and management method, device, system and storage medium - Google Patents

Data transmission, distribution network and management method, device, system and storage medium Download PDF

Info

Publication number
CN113329399A
CN113329399A CN202010130837.3A CN202010130837A CN113329399A CN 113329399 A CN113329399 A CN 113329399A CN 202010130837 A CN202010130837 A CN 202010130837A CN 113329399 A CN113329399 A CN 113329399A
Authority
CN
China
Prior art keywords
bluetooth
equipment
identity
bluetooth equipment
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010130837.3A
Other languages
Chinese (zh)
Inventor
龙淼
姜剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN202010130837.3A priority Critical patent/CN113329399A/en
Publication of CN113329399A publication Critical patent/CN113329399A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/06Selective distribution of broadcast services, e.g. multimedia broadcast multicast service [MBMS]; Services to user groups; One-way selective calling services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication

Abstract

The embodiment of the application provides a method, equipment, a system and a storage medium for data transmission, distribution and management. In the embodiment of the application, the bluetooth device or the module operating in the broadcast mode encrypts data by using a preset key and broadcasts the encrypted data to the outside, and correspondingly, the server device decrypts the encrypted data by using a locally pre-stored key. In the whole process, data are encrypted and transmitted, and the secret key cannot be transmitted in the air, so that the safety of the data is guaranteed. In addition, the Bluetooth equipment or the module works in the broadcast mode, the requirement of the broadcast mode on the computing capability and hardware resources of the Bluetooth equipment or the module is low, and the implementation cost of the Bluetooth equipment or the module can be reduced.

Description

Data transmission, distribution network and management method, device, system and storage medium
Technical Field
The present application relates to the field of wireless communication technologies, and in particular, to a method, device, system, and storage medium for data transmission, network distribution, and management.
Background
Bluetooth Low Energy (BLE) belongs to one of Bluetooth technologies. The broadcast mode is a common mode of operation for bluetooth low energy. The bluetooth module operating in the broadcast mode is generally in a non-connectable state, has no interactivity, and can send out broadcast messages but cannot receive the broadcast messages. The Bluetooth module working in the broadcast mode is limited by the computing capability and hardware resources, data are transmitted in a plaintext mode, the data are easy to forge after being intercepted, and the data safety problem exists.
Disclosure of Invention
Aspects of the present application provide a method, device, system and storage medium for data transmission, distribution network and management, so as to improve data transmission security.
The embodiment of the application provides a data transmission method, which is suitable for Bluetooth equipment working in a broadcast mode, and comprises the following steps: encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity identification and the encrypted data of the Bluetooth equipment into a data packet; and broadcasting the data packet outwards.
The embodiment of the present application further provides a data transmission method, which is applicable to a bluetooth gateway, and the method includes: receiving a data packet broadcasted by the Bluetooth equipment to the outside, wherein the data packet comprises an identity identifier and encrypted data of the Bluetooth equipment when the Bluetooth equipment works in a broadcast mode; and reporting the data packet to the server side equipment so that the server side equipment can decrypt the encrypted data by using a key which is locally stored and corresponds to the identity of the Bluetooth equipment.
The embodiment of the present application further provides a data transmission method, which is applicable to a server device, and the method includes: receiving a data packet reported by a Bluetooth gateway, wherein the data packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity identifier and encrypted data of the Bluetooth equipment; determining a key used by the Bluetooth equipment from the locally stored keys according to the identity of the Bluetooth equipment; and decrypting the encrypted data according to the key used by the Bluetooth equipment to obtain decrypted data.
The embodiment of the application also provides a network distribution method, which is suitable for the Bluetooth equipment working in the broadcast mode, and the method comprises the following steps: generating a network distribution package according to the identity of the Bluetooth equipment; and broadcasting the network distribution packet to the outside to initiate a network distribution process to the server equipment.
The embodiment of the application also provides a network distribution method, which is suitable for a Bluetooth gateway and comprises the following steps: receiving a distribution network packet broadcasted by the Bluetooth equipment, wherein the distribution network packet comprises an identity of the Bluetooth equipment when the Bluetooth equipment works in a broadcast mode; the distribution network packet is reported to the server side equipment, so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to the distributed network equipment list.
The embodiment of the application further provides a network distribution method, which is suitable for the server side equipment, and the method comprises the following steps: receiving a distribution network packet reported by a Bluetooth gateway, wherein the distribution network packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity of the Bluetooth equipment; according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and under the condition of passing the distribution network verification, returning a message that the Bluetooth equipment passes the distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to the distributed equipment list.
The embodiment of the application further provides a bluetooth device management method, which is suitable for the server device and comprises the following steps: receiving a service binding request sent by a third party manufacturer, wherein the service binding request comprises a product ID requesting service binding; assigning at least one key for the product ID from the locally stored keys according to the service binding request; issuing the at least one secret key to a third party manufacturer so that the third party manufacturer can configure the at least one secret key into at least one Bluetooth device under the product ID; and storing locally a correspondence between the product ID, the at least one key, and the MAC address of the at least one bluetooth device.
An embodiment of the present application further provides a network system, including: the system comprises a server device, a Bluetooth gateway and a Bluetooth device; the Bluetooth device works in a broadcast mode; the Bluetooth device is used for encrypting the data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity identification and the encrypted data of the Bluetooth equipment into a data packet; broadcasting the data packet externally; the gateway equipment is used for receiving a data packet broadcasted by the Bluetooth equipment to the outside and reporting the data packet to the server side equipment; the server side equipment is used for determining a key used by the Bluetooth equipment from the locally stored key according to the identity of the Bluetooth equipment in the data packet; and decrypting the encrypted data in the data packet according to the key used by the Bluetooth equipment to obtain decrypted data.
An embodiment of the present application further provides a bluetooth device, where the bluetooth device operates in a broadcast mode, and the bluetooth device includes: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity identification and the encrypted data of the Bluetooth equipment into a data packet; and broadcasting the data packet to the outside through the communication component.
An embodiment of the present application further provides a bluetooth device, where the bluetooth device operates in a broadcast mode, and the bluetooth device includes: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: generating a network distribution package according to the identity of the Bluetooth equipment; and broadcasting the network distribution packet to the outside through the communication assembly so as to initiate a network distribution process to the server equipment.
An embodiment of the present application further provides a bluetooth gateway, including: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: receiving a data packet broadcasted by the Bluetooth equipment to the outside through the communication assembly, wherein the Bluetooth equipment works in a broadcasting mode, and the data packet comprises an identity identification and encrypted data of the Bluetooth equipment; and reporting the data packet to the server equipment through the communication assembly so that the server equipment decrypts the encrypted data by using a key which is locally stored and corresponds to the identity of the Bluetooth equipment.
An embodiment of the present application further provides a bluetooth gateway, including: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: receiving a distribution network packet broadcasted by the Bluetooth equipment to the outside through the communication assembly, wherein the Bluetooth equipment works in a broadcasting mode and the distribution network packet comprises an identity of the Bluetooth equipment; the distribution network packet is reported to the server side equipment through the communication assembly, so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to the distributed network equipment list.
An embodiment of the present application further provides a server device, including: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: receiving a data packet reported by a Bluetooth gateway through a communication component, wherein the data packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity identifier and encrypted data of the Bluetooth equipment; determining a key used by the Bluetooth equipment from the locally stored keys according to the identity of the Bluetooth equipment; and decrypting the encrypted data according to the key used by the Bluetooth equipment to obtain decrypted data.
An embodiment of the present application further provides a server device, including: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: receiving a distribution network packet reported by a Bluetooth gateway through a communication component, wherein the distribution network packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity of the Bluetooth equipment; according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and under the condition of passing the distribution network verification, returning a message that the Bluetooth equipment passes the distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to the distributed equipment list.
An embodiment of the present application further provides a server device, including: a memory, a processor, and a communications component; a memory for storing a computer program; a processor coupled with the memory for executing the computer program for: receiving a service binding request sent by a third party manufacturer through a communication assembly, wherein the service binding request comprises a product ID requesting service binding; assigning at least one key for the product ID from the locally stored keys according to the service binding request; issuing the at least one secret key to a third party manufacturer so that the third party manufacturer can configure the at least one secret key into at least one Bluetooth device under the product ID; and storing locally a correspondence between the product ID, the at least one key, and the MAC address of the at least one bluetooth device.
Embodiments of the application also provide a computer readable storage medium storing a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of any one of the claims.
The embodiment of the present application further provides a bluetooth module, bluetooth module work is under the broadcast mode, bluetooth module includes: a memory, a processor, and a communications component; the memory for storing a computer program; the processor, coupled with the memory, to execute the computer program to: encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity of the Bluetooth module and the encrypted data into a data packet; broadcasting the data packet to the outside through the communication component. In the embodiment of the application, the bluetooth device or the module operating in the broadcast mode encrypts data by using a preset key and broadcasts the encrypted data to the outside, and correspondingly, the server device decrypts the encrypted data by using a locally pre-stored key. In the whole process, data are encrypted and transmitted, and the key cannot be transmitted over the air, so that the safety of the data is guaranteed. In addition, the Bluetooth equipment or the module works in the broadcast mode, the requirement of the broadcast mode on the computing capability and hardware resources of the Bluetooth equipment or the module is low, and the implementation cost of the Bluetooth equipment or the module can be reduced.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic structural diagram of a network system according to an exemplary embodiment of the present application;
fig. 2a is an interaction flowchart of a network system according to an exemplary embodiment of the present application;
FIG. 2b is an interaction flow diagram of another network system provided by an exemplary embodiment of the present application;
fig. 2c is a schematic structural diagram of another network system provided in the exemplary embodiment of the present application;
FIG. 2d is an interaction flow diagram of another network system provided in an exemplary embodiment of the present application;
FIG. 2e is an interaction flow diagram of another network system provided in an exemplary embodiment of the present application;
fig. 3 is a schematic structural diagram of a data packet according to an exemplary embodiment of the present application;
fig. 4a is a schematic flowchart of a data transmission method according to an exemplary embodiment of the present application;
fig. 4b is a schematic flowchart of another data transmission method according to an exemplary embodiment of the present application;
fig. 4c is a schematic flowchart of another data transmission method provided in an exemplary embodiment of the present application;
fig. 5a is a schematic flowchart of a network distribution method according to an exemplary embodiment of the present disclosure;
fig. 5b is a schematic flowchart of another network distribution method according to an exemplary embodiment of the present disclosure;
fig. 5c is a schematic flowchart of another network distribution method according to an exemplary embodiment of the present application;
fig. 6 is a flowchart illustrating a bluetooth device management method according to an exemplary embodiment of the present application;
fig. 7 is a schematic structural diagram of a bluetooth device according to an exemplary embodiment of the present application;
fig. 8 is a schematic structural diagram of a bluetooth gateway according to an exemplary embodiment of the present application;
fig. 9a is a schematic structural diagram of a server device according to an exemplary embodiment of the present application;
fig. 9b is a schematic structural diagram of another server device according to an exemplary embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a schematic structural diagram of a network system according to an exemplary embodiment of the present application. As shown in fig. 1, the system 100 includes: a Bluetooth gateway 101, a server device 102 and a Bluetooth device 103; the bluetooth gateway 101 is connected between the server device 102 and the bluetooth device 103.
The present embodiment does not limit the implementation of the bluetooth gateway 101. The bluetooth gateway 101 may be any computer device having a bluetooth function and capable of receiving and sending data in a bluetooth manner, and may be, for example, a smart phone, a smart speaker, a smart bracelet, a personal notebook, a tablet computer, a desktop computer, or a smart television.
The present embodiment also does not limit the implementation of the bluetooth device 103. The bluetooth device 103 may be any device having bluetooth function and capable of operating in broadcast mode, for example, a bluetooth chip, a bluetooth module, or a device embedded with a bluetooth chip or a bluetooth module. In this embodiment, the bluetooth device 103 operates in the broadcast mode, and can broadcast data to the outside, but cannot receive data.
Alternatively, the bluetooth device 103 may be a weak bluetooth chip, module or device embedded with a bluetooth chip or module that can only operate in a broadcast mode. For example, the bluetooth device 103 may be a bluetooth chip with reduced functions on a conventional BLE bluetooth chip, which is cheap, but has limited computing power and hardware resources and can only operate in a broadcast mode. For another example, the bluetooth device 103 may be a body fat scale, an electronic scale, a bluetooth lamp, a sharing bicycle, a temperature sensor, a smart bracelet, a smart watch, a refrigerator, a television, an air conditioner, a sweeping robot, an air purifier, an electric oven, a coffee machine, and the like, which have bluetooth functions and can only operate in a broadcast mode.
Of course, the bluetooth device 103 may also be some relatively powerful bluetooth chip, module or device embedded with a bluetooth chip or module. For example, the bluetooth device 103 may also be a conventional BLE bluetooth chip, such bluetooth device 103 may support a plurality of operating modes including a broadcast mode, and, in this embodiment, such bluetooth device 103 is configured to operate in the broadcast mode.
In addition, in this embodiment, the number of the bluetooth devices 103 is not limited, and may be one or more. In fig. 1, a plurality of bluetooth devices 103 operating in the broadcast mode are illustrated as an example.
The bluetooth device 103 and the bluetooth gateway 101 may be from the same manufacturer or from different manufacturers. In general, the bluetooth device 103 and the bluetooth gateway 101 are devices provided by different manufacturers. Whether or not the bluetooth device 103 is from the same vendor as the bluetooth gateway 101, the bluetooth gateway 101 may receive data that is broadcast out of any bluetooth device 103 that is within its coverage area. Further, the bluetooth gateway 101 reports the received broadcast data from the bluetooth device 103 to the server device 102, so that the server device 102 provides data storage service or data processing service for the bluetooth device 103.
In this embodiment, the server device 102 is a server device corresponding to the bluetooth gateway 101, and may perform corresponding data processing in response to a request from the bluetooth gateway 101, return a processing result to the bluetooth gateway 101, provide a corresponding resource to the bluetooth gateway 101, store data sent by the bluetooth gateway 101, and the like.
In this embodiment, the number of the server devices 102 is not limited, and may be one or more. In addition, the device form of the server device 102 is not limited. For example, the server device 102 may be a conventional server, a cloud host, a virtual center or a server array, and the like. The server device 102 mainly includes a processor, a hard disk, a memory, a system bus, and the like, and is similar to a general computer architecture. Fig. 1 illustrates a server device 102 as an example.
In the network system shown in fig. 1, the bluetooth device 103 operating in the broadcast mode may broadcast data to the outside, but cannot receive the data; if the bluetooth device 103 is in the coverage of the bluetooth gateway 101, the data broadcasted outside by the bluetooth device 103 can be received by the bluetooth gateway 101; after receiving the data broadcasted outside by the bluetooth device 103, the bluetooth gateway 101 may report the data to the server device 102; the server device 102 may save the received data. Further optionally, the server device 102 may perform various processing on the data according to application requirements, such as cleaning, verification, text recognition or format conversion. Further optionally, the server device 102 may also provide services related to the received data to the outside, such as query services, download services, and the like. The server device 102 and the bluetooth gateway 101 may be in wireless communication connection or in wired communication connection, which is not limited to this.
In this embodiment, in order to avoid intercepting and tampering the data broadcasted by the bluetooth device 103 to the outside, and to provide security for the data broadcasted by the bluetooth device 103 to the outside, an encrypted broadcast scheme is provided for the bluetooth device 103 operating in the broadcast mode. That is, the same set of encryption and decryption algorithms is run at both ends of the bluetooth device 103 and the server device 102, the bluetooth device 103 and the server device 102 store keys locally, the bluetooth device 103 encrypts data by using a locally preset key and then broadcasts the encrypted data, the server device 102 decrypts the encrypted data by using a locally pre-stored key, the key is only known by the bluetooth device 103 and the server device 102, and the key is not transmitted over the air, so that the probability of data interception and tampering can be reduced, and the security of data in the transmission process can be improved.
The following embodiment will describe in detail a data transmission process among the bluetooth device 103, the bluetooth gateway 101, and the server device 102 in the network system shown in fig. 1 with reference to the interaction flowchart shown in fig. 2 a. As shown in fig. 2a, the data transmission process includes:
21a, the bluetooth device 103 encrypts the data to be transmitted by using a preset encryption algorithm and a preset key to obtain encrypted data.
22a, the Bluetooth device 103 encapsulates the identity of the Bluetooth device and the encrypted data into a data packet.
23a, the bluetooth device 103 works in the broadcast mode, and broadcasts the data packet to the outside.
24a, after receiving the data packet broadcasted outside by the bluetooth device 103, the bluetooth gateway 101 reports the data packet to the server device 102.
If the bluetooth device 103 is located in the coverage area of the bluetooth gateway 101, the bluetooth gateway 101 receives the data packet broadcasted by the bluetooth device 103.
25a, after receiving the data packet reported by the bluetooth gateway 101, the server device 102 determines a key used by the bluetooth device 103 from the locally stored key according to the identity of the bluetooth device 103 carried in the data packet.
26a, the server device 102 decrypts the encrypted data carried in the data packet according to the key used by the bluetooth device 103, so as to obtain decrypted data.
In step 21a, the data to be transmitted is data that needs to be sent to the outside by the bluetooth device 103, and may be some data preset in the bluetooth device 103, or may be data generated by the bluetooth device 103 during the use process. For example, if the bluetooth device 103 is a weight scale, the data to be transmitted may be weight data acquired by the weight scale in the using process; if the Bluetooth device 103 is a body fat scale, the body fat scale refers to body fat data acquired in the using process; if the bluetooth device 103 is an intelligent bracelet, the data to be transmitted may be exercise data collected by the intelligent bracelet in the using process; if the bluetooth device 103 is a medical apparatus, the data to be transmitted may be blood oxygen, blood pressure, and other data acquired by the medical apparatus during the use process, which is not limited herein.
The identity of the bluetooth device 103 may be any information capable of uniquely identifying the bluetooth device 103, such as a name, an ID, a serial number, or a short name of the bluetooth device 103, which is not limited herein. It should be noted that the identification of the bluetooth device 103 may include some functional descriptions related to the bluetooth device 103, other information helpful for identifying the bluetooth device 103, and the like, besides information capable of uniquely identifying the bluetooth device. In an alternative embodiment, the product ID to which the bluetooth device 103 belongs and the MAC address of the bluetooth device 103 may be used as the identity of the bluetooth device 103. The product ID is used to uniquely identify one type of bluetooth device 103, for example, the product ID to which the body fat scale belongs is different from the product ID to which the bluetooth bracelet belongs, and in addition, a plurality of identical bluetooth devices are provided under one product ID, for example, the same series or same generation of body fat scales produced by the same manufacturer correspond to the same product ID. The MAC address is used to uniquely identify a bluetooth device 103.
In this embodiment, the bluetooth device 103 is also preset with a key, but the specific implementation of presetting the key in the bluetooth device 103 is not limited. For example, the key used by the bluetooth device 103 may be configured during initialization of the bluetooth device 103. For another example, the key used by the bluetooth device 103 may be preset in the bluetooth device 103 during factory configuration of the bluetooth device 103. In addition, in this embodiment, the source of the key used by the bluetooth device 103 is also not limited, and may be provided by the server device 102, or may be provided by a third party vendor to which the bluetooth device 103 belongs, for example. If the key is provided by a third party vendor to which the bluetooth device 103 belongs, the third party vendor needs to provide the key to the server device 102 in addition to pre-installing the key in the bluetooth device 103. Similarly, if the key is provided by the server device 102, the key needs to be provided to the third party manufacturer, so that the third party manufacturer can preset the key into the bluetooth device 103.
The following describes a process of presetting a key on the bluetooth device 103 in detail by taking the server device 102 as an example to provide the key in a unified manner.
In an alternative embodiment, the server device 102 provides services such as data storage and/or processing for bluetooth devices of third party vendors, and is responsible for providing keys for bluetooth devices of third party vendors using the services. For a third party manufacturer, if it is desired that the bluetooth device 103 provided by the third party manufacturer can use the service provided by the server device 102, a service binding request may be sent to the server device 102, and a product ID requesting service binding is carried in the service binding request to indicate which type of bluetooth device applies for service binding. The server device 102 may receive a service binding request sent by a third party manufacturer, and allocate at least one key to the product ID from locally stored keys according to the service binding request; and further, issuing at least one key to a third party manufacturer. For the third party manufacturer, after receiving at least one key under the server device 102, the at least one key may be configured into at least one bluetooth device 103 under the product ID, and one key may be configured into one bluetooth device 103, so as to achieve one secret. Further, for the server device 102, it is necessary to acquire a corresponding relationship between the identity of at least one bluetooth device 103 and at least one key, and locally store the corresponding relationship between the identity of at least one bluetooth device 103 and the at least one key, so as to decrypt the encrypted data from the bluetooth device 103 using the corresponding key.
In the above embodiment, the number of at least one key is not limited. Optionally, the third party manufacturer may carry the number of the bluetooth devices requesting the service binding in the service binding request, where the number is the number of the at least one secret key. Alternatively, the server device 102 may also preset the number of bluetooth devices allowed to be bound in each service binding request, where the number is the number of at least one key. Alternatively, the server device 102 may flexibly determine the number of the at least one secret key according to the number of the bluetooth devices that can be currently bound, that is, the number of the bluetooth devices that are allowed to be bound by the third party vendor at this time.
In the above embodiment, the manner in which the server device 102 obtains the correspondence between the at least one bluetooth device 103 and the at least one secret key is not limited. Two embodiments are given below:
embodiment 1: in this embodiment, the server device 102 may not only provide the key for the third party manufacturer, but also apply for the MAC address for the locally stored key, and establish the corresponding relationship between the MAC address and the key. Wherein one key corresponds to one MAC address. Based on this, the server device 102 issues the MAC address corresponding to the at least one secret key to the third party manufacturer, in addition to issuing the at least one secret key to the third party manufacturer. For a third party manufacturer, the MAC address provided by the server device 102 can be directly used without applying for the MAC address for its bluetooth device, and a key and its corresponding MAC address can be configured into a bluetooth device under the product ID. In this embodiment, the server device 102 may further establish and store a correspondence between the product ID, the at least one key, and the MAC address of the at least one bluetooth device based on the correspondence between the MAC address and the key. The MAC address and the product ID of the bluetooth device can be used as the identification of the bluetooth device.
Embodiment 2: in this embodiment, the third party manufacturer may apply for the MAC address for the generated bluetooth device 103 itself, and configure the applied MAC address to the bluetooth device 103. In addition, after receiving at least one key assigned by the server device 102 for the product ID, each key may be configured into one bluetooth device. The bluetooth device configured with the key has its own MAC address. After configuring the keys issued by the server device 102 to the bluetooth devices, the third party manufacturer may report the MAC address of the bluetooth device where each key is located to the server device 102, so that the server device 102 may obtain the MAC address corresponding to each key, and further locally establish and store the corresponding relationship between the product ID, each key, and the MAC address. The MAC address and the product ID of the bluetooth device can be used as the identification of the bluetooth device.
No matter which preset key implementation is adopted, the server device 102 and the bluetooth device 103 may have a common key. Alternatively, the server device 102 may store the key in a separate storage system, or in a local cache. The bluetooth device 103 may burn the key into a Non-Volatile Memory (NVM) of the bluetooth device 103, and encrypt the data to be transmitted by using the key, thereby ensuring the security of data transmission. The NVM includes, but is not limited to, Flash memory (Flash memory), Read-only memory (ROM), and the like.
In the present embodiment, the encryption algorithm used is not limited. For example, if the bluetooth device 103 is highly computing, a relatively complex software encryption algorithm may be used, such as a symmetric encryption algorithm. Preferably, considering that the bluetooth device 103 has limited computing power and hardware resources, a relatively simple hardware encryption algorithm, such as Exclusive OR (XOR) operation, Exclusive NOR (XNOR) operation, etc., may be used.
In the embodiment of the present application, a specific implementation manner of encrypting data to be transmitted to obtain encrypted data is not limited to using a preset encryption algorithm and a preset key. In an optional embodiment, a pre-made encryption algorithm may be adopted, and the data to be transmitted is directly encrypted by using the key, so as to obtain encrypted data. In another optional embodiment, in the process of encrypting the data to be transmitted by using a preset encryption algorithm and a preset key, a random number may be introduced, and the random number may be carried in a data packet and reported to the server device, and if the server device receives a repeated random number, a discard policy may be executed to discard the data packet, thereby avoiding a replay attack. The random number may be a pseudo random number or a true random number. In an alternative embodiment, true random numbers are used in the encryption of the data to be transmitted. Specifically, a true random number a can be generated according to a physical variable generated in the running process of the bluetooth device; and encrypting the true random number A and the data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data.
In the present embodiment, the physical variable on which the true random number a is generated is not limited, and may be, for example, hardware noise, a voltage value, or a current value generated during the operation of the bluetooth device 103. Specifically, the true random number a may be generated according to a voltage value or a current value of a Micro Control Unit (MCU) of the bluetooth device 103. The algorithm for generating the true random number a according to the physical variable is not limited, and can adopt but not limited to: acquiring an instantaneous value of a physical variable by using an Analog-to-digital converter (ADC) as a true random number a, for example, when the physical variable is a current or a voltage, the true random number a is an instantaneous current value or a voltage value acquired by the ADC; and manually moving the mouse to reach a certain length, and inputting the motion track of the mouse within the length as an independent variable into a key generation tool to obtain a true random number A, and the like.
Further, after the true random number a and the data to be transmitted are encrypted by using a preset encryption algorithm and a key to obtain encrypted data, the identity of the bluetooth device 103, the true random number a, and the encrypted data may be encapsulated into a data packet. Further, in step 23a, the data packet is broadcast.
For step 23a, the embodiment does not limit the specific implementation of the outbound broadcast packet. For example, the bluetooth device 103 may broadcast the data packet once to the outside in a conventional communication manner. For another example, considering that the bluetooth device operates in a broadcast mode, and has no interactivity, that is, only the data packet can be broadcasted to the outside, but the data packet cannot be received from other devices, in order to solve the problem of non-interactive broadcast data loss, optionally, a certain broadcast time can be set, and then the same data packet is broadcasted to the outside for multiple times within the set broadcast time, so as to improve the transmission reliability; or, a certain number of broadcast times is set, and the same data packet is broadcast for multiple times according to the set number of broadcast times, so that the transmission reliability is improved. The set broadcast time may be, but is not limited to: 1 second, 3 seconds, 5 seconds, etc.; the set number of broadcasts may be, but is not limited to: 5 times, 10 times, 50 times, etc.
In step 24a, the bluetooth gateway 101 may perform signal scanning within its coverage area; if the data packet broadcasted by the bluetooth device 103 is scanned, the data packet is reported to the server device 102.
Alternatively, the bluetooth gateway 101 may automatically perform signal scanning according to the set signal scanning policy after being powered on. For example, the signal scanning policy specifies a period of signal scanning, and the bluetooth gateway 101 may periodically perform signal scanning according to the period after being powered on. For another example, the signal scanning policy specifies a time point for performing signal scanning and a time duration of each signal scanning, and the bluetooth gateway 101 may automatically start performing signal scanning when the set time point arrives after the bluetooth gateway is powered on, and end signal scanning when the specified signal scanning time duration arrives.
Alternatively, the first and second electrodes may be,
optionally, the user may also send a signal scanning instruction to the bluetooth gateway 101 according to the scanning requirement. The bluetooth gateway 101 may respond to a signal scanning command issued by a user to scan signals within its coverage area. The method can control the Bluetooth gateway 101 to scan signals according to the requirement, and is beneficial to saving the resources of the Bluetooth gateway 101. Wherein, the user can send a signal scanning instruction to the bluetooth gateway 101 by adopting, but not limited to, the following modes:
in the method 1, the bluetooth gateway 101 has a voice recognition function. The user may send a signal scanning command in a voice manner to instruct the bluetooth gateway 101 to perform signal scanning.
In the mode 2, the App of the bluetooth gateway 101 is installed on the terminal device of the user, and based on this, the user can send a signal scanning instruction to the bluetooth gateway 101 through the App of the bluetooth gateway 101 to instruct the bluetooth gateway 101 to perform signal scanning.
In the mode 3, the bluetooth gateway 101 is provided with an electronic screen, and a user can input a signal scanning instruction to the bluetooth gateway 101 through the electronic screen of the bluetooth gateway 101 to instruct the bluetooth gateway 101 to perform signal scanning. For example, a control page of the bluetooth gateway 101 may be displayed on the electronic screen, and a scanning control is provided on the control page, and a user may send a signal scanning instruction to the bluetooth gateway 101 by triggering the scanning control.
In step 25a, after receiving the data packet reported by the bluetooth gateway 101, the server device 102 may analyze the identity and the encrypted data of the bluetooth device 103 from the data packet; further, the key used by the bluetooth device 103 is determined from the locally stored key according to the correspondence between the identity of the bluetooth device 103 and the key. Further, in step 26a, the encrypted data carried in the packet is decrypted based on the key used by the bluetooth device 103, and the decrypted data is obtained. After obtaining the decrypted data, the server device 102 may further perform other processing such as storing the decrypted data, which is not limited to this.
In an alternative embodiment, the server device 102, before determining the key used by the bluetooth device 103 from the locally stored keys, is further configured to: according to the identity of the Bluetooth device 103, performing identity verification on the Bluetooth device 103; if the bluetooth device 103 passes the identity verification, the key used by the bluetooth device 103 is determined from the locally stored keys according to the identity of the bluetooth device 103.
The specific implementation of the identity verification of the bluetooth device 103 is not limited. In an alternative embodiment, the verification may be performed locally at the server device 102. Specifically, if the identification of the bluetooth device 103 includes a product ID and a MAC address, the server device 102 may determine whether the product ID and the MAC address of the bluetooth device 103 are legal according to a legal product ID and a legal MAC address stored locally in advance; if the two are legal, determining that the Bluetooth equipment passes identity verification; otherwise, determining that the Bluetooth equipment does not pass the identity verification. In another optional embodiment, the server device 102 may send the identity of the bluetooth device 103 to a third party vendor server, and the third party vendor server performs identity verification on the bluetooth device. Under the condition that the identity identifier of the Bluetooth device comprises a product ID and an MAC address, a server of a third party manufacturer can inquire whether the product ID and the MAC address of the Bluetooth device 103 are legal or not according to a local legal product ID and a legal MAC address; if the two are legal, determining that the Bluetooth equipment passes identity verification; otherwise, determining that the Bluetooth equipment does not pass the identity verification.
In the above embodiment, the bluetooth device 103 and the server device 102 respectively store the keys locally, the bluetooth device 103 encrypts the data by using the locally preset key and then broadcasts the encrypted data, the server device 102 decrypts the encrypted data by using the locally preset key, the keys are only known by the bluetooth device 103 and the server device 102, and the keys are not transmitted over the air, which can reduce the probability of data interception and tampering, and is beneficial to improving the security of the data in the transmission process.
In some optional embodiments of the present application, in view of security considerations on the server device 102 and the bluetooth gateway 101, in order to prevent malicious visitors such as hackers from attacking the network system by forging data packets of the bluetooth device 103, a distribution network process is further provided for the bluetooth device 103 operating in the broadcast mode, discovery and binding of the bluetooth device can be performed through the distribution network process, the server device and the bluetooth gateway only need to process data packets from the bound bluetooth device (or referred to as a distributed bluetooth device), and do not need to process data packets from other unbound bluetooth devices (also referred to as non-distributed bluetooth devices), so that probability of malicious attack on the server device or the network system can be reduced, and security of the system can be improved.
With reference to the interaction flowchart shown in fig. 2b, a process of performing a network distribution between the bluetooth gateway 101, the bluetooth device 103, and the server device 102 is described below, where the network distribution process includes the following steps:
21b, the Bluetooth device 103 generates a network distribution package according to the identity of the Bluetooth device.
22b, the bluetooth device 103 broadcasts the distribution network packet to the outside to initiate the distribution network flow to the server device 102.
23b, after receiving the distribution network packet broadcasted by the bluetooth device 103, the bluetooth gateway 101 reports the distribution network packet to the server device 102.
If the bluetooth device 103 is located in the coverage area of the bluetooth gateway 101, the bluetooth gateway 101 receives the network distribution packet broadcasted by the bluetooth device 103 to the outside.
24b, after receiving the distribution network packet reported by the bluetooth gateway 101, the server device 102 performs distribution network verification on the bluetooth device 103 according to the identity of the bluetooth device 103 carried in the distribution network packet.
25b, under the condition of passing the distribution network verification, the server side device 102 returns a message that the Bluetooth device 103 passes the distribution network verification to the Bluetooth gateway 101.
26b, the bluetooth gateway 101 adds the identity of the bluetooth device to the list of the distributed devices according to the message which is returned by the server device 102 and passes the distribution network verification.
After the bluetooth gateway 101 adds the identity of the bluetooth device to the list of the configured devices, the bluetooth device is changed from the device that is not configured to the device that is configured. The distributed network equipment is legal and safe for the Bluetooth gateway 101 and the server side equipment 102.
Further, after the distribution network process is completed, data transmission may also be performed between the bluetooth gateway 101 and the bluetooth device 103 and between the bluetooth gateway and the server device 102, where the data transmission process may be an encrypted data transmission process or a plaintext data transmission process. As shown in fig. 3, the process of performing encrypted data transmission between the bluetooth gateway 101 and the bluetooth device 103 and the server device 102 includes:
27b, the bluetooth device 103 encrypts the data to be transmitted by using a preset encryption algorithm and a preset key to obtain encrypted data.
28b, the Bluetooth device 103 encapsulates the identity of the Bluetooth device and the encrypted data into a data packet.
29b, the bluetooth device 103 works in the broadcast mode to broadcast the data packet to the outside.
30b, after receiving the data packet broadcasted by the bluetooth device 103, the bluetooth gateway 101 determines whether the bluetooth device 103 is a device already in the network according to the identity of the bluetooth device 103.
If the bluetooth device 103 is located in the coverage area of the bluetooth gateway 101, the bluetooth gateway 101 receives the data packet broadcasted by the bluetooth device 103.
31b, if the bluetooth device 103 is a configured network device, the bluetooth gateway 101 reports the data packet to the server device 102.
32b, after receiving the data packet reported by the bluetooth gateway 101, the server device 102 determines the key used by the bluetooth device 103 from the locally stored key according to the identity of the bluetooth device 103 carried in the data packet.
33b, the server device 102 decrypts the encrypted data carried in the data packet according to the key used by the bluetooth device 103, so as to obtain decrypted data.
In step 21b, the specific implementation of generating the network distribution package according to the identity of the bluetooth device 103 is not limited. In an alternative embodiment, the product ID and the MAC address in the ID of the bluetooth device 103 may be directly encapsulated into a network packet.
In another optional embodiment, in the process of generating the distribution network packet according to the identity of the bluetooth device 103, a random number may be introduced, and the random number may be carried in the distribution network packet and reported to the server device, and if the server device receives a repeated random number, a discard policy may be executed to discard the distribution network packet, thereby avoiding a replay attack. The random number may be a pseudo random number or a true random number. In an alternative embodiment, a true random number is used in generating the networking packet based on the identity of the bluetooth device 103. Specifically, the true random number B may be generated according to a physical variable generated by the bluetooth device 103 during operation; encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value; and packaging the identity identifier, the encryption value and the true random number B of the Bluetooth device 103 into a network distribution package. In this embodiment, the physical variables on which the true random number B depends and the algorithm for generating the true random number B according to the physical variables are not limited, and specific reference may be made to the specific implementation of generating the true random number a, which is not described herein again. Further, in step 22b, the distribution network packet is broadcast.
For step 22b, the embodiment does not limit the specific implementation of the outbound broadcast network packet. For example, the bluetooth device 103 may broadcast the data packet once to the outside in a conventional communication manner. For another example, considering that the bluetooth device operates in a broadcast mode and has no interactivity, that is, only an external broadcast data packet is available, but data sent by other devices cannot be received, in order to solve the problem of non-interactive broadcast data loss, optionally, a certain broadcast time may be set, and then the same data packet is externally broadcast for multiple times within the set broadcast time, so as to improve transmission reliability; or, a certain number of broadcast times is set, and the same data packet is broadcast for multiple times according to the set number of broadcast times, so that the transmission reliability is improved. The set broadcast time may be, but is not limited to: 1 second, 3 seconds, 5 seconds, etc.; the set number of broadcasts may be, but is not limited to: 5 times, 10 times, 50 times, etc.
In step 23b, the bluetooth gateway 101 may perform signal scanning within its coverage area. For details of the information scanning performed by the bluetooth gateway 101, please refer to the foregoing embodiments, which are not described herein again.
In step 23b, before reporting the distribution network packet to the server device 102, the bluetooth gateway 101 is further configured to: reporting the product ID in the identity of the Bluetooth device to the server device, so that the server device 102 can perform product validity check on the Bluetooth device; receiving device detail information of the Bluetooth device 103 returned by the server device 102 after the Bluetooth device 103 passes the product validity check; the device detail information of the Bluetooth device 103 is displayed so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth device 103; and responding to an instruction sent by the user to determine that the Bluetooth device 103 initiates a distribution network process, and reporting the distribution network packet to the server device 102.
Correspondingly, in step 24b, before receiving the distribution network packet reported by the bluetooth gateway 101, the server device 102 is further configured to: receiving a product ID in the identity of the Bluetooth device 103 reported by the Bluetooth gateway 101; according to the product ID of the Bluetooth device 103, checking the product validity of the Bluetooth device 103; and when the Bluetooth device passes the product validity check, returning the device detail information of the Bluetooth device 103 to the Bluetooth gateway 101, so that the user can determine whether to initiate a distribution network process for the Bluetooth device 103.
The product validity check is performed on the bluetooth device 103, that is, whether the device class to which the bluetooth device 103 belongs to a legal device class is determined, for example, whether the bluetooth device 103 belongs to a certain bluetooth device that has signed a contract with the server device 102 is determined. The server device 102 may maintain the product ID corresponding to the legal device type, and based on this, the product ID corresponding to the bluetooth device 103 may be matched with the legal product ID; if the product ID corresponding to the Bluetooth device 103 is matched in the legal product IDs, determining that the Bluetooth device 103 passes the product validity check; otherwise, it is determined that the bluetooth device 103 fails the product validity check. Further, in the case that the bluetooth device 103 passes the product validity check, the server device 102 returns the device detail information of the bluetooth device 103 to the bluetooth gateway 101. The device detail information of the bluetooth device 103 includes, but is not limited to: type, manufacturer, profile of the bluetooth device 103, etc. When determining that the distribution network process needs to be initiated to the bluetooth device 103 according to the device detail information of the bluetooth device 103, the user may send an instruction for determining that the distribution network process is initiated to the bluetooth device 103 to the bluetooth gateway 101 in the following manners:
in the method 1, the bluetooth gateway 101 has a voice recognition function. The user may send an instruction to determine to initiate a distribution network procedure to the bluetooth device 103 in a voice manner, and instruct the bluetooth gateway 101 to report the distribution network packet to the server device 102.
In the mode 2, the App of the bluetooth gateway 101 is installed on the terminal device of the user, and based on this, the user can send an instruction for determining to initiate a distribution network process to the bluetooth device 103 to the bluetooth gateway 101 through the App of the bluetooth gateway 101, and instruct the bluetooth gateway 101 to report a distribution network packet to the server device 102.
In the mode 3, the bluetooth gateway 101 is provided with an electronic screen, and a user can input an instruction for determining that a distribution network process is initiated for the bluetooth device 103 to the bluetooth gateway 101 through the electronic screen of the bluetooth gateway 101, and instruct the bluetooth gateway 101 to report a distribution network packet to the server device 102. For example, a control page of the bluetooth gateway 101 may be displayed on the electronic screen, and a control is provided on the control page, and by triggering the control, the user may send an instruction to the bluetooth gateway 101 to determine that a distribution network procedure is initiated for the bluetooth device 103, and instruct the bluetooth gateway 101 to report the distribution network packet to the server device 102.
Further optionally, if the true random number is used when the distribution network packet is generated in step 21B, in step 24B, the server device 102 may analyze the identity of the bluetooth device 103, the true random number B, and the first encryption value corresponding to the true random number B from the distribution network packet. The first encryption value is obtained by encrypting the true random number B by the bluetooth device 103 according to a locally preset key. Based on this, when the server device 102 performs distribution network verification on the bluetooth device 103 according to the identity of the bluetooth device, it is specifically configured to: according to the identity of the Bluetooth device, the identity of the Bluetooth device 103 is verified; when the identity verification is passed, determining a key used by the Bluetooth device 103 from locally stored keys according to the identity of the Bluetooth device; encrypting the true random number B according to a secret key used by the Bluetooth device 103 to obtain a second encrypted value; and if the second encryption value is the same as the first encryption value, determining that the Bluetooth device 103 passes the distribution network verification. Otherwise, if the second encryption value is different from the first encryption value, it is determined that the bluetooth device 103 fails to pass the distribution network verification.
The identity check is the same as that in the foregoing embodiment, and specific contents may be referred to the foregoing embodiment, which is not described herein again.
After the bluetooth device 103 passes the distribution network verification, in step 25b, the server device 102 returns a message that the bluetooth device 103 passes the distribution network verification to the bluetooth gateway 101. Further, in step 26b, the bluetooth gateway 101 adds the identity of the bluetooth device to the list of the distributed devices, and completes the process of distributing the network to the bluetooth device 103.
After the distribution network, the process of encrypted data transmission between the bluetooth gateway 101, the bluetooth device 103 and the server device 102, i.e. steps 27b-33b, is the same as the embodiment shown in fig. 2a and is not described herein again.
The following takes the application of the broadcast bluetooth technology in a home environment as an example, and exemplifies the technical solution of the embodiment of the present application. As shown in fig. 2c, in a home environment, there are bluetooth devices 103 such as bluetooth scales, bluetooth bracelets, bluetooth handsets, etc., which operate in a broadcast mode. In addition, in the home environment, there is a smart speaker, which uses bluetooth technology, and can receive bluetooth broadcast data (such as data packets and network distribution packets) within its coverage area and upload the data to the server device 102, and the smart speaker can be used as a bluetooth gateway 101 in the home environment. In fig. 2c, the server device 102 is illustrated as a cloud server. The following takes body fat as an example, and an exemplary description is made with reference to the distribution network and data transmission process of body fat as shown in fig. 2 d.
The body fat scale is a measuring device that can measure a fat rate, moisture, bone mass, and the like, in addition to the body weight of a user. In the embodiment of the application, the body fat scale is internally provided with the Bluetooth chip, the hardware resource of the Bluetooth chip is limited, for example, the Bluetooth chip adopts an inner core of a 51-chip microcomputer, the main frequency is 8-16M, the RAM is generally 128 bytes-256 bytes, and the ROM is 4-8K; in view of this, after the measurement is completed, the measured result data needs to be transmitted to the cloud server for storage, so as to prevent the data coverage from being lost. In order to ensure the security of the cloud server, a body fat scale needs to be distributed first, and a distribution process is shown in fig. 2d and includes the following steps:
21d, generating a network distribution packet by the body fat scale according to the identity of the body fat scale and the true random number C, wherein the identity of the body fat scale comprises the ID of the body fat scale and the MAC address of the body fat scale.
22d, the body fat scale works in a broadcasting mode to broadcast the distribution network package, and if the body fat scale is located in the coverage range of the intelligent sound, the intelligent sound can receive the distribution network package of the body fat scale outside broadcasting.
And 23d, analyzing the network distribution package by the intelligent sound equipment, and reporting the ID of the body fat scale in the identity of the body fat scale to the cloud server.
And 24d, the cloud server judges the ID of the body fat scale and carries out validity check.
And 25d, after the cloud server judges that the validity is verified, sending the detailed information of the body fat scale to the intelligent sound box.
26d, the intelligent sound box displays the detailed information of the body fat scale and inquires whether a user initiates a distribution network process aiming at the body fat scale.
27d, the intelligent sound responds to an instruction sent by the user and used for determining that the body fat scale initiates a distribution network process, and the distribution network package is reported to the cloud server.
28d, after receiving the distribution network packet reported by the intelligent sound equipment, the cloud server analyzes the identity of the body fat scale, the true random number C and the first encryption value corresponding to the true random number C from the distribution network packet.
29d, the cloud server performs identity verification on the body fat scale according to the identity of the body fat scale; and when the identity verification is passed, determining a key used by the body fat scale from the locally stored keys according to the identity of the body fat scale.
30d, the cloud server encrypts the true random number C according to a secret key used by the body fat scale to obtain a second encryption value; and if the second encryption value is the same as the first encryption value, determining that the body fat scale passes the distribution network verification.
31d, under the condition that the body fat scale passes the distribution network verification, the cloud server returns a message that the body fat scale passes the distribution network verification to the intelligent sound box.
And 32d, the intelligent sound equipment adds the identity of the Bluetooth equipment to the distributed equipment list according to the information which is returned by the cloud server and passes the distribution network verification.
After the intelligent sound equipment adds the identity of the body fat scale to the list of the distributed equipment, the body fat scale is changed from the equipment which is not distributed to the distributed equipment. For the intelligent sound and the cloud server, the distributed network equipment is legal and safe. Further, after the distribution network flow is completed, data transmission can be performed between the intelligent sound box and the body fat scale and between the intelligent sound box and the cloud server, data leakage is avoided for safe and reliable body fat data transmission, and system data acquired by the body fat scale need to be encrypted and transmitted.
The scheme provides an encryption algorithm aiming at the situation that the Bluetooth device 103 works in a broadcast mode, and the encryption algorithm can be operated on a chip of which the RAM is only 40 bytes. An encryption algorithm preset by the body fat scale is denoted as a _ Encrypt, and a decryption algorithm preset by the cloud server is denoted as a _ Decrypt. The A _ Encrypt algorithm is an encryption algorithm, and the encryption algorithm comprises three arguments, namely a Secret key (Secret), a Random number (Random) and Data to be encrypted (Data); executing the encryption algorithm a _ Encrypt results in encrypted Data (En-Data) and a Data check value (CRC). The CRC is a data transmission error detection function, and is used to ensure the correctness and integrity of data transmission. A _ Decrypt is a decryption algorithm corresponding to the A _ Encrypt encryption algorithm, and the decryption algorithm comprises three arguments of a key (Secret), a Random number (Random) and Data (En-Data) to be decrypted; executing the decryption algorithm a _ Decrypt results in decrypted Data (Data).
As shown in fig. 2e, the data transmission process of reporting the measurement result data to the cloud server by the body fat scale includes the following steps:
33e, body fat scale after measuring the body fat Data, the encryption algorithm a _ Encrypt is used to calculate the encrypted Data (En-Data) and CRC, (En-Data, CRC) ═ a _ Encrypt (preset key (Secret1), true Random number (Random1), body fat scale collected body fat Data).
34e, the body fat scale packages the product ID and the MAC address of the body fat scale, the true Random number (Random1) and the encrypted Data (En-Data) into a Data packet.
Alternatively, a structure of a data packet is shown in fig. 3, and includes: FMASK field, ID field, MAC field, nonce field, data field, and CRC field.
Wherein, the FMASK field: indicating capabilities possessed by the body fat scale, such as the type of broadcast and the version of the protocol, etc. ID field: record the product ID to which the body fat belongs. And MAC field: the MAC address of the body fat name is recorded. Random number field: the true Random number (Random1) added when the body fat data collected by the body fat scale was encrypted in step 33e is recorded. Data field: in step 33e, the encrypted Data (En-Data) obtained by encrypting the body fat Data acquired by the body fat scale by using the encryption algorithm is recorded. CRC field: the CRC value obtained in step 33e is recorded.
35e, the body fat scale works in the broadcasting mode to broadcast data packets to the outside.
36e, if the body fat scale is located in the coverage range of the intelligent sound, the intelligent sound receives a data packet broadcasted outside the body fat scale, and judges whether the body fat scale is the distributed equipment or not according to the identity of the body fat scale.
And 37e, if the body fat is called as the distributed network equipment, the intelligent sound equipment reports the data packet to the cloud server.
38e, after receiving the Data packet reported by the intelligent sound, the cloud server analyzes the product ID, the MAC address, the true Random number (Random1), the encrypted Data (En-Data) and the CRC of the body fat scale from the Data packet.
39e, the cloud server firstly performs CRC check, and if the CRC check is passed, a key (Secret1) used by the body fat scale is determined from the locally stored keys;
40e, the cloud server calculates the decrypted Data (Data) by using the decryption algorithm a _ Decrypt, namely, (Data) ═ a _ Decrypt (Secret1, true Random number (Random1), encrypted Data (En-Data)).
41e, the cloud server stores the decrypted data.
In the embodiment of the application, the body fat scale working in the broadcast mode encrypts data by using a preset key and broadcasts the encrypted data to the outside, and accordingly, the cloud server decrypts the encrypted data by using a locally pre-stored key. In the whole process, data are encrypted and transmitted, and the secret key cannot be transmitted in the air, so that the safety of the data is guaranteed. In addition, the body fat scale works in a broadcast mode, the broadcast mode has lower requirements on the computing capacity and hardware resources of the body fat scale, and the implementation cost of the body fat scale can be reduced. Furthermore, a distribution network process is provided for the body fat scale working in the broadcast mode, the body fat scale can be discovered and bound through the distribution network process, the cloud server and the intelligent sound box only need to process data packets from bound Bluetooth devices (or distributed Bluetooth devices), and do not need to process data packets from other unbound Bluetooth devices (or unconfigured Bluetooth devices), so that the probability of malicious attack on the cloud server or a network system can be reduced, and the safety of the system can be improved.
Fig. 4a is a schematic flowchart of a data transmission method provided in an exemplary embodiment of the present application, where the method is applied to a bluetooth device operating in a broadcast mode, and as shown in fig. 4a, the method includes:
41a, encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data;
42a, packaging the identity identification and the encrypted data of the Bluetooth equipment into a data packet;
43a, broadcasting data packets to the outside.
As for step 41a, in this embodiment, the data to be transmitted is data that the bluetooth device needs to send to the outside, and may be some data preset in the bluetooth device, or may be data generated by the bluetooth device in the using process. For example, if the bluetooth device is a weight scale, the data to be transmitted may be weight data acquired by the weight scale in the using process; if the Bluetooth equipment is a body fat scale, the body fat scale is used for weighing body fat data acquired in the using process; if the Bluetooth device is an intelligent bracelet, the data to be transmitted can be exercise data acquired by the intelligent bracelet in the using process; if the bluetooth device is a medical apparatus, the data to be transmitted may be blood oxygen, blood pressure, and other data acquired by the medical apparatus during the use process, which is not limited to this.
In this embodiment, the specific implementation of the preset key is not limited. For example, the key used by the bluetooth device may be configured during initialization of the bluetooth device. For another example, the key used by the bluetooth device may be preset in the bluetooth device during factory configuration of the bluetooth device. In addition, the preset key can be burnt into the nonvolatile memory NVM of the Bluetooth device in advance, and the data to be transmitted is encrypted by the key, so that the security of data transmission is guaranteed. NVM includes, but is not limited to, Flash, ROM, and the like.
In the present embodiment, the encryption algorithm used is not limited. For example, if the bluetooth device is more computationally powerful, a relatively complex software encryption algorithm may be used, such as a symmetric encryption algorithm. Preferably, a relatively simple hardware encryption algorithm, such as an XOR operation, an XNOR operation, etc., may be used in consideration of the limited computing power and hardware resources of the bluetooth device.
In the embodiment of the present application, a specific implementation manner of encrypting data to be transmitted to obtain encrypted data is not limited to using a preset encryption algorithm and a preset key. In an optional embodiment, a pre-made encryption algorithm may be adopted, and the data to be transmitted is directly encrypted by using the key, so as to obtain encrypted data. In another optional embodiment, in the process of encrypting the data to be transmitted by using a preset encryption algorithm and a preset key, a random number may be introduced, and the random number may be carried in a data packet and reported to the server device, and if the server device receives a repeated random number, a discard policy may be executed to discard the data packet, thereby avoiding a replay attack. The random number may be a pseudo random number or a true random number. In an alternative embodiment, true random numbers are used in the encryption of the data to be transmitted. Specifically, a true random number a can be generated according to a physical variable generated in the running process of the bluetooth device; and encrypting the true random number A and the data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data.
In the present embodiment, the physical variable on which the true random number a is generated is not limited, and may be, for example, hardware noise, a voltage value or a current value generated during the operation of the bluetooth device. Specifically, the true random number a may be generated according to a voltage value or a current value of the MCU of the bluetooth device. The algorithm for generating the true random number a according to the physical variable is not limited, and can adopt but not limited to: acquiring an instantaneous value of a physical variable by using the ADC to serve as a true random number A, wherein the true random number A is an instantaneous current value or a voltage value acquired by the ADC when the physical variable is a current or a voltage; and manually moving the mouse to reach a certain length, and inputting the motion track of the mouse within the length as an independent variable into a key generation tool to obtain a true random number A, and the like.
For step 42a, the identity of the bluetooth device may be any information capable of uniquely identifying the bluetooth device, such as a name, an ID, a serial number, or an abbreviation of the bluetooth device, which is not limited herein. It should be noted that the identity of the bluetooth device may include some functional descriptions related to the bluetooth device, and other information helpful for identifying the bluetooth device, besides information capable of uniquely identifying the bluetooth device. In an alternative embodiment, the product ID to which the bluetooth device belongs and the MAC address of the bluetooth device may be used as the identity of the bluetooth device. The product ID is used for uniquely identifying one type of Bluetooth equipment, for example, the product ID of the body fat scale is different from the product ID of the Bluetooth bracelet, and in addition, a plurality of identical Bluetooth equipment are arranged under one product ID, for example, the same series or the same generation of body fat scales produced by the same manufacturer correspond to the same product ID. The MAC address is used to uniquely identify a bluetooth device.
Optionally, if the true random number a is introduced in the process of encrypting the data to be encrypted in step 41 a. After the true random number A and the data to be transmitted are encrypted by adopting a preset encryption algorithm and a preset secret key to obtain encrypted data, the identity identification of the Bluetooth equipment, the true random number A and the encrypted data can be packaged into a data packet. Further, in step 43a, the data packet is broadcast.
For step 43a, the embodiment does not limit the specific implementation of the outbound broadcast packet. For example, the bluetooth device may broadcast the data packet once to the outside in a conventional communication manner. For another example, considering that the bluetooth device operates in a broadcast mode and has no interactivity, that is, only an external broadcast data packet is available, but data sent by other devices cannot be received, in order to solve the problem of non-interactive broadcast data loss, optionally, a certain broadcast time may be set, and then the same data packet is externally broadcast for multiple times within the set broadcast time, so as to improve transmission reliability; or, a certain number of broadcast times is set, and the same data packet is broadcast for multiple times according to the set number of broadcast times, so that the transmission reliability is improved. The set broadcast time may be, but is not limited to: 1 second, 3 seconds, 5 seconds, etc.; the set number of broadcasts may be, but is not limited to: 5 times, 10 times, 50 times, etc.
Optionally, before broadcasting the data packet to the outside, the method further includes: generating a network distribution package according to the identity of the Bluetooth equipment; and broadcasting the network distribution packet to the outside to initiate a network distribution process to the server equipment.
The specific implementation of generating the network distribution package according to the identity of the bluetooth device is not limited. In an optional embodiment, the product ID and the MAC address in the ID of the bluetooth device may be directly encapsulated into a network packet. In another optional embodiment, in the process of generating the distribution network packet according to the identity of the bluetooth device, a random number may be introduced, and the random number may be carried in the distribution network packet and reported to the server device, and if the server device receives a repeated random number, a discard policy may be executed to discard the distribution network packet, thereby avoiding a replay attack. The random number may be a pseudo random number or a true random number. In an alternative embodiment, a true random number is used in generating the networking packet based on the identity of the bluetooth device. Specifically, the true random number B may be generated according to a physical variable generated during the operation of the bluetooth device; encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value; and packaging the identity identifier, the encryption value and the true random number B of the Bluetooth equipment into a network distribution package. In this embodiment, the physical variables on which the true random number B depends and the algorithm for generating the true random number B according to the physical variables are not limited, and specific reference may be made to the specific implementation of generating the true random number a, which is not described herein again. And further broadcasting the distribution network packet.
The embodiment does not limit the specific implementation of the outbound broadcast network packet. For example, the bluetooth device may broadcast the data packet once to the outside in a conventional communication manner. For another example, considering that the bluetooth device operates in a broadcast mode and has no interactivity, that is, only an external broadcast data packet is available, but data sent by other devices cannot be received, in order to solve the problem of non-interactive broadcast data loss, optionally, a certain broadcast time may be set, and then the same data packet is externally broadcast for multiple times within the set broadcast time, so as to improve transmission reliability; or, a certain number of broadcast times is set, and the same data packet is broadcast for multiple times according to the set number of broadcast times, so that the transmission reliability is improved. The set broadcast time may be, but is not limited to: 1 second, 3 seconds, 5 seconds, etc.; the set number of broadcasts may be, but is not limited to: 5 times, 10 times, 50 times, etc.
In the above embodiment, the bluetooth device operating in the broadcast mode encrypts data by using the preset key and broadcasts the encrypted data to the outside, thereby ensuring the security of the data. In addition, the Bluetooth equipment works in a broadcast mode, the broadcast mode has lower requirements on the computing capacity and hardware resources of the Bluetooth equipment, and the implementation cost of the Bluetooth equipment can be reduced.
Fig. 4b is a schematic flowchart of another data transmission method provided in an exemplary embodiment of the present application, where the method is applied to a bluetooth gateway, and as shown in fig. 4b, the method includes:
41b, receiving a data packet broadcasted by the Bluetooth device, wherein the data packet comprises an identity identifier and encrypted data of the Bluetooth device when the Bluetooth device works in a broadcast mode;
and 42b, reporting the data packet to the server side equipment so that the server side equipment can decrypt the encrypted data by using a key which is locally stored and corresponds to the identity of the Bluetooth equipment.
The bluetooth gateway may perform signal scanning within a coverage area thereof, and for specific contents of the bluetooth gateway performing signal scanning, reference may be made to the foregoing embodiments, which are not described herein again.
Optionally, for step 42b, before reporting the data packet to the server device, the method further includes: judging whether the Bluetooth equipment is the equipment with the distributed network or not according to the identity of the Bluetooth equipment; and if so, reporting the data packet to the server side equipment. The bluetooth device is a device already distributed, and the bluetooth device is located in a device already distributed list of the bluetooth gateway, and the bluetooth gateway can query the bluetooth device in the device already distributed list of the bluetooth gateway according to the identity of the bluetooth device.
In an optional embodiment, before determining whether the bluetooth device is a network-connected device, the method further includes: receiving a distribution network packet broadcasted by the Bluetooth equipment, wherein the distribution network packet comprises an identity of the Bluetooth equipment; the distribution network packet is reported to the server side equipment, so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to the distributed network equipment list.
Optionally, before reporting the distribution network packet to the server device, the method further includes: reporting the product ID in the identity of the Bluetooth device to the server device so that the server device can perform product validity check on the Bluetooth device; receiving equipment detail information of the Bluetooth equipment returned by the server equipment after the Bluetooth equipment passes the product validity check; the method comprises the steps that device detail information of the Bluetooth device is displayed, so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth device; and responding to an instruction sent by the user and confirming that the Bluetooth equipment initiates a distribution network process, and reporting the distribution network packet to the server side equipment.
For specific contents of the product validity check on the bluetooth device, the device detail information of the bluetooth device 103, and the instruction for determining to initiate the distribution network process to the bluetooth device sent by the response user, reference may be made to the foregoing embodiment, which is not described herein again.
Fig. 4c is a schematic flowchart of another data transmission method provided in an exemplary embodiment of the present application, where the method is applied to a server device, and as shown in fig. 4c, the method includes:
41c, receiving a data packet reported by the Bluetooth gateway, wherein the data packet is broadcasted by the Bluetooth equipment working in a broadcasting mode and carries the identity identification and the encrypted data of the Bluetooth equipment;
42c, determining a key used by the Bluetooth device from the locally stored keys according to the identity of the Bluetooth device;
and 43c, decrypting the encrypted data according to the key used by the Bluetooth device to obtain decrypted data.
In this embodiment, the source of the locally stored key is not limited to the step 42c, and may be provided by a server device or a third party vendor to which the bluetooth device belongs, for example. In order to guarantee the security of data, the key for encrypting the data is not spread over the air, so the key needs to be preset in the Bluetooth device and the server system. If the key is provided by a third party manufacturer to which the bluetooth device belongs, the third party manufacturer needs to preset the key in the bluetooth device in addition to providing the key to the server device. Similarly, if the key is provided by the server device, the key needs to be provided to the third party manufacturer, so that the third party manufacturer can preset the key in the bluetooth device.
The following describes the process of presetting the key on the bluetooth device in detail by taking the server device as an example to provide the key in a unified manner.
In an optional embodiment, the server device provides services such as data storage and/or processing for the bluetooth device of the third party manufacturer, and is responsible for providing a key for the bluetooth device of the third party manufacturer using the service. For a third party manufacturer, if a bluetooth device provided by the third party manufacturer is expected to use a service provided by a server device, the third party manufacturer may send a service binding request to the server device, and carry a product ID requesting service binding in the service binding request to indicate which bluetooth device applies for service binding. The server-side equipment can receive a service binding request sent by a third-party manufacturer, and at least one secret key is distributed to the product ID from locally stored secret keys according to the service binding request; and further, issuing at least one key to a third party manufacturer. For the third party manufacturer, after receiving at least one secret key under the server side device, the at least one secret key can be configured into at least one Bluetooth device under the product ID, and one secret key can be configured into one Bluetooth device, so that one secret is realized. Further, for the server device, it is necessary to obtain a correspondence between the identifier of at least one bluetooth device and at least one key, and locally store the correspondence between the identifier of at least one bluetooth device and at least one key, so as to decrypt the encrypted data from the bluetooth device using the corresponding key.
In the above embodiment, the number of at least one key is not limited. Optionally, the third party manufacturer may carry the number of the bluetooth devices requesting the service binding in the service binding request, where the number is the number of the at least one secret key. Or, the server device may also preset the number of bluetooth devices allowed to be bound in each service binding request, where the number is the number of at least one key. Or, the server device may flexibly determine the number of the at least one secret key according to the number of the bluetooth devices that can be currently bound, where the number is the number of the bluetooth devices that the third party manufacturer is allowed to bind at this time.
In the above embodiment, the manner in which the server device obtains the correspondence between the at least one bluetooth device and the at least one secret key is not limited. Two embodiments are given below:
embodiment 1: in this embodiment, the server device may not only provide the key for the third party manufacturer, but also respectively apply for the MAC address for the locally stored key, and establish the correspondence between the MAC address and the key. Wherein one key corresponds to one MAC address. Based on this, the server device issues the MAC address corresponding to the at least one key to the third party manufacturer in addition to issuing the at least one key to the third party manufacturer. For a third party manufacturer, the MAC address provided by the server device can be directly used without applying for the MAC address for its bluetooth device, and a key and its corresponding MAC address can be configured to a bluetooth device under the product ID. In this embodiment, the server device may further establish and store a correspondence between the product ID, the at least one secret key, and the MAC address of the at least one bluetooth device based on the correspondence between the MAC address and the secret key. The MAC address and the product ID of the bluetooth device can be used as the identification of the bluetooth device.
Embodiment 2: in this embodiment, the third party manufacturer may apply for the MAC address for the generated bluetooth device itself, and configure the MAC address applied to the bluetooth device. In addition, after receiving at least one secret key allocated to the product ID by the server side device, each secret key can be configured into one Bluetooth device. The bluetooth device configured with the key has its own MAC address. After configuring the keys issued by the server equipment to the Bluetooth equipment, the third party manufacturer can report the MAC address of the Bluetooth equipment where each key is located to the server equipment, so that the server equipment can acquire the MAC address corresponding to each key, and further establish and store the corresponding relation among the product ID, each key and the MAC address locally. The MAC address and the product ID of the bluetooth device can be used as the identification of the bluetooth device.
No matter which preset key implementation is adopted, the server device and the bluetooth device have a common key. Alternatively, the server device may store the key in a separate storage system, or in a local cache.
In an optional embodiment, the data packet in step 41c, in addition to carrying the identification and the encrypted data of the bluetooth device, further includes: encrypting a true random number A used; decrypting the encrypted data according to the key used by the Bluetooth device to obtain decrypted data comprises: and decrypting the encrypted data according to the key and the true random number A used by the Bluetooth equipment to obtain decrypted data. For a specific implementation of generating the true random number a, reference may be made to the foregoing embodiments, and details are not repeated herein.
In an optional embodiment, before determining the key used by the bluetooth device from the locally stored keys in step 42c, the method further includes: according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment; and if the Bluetooth equipment passes the identity verification, determining a secret key used by the Bluetooth equipment from the secret keys stored locally according to the identity of the Bluetooth equipment. For details of the identity verification, please refer to the foregoing embodiments, which are not described herein again.
In order to ensure the security of the server device, optionally, for step 41c, before receiving the data packet reported by the bluetooth gateway, the method further includes: receiving a distribution network packet reported by a Bluetooth gateway, wherein the distribution network packet comprises an identity of a Bluetooth device; according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and under the condition of passing the distribution network verification, returning a message that the Bluetooth equipment passes the distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to the distributed equipment list.
Further optionally, the network distribution package further includes: the true random number B and a first encryption value corresponding to the true random number B; according to the identity of bluetooth equipment, join in marriage net check-up to bluetooth equipment includes: according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment; when the Bluetooth device passes the identity verification, determining a key used by the Bluetooth device from the locally stored keys according to the identity of the Bluetooth device; encrypting the true random number B according to a secret key used by the Bluetooth equipment to obtain a second encryption value; and if the second encryption value is the same as the first encryption value, determining that the Bluetooth equipment passes the distribution network verification.
In an optional embodiment, before receiving the distribution network packet reported by the bluetooth gateway, the method further includes: receiving a product ID in the identity of the Bluetooth equipment reported by the Bluetooth gateway; according to the product ID of the Bluetooth device, checking the product validity of the Bluetooth device; and when the Bluetooth equipment passes the product validity check, returning equipment detail information of the Bluetooth equipment to the Bluetooth gateway so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment.
In the embodiment of the application, the bluetooth device operating in the broadcast mode encrypts data by using a preset key and broadcasts the encrypted data to the outside, and accordingly, the server device decrypts the encrypted data by using a locally pre-stored key. In the whole process, data are encrypted and transmitted, and the secret key cannot be transmitted in the air, so that the safety of the data is guaranteed. In addition, the Bluetooth equipment works in a broadcast mode, the broadcast mode has lower requirements on the computing capacity and hardware resources of the Bluetooth equipment, and the implementation cost of the Bluetooth equipment can be reduced.
Fig. 5a is a schematic flowchart of a network distribution method provided in an exemplary embodiment of the present application, where the method is applied to a bluetooth device operating in a broadcast mode, and as shown in fig. 5a, the method includes:
51a, generating a network distribution package according to the identity of the Bluetooth equipment;
and 52a, broadcasting the distribution network packet to the outside to initiate a distribution network flow to the server side equipment.
In this embodiment, a specific implementation manner of generating the network distribution package according to the identity of the bluetooth device is not limited. In an alternative embodiment, the product ID and the MAC address in the ID of the bluetooth device 103 may be directly encapsulated into a network packet. In another optional embodiment, in the process of generating the distribution network packet according to the identity of the bluetooth device 103, a random number may be introduced, and the random number may be carried in the distribution network packet and reported to the server device, and if the server device receives a repeated random number, a discard policy may be executed to discard the distribution network packet, thereby avoiding a replay attack. The random number may be a pseudo random number or a true random number. In an alternative embodiment, a true random number is used in generating the networking packet based on the identity of the bluetooth device 103. Specifically, the true random number B may be generated according to a physical variable generated by the bluetooth device 103 during operation; encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value; and packaging the identity identifier, the encryption value and the true random number B of the Bluetooth device 103 into a network distribution package. In this embodiment, the physical variables on which the true random number B depends and the algorithm for generating the true random number B according to the physical variables are not limited, and specific reference may be made to the specific implementation of generating the true random number a, which is not described herein again.
The embodiment does not limit the specific implementation of the outbound broadcast network packet. For example, the bluetooth device may broadcast the data packet once to the outside in a conventional communication manner. For another example, considering that the bluetooth device operates in a broadcast mode and has no interactivity, that is, only an external broadcast data packet is available, but data sent by other devices cannot be received, in order to solve the problem of non-interactive broadcast data loss, optionally, a certain broadcast time may be set, and then the same data packet is externally broadcast for multiple times within the set broadcast time, so as to improve transmission reliability; or, a certain number of broadcast times is set, and the same data packet is broadcast for multiple times according to the set number of broadcast times, so that the transmission reliability is improved. The set broadcast time may be, but is not limited to: 1 second, 3 seconds, 5 seconds, etc.; the set number of broadcasts may be, but is not limited to: 5 times, 10 times, 50 times, etc.
Fig. 5b is a schematic flowchart of another network distribution method provided in an exemplary embodiment of the present application, where the method is applied to a bluetooth gateway, and as shown in fig. 5b, the method includes:
51b, receiving a distribution network packet broadcasted by the Bluetooth device, wherein the Bluetooth device works in a broadcast mode, and the distribution network packet comprises an identity of the Bluetooth device;
52b, reporting the distribution network packet to the server side equipment so that the server side equipment can carry out distribution network verification on the Bluetooth equipment;
and 53b, after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, adding the identity of the Bluetooth equipment into the distributed equipment list.
In an optional embodiment, before reporting the distribution network packet to the server device, the method further includes: reporting the product ID in the identity of the Bluetooth device to the server device so that the server device can perform product validity check on the Bluetooth device; receiving equipment detail information of the Bluetooth equipment returned by the server equipment after the Bluetooth equipment passes the product validity check; the method comprises the steps that device detail information of the Bluetooth device is displayed, so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth device; and responding to an instruction sent by the user and confirming that the Bluetooth equipment initiates a distribution network process, and reporting the distribution network packet to the server side equipment.
Fig. 5c is a schematic flowchart of another network distribution method provided in an exemplary embodiment of the present application, where the method is applied to a server device, and as shown in fig. 5c, the method includes:
51c, receiving a distribution network packet reported by the Bluetooth gateway, wherein the distribution network packet is broadcasted by the Bluetooth equipment working in a broadcasting mode and carries the identity of the Bluetooth equipment;
52c, carrying out distribution network verification on the Bluetooth equipment according to the identity of the Bluetooth equipment;
and 53c, under the condition of passing the distribution network verification, returning a message that the Bluetooth equipment passes the distribution network verification to the Bluetooth gateway so as to instruct the Bluetooth gateway to add the identity of the Bluetooth equipment to the distributed equipment list.
In an optional embodiment, the network distribution package further includes: the true random number B and a first encryption value corresponding to the true random number B; according to the identity of bluetooth equipment, join in marriage net check-up to bluetooth equipment includes: according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment; when the Bluetooth device passes the identity verification, determining a key used by the Bluetooth device from the locally stored keys according to the identity of the Bluetooth device; encrypting the true random number B according to a secret key used by the Bluetooth equipment to obtain a second encryption value; and if the second encryption value is the same as the first encryption value, determining that the Bluetooth equipment passes the distribution network verification.
In an optional embodiment, before receiving the distribution network packet reported by the bluetooth gateway, the method further includes: receiving a product ID in the identity information of the Bluetooth equipment reported by the Bluetooth gateway; according to the product ID of the Bluetooth device, checking the product validity of the Bluetooth device; and when the Bluetooth equipment passes the product validity check, returning equipment detail information of the Bluetooth equipment to the Bluetooth gateway so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment.
In this embodiment, a distribution network process is provided for bluetooth devices operating in a broadcast mode, the bluetooth devices can be discovered and bound through the distribution network process, and a server device and a bluetooth gateway only need to process data packets from bound bluetooth devices (or bluetooth devices in a distributed network), and do not need to process data packets from other unbound bluetooth devices (or bluetooth devices in a non-distributed network), so that the probability of malicious attack on the server device or a network system can be reduced, and the security of the system can be improved.
Fig. 6 is a flowchart illustrating a bluetooth device management method according to an exemplary embodiment of the present application, where the method is applied to a server device, and as shown in fig. 6, the method includes:
61. receiving a service binding request sent by a third party manufacturer, wherein the service binding request comprises a product ID requesting service binding;
62. assigning at least one key for the product ID from the locally stored keys according to the service binding request;
63. issuing the at least one secret key to a third party manufacturer so that the third party manufacturer can configure the at least one secret key into at least one Bluetooth device under the product ID;
64. the correspondence between the product ID, the at least one key and the MAC address of the at least one bluetooth device is stored locally.
In an optional embodiment, before assigning at least one key to the product ID from the locally stored keys, the method further comprises: respectively applying for MAC addresses for locally stored keys; issuing at least one key to a third party vendor, comprising: and issuing at least one key and the corresponding MAC address to a third party manufacturer so that the third party manufacturer can configure one key and the corresponding MAC address into one Bluetooth device under the product ID.
In an optional embodiment, when a bluetooth device operates in the broadcast mode, the method further comprises: according to a distribution network packet broadcasted by at least one device, carrying out distribution network operation on at least one Bluetooth device; and/or processing data generated by at least one Bluetooth device according to a data packet broadcasted by at least one device.
In this description, the foregoing embodiment has been described by taking "bluetooth device" as an example, but the invention is not limited thereto, and is also applicable to bluetooth chips or bluetooth modules with corresponding functions, for example, which is not described herein again.
It should be noted that the execution subjects of the steps of the methods provided in the above embodiments may be the same device, or different devices may be used as the execution subjects of the methods. For example, the execution subjects of steps 41c to 43c may be device a; for another example, the execution subject of steps 41c and 42c may be device a, and the execution subject of step 43c may be device B; and so on.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the order of the operations, such as 41c, 42c, etc., is merely used for distinguishing various operations, and the order itself does not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
Fig. 7 is a schematic structural diagram of a bluetooth device according to an exemplary embodiment of the present application. The bluetooth device operates in a broadcast mode, as shown in fig. 7, and includes: memory 71, processor 72 and communication component 73.
The memory 71 is used to store computer programs and may be configured to store other various data to support operations on the bluetooth device. Examples of such data include instructions for any application or method operating on a bluetooth device, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 71 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 72, coupled to the memory 71, for executing computer programs in the memory 71 for: encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity identification and the encrypted data of the Bluetooth equipment into a data packet; the data packets are broadcast out through the communication component 73.
In an alternative embodiment, when the processor 72 encrypts the data to be transmitted by using a preset encryption algorithm and a preset key to obtain encrypted data, the processor is specifically configured to: generating a true random number A according to a physical variable generated in the running process of the Bluetooth equipment; and encrypting the true random number A and the data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data.
In an alternative embodiment, the processor 72, when generating the true random number a based on physical variables generated during operation of the bluetooth device, is specifically configured to: and generating a true random number A according to hardware noise, a voltage value or a current value generated in the running process of the Bluetooth equipment.
In an optional embodiment, when encapsulating the id and the encrypted data of the bluetooth device into a data packet, the processor 72 is specifically configured to: and packaging the identity identifier of the Bluetooth equipment, the true random number A and the encrypted data into a data packet.
In an optional embodiment, when the processor 72 broadcasts the data packet to the outside, it is specifically configured to: broadcasting the data packet for multiple times within the set broadcasting time; or the data packet is broadcasted for a plurality of times according to the set broadcasting times.
In an alternative embodiment, the processor 72 is further configured to, prior to broadcasting the data packet to the outside: generating a network distribution package according to the identity of the Bluetooth equipment; and broadcasting the network distribution packet to the outside to initiate a network distribution process to the server equipment.
In an optional embodiment, when the processor 72 generates the network distribution package according to the identity of the bluetooth device, it is specifically configured to: generating a true random number B according to a physical variable generated in the running process of the Bluetooth equipment; encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value; and packaging the identity identifier, the encryption value and the true random number B of the Bluetooth equipment into a network distribution package.
It should be noted that the bluetooth device provided in this embodiment may have a distribution network function and an encrypted data transmission function at the same time; alternatively, only the distribution network function may be provided, and the encrypted data transmission function may not be provided, that is, data transmission may be performed in a plaintext manner.
Further, as shown in fig. 7, the bluetooth apparatus further includes: display 77, power supply 78, audio 79 and other components. Only some of the components are schematically shown in fig. 7, and it is not meant that the bluetooth device includes only the components shown in fig. 7. In addition, the components shown in the dashed boxes in fig. 7 are optional components, not required components.
Accordingly, embodiments of the present application also provide a computer-readable storage medium storing a computer program, which, when executed by a processor, causes the processor to implement the steps in the above-described data transmission method and/or distribution network method embodiments executed by a bluetooth device.
In addition to the above bluetooth device, an embodiment of the present application further provides a bluetooth module, which has the same or similar structure as the above bluetooth device, and is different from the above bluetooth device only in the device form. This bluetooth module also includes: memory, processor, and communication components. A memory for storing a computer program; a processor coupled with the memory for executing the computer program for: encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data; packaging the identity identification and the encrypted data of the Bluetooth module into a data packet; and broadcasting the data packet to the outside through the communication component.
Further, the processor is further configured to: before broadcasting the data packet to the outside, generating a network distribution packet according to the identity of the Bluetooth module; and broadcasting the network distribution packet to the outside through the communication assembly so as to initiate a network distribution process to the server equipment. For a detailed description of the functions of the processor, reference may be made to the foregoing embodiments, which are not repeated herein.
This bluetooth module can be applied to among all kinds of electronic product, for example equipment such as intelligent wrist-watch, intelligent bracelet, body fat are called, intelligent lamp, electronic scale, air purifier, refrigerator, TV set, air conditioner, robot, air purifier, electric oven, coffee machine of sweeping the floor. The equipment that is embedded to have this bluetooth module can work under bluetooth broadcast mode, possesses the function that adopts the external broadcast data package of encryption mode, can improve data security on the basis of realizing bluetooth communication.
Fig. 8 is a schematic structural diagram of a bluetooth gateway according to an exemplary embodiment of the present application. As shown in fig. 8, the bluetooth gateway includes: memory 81, processor 82 and communication component 83.
A memory 81 for storing a computer program and may be configured to store other various data to support operations on the bluetooth gateway. Examples of such data include instructions for any application or method operating on the bluetooth gateway, contact data, phonebook data, messages, pictures, videos, and the like.
The memory 81 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 82 coupled to the memory 81 for executing the computer program in the memory 81 for: receiving a data packet broadcast by the bluetooth device to the outside through the communication component 83, wherein the bluetooth device works in a broadcast mode, and the data packet includes an identity and encrypted data of the bluetooth device; the data packet is reported to the server device through the communication component 83, so that the server device can decrypt the encrypted data by using the key corresponding to the identity of the bluetooth device stored locally.
In an alternative embodiment, the processor 82 is further configured to, before reporting the data packet to the server device: judging whether the Bluetooth equipment is the equipment with the distributed network or not according to the identity of the Bluetooth equipment; and if so, reporting the data packet to the server side equipment.
In an optional embodiment, before determining whether the bluetooth device is a network-connected device, the processor 82 is further configured to: receiving a distribution network packet broadcasted by the Bluetooth equipment, wherein the distribution network packet comprises an identity of the Bluetooth equipment; the distribution network packet is reported to the server side equipment, so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to the distributed network equipment list.
In an alternative embodiment, the processor 82 is further configured to, before reporting the distribution network packet to the server device: reporting the product ID in the identity of the Bluetooth device to the server device so that the server device can perform product validity check on the Bluetooth device; receiving equipment detail information of the Bluetooth equipment returned by the server equipment after the Bluetooth equipment passes the product validity check; the method comprises the steps that device detail information of the Bluetooth device is displayed, so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth device; and responding to an instruction sent by the user and confirming that the Bluetooth equipment initiates a distribution network process, and reporting the distribution network packet to the server side equipment.
It should be noted that the bluetooth gateway provided in this embodiment may have a distribution network function and an encrypted data transmission function at the same time; alternatively, only the distribution network function may be provided, and the encrypted data transmission function may not be provided, that is, data transmission may be performed in a plaintext manner.
Further, as shown in fig. 8, the bluetooth gateway further includes: a display 87, a power supply component 88, an audio component 89, and the like. Only some of the components are schematically shown in fig. 8, and it is not meant that the bluetooth gateway includes only the components shown in fig. 8. In addition, the components shown in the dashed boxes in fig. 8 are optional components, not required components.
Accordingly, the present application further provides a computer readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is caused to implement the steps of the data transmission method and/or the distribution network method embodiment executed by the bluetooth gateway.
Fig. 9a is a schematic structural diagram of a server device according to an exemplary embodiment of the present application. As shown in fig. 9a, the server device includes: memory 91a, processor 92a and communication component 93 a.
The memory 91a is used for storing computer programs and may be configured to store other various data to support operations on the server device. Examples of such data include instructions for any application or method operating on the server device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 91a may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 92a, coupled to the memory 91a, for executing the computer program in the memory 91a to: receiving a data packet reported by a bluetooth gateway through a communication component 93a, wherein the data packet is broadcasted by a bluetooth device working in a broadcast mode and carries an identity identifier and encrypted data of the bluetooth device; determining a key used by the Bluetooth equipment from the locally stored keys according to the identity of the Bluetooth equipment; and decrypting the encrypted data according to the key used by the Bluetooth equipment to obtain decrypted data.
In an optional embodiment, the data packet further includes: encrypting a true random number A used; when the processor 92a decrypts the encrypted data according to the key used by the bluetooth device to obtain decrypted data, the processor is specifically configured to: and decrypting the encrypted data according to the key and the true random number A used by the Bluetooth equipment to obtain decrypted data.
In an alternative embodiment, the processor 92a, prior to determining the key used by the bluetooth device from the locally stored keys, is further configured to: according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment; and if the Bluetooth equipment passes the identity verification, determining a secret key used by the Bluetooth equipment from the secret keys stored locally according to the identity of the Bluetooth equipment.
In an optional embodiment, before receiving the data packet reported by the bluetooth gateway, the processor 92a is further configured to: receiving a distribution network packet reported by a Bluetooth gateway, wherein the distribution network packet comprises an identity of a Bluetooth device; according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and under the condition of passing the distribution network verification, returning a message that the Bluetooth equipment passes the distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to the distributed equipment list.
In an optional embodiment, the network distribution package further includes: the true random number B and a first encryption value corresponding to the true random number B; when the processor 92a performs distribution network verification on the bluetooth device according to the identity of the bluetooth device, it is specifically configured to: according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment; when the Bluetooth device passes the identity verification, determining a key used by the Bluetooth device from the locally stored keys according to the identity of the Bluetooth device; encrypting the true random number B according to a secret key used by the Bluetooth equipment to obtain a second encryption value; and if the second encryption value is the same as the first encryption value, determining that the Bluetooth equipment passes the distribution network verification.
In an optional embodiment, before receiving the distribution network packet reported by the bluetooth gateway, the processor 92a is further configured to: receiving a product ID in the identity of the Bluetooth equipment reported by the Bluetooth gateway; according to the product ID of the Bluetooth device, checking the product validity of the Bluetooth device; and when the Bluetooth equipment passes the product validity check, returning equipment detail information of the Bluetooth equipment to the Bluetooth gateway so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment.
In an optional embodiment, before receiving the distribution network packet reported by the bluetooth gateway, the processor 92a is further configured to: receiving a service binding request sent by a third party manufacturer to which the Bluetooth equipment belongs, wherein the service binding request comprises a product ID requesting service binding; assigning at least one key for the product ID from the locally stored keys according to the service binding request; issuing the at least one secret key to a third party manufacturer so that the third party manufacturer can configure the at least one secret key into at least one Bluetooth device under the product ID; and storing locally a correspondence between the product ID, the at least one key, and the MAC address of the at least one bluetooth device.
In an alternative embodiment, the processor 92a, prior to assigning at least one key to the product ID from the locally stored keys, is further configured to: respectively applying for MAC addresses for locally stored keys; issuing at least one key to a third party vendor, comprising: and issuing at least one key and the corresponding MAC address to a third party manufacturer so that the third party manufacturer can configure one key and the corresponding MAC address into one Bluetooth device under the product ID.
It should be noted that the server device provided in this embodiment may have a distribution network function and an encrypted data transmission function at the same time; alternatively, only the distribution network function may be provided, and the encrypted data transmission function may not be provided, that is, data transmission may be performed in a plaintext manner.
Further, as shown in fig. 9a, the server device further includes: power supply assembly 98a, and the like. Only some of the components are schematically shown in fig. 9a, and the server device is not meant to include only the components shown in fig. 9 a.
Accordingly, the present application further provides a computer-readable storage medium storing a computer program, and when the computer program is executed by a processor, the processor is caused to implement the steps in the data transmission method and/or the distribution network method embodiment executed by the server device.
Fig. 9b is a schematic structural diagram of another server device according to an exemplary embodiment of the present application. As shown in fig. 9b, the server device includes: memory 91b, processor 92b and communication component 93 b.
The memory 91b is used for storing computer programs and can be configured to store other various data to support operations on the server device. Examples of such data include instructions for any application or method operating on the server device, contact data, phonebook data, messages, pictures, videos, and so forth.
The memory 91b may be implemented by any type or combination of volatile or non-volatile memory devices such as static random access memory (SRCM), Electrically Erasable Programmable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A processor 92b, coupled to the memory 91b, for executing computer programs in the memory 91b for: receiving a service binding request sent by a third party vendor through the communication component 93b, the service binding request including a product ID requesting service binding; assigning at least one key for the product ID from the locally stored keys according to the service binding request; issuing the at least one secret key to a third party manufacturer so that the third party manufacturer can configure the at least one secret key into at least one Bluetooth device under the product ID; and storing locally a correspondence between the product ID, the at least one key, and the MAC address of the at least one bluetooth device.
In an alternative embodiment, the processor 92b, prior to assigning at least one key to the product ID from the locally stored keys, is further configured to: respectively applying for MAC addresses for locally stored keys; when the processor 92b issues at least one key to the third party manufacturer, it is specifically configured to: and issuing at least one key and the corresponding MAC address to a third party manufacturer so that the third party manufacturer can configure one key and the corresponding MAC address into one Bluetooth device under the product ID.
In an alternative embodiment, the processor 92b is further configured to, when a bluetooth device is operating in the broadcast mode: according to a distribution network packet broadcasted by at least one device, carrying out distribution network operation on at least one Bluetooth device; and/or processing data generated by at least one Bluetooth device according to a data packet broadcasted by at least one device.
Further, as shown in fig. 9b, the server device further includes: power supply assembly 98b, and the like. Only some of the components are schematically shown in fig. 9b, and the server device is not meant to include only the components shown in fig. 9 b.
Accordingly, the embodiments of the present application further provide a computer-readable storage medium storing a computer program, where the computer program can implement the steps that can be executed by the server device in the bluetooth device management method embodiment.
The communication components of fig. 7-9 b described above are configured to facilitate communication between the device in which the communication component is located and other devices in a wired or wireless manner. The device where the communication component is located can access a wireless network based on a communication standard, such as a WiFi, a 2G, 3G, 4G/LTE, 5G and other mobile communication networks, or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
The displays in fig. 7-8 described above include screens, which may include Liquid Crystal Displays (LCDs) and Touch Panels (TPs). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
The power supply components of fig. 7-9 b described above provide power to the various components of the device in which the power supply component is located. The power components may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device in which the power component is located.
The audio components of fig. 7-8 described above may be configured to output and/or input audio signals. For example, the audio component includes a Microphone (MIC) configured to receive an external audio signal when the device in which the audio component is located is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in a memory or transmitted via a communication component. In some embodiments, the audio assembly further comprises a speaker for outputting audio signals.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (41)

1. A data transmission method, adapted to a bluetooth device operating in a broadcast mode, the method comprising:
encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data;
packaging the identity of the Bluetooth equipment and the encrypted data into a data packet;
and broadcasting the data packet to the outside.
2. The method of claim 1, wherein encrypting the data to be transmitted by using a preset encryption algorithm and a key to obtain encrypted data comprises:
generating a true random number A according to a physical variable generated by the Bluetooth equipment in the operation process;
and encrypting the true random number A and the data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data.
3. The method of claim 2, wherein generating a true random number a based on physical variables generated by the bluetooth device during operation comprises:
and generating a true random number A according to hardware noise, a voltage value or a current value generated in the running process of the Bluetooth equipment.
4. The method of claim 2, wherein encapsulating the identity of the bluetooth device and the encrypted data into a data packet comprises:
and packaging the identity of the Bluetooth equipment, the true random number A and the encrypted data into a data packet.
5. The method of any of claims 1-4, wherein broadcasting the data packet externally comprises:
broadcasting the data packet to the outside for multiple times within the set broadcasting time;
or
And broadcasting the data packet outwards for multiple times according to the set broadcasting times.
6. The method of any of claims 1-4, further comprising, prior to broadcasting the data packet out:
generating a network distribution package according to the identity of the Bluetooth equipment;
and broadcasting the network distribution packet to the outside to initiate a network distribution process to the server equipment.
7. The method of claim 6, generating a networking package according to the identity of the Bluetooth device, comprising:
generating a true random number B according to a physical variable generated by the Bluetooth equipment in the operation process;
encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value;
and packaging the identity of the Bluetooth equipment, the encryption value and the true random number B into a network distribution package.
8. A data transmission method is suitable for a Bluetooth gateway, and comprises the following steps:
receiving a data packet broadcasted by a Bluetooth device to the outside, wherein the Bluetooth device works in a broadcast mode, and the data packet comprises an identity identification and encrypted data of the Bluetooth device;
and reporting the data packet to server equipment so that the server equipment decrypts the encrypted data by using a key locally stored and corresponding to the identity of the Bluetooth equipment.
9. The method of claim 8, further comprising, before reporting the data packet to a server device:
judging whether the Bluetooth equipment is the equipment with the distributed network or not according to the identity of the Bluetooth equipment;
and if so, reporting the data packet to the server side equipment.
10. The method of claim 9, before determining whether the bluetooth device is a configured network device, further comprising:
receiving a network distribution packet broadcasted by the Bluetooth equipment, wherein the network distribution packet comprises an identity of the Bluetooth equipment;
reporting the distribution network packet to server side equipment so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and
and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to a distributed network equipment list.
11. The method of claim 10, further comprising, before reporting the distribution network packet to a server device:
reporting the product ID in the identity of the Bluetooth device to a server device so that the server device can perform product validity check on the Bluetooth device;
receiving device detail information of the Bluetooth device returned by the server device after the Bluetooth device passes the product validity check;
displaying the equipment detail information of the Bluetooth equipment so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment; and
responding to an instruction sent by a user and confirming that a distribution network process is initiated to the Bluetooth equipment, and reporting the distribution network packet to the server side equipment.
12. A data transmission method is suitable for server-side equipment, and comprises the following steps:
receiving a data packet reported by a Bluetooth gateway, wherein the data packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity identifier and encrypted data of the Bluetooth equipment;
determining a key used by the Bluetooth equipment from locally stored keys according to the identity of the Bluetooth equipment;
and decrypting the encrypted data according to the key used by the Bluetooth equipment to obtain decrypted data.
13. The method of claim 12, the data packet further comprising: encrypting a true random number A used;
decrypting the encrypted data according to the key used by the Bluetooth device to obtain decrypted data comprises:
and decrypting the encrypted data according to the key used by the Bluetooth equipment and the true random number A to obtain decrypted data.
14. The method of claim 13, further comprising, prior to determining the key used by the bluetooth device from locally stored keys:
according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment;
and if the Bluetooth equipment passes the identity verification, determining a secret key used by the Bluetooth equipment from the secret keys stored locally according to the identity of the Bluetooth equipment.
15. The method according to any of claims 12-14, further comprising, before receiving the data packet reported by the bluetooth gateway:
receiving a distribution network packet reported by a Bluetooth gateway, wherein the distribution network packet comprises an identity of the Bluetooth equipment;
according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and
and under the condition of passing distribution network verification, returning a message that the Bluetooth equipment passes distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to a distributed equipment list.
16. The method of claim 15, the network distribution package further comprising: the true random number B and a first encryption value corresponding to the true random number B;
according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment, and the method comprises the following steps:
according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment;
when the Bluetooth device passes the identity verification, determining a key used by the Bluetooth device from locally stored keys according to the identity of the Bluetooth device;
encrypting the true random number B according to the secret key used by the Bluetooth equipment to obtain a second encryption value;
and if the second encryption value is the same as the first encryption value, determining that the Bluetooth equipment passes distribution network verification.
17. The method of claim 15, further comprising, before receiving the distribution network packet reported by the bluetooth gateway:
receiving a product ID in the identity of the Bluetooth equipment reported by the Bluetooth gateway;
according to the product ID of the Bluetooth equipment, carrying out product validity check on the Bluetooth equipment; and
and when the Bluetooth equipment passes the product validity check, returning equipment detail information of the Bluetooth equipment to the Bluetooth gateway so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment.
18. The method of claim 15, further comprising, before receiving the distribution network packet reported by the bluetooth gateway:
receiving a service binding request sent by a third party manufacturer to which the Bluetooth equipment belongs, wherein the service binding request comprises a product ID requesting service binding;
assigning at least one key to the product ID from locally stored keys according to the service binding request;
issuing the at least one secret key to the third party manufacturer so that the third party manufacturer can configure the at least one secret key to at least one Bluetooth device under the product ID; and
and locally storing the corresponding relation among the product ID, the at least one secret key and the MAC address of the at least one Bluetooth device.
19. The method of claim 18, further comprising, prior to assigning at least one key for the product ID from a locally stored key: respectively applying for MAC addresses for locally stored keys;
issuing the at least one key to the third party vendor, including: and issuing the at least one key and the corresponding MAC address to the third party manufacturer so that the third party manufacturer can configure one key and the corresponding MAC address into one Bluetooth device under the product ID.
20. A network distribution method is suitable for Bluetooth equipment working in a broadcast mode, and comprises the following steps:
generating a network distribution package according to the identity of the Bluetooth equipment;
and broadcasting the network distribution packet to the outside to initiate a network distribution process to the server equipment.
21. The method of claim 20, generating a networking package based on the identity of the bluetooth device, comprising:
generating a true random number B according to a physical variable generated by the Bluetooth equipment in the operation process;
encrypting the true random number B by adopting a preset encryption algorithm and a key to obtain an encrypted value;
and packaging the identity of the Bluetooth equipment, the encryption value and the true random number B into a network distribution package.
22. The method according to claim 20 or 21, broadcasting the distribution packet to the outside to initiate a distribution network procedure to the server device, comprising:
broadcasting the network distribution package outwards for multiple times within the set broadcasting time;
or
And broadcasting the network distribution packet for multiple times according to the set broadcasting times.
23. A network distribution method is suitable for a Bluetooth gateway, and comprises the following steps:
receiving a distribution network packet broadcasted by Bluetooth equipment to the outside, wherein the Bluetooth equipment works in a broadcast mode and the distribution network packet comprises an identity of the Bluetooth equipment;
reporting the distribution network packet to server side equipment so that the server side equipment can carry out distribution network verification on the Bluetooth equipment; and
and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to a distributed network equipment list.
24. The method of claim 23, further comprising, before reporting the distribution network packet to a server device:
reporting the product ID in the identity of the Bluetooth device to a server device so that the server device can perform product validity check on the Bluetooth device;
receiving device detail information of the Bluetooth device returned by the server device after the Bluetooth device passes the product validity check;
displaying the equipment detail information of the Bluetooth equipment so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment; and
responding to an instruction sent by a user and confirming that a distribution network process is initiated to the Bluetooth equipment, and reporting the distribution network packet to the server side equipment.
25. A network distribution method is suitable for server-side equipment, and comprises the following steps:
receiving a distribution network packet reported by a Bluetooth gateway, wherein the distribution network packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity of the Bluetooth equipment;
according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and
and under the condition of passing distribution network verification, returning a message that the Bluetooth equipment passes distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to a distributed equipment list.
26. The method of claim 25, the networking package further comprising: the true random number B and a first encryption value corresponding to the true random number B;
according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment, and the method comprises the following steps:
according to the identity of the Bluetooth equipment, carrying out identity verification on the Bluetooth equipment;
when the Bluetooth device passes the identity verification, determining a key used by the Bluetooth device from locally stored keys according to the identity of the Bluetooth device;
encrypting the true random number B according to the secret key used by the Bluetooth equipment to obtain a second encryption value;
and if the second encryption value is the same as the first encryption value, determining that the Bluetooth equipment passes distribution network verification.
27. The method of claim 25, further comprising, before receiving the distribution network packet reported by the bluetooth gateway:
receiving a product ID in the identity information of the Bluetooth equipment reported by the Bluetooth gateway;
according to the product ID of the Bluetooth equipment, carrying out product validity check on the Bluetooth equipment; and
and when the Bluetooth equipment passes the product validity check, returning equipment detail information of the Bluetooth equipment to the Bluetooth gateway so that a user can determine whether to initiate a distribution network process aiming at the Bluetooth equipment.
28. A Bluetooth device management method is suitable for a server device, and comprises the following steps:
receiving a service binding request sent by a third party manufacturer, wherein the service binding request comprises a product ID requesting service binding;
assigning at least one key to the product ID from locally stored keys according to the service binding request;
issuing the at least one secret key to the third party manufacturer so that the third party manufacturer can configure the at least one secret key to at least one Bluetooth device under the product ID; and
and locally storing the corresponding relation among the product ID, the at least one secret key and the MAC address of the at least one Bluetooth device.
29. The method of claim 28, further comprising, prior to assigning at least one key for the product ID from a locally stored key: respectively applying for MAC addresses for locally stored keys;
issuing the at least one key to the third party vendor, including: and issuing the at least one key and the corresponding MAC address to the third party manufacturer so that the third party manufacturer can configure one key and the corresponding MAC address into one Bluetooth device under the product ID.
30. The method of claim 28 or 29, when the one bluetooth device is operating in a broadcast mode, the method further comprising:
according to the distribution network packet broadcasted by the at least one device, carrying out distribution network operation on the at least one Bluetooth device; and/or
And processing the data generated by the at least one Bluetooth device according to the data packet broadcasted by the at least one device.
31. A network system, comprising: the system comprises a server device, a Bluetooth gateway and a Bluetooth device; the Bluetooth device works in a broadcast mode;
the Bluetooth device is used for encrypting data to be transmitted by adopting a preset encryption algorithm and a preset secret key to obtain encrypted data; packaging the identity of the Bluetooth equipment and the encrypted data into a data packet; broadcasting the data packet to the outside;
the gateway device is used for receiving a data packet broadcasted by the Bluetooth device and reporting the data packet to the server device;
the server side equipment is used for determining a key used by the Bluetooth equipment from a locally stored key according to the identity of the Bluetooth equipment in the data packet; and decrypting the encrypted data in the data packet according to the key used by the Bluetooth equipment to obtain decrypted data.
32. A bluetooth device, the bluetooth device operating in a broadcast mode, the bluetooth device comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data;
packaging the identity of the Bluetooth equipment and the encrypted data into a data packet;
broadcasting the data packet to the outside through the communication component.
33. A bluetooth device, the bluetooth device operating in a broadcast mode, the bluetooth device comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
generating a network distribution package according to the identity of the Bluetooth equipment;
and broadcasting the network distribution packet to the outside through the communication assembly so as to initiate a network distribution process to the server equipment.
34. A bluetooth gateway, comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
receiving a data packet broadcast by a Bluetooth device to the outside through the communication assembly, wherein the Bluetooth device works in a broadcast mode, and the data packet comprises an identity identification and encrypted data of the Bluetooth device;
and reporting the data packet to server equipment through the communication assembly so that the server equipment decrypts the encrypted data by using a key which is locally stored and corresponds to the identity of the Bluetooth equipment.
35. A bluetooth gateway, comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
receiving a distribution network packet broadcasted by Bluetooth equipment to the outside through the communication assembly, wherein the Bluetooth equipment works in a broadcast mode, and the distribution network packet comprises an identity of the Bluetooth equipment;
the distribution network packet is reported to a server side device through the communication assembly, so that the server side device can carry out distribution network verification on the Bluetooth device; and
and after the server side equipment returns a message that the Bluetooth equipment passes the distribution network verification, the identity of the Bluetooth equipment is added to a distributed network equipment list.
36. A server device, comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
receiving a data packet reported by a Bluetooth gateway through the communication assembly, wherein the data packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity identifier and encrypted data of the Bluetooth equipment;
determining a key used by the Bluetooth equipment from locally stored keys according to the identity of the Bluetooth equipment;
and decrypting the encrypted data according to the key used by the Bluetooth equipment to obtain decrypted data.
37. A server device, comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
receiving a distribution network packet reported by a Bluetooth gateway through the communication component, wherein the distribution network packet is broadcasted by Bluetooth equipment working in a broadcasting mode and carries an identity of the Bluetooth equipment;
according to the identity of the Bluetooth equipment, carrying out distribution network verification on the Bluetooth equipment; and
and under the condition of passing distribution network verification, returning a message that the Bluetooth equipment passes distribution network verification to the Bluetooth gateway so as to indicate the Bluetooth gateway to add the identity of the Bluetooth equipment to a distributed equipment list.
38. A server device, comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
receiving a service binding request sent by a third party manufacturer through the communication component, wherein the service binding request comprises a product ID requesting service binding;
assigning at least one key to the product ID from locally stored keys according to the service binding request;
issuing the at least one secret key to the third party manufacturer so that the third party manufacturer can configure the at least one secret key to at least one Bluetooth device under the product ID; and
and locally storing the corresponding relation among the product ID, the at least one secret key and the MAC address of the at least one Bluetooth device.
39. A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to carry out the steps of the method of any one of claims 1 to 30.
40. A bluetooth module, said bluetooth module operating in a broadcast mode, said bluetooth module comprising: a memory, a processor, and a communications component;
the memory for storing a computer program;
the processor, coupled with the memory, to execute the computer program to:
encrypting data to be transmitted by adopting a preset encryption algorithm and a key to obtain encrypted data;
packaging the identity of the Bluetooth module and the encrypted data into a data packet;
broadcasting the data packet to the outside through the communication component.
41. The bluetooth module of claim 40, the processor further configured to:
before broadcasting the data packet to the outside, generating a network distribution packet according to the identity of the Bluetooth module;
and broadcasting the network distribution packet to the outside through the communication assembly so as to initiate a network distribution process to the server equipment.
CN202010130837.3A 2020-02-28 2020-02-28 Data transmission, distribution network and management method, device, system and storage medium Pending CN113329399A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010130837.3A CN113329399A (en) 2020-02-28 2020-02-28 Data transmission, distribution network and management method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010130837.3A CN113329399A (en) 2020-02-28 2020-02-28 Data transmission, distribution network and management method, device, system and storage medium

Publications (1)

Publication Number Publication Date
CN113329399A true CN113329399A (en) 2021-08-31

Family

ID=77412835

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010130837.3A Pending CN113329399A (en) 2020-02-28 2020-02-28 Data transmission, distribution network and management method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN113329399A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766482A (en) * 2021-09-15 2021-12-07 荣耀终端有限公司 Method for searching Bluetooth device, electronic device and storage medium
CN115134764A (en) * 2022-05-27 2022-09-30 阿里云计算有限公司 Communication method and device based on Bluetooth
WO2023160400A1 (en) * 2022-02-24 2023-08-31 盒马(中国)有限公司 Data transmission method, bluetooth communication apparatus, storage medium, and program product

Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102710628A (en) * 2012-05-25 2012-10-03 东莞中山大学研究院 Home-gateway based cloud security encryption method and system
US20140133656A1 (en) * 2012-02-22 2014-05-15 Qualcomm Incorporated Preserving Security by Synchronizing a Nonce or Counter Between Systems
CN104202299A (en) * 2014-08-06 2014-12-10 北京中金国信科技有限公司 System and method of identity authentication based on Bluetooth
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
WO2015180654A1 (en) * 2014-05-28 2015-12-03 大唐移动通信设备有限公司 Method and apparatus for achieving secret communications
EP3073704A1 (en) * 2015-03-23 2016-09-28 Comarch Technologies Spólka z Ograniczona Odpowiedzialnoscia Method of data securing transmitted over bluetooth and transmitter device transmitting secured data over bluetooth
CN106603234A (en) * 2015-10-14 2017-04-26 阿里巴巴集团控股有限公司 Method, device and system for device identity authentication
WO2017091959A1 (en) * 2015-11-30 2017-06-08 华为技术有限公司 Data transmission method, user equipment and network side device
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN107483203A (en) * 2017-07-13 2017-12-15 深圳市盛路物联通讯技术有限公司 Internet of Things access point receives the encryption method at times and device of data
CN108513283A (en) * 2018-03-13 2018-09-07 青岛海尔科技有限公司 One kind matching network method, equipment, terminal, medium and computer equipment
CN108541324A (en) * 2016-12-27 2018-09-14 深圳易马达科技有限公司 A kind of unlocking method of electronic lock device, client and its electronic lock device
CN108769973A (en) * 2018-07-19 2018-11-06 深圳芯之联科技有限公司 A kind of method for secret protection of bluetooth equipment
CN108881052A (en) * 2018-06-26 2018-11-23 新华三技术有限公司 A kind of message forwarding method and device
CN109089248A (en) * 2018-08-07 2018-12-25 河南云拓智能科技有限公司 A kind of information monitoring method based on Bluetooth gateway
CN109151788A (en) * 2018-09-28 2019-01-04 咪付(广西)网络技术有限公司 A kind of data in mobile phone transmission method and system based on bluetooth low energy device
CN109218994A (en) * 2018-09-05 2019-01-15 北京字节跳动网络技术有限公司 Equivalent device Bluetooth communication method and device based on gateway
US20190058739A1 (en) * 2017-08-21 2019-02-21 Linctronix Ltd. Bluetooth data access system
CN109413624A (en) * 2016-12-06 2019-03-01 北京嘀嘀无限科技发展有限公司 Multimedia messages playback method, bluetooth management method, terminal and server
CN208707655U (en) * 2018-07-24 2019-04-05 南方电网科学研究院有限责任公司 A kind of power distribution automation key agreement system
CN110430557A (en) * 2019-06-21 2019-11-08 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium that equipment networks
CN110493758A (en) * 2018-05-14 2019-11-22 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its match network method, equipment and storage medium
CN110505606A (en) * 2018-05-18 2019-11-26 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its distribution method for authenticating, equipment and storage medium
CN110602703A (en) * 2019-09-17 2019-12-20 深圳市太美亚电子科技有限公司 Bluetooth communication data encryption method, terminal and system for BLE

Patent Citations (24)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140133656A1 (en) * 2012-02-22 2014-05-15 Qualcomm Incorporated Preserving Security by Synchronizing a Nonce or Counter Between Systems
CN102710628A (en) * 2012-05-25 2012-10-03 东莞中山大学研究院 Home-gateway based cloud security encryption method and system
WO2015180654A1 (en) * 2014-05-28 2015-12-03 大唐移动通信设备有限公司 Method and apparatus for achieving secret communications
CN104202299A (en) * 2014-08-06 2014-12-10 北京中金国信科技有限公司 System and method of identity authentication based on Bluetooth
EP3073704A1 (en) * 2015-03-23 2016-09-28 Comarch Technologies Spólka z Ograniczona Odpowiedzialnoscia Method of data securing transmitted over bluetooth and transmitter device transmitting secured data over bluetooth
CN104853406A (en) * 2015-04-27 2015-08-19 小米科技有限责任公司 Service set identifier SSID providing method, acquiring method and device
CN106603234A (en) * 2015-10-14 2017-04-26 阿里巴巴集团控股有限公司 Method, device and system for device identity authentication
WO2017091959A1 (en) * 2015-11-30 2017-06-08 华为技术有限公司 Data transmission method, user equipment and network side device
CN109413624A (en) * 2016-12-06 2019-03-01 北京嘀嘀无限科技发展有限公司 Multimedia messages playback method, bluetooth management method, terminal and server
CN108541324A (en) * 2016-12-27 2018-09-14 深圳易马达科技有限公司 A kind of unlocking method of electronic lock device, client and its electronic lock device
CN107197424A (en) * 2017-06-06 2017-09-22 欧普照明股份有限公司 Bluetooth connecting method, bluetooth equipment and bluetooth connection system
CN107483203A (en) * 2017-07-13 2017-12-15 深圳市盛路物联通讯技术有限公司 Internet of Things access point receives the encryption method at times and device of data
US20190058739A1 (en) * 2017-08-21 2019-02-21 Linctronix Ltd. Bluetooth data access system
CN108513283A (en) * 2018-03-13 2018-09-07 青岛海尔科技有限公司 One kind matching network method, equipment, terminal, medium and computer equipment
CN110493758A (en) * 2018-05-14 2019-11-22 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its match network method, equipment and storage medium
CN110505606A (en) * 2018-05-18 2019-11-26 阿里巴巴集团控股有限公司 Bluetooth Mesh network and its distribution method for authenticating, equipment and storage medium
CN108881052A (en) * 2018-06-26 2018-11-23 新华三技术有限公司 A kind of message forwarding method and device
CN108769973A (en) * 2018-07-19 2018-11-06 深圳芯之联科技有限公司 A kind of method for secret protection of bluetooth equipment
CN208707655U (en) * 2018-07-24 2019-04-05 南方电网科学研究院有限责任公司 A kind of power distribution automation key agreement system
CN109089248A (en) * 2018-08-07 2018-12-25 河南云拓智能科技有限公司 A kind of information monitoring method based on Bluetooth gateway
CN109218994A (en) * 2018-09-05 2019-01-15 北京字节跳动网络技术有限公司 Equivalent device Bluetooth communication method and device based on gateway
CN109151788A (en) * 2018-09-28 2019-01-04 咪付(广西)网络技术有限公司 A kind of data in mobile phone transmission method and system based on bluetooth low energy device
CN110430557A (en) * 2019-06-21 2019-11-08 深圳绿米联创科技有限公司 Method, apparatus, system, electronic equipment and the storage medium that equipment networks
CN110602703A (en) * 2019-09-17 2019-12-20 深圳市太美亚电子科技有限公司 Bluetooth communication data encryption method, terminal and system for BLE

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113766482A (en) * 2021-09-15 2021-12-07 荣耀终端有限公司 Method for searching Bluetooth device, electronic device and storage medium
WO2023160400A1 (en) * 2022-02-24 2023-08-31 盒马(中国)有限公司 Data transmission method, bluetooth communication apparatus, storage medium, and program product
CN115134764A (en) * 2022-05-27 2022-09-30 阿里云计算有限公司 Communication method and device based on Bluetooth
WO2023227128A1 (en) * 2022-05-27 2023-11-30 阿里云计算有限公司 Bluetooth-based communication method and apparatus

Similar Documents

Publication Publication Date Title
KR102597224B1 (en) Method and apparatus for installing profile
US20230061038A1 (en) Hosted device provisioning protocol with servers and a networked initiator
TWI719312B (en) Information interaction method, device and equipment for internet of things equipment
US11616775B2 (en) Network access authentication method, apparatus, and system
CN113329399A (en) Data transmission, distribution network and management method, device, system and storage medium
KR102502503B1 (en) Profile providing method and device
CN107660346B (en) Method and apparatus for downloading profile in wireless communication system
US20150264724A1 (en) Method and system of establishing wireless communication connection
CN111510919B (en) Network configuration method, device, equipment and system
TW201802703A (en) Data transmission system, method and device
CN109818910B (en) Data transmission method, device and medium
CN103607751A (en) Wireless device configuration method and system
CN108762791A (en) Firmware upgrade method and device
US20200036792A1 (en) Low energy sensor data collection
US20210176230A1 (en) Method and electronic device for managing digital keys
CN106845256A (en) A kind of method and terminal of encryption and decryption data in the application
WO2023030009A1 (en) Smart device cross-platform binding method and system, and related device
CN113518348A (en) Service processing method, device, system and storage medium
US20230180007A1 (en) Electronic device and method for electronic device to provide ranging-based service
CN113613227A (en) Data transmission method and device of Bluetooth equipment, storage medium and electronic device
JP2021511737A (en) Methods and equipment for trusted service management
CN112118210B (en) Authentication key configuration method, device, system and storage medium
CN115208555A (en) Gateway negotiation method, device and storage medium
US11606199B2 (en) Management of groups of connected objects using wireless communication protocols
CN116097614A (en) Access method, device and cloud platform device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination