CN116709280A - Bluetooth mesh gateway processing method and device and electronic equipment - Google Patents

Bluetooth mesh gateway processing method and device and electronic equipment Download PDF

Info

Publication number
CN116709280A
CN116709280A CN202310703125.XA CN202310703125A CN116709280A CN 116709280 A CN116709280 A CN 116709280A CN 202310703125 A CN202310703125 A CN 202310703125A CN 116709280 A CN116709280 A CN 116709280A
Authority
CN
China
Prior art keywords
bluetooth mesh
communication key
mesh gateway
updated
gateway
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
CN202310703125.XA
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.)
Hangzhou Hongyan Iot Technology Co ltd
Hangzhou Honyar Electrical Co Ltd
Original Assignee
Hangzhou Hongyan Iot Technology Co ltd
Hangzhou Honyar Electrical Co 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 Hangzhou Hongyan Iot Technology Co ltd, Hangzhou Honyar Electrical Co Ltd filed Critical Hangzhou Hongyan Iot Technology Co ltd
Priority to CN202310703125.XA priority Critical patent/CN116709280A/en
Publication of CN116709280A publication Critical patent/CN116709280A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/04Key management, e.g. using generic bootstrapping architecture [GBA]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The application discloses a processing method and device of a Bluetooth mesh gateway and electronic equipment, wherein the method comprises the following steps: determining a plurality of bluetooth mesh gateways, wherein the plurality of bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through the cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position under the first Bluetooth mesh gateway through the updated second communication key. The application solves the problem of low efficiency of replacing the Bluetooth mesh gateway caused by the complicated network distribution flow which is required to be executed when the Bluetooth mesh gateway is replaced in the related technology.

Description

Bluetooth mesh gateway processing method and device and electronic equipment
Technical Field
The present application relates to the field of communications, and in particular, to a processing method and apparatus for a bluetooth mesh gateway, and an electronic device.
Background
At present, a bluetooth mesh device is generally managed through a bluetooth mesh gateway, for example, the bluetooth mesh gateway transmits data of the bluetooth mesh device to an upper layer service. In the prior art, when the Bluetooth mesh device wants to switch the Bluetooth mesh gateway, the network connected with the Bluetooth mesh device needs to be reconfigured, but the operation of reconfiguring the Bluetooth mesh device network is complicated, so that a great amount of time is consumed in the process of switching the Bluetooth mesh gateway, and meanwhile, the efficiency of replacing the Bluetooth mesh gateway is lower. In addition, after the bluetooth mesh gateway of the bluetooth mesh device is configured by using the traditional method, it is difficult to split a plurality of bluetooth mesh devices under one bluetooth mesh gateway into bluetooth mesh devices under two bluetooth mesh gateways, and it is also difficult to combine the bluetooth mesh devices under a plurality of bluetooth mesh gateways into a plurality of bluetooth mesh devices under the same bluetooth mesh gateway, so that the efficiency of splitting or combining the bluetooth mesh gateways is lower.
Aiming at the problem that in the related art, complicated network distribution flow needs to be executed when the Bluetooth mesh gateway is replaced, so that the efficiency of replacing the Bluetooth mesh gateway is low, no effective solution is proposed at present.
Disclosure of Invention
The application mainly aims to provide a processing method, a processing device and electronic equipment of a Bluetooth mesh gateway, which are used for solving the problem that in the related art, when the Bluetooth mesh gateway is replaced, a complicated network allocation flow is required to be executed, so that the efficiency of replacing the Bluetooth mesh gateway is low.
In order to achieve the above object, according to one aspect of the present application, there is provided a processing method of a bluetooth mesh gateway, the method comprising: determining a plurality of Bluetooth mesh gateways, wherein the plurality of Bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through a cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position below the first Bluetooth mesh gateway through the updated second communication key.
Further, adjusting, by the updated second communication key, the first device corresponding to the second bluetooth mesh gateway to be under the first bluetooth mesh gateway includes: the second Bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device; updating the third communication key of the first device according to the updated second communication key to obtain an updated third communication key; the first device is connected with the first Bluetooth mesh gateway according to the updated third communication key.
Further, after the second bluetooth mesh gateway sends the updated second communication key to the first device according to the first preset address of the first device, the method further includes: if the first device does not receive the updated second communication key sent by the second Bluetooth mesh gateway, the first device accesses the second Bluetooth mesh gateway through a second preset address of the second Bluetooth mesh gateway, and checks whether the communication key of the second Bluetooth mesh gateway is consistent with the communication key of the first device; if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device, the updated second communication key is sent to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device.
Further, after the first device corresponding to the second bluetooth mesh gateway is adjusted to be under the first bluetooth mesh gateway by the updated second communication key, the method further includes: and modifying the communication key of the second Bluetooth mesh gateway into the second communication key.
Further, after determining the plurality of bluetooth mesh gateways, the method further includes: the first Bluetooth mesh gateway obtains the second communication key of the second Bluetooth mesh gateway through a cloud; updating the first communication key of the first Bluetooth mesh gateway by adopting the second communication key to obtain an updated first communication key; and adjusting second equipment corresponding to the first Bluetooth mesh gateway to the position below the second Bluetooth mesh gateway through the updated first communication key.
Further, adjusting, by the updated first communication key, the second device corresponding to the first bluetooth mesh gateway to be under the second bluetooth mesh gateway includes: the first Bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device; updating a third communication key of the second device according to the updated first communication key to obtain an updated third communication key; and the second device is connected with the second Bluetooth mesh gateway according to the updated third communication key.
Further, after the first bluetooth mesh gateway sends the updated first communication key to the second device according to the third preset address of the second device, the method further includes:
if the second device does not receive the updated first communication key sent by the first Bluetooth mesh gateway, the second device accesses the second Bluetooth mesh gateway through a fourth preset address of the first Bluetooth mesh gateway, and checks whether the communication key of the first Bluetooth mesh gateway is consistent with the communication key of the second device; if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key is sent to the second device again through the first Bluetooth mesh gateway according to a third preset address of the second device.
Further, after adjusting the second device corresponding to the first bluetooth mesh gateway to be under the second bluetooth mesh gateway through the updated first communication key, the method further includes: and modifying the communication key of the first Bluetooth mesh gateway into the first communication key.
In order to achieve the above object, according to another aspect of the present application, there is provided a processing apparatus of a bluetooth mesh gateway, the apparatus comprising: a determining unit, configured to determine a plurality of bluetooth mesh gateways, where the plurality of bluetooth mesh gateways at least includes: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the first acquisition unit is used for acquiring a first communication key of the first Bluetooth mesh gateway through the cloud by the second Bluetooth mesh gateway; the first updating unit is used for updating the second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; the first processing unit is used for adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position below the first Bluetooth mesh gateway through the updated second communication key.
Further, the first processing unit includes: a first sending subunit, configured to send the updated second communication key to the first device by using the second bluetooth mesh gateway according to a first preset address of the first device; a first updating subunit, configured to update a third communication key of the first device according to the updated second communication key, to obtain an updated third communication key; and the first connection subunit is used for connecting the first device with the first Bluetooth mesh gateway according to the updated third communication key.
Further, the first processing unit further includes: a first verification subunit, configured to, after the second bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device, if the first device does not receive the updated second communication key sent by the second bluetooth mesh gateway, access the second bluetooth mesh gateway by using the first device through a second preset address of the second bluetooth mesh gateway, and verify whether the communication key of the second bluetooth mesh gateway is consistent with the communication key of the first device; and the second sending subunit is used for sending the updated second communication key to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device.
Further, the apparatus further comprises: and the second updating unit is used for modifying the communication key of the second Bluetooth mesh gateway into the second communication key after the first equipment corresponding to the second Bluetooth mesh gateway is adjusted to be under the first Bluetooth mesh gateway through the updated second communication key.
Further, the apparatus further comprises: the second acquisition unit is used for acquiring the second communication key of the second Bluetooth mesh gateway through the cloud by the first Bluetooth mesh gateway after determining a plurality of Bluetooth mesh gateways; a third updating unit, configured to update the first communication key of the first bluetooth mesh gateway with the second communication key, to obtain an updated first communication key; and the second processing unit is used for adjusting second equipment corresponding to the first Bluetooth mesh gateway to the position below the second Bluetooth mesh gateway through the updated first communication key.
Further, the second processing unit includes: a third sending subunit, configured to send the updated first communication key to the second device by using the first bluetooth mesh gateway according to a third preset address of the second device; a second updating subunit, configured to update a third communication key of the second device according to the updated first communication key, to obtain an updated third communication key; and the second connection subunit is used for connecting the second device with the second Bluetooth mesh gateway according to the updated third communication key.
Further, the second processing unit further includes: a second verification subunit, configured to, after the first bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device, if the second device does not receive the updated first communication key sent by the first bluetooth mesh gateway, access the second bluetooth mesh gateway by using the second device through a fourth preset address of the first bluetooth mesh gateway, and verify whether the communication key of the first bluetooth mesh gateway is consistent with the communication key of the second device; and the fourth sending subunit is configured to send, if the communication key of the first bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key to the second device again through the first bluetooth mesh gateway according to a third preset address of the second device.
Further, the apparatus further comprises: and the fourth updating unit is used for modifying the communication key of the first Bluetooth mesh gateway into the first communication key after adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
In order to achieve the above object, according to one aspect of the present application, there is provided an electronic device including one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the processing method of the bluetooth mesh gateway according to any one of the above.
According to the application, the following steps are adopted: determining a plurality of Bluetooth mesh gateways, wherein the plurality of Bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through a cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position below the first Bluetooth mesh gateway through the updated second communication key, so that the problem that in the related art, complicated network distribution flow is required to be executed when the Bluetooth mesh gateway is replaced, and the efficiency of replacing the Bluetooth mesh gateway is low is solved. By acquiring the communication keys of the plurality of Bluetooth mesh gateways and correspondingly updating the communication keys of the Bluetooth mesh devices according to the communication keys of the plurality of Bluetooth mesh gateways, the Bluetooth mesh gateways to which the Bluetooth mesh devices belong are accurately combined or split, and the effect of improving the efficiency of replacing the Bluetooth mesh gateways is achieved.
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 specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a flowchart of a processing method of a bluetooth mesh gateway according to a first embodiment of the present application;
fig. 2 is a schematic diagram of an alternative processing method of a bluetooth mesh gateway according to a first embodiment of the present application;
fig. 3 is a schematic diagram two of an alternative processing method of a bluetooth mesh gateway according to a first embodiment of the present application;
fig. 4 is a schematic diagram of a processing device of a bluetooth mesh gateway according to a second embodiment of the present application;
fig. 5 is a schematic diagram of a processing electronic device of a bluetooth mesh gateway according to a fifth embodiment of the present application.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
The present application is described below with reference to preferred implementation steps, and fig. 1 is a flowchart of a processing method of a bluetooth mesh gateway according to a first embodiment of the present application, as shown in fig. 1, where the method includes the following steps:
step S101, determining a plurality of Bluetooth mesh gateways, wherein the plurality of Bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway.
In the first embodiment, in order to replace the bluetooth mesh gateway of the bluetooth mesh device, a plurality of bluetooth mesh gateways involved in replacing the bluetooth mesh gateway are first determined. For example, fig. 2 is a schematic diagram of a bluetooth mesh gateway that merges device 1, device 2, device 3, and device 4. As shown in fig. 2, a bluetooth mesh gateway a is coupled to the devices 1 and 2, and a bluetooth mesh gateway B is coupled to the devices 3 and 4. The bluetooth mesh gateway involved in merging the bluetooth mesh gateways of the device 1, the device 2, the device 3, and the device 4 includes a bluetooth mesh gateway a and a bluetooth mesh gateway B.
Step S102, the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through the cloud.
Specifically, as shown in fig. 2, the bluetooth mesh gateway B obtains the communication key a of the bluetooth mesh gateway a through the cloud.
Step S103, the second communication key of the second Bluetooth mesh gateway is updated by adopting the first communication key, and the updated second communication key is obtained.
Specifically, as shown in fig. 2, the communication key B of the bluetooth mesh gateway B is updated to the communication key a of the bluetooth mesh gateway a, so as to obtain the updated communication key B of the bluetooth mesh gateway B.
Step S104, the first equipment corresponding to the second Bluetooth mesh gateway is adjusted to the position under the first Bluetooth mesh gateway through the updated second communication key.
Specifically, as shown in fig. 2, the device 3 and the device 4 are processed according to the updated communication key B, and the device 3 and the device 4 are adjusted to be under the bluetooth mesh gateway a, so as to complete the process of merging the device 1, the device 2, the device 3 and the device 4 into the bluetooth mesh gateway a.
In summary, in the processing method of the bluetooth mesh gateway provided in the first embodiment of the present application, a plurality of bluetooth mesh gateways are determined, where the plurality of bluetooth mesh gateways at least includes: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through the cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; the first equipment corresponding to the second Bluetooth mesh gateway is adjusted to be under the first Bluetooth mesh gateway through the updated second communication key, so that the problem that in the related art, complicated network distribution flow is required to be executed when the Bluetooth mesh gateway is replaced, and the efficiency of replacing the Bluetooth mesh gateway is low is solved. By acquiring the communication keys of the plurality of Bluetooth mesh gateways and correspondingly updating the communication keys of the Bluetooth mesh devices according to the communication keys of the plurality of Bluetooth mesh gateways, the Bluetooth mesh gateways to which the Bluetooth mesh devices belong are accurately combined or split, and the effect of improving the efficiency of replacing the Bluetooth mesh gateways is achieved.
Optionally, in the processing method of the bluetooth mesh gateway provided in the first embodiment of the present application, adjusting, by the updated second communication key, the first device corresponding to the second bluetooth mesh gateway to the first bluetooth mesh gateway includes: the second Bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device; updating the third communication key of the first equipment according to the updated second communication key to obtain an updated third communication key; the first device is connected with the first Bluetooth mesh gateway according to the updated third communication key.
Specifically, as shown in fig. 2, the bluetooth mesh gateway B sends the updated communication key B to the device 3 and the device 4 through the physical address of the device 3, where other addresses besides the physical address may be adopted according to the actual situation, and the communication key may be sent from the bluetooth mesh gateway to the bluetooth mesh device. After the device 3 and the device 4 receive the updated communication key B, the device 3 modifies the communication key C of the device 3 to the updated communication key B, and the device 4 also modifies the communication key D of the device 4 to the updated communication key B. Then, the device 3 and the device 4 access the bluetooth mesh gateway a according to the updated communication key B, that is, the device 3 and the device 4 are connected with the bluetooth mesh gateway a. To this end, the process of merging the device 1, the device 2, the device 3, and the device 4 to the bluetooth mesh gateway a is completed.
By updating the communication key of the Bluetooth mesh device (namely the first device), the Bluetooth mesh gateway connected with the first device is replaced by the first Bluetooth mesh gateway from the second Bluetooth mesh gateway, so that the effect of accurately combining the Bluetooth mesh gateways of a plurality of Bluetooth mesh devices is realized, and the effect of improving the efficiency of replacing the Bluetooth mesh gateway is achieved.
Optionally, in the processing method of the bluetooth mesh gateway provided in the first embodiment of the present application, after the second bluetooth mesh gateway sends the updated second communication key to the first device according to the first preset address of the first device, the method further includes: if the first device does not receive the updated second communication key sent by the second Bluetooth mesh gateway, the first device accesses the second Bluetooth mesh gateway through a second preset address of the second Bluetooth mesh gateway, and checks whether the communication key of the second Bluetooth mesh gateway is consistent with the communication key of the first device; if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device, the updated second communication key is sent to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device.
In the first embodiment, in order to prevent the situation that the bluetooth mesh device fails to merge the bluetooth mesh gateway because the bluetooth mesh device does not receive the communication key sent by the bluetooth mesh gateway when the bluetooth mesh gateway is switched, the bluetooth mesh device actively sends a verification request according to the preset address of the bluetooth mesh gateway after the network connection is restored, so as to verify whether the current communication key of the bluetooth mesh device is consistent with the current communication key of the bluetooth mesh gateway. If the verification finds that the communication keys of the Bluetooth mesh device and the Bluetooth mesh gateway are inconsistent, the Bluetooth mesh gateway sends the updated communication key to the Bluetooth mesh device again; if the verification shows that the Bluetooth mesh device is consistent with the communication key of the Bluetooth mesh gateway, the Bluetooth mesh gateway does not send the updated communication key any more.
For example, as shown in fig. 2, if the device 3 does not receive the updated communication key B sent by the bluetooth mesh gateway B due to a network failure, after the network connection is restored, it is checked whether the current communication key of the device 3 is consistent with the current communication key of the bluetooth mesh gateway B. And after confirming that the current communication key of the device 3 is inconsistent with the current communication key of the Bluetooth mesh gateway B, the Bluetooth mesh gateway B sends the updated communication key B to the device 3 again. After the device 3 receives the updated communication key B, the communication key C of the device 3 is modified to the updated communication key B.
By checking whether the current communication key of the Bluetooth mesh device is consistent with the current communication key of the Bluetooth mesh gateway when the network fails, the occurrence of the situation that the Bluetooth mesh gateway is failed to replace due to the network failure is avoided, the influence of the network failure on replacing the Bluetooth mesh gateway is reduced, and the effect that the scheme for replacing the Bluetooth mesh gateway is more reliable is achieved.
Optionally, in the processing method of a bluetooth mesh gateway provided in the first embodiment of the present application, after adjusting, by using the updated second communication key, a first device corresponding to the second bluetooth mesh gateway to be under the first bluetooth mesh gateway, the method further includes: and modifying the communication key of the second Bluetooth mesh gateway into a second communication key.
In the first embodiment, after the bluetooth mesh gateway of the first device is successfully replaced from the second bluetooth mesh gateway to the first bluetooth mesh gateway, the communication key of the second bluetooth mesh gateway needs to be restored to the original communication key of the second bluetooth mesh gateway. The communication key of the Bluetooth mesh gateway after the network combination is restored to the original communication key, so that the Bluetooth mesh gateway can be used normally afterwards.
For example, as shown in fig. 2, after the device 3 and the device 4 are combined to the bluetooth mesh gateway a, the communication key of the bluetooth mesh gateway B is the updated communication key B, but in order to normally use the bluetooth mesh gateway B subsequently, the communication key of the bluetooth mesh gateway B needs to be modified into the original communication key B.
Optionally, in the processing method of a bluetooth mesh gateway provided in the first embodiment of the present application, after determining a plurality of bluetooth mesh gateways, the method further includes: the first Bluetooth mesh gateway obtains a second communication key of a second Bluetooth mesh gateway through the cloud; updating a first communication key of the first Bluetooth mesh gateway by adopting a second communication key to obtain an updated first communication key; and adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
In the first embodiment, the method includes splitting the second device under the first bluetooth mesh gateway to the second bluetooth mesh gateway, in addition to being capable of combining the first device under the second bluetooth mesh gateway to the first bluetooth mesh gateway. For example, fig. 3 is a schematic diagram of splitting the device 3 and the device 4 under the bluetooth mesh gateway a to the bluetooth mesh gateway B, and as shown in fig. 3, the bluetooth mesh gateway a is coupled with the device 1, the device 2, the device 3, and the device 4. In order to split the device 3 and the device 4 under the bluetooth mesh gateway a to the bluetooth mesh gateway B, firstly, the bluetooth mesh gateway B needs to be accessed through a cloud to obtain a communication key B of the bluetooth mesh gateway B; then, modifying the communication key A of the Bluetooth mesh gateway A into a communication key B to obtain an updated communication key A of the Bluetooth mesh gateway A; and finally, processing the equipment 3 and the equipment 4 according to the updated communication key A, so that the equipment 3 and the equipment 4 are connected with the Bluetooth mesh gateway B.
Through the communication secret key of changing bluetooth mesh equipment (second equipment promptly), can follow first bluetooth mesh gateway with second equipment split and come out, reached the effect of changing bluetooth mesh gateway accurately fast, and then reached the effect that improves the efficiency of changing bluetooth mesh gateway.
Optionally, in the processing method of the bluetooth mesh gateway provided in the first embodiment of the present application, adjusting, by the updated first communication key, the second device corresponding to the first bluetooth mesh gateway to the position below the second bluetooth mesh gateway includes: the first Bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device; updating a third communication key of the second device according to the updated first communication key to obtain an updated third communication key; the second device is connected with the second Bluetooth mesh gateway according to the updated third communication key.
In the first embodiment, in order to split the second device from the first bluetooth mesh gateway, the communication key of the second device needs to be replaced with the communication key of the second bluetooth mesh gateway. For example, as shown in fig. 3, the bluetooth mesh gateway a sends the updated communication key a to the device 3 and the device 4 according to the physical address of the device 3, where the communication key may also be sent through other addresses besides the physical address according to the actual situation. After the device 3 and the device 4 receive the updated communication key a, the communication key C of the device 3 is modified to be the updated communication key a, and the communication key D of the device 4 is also modified to be the updated communication key a. Then, the device 3 and the device 4 access the bluetooth mesh gateway B according to the updated communication key a, that is, the device 3 and the device 4 are connected with the bluetooth mesh gateway B.
By switching the communication key of the Bluetooth mesh device (namely the second device), the Bluetooth mesh gateway connected with the second device is replaced by the second Bluetooth mesh gateway from the first Bluetooth mesh gateway, so that at least one Bluetooth mesh device is accurately split from the Bluetooth mesh gateway, and the effect of improving the efficiency of replacing the Bluetooth mesh gateway is achieved.
Optionally, in the processing method of a bluetooth mesh gateway provided in the first embodiment of the present application, after the first bluetooth mesh gateway sends the updated first communication key to the second device according to the third preset address of the second device, the method further includes: if the second device does not receive the updated first communication key sent by the first Bluetooth mesh gateway, the second device accesses the second Bluetooth mesh gateway through a fourth preset address of the first Bluetooth mesh gateway, and checks whether the communication key of the first Bluetooth mesh gateway is consistent with the communication key of the second device; if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key is sent to the second device again through the first Bluetooth mesh gateway according to a third preset address of the second device.
In the first embodiment, in order to prevent the situation that the bluetooth mesh device does not receive the communication key sent by the bluetooth mesh gateway due to disconnection of the network connection, after the network connection is restored, the current communication key of the bluetooth mesh device and the current communication key of the bluetooth mesh gateway need to be checked to determine whether the updated communication key needs to be sent to the bluetooth mesh device again.
For example, as shown in fig. 3, if the device 3 does not receive the updated communication key a sent by the bluetooth mesh gateway a due to the network failure, the device 3 actively accesses the bluetooth mesh gateway a according to the preset address of the bluetooth mesh gateway a, and checks whether the current communication key of the device 3 is consistent with the current communication key of the bluetooth mesh gateway a. After confirming that the current communication key C of the device 3 is inconsistent with the current communication key of the bluetooth mesh gateway a, the bluetooth mesh gateway a sends the updated communication key a to the device 3 again. Then, the communication key C of the device 3 is modified to the updated communication key a.
After the network fault occurs, the current communication key of the Bluetooth mesh device and the current communication key of the Bluetooth mesh gateway are checked, so that the occurrence of the condition that the Bluetooth mesh gateway is failed to replace due to the network fault is avoided, the influence of the network fault on replacing the Bluetooth mesh gateway is reduced, and the effect that the scheme for replacing the Bluetooth mesh gateway is more reliable is achieved.
Optionally, in the processing method of a bluetooth mesh gateway provided in the first embodiment of the present application, after adjusting, by using the updated first communication key, a second device corresponding to the first bluetooth mesh gateway to be under the second bluetooth mesh gateway, the method further includes: and modifying the communication key of the first Bluetooth mesh gateway into a first communication key.
In the first embodiment, after the second device under the first bluetooth mesh gateway is successfully split under the second bluetooth mesh gateway, the communication key of the first bluetooth mesh gateway needs to be restored to the original communication key of the first bluetooth mesh gateway. The communication key of the Bluetooth mesh gateway after network splitting is restored to the original communication key, so that the Bluetooth mesh gateway can be used normally.
For example, as shown in fig. 3, after the device 3 and the device 4 are split into the bluetooth mesh gateway B, the communication key of the bluetooth mesh gateway a is the updated communication key a, but in order to normally use the bluetooth mesh gateway a subsequently, the communication key of the bluetooth mesh gateway a needs to be recovered from the updated communication key a to the original communication key a.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
Example two
The second embodiment of the present application also provides a processing device for a bluetooth mesh gateway, which needs to be described that the processing device for a bluetooth mesh gateway of the second embodiment of the present application may be used to execute the processing method for a bluetooth mesh gateway provided by the first embodiment of the present application. The following describes a processing device of a bluetooth mesh gateway provided in the second embodiment of the present application.
Fig. 4 is a schematic diagram of a processing device of a bluetooth mesh gateway according to a second embodiment of the application. As shown in fig. 4, the apparatus includes: a determination unit 401, a first acquisition unit 402, a first update unit 403, and a first processing unit 404.
Specifically, the determining unit 401 is configured to determine a plurality of bluetooth mesh gateways, where the plurality of bluetooth mesh gateways at least includes: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway.
The first obtaining unit 402 is configured to obtain, by using the cloud, a first communication key of the first bluetooth mesh gateway by using the second bluetooth mesh gateway.
A first updating unit 403, configured to update the second communication key of the second bluetooth mesh gateway with the first communication key, to obtain an updated second communication key.
The first processing unit 404 is configured to adjust, according to the updated second communication key, the first device corresponding to the second bluetooth mesh gateway to be under the first bluetooth mesh gateway.
In the processing device for bluetooth mesh gateways provided in the second embodiment of the present application, a determining unit 401 determines a plurality of bluetooth mesh gateways, where the plurality of bluetooth mesh gateways at least includes: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the first obtaining unit 402 makes the second bluetooth mesh gateway obtain a first communication key of the first bluetooth mesh gateway through the cloud; the first updating unit 403 updates the second communication key of the second bluetooth mesh gateway by using the first communication key, to obtain an updated second communication key; the first processing unit 404 adjusts the first device corresponding to the second bluetooth mesh gateway to the position under the first bluetooth mesh gateway through the updated second communication key, thereby solving the problem that in the related art, when the bluetooth mesh gateway is replaced, a complicated network allocation process needs to be executed, and the efficiency of replacing the bluetooth mesh gateway is lower. By acquiring the communication keys of the plurality of Bluetooth mesh gateways and correspondingly updating the communication keys of the Bluetooth mesh devices according to the communication keys of the plurality of Bluetooth mesh gateways, the Bluetooth mesh gateways to which the Bluetooth mesh devices belong are accurately combined or split, and the effect of improving the efficiency of replacing the Bluetooth mesh gateways is achieved.
Optionally, in the processing device of the bluetooth mesh gateway according to the second embodiment of the present application, the first processing unit 404 includes: the first sending subunit is used for sending the updated second communication key to the first equipment by the second Bluetooth mesh gateway according to the first preset address of the first equipment; a first updating subunit, configured to update a third communication key of the first device according to the updated second communication key, to obtain an updated third communication key; the first connection subunit is used for connecting the first device with the first Bluetooth mesh gateway according to the updated third communication key.
Optionally, in the processing device of the bluetooth mesh gateway according to the second embodiment of the present application, the first processing unit 404 further includes: the first verification subunit is configured to, after the second bluetooth mesh gateway sends the updated second communication key to the first device according to the first preset address of the first device, if the first device does not receive the updated second communication key sent by the second bluetooth mesh gateway, access the second bluetooth mesh gateway by the first device through the second preset address of the second bluetooth mesh gateway, and verify whether the communication key of the second bluetooth mesh gateway is consistent with the communication key of the first device; and the second sending subunit is used for sending the updated second communication key to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device.
Optionally, in the processing device of a bluetooth mesh gateway provided in the second embodiment of the present application, the device further includes: the second updating unit is used for modifying the communication key of the second Bluetooth mesh gateway into a second communication key after the first equipment corresponding to the second Bluetooth mesh gateway is adjusted to be under the first Bluetooth mesh gateway through the updated second communication key.
Optionally, in the processing device of a bluetooth mesh gateway provided in the second embodiment of the present application, the device further includes: the second acquisition unit is used for acquiring a second communication key of the second Bluetooth mesh gateway through the cloud by the first Bluetooth mesh gateway after determining a plurality of Bluetooth mesh gateways; the third updating unit is used for updating the first communication key of the first Bluetooth mesh gateway by adopting the second communication key to obtain an updated first communication key; the second processing unit is used for adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
Optionally, in the processing device of a bluetooth mesh gateway provided in the second embodiment of the present application, the second processing unit includes: the third sending subunit is used for sending the updated first communication key to the second equipment by the first Bluetooth mesh gateway according to a third preset address of the second equipment; the second updating subunit is used for updating the third communication key of the second device according to the updated first communication key to obtain an updated third communication key; the second connection subunit is used for connecting the second device with the second Bluetooth mesh gateway according to the updated third communication key.
Optionally, in the processing device for a bluetooth mesh gateway according to the second embodiment of the present application, the second processing unit further includes: the second verification subunit is configured to, after the first bluetooth mesh gateway sends the updated first communication key to the second device according to the third preset address of the second device, if the second device does not receive the updated first communication key sent by the first bluetooth mesh gateway, access the second bluetooth mesh gateway by the second device through the fourth preset address of the first bluetooth mesh gateway, and verify whether the communication key of the first bluetooth mesh gateway is consistent with the communication key of the second device; and the fourth sending subunit is used for sending the updated first communication key to the second device again through the first Bluetooth mesh gateway according to the third preset address of the second device if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device.
Optionally, in the processing device of a bluetooth mesh gateway provided in the second embodiment of the present application, the device further includes: and the fourth updating unit is used for modifying the communication key of the first Bluetooth mesh gateway into the first communication key after adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
The processing device of the bluetooth mesh gateway includes a processor and a memory, where the determining unit 401, the first obtaining unit 402, the first updating unit 403, the first processing unit 404, and the like are stored as program units, and the processor executes the program units stored in the memory to implement corresponding functions.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the efficiency of replacing the Bluetooth mesh gateway is improved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The third embodiment of the invention provides a computer readable storage medium, on which a program is stored, which when executed by a processor, implements a processing method of a bluetooth mesh gateway.
The fourth embodiment of the invention provides a processor, which is used for running a program, wherein the processing method of the Bluetooth mesh gateway is executed when the program runs.
As shown in fig. 5, a fifth embodiment of the present invention provides an electronic device, where the device includes a processor, a memory, and a program stored in the memory and executable on the processor, and the processor implements the following steps when executing the program: determining a plurality of bluetooth mesh gateways, wherein the plurality of bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through the cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position under the first Bluetooth mesh gateway through the updated second communication key.
The processor also realizes the following steps when executing the program: adjusting the first device corresponding to the second bluetooth mesh gateway to the position below the first bluetooth mesh gateway through the updated second communication key comprises: the second Bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device; updating the third communication key of the first equipment according to the updated second communication key to obtain an updated third communication key; the first device is connected with the first Bluetooth mesh gateway according to the updated third communication key.
The processor also realizes the following steps when executing the program: after the second bluetooth mesh gateway sends the updated second communication key to the first device according to the first preset address of the first device, the method further includes: if the first device does not receive the updated second communication key sent by the second Bluetooth mesh gateway, the first device accesses the second Bluetooth mesh gateway through a second preset address of the second Bluetooth mesh gateway, and checks whether the communication key of the second Bluetooth mesh gateway is consistent with the communication key of the first device; if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device, the updated second communication key is sent to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device.
The processor also realizes the following steps when executing the program: after the first device corresponding to the second bluetooth mesh gateway is adjusted to be under the first bluetooth mesh gateway through the updated second communication key, the method further includes: and modifying the communication key of the second Bluetooth mesh gateway into a second communication key.
The processor also realizes the following steps when executing the program: after determining the plurality of bluetooth mesh gateways, the method further includes: the first Bluetooth mesh gateway obtains a second communication key of a second Bluetooth mesh gateway through the cloud; updating a first communication key of the first Bluetooth mesh gateway by adopting a second communication key to obtain an updated first communication key; and adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
The processor also realizes the following steps when executing the program: adjusting the second device corresponding to the first bluetooth mesh gateway to the position under the second bluetooth mesh gateway through the updated first communication key comprises: the first Bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device; updating a third communication key of the second device according to the updated first communication key to obtain an updated third communication key; the second device is connected with the second Bluetooth mesh gateway according to the updated third communication key.
The processor also realizes the following steps when executing the program: after the first bluetooth mesh gateway sends the updated first communication key to the second device according to the third preset address of the second device, the method further includes: if the second device does not receive the updated first communication key sent by the first Bluetooth mesh gateway, the second device accesses the second Bluetooth mesh gateway through a fourth preset address of the first Bluetooth mesh gateway, and checks whether the communication key of the first Bluetooth mesh gateway is consistent with the communication key of the second device; if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key is sent to the second device again through the first Bluetooth mesh gateway according to a third preset address of the second device.
The processor also realizes the following steps when executing the program: after adjusting the second device corresponding to the first bluetooth mesh gateway to the position under the second bluetooth mesh gateway through the updated first communication key, the method further comprises: and modifying the communication key of the first Bluetooth mesh gateway into a first communication key.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of: determining a plurality of bluetooth mesh gateways, wherein the plurality of bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway; the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through the cloud; updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key; and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position under the first Bluetooth mesh gateway through the updated second communication key.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: adjusting the first device corresponding to the second bluetooth mesh gateway to the position below the first bluetooth mesh gateway through the updated second communication key comprises: the second Bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device; updating the third communication key of the first equipment according to the updated second communication key to obtain an updated third communication key; the first device is connected with the first Bluetooth mesh gateway according to the updated third communication key.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after the second bluetooth mesh gateway sends the updated second communication key to the first device according to the first preset address of the first device, the method further includes: if the first device does not receive the updated second communication key sent by the second Bluetooth mesh gateway, the first device accesses the second Bluetooth mesh gateway through a second preset address of the second Bluetooth mesh gateway, and checks whether the communication key of the second Bluetooth mesh gateway is consistent with the communication key of the first device; if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device, the updated second communication key is sent to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after the first device corresponding to the second bluetooth mesh gateway is adjusted to be under the first bluetooth mesh gateway through the updated second communication key, the method further includes: and modifying the communication key of the second Bluetooth mesh gateway into a second communication key.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after determining the plurality of bluetooth mesh gateways, the method further includes: the first Bluetooth mesh gateway obtains a second communication key of a second Bluetooth mesh gateway through the cloud; updating a first communication key of the first Bluetooth mesh gateway by adopting a second communication key to obtain an updated first communication key; and adjusting the second equipment corresponding to the first Bluetooth mesh gateway to the position under the second Bluetooth mesh gateway through the updated first communication key.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: adjusting the second device corresponding to the first bluetooth mesh gateway to the position under the second bluetooth mesh gateway through the updated first communication key comprises: the first Bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device; updating a third communication key of the second device according to the updated first communication key to obtain an updated third communication key; the second device is connected with the second Bluetooth mesh gateway according to the updated third communication key.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after the first bluetooth mesh gateway sends the updated first communication key to the second device according to the third preset address of the second device, the method further includes: if the second device does not receive the updated first communication key sent by the first Bluetooth mesh gateway, the second device accesses the second Bluetooth mesh gateway through a fourth preset address of the first Bluetooth mesh gateway, and checks whether the communication key of the first Bluetooth mesh gateway is consistent with the communication key of the second device; if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key is sent to the second device again through the first Bluetooth mesh gateway according to a third preset address of the second device.
When executed on a data processing device, is further adapted to carry out a program initialized with the method steps of: after adjusting the second device corresponding to the first bluetooth mesh gateway to the position under the second bluetooth mesh gateway through the updated first communication key, the method further comprises: and modifying the communication key of the first Bluetooth mesh gateway into a first communication key.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations 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 one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or 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 storage media for a computer 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 disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
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 one … …" does not exclude the presence of other like elements in a process, method, article or apparatus that comprises an element.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 foregoing is merely exemplary of the present application and is not intended to limit the present application. Various modifications and variations of the present application will be apparent to those skilled in the art. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the application are to be included in the scope of the claims of the present application.

Claims (10)

1. The processing method of the Bluetooth mesh gateway is characterized by comprising the following steps of:
determining a plurality of Bluetooth mesh gateways, wherein the plurality of Bluetooth mesh gateways at least comprise: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway;
the second Bluetooth mesh gateway obtains a first communication key of the first Bluetooth mesh gateway through a cloud;
Updating a second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key;
and adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position below the first Bluetooth mesh gateway through the updated second communication key.
2. The method of claim 1, wherein adjusting, by the updated second communication key, the first device corresponding to the second bluetooth mesh gateway to be under the first bluetooth mesh gateway comprises:
the second Bluetooth mesh gateway sends the updated second communication key to the first device according to a first preset address of the first device;
updating the third communication key of the first device according to the updated second communication key to obtain an updated third communication key;
the first device is connected with the first Bluetooth mesh gateway according to the updated third communication key.
3. The method of claim 2, wherein after the second bluetooth mesh gateway transmits the updated second communication key to the first device according to the first preset address of the first device, the method further comprises:
If the first device does not receive the updated second communication key sent by the second Bluetooth mesh gateway, the first device accesses the second Bluetooth mesh gateway through a second preset address of the second Bluetooth mesh gateway, and checks whether the communication key of the second Bluetooth mesh gateway is consistent with the communication key of the first device;
if the communication key of the second Bluetooth mesh gateway is inconsistent with the communication key of the first device, the updated second communication key is sent to the first device again through the second Bluetooth mesh gateway according to the first preset address of the first device.
4. The method according to claim 1, wherein after the first device corresponding to the second bluetooth mesh gateway is adjusted to be under the first bluetooth mesh gateway by the updated second communication key, the method further comprises:
and modifying the communication key of the second Bluetooth mesh gateway into the second communication key.
5. The method of claim 1, wherein after determining the plurality of bluetooth mesh gateways, the method further comprises:
the first Bluetooth mesh gateway obtains the second communication key of the second Bluetooth mesh gateway through a cloud;
Updating the first communication key of the first Bluetooth mesh gateway by adopting the second communication key to obtain an updated first communication key;
and adjusting second equipment corresponding to the first Bluetooth mesh gateway to the position below the second Bluetooth mesh gateway through the updated first communication key.
6. The method of claim 5, wherein adjusting, by the updated first communication key, the second device corresponding to the first bluetooth mesh gateway to be under the second bluetooth mesh gateway comprises:
the first Bluetooth mesh gateway sends the updated first communication key to the second device according to a third preset address of the second device;
updating a third communication key of the second device according to the updated first communication key to obtain an updated third communication key;
and the second device is connected with the second Bluetooth mesh gateway according to the updated third communication key.
7. The method of claim 6, wherein after the first bluetooth mesh gateway transmits the updated first communication key to the second device according to the third preset address of the second device, the method further comprises:
If the second device does not receive the updated first communication key sent by the first Bluetooth mesh gateway, the second device accesses the second Bluetooth mesh gateway through a fourth preset address of the first Bluetooth mesh gateway, and checks whether the communication key of the first Bluetooth mesh gateway is consistent with the communication key of the second device;
if the communication key of the first Bluetooth mesh gateway is inconsistent with the communication key of the second device, the updated first communication key is sent to the second device again through the first Bluetooth mesh gateway according to a third preset address of the second device.
8. The method according to claim 5, wherein after adjusting the second device corresponding to the first bluetooth mesh gateway to be under the second bluetooth mesh gateway by the updated first communication key, the method further comprises:
and modifying the communication key of the first Bluetooth mesh gateway into the first communication key.
9. A processing apparatus of a bluetooth mesh gateway, comprising:
a determining unit, configured to determine a plurality of bluetooth mesh gateways, where the plurality of bluetooth mesh gateways at least includes: the first Bluetooth mesh gateway and the second Bluetooth mesh gateway;
The first acquisition unit is used for acquiring a first communication key of the first Bluetooth mesh gateway through the cloud by the second Bluetooth mesh gateway;
the first updating unit is used for updating the second communication key of the second Bluetooth mesh gateway by adopting the first communication key to obtain an updated second communication key;
the first processing unit is used for adjusting the first equipment corresponding to the second Bluetooth mesh gateway to the position below the first Bluetooth mesh gateway through the updated second communication key.
10. An electronic device comprising one or more processors and a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of processing a bluetooth mesh gateway of any of claims 1-8.
CN202310703125.XA 2023-06-13 2023-06-13 Bluetooth mesh gateway processing method and device and electronic equipment Pending CN116709280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310703125.XA CN116709280A (en) 2023-06-13 2023-06-13 Bluetooth mesh gateway processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310703125.XA CN116709280A (en) 2023-06-13 2023-06-13 Bluetooth mesh gateway processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN116709280A true CN116709280A (en) 2023-09-05

Family

ID=87827250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310703125.XA Pending CN116709280A (en) 2023-06-13 2023-06-13 Bluetooth mesh gateway processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN116709280A (en)

Similar Documents

Publication Publication Date Title
CN110825420B (en) Method, device, equipment and storage medium for updating configuration parameters of distributed cluster
JP6859340B2 (en) Equipment, systems and methods for retrieving, processing and updating global information
US20140007076A1 (en) Separate upgrade/modification of remote software in machine to machine communication
CN103475682B (en) File transfer method and file transfer equipment
CN109766330B (en) Data slicing method and device, electronic equipment and storage medium
CN105099988A (en) Method used for supporting gray releasing, access method, devices and system
CN109634638B (en) Cluster software upgrading method, device, equipment and medium
CN108055322B (en) Request message processing method and device
CN113961312A (en) Target service deployment method and device and electronic equipment
CN111064626B (en) Configuration updating method, device, server and readable storage medium
CN108319492B (en) Method, device and system for resetting physical machine
CN110990415A (en) Data processing method and device, electronic equipment and storage medium
CN108390914B (en) Service updating method, device and system
KR101591289B1 (en) A Methods and Apparatus of separated software upgrade of Device and Gateway by over the air in the Machine to machine communication
CN110012111B (en) Data service cluster system and data processing method
CN110298031B (en) Dictionary service system and model version consistency distribution method
CN104104701A (en) Online service configuration updating method and system
CN116709280A (en) Bluetooth mesh gateway processing method and device and electronic equipment
CN108418857B (en) Zookeeper cluster system and connection method and device thereof
CN105338058A (en) Application updating method and device
CN109617953B (en) Session processing method and system
CN108733805B (en) File interaction method, system, computer equipment and storage medium
CN112162819A (en) Application deployment method across virtual machine and Kubernetes cluster
CN113391759A (en) Communication method and device
CN105245569A (en) Breakpoint uploading method and system

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