CN113660353B - Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh - Google Patents

Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh Download PDF

Info

Publication number
CN113660353B
CN113660353B CN202110923625.5A CN202110923625A CN113660353B CN 113660353 B CN113660353 B CN 113660353B CN 202110923625 A CN202110923625 A CN 202110923625A CN 113660353 B CN113660353 B CN 113660353B
Authority
CN
China
Prior art keywords
bluetooth
address
server
provisioner
storage node
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.)
Active
Application number
CN202110923625.5A
Other languages
Chinese (zh)
Other versions
CN113660353A (en
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.)
Zhuhai Jingxun Iot Technology Co ltd
Original Assignee
Zhuhai Jingxun Iot Technology 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 Zhuhai Jingxun Iot Technology Co ltd filed Critical Zhuhai Jingxun Iot Technology Co ltd
Priority to CN202110923625.5A priority Critical patent/CN113660353B/en
Publication of CN113660353A publication Critical patent/CN113660353A/en
Application granted granted Critical
Publication of CN113660353B publication Critical patent/CN113660353B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5038Address allocation for local use, e.g. in LAN or USB networks, or in a controller area network [CAN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Automation & Control Theory (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention relates to a method, a device, equipment and a medium for managing Provisioner addresses based on Bluetooth Mesh, which are applied to the following steps: in a system of a server, a terminal device and a plurality of bluetooth devices, the method comprising: acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices; sending the maximum number of the storage node addresses of each Bluetooth device to a server; comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of the plurality of Bluetooth devices; the server calculates the address field allowed to be allocated according to the maximum value; and the server allocates the provider node address of the terminal equipment according to the address field allowed to be allocated. In the embodiment of the application, the address field which can be used by the Provisioner node is set according to the maximum value, the length of the address field is certainly greater than the maximum value reported by the Bluetooth device, namely when each Provisioner node applies for an address from the server, the address allocated every time is different, and the address can be normally communicated with the Bluetooth device without storing a serial number.

Description

Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh
Technical Field
The invention relates to the technical field of Bluetooth Mesh, in particular to a method, a device, equipment and a medium for managing a Provision address based on Bluetooth Mesh.
Background
At present, the Bluetooth product is widely applied in the whole intelligent home industry, the upgrading from a common product to an intelligent product is more convenient, the cost is lower, and the Bluetooth is accepted by more and more developers due to the characteristics of low power, interoperability and the like. However, as products are developed, new functional requirements are continuously provided, and developers are urgently required to overcome technical difficulties.
A bluetooth module is built in the house product, for example after the lamps and lanterns have built-in bluetooth module, the LAN technique based on bluetooth Mesh realizes carrying out wireless communication between a plurality of bluetooth modules. In the network of the bluetooth Mesh, each bluetooth module can be called a node, and each node has one or more unique addresses, if the bluetooth module wants to join in the bluetooth Mesh lan, a Provisioner node must be added into the bluetooth Mesh network, and devices such as a mobile phone, a tianmao sprite, etc. have the capability of the Provisioner (note: the Provisioner is a node capable of adding a bluetooth device into the Mesh network), and of course, the Provisioner node can add a bluetooth device, and can control or communicate with the bluetooth device.
In order to realize the data interaction between the Provisioner node and the bluetooth device through the Mesh protocol, the Provisioner node and the bluetooth device must be in the same bluetooth Mesh network. The Mesh protocol command needs to contain some parameters like source address, destination address, ividex, SEQ (sequence number). Assuming that the Provisioner node issues a control command to a normal node,
source address: the address of the Provisioner node.
The target address is as follows: the address of node a.
IvIndex: is a shared resource of the Mesh network, and the ividex of all nodes must be the same.
(ii) SEQ: sequence number (sequence number) used to prevent replay attacks (replay attack means a command with the same source address, which the target node considers to be an attack if the SEQ of the latter command is less than or equal to the SEQ of the command of the previous day, and the latter command is not to be processed), the sequence numbers of commands issued by a node are not identical and must be accumulated step by step. The sequence number range is cycled from 0-0xFFFFFF, and if the sequence number reaches 0xFFFFFF, the ividex of all nodes is updated.
Examples are: there are two Provisioner nodes in the Mesh network, defining two Provisioner nodes as P1 and P2, respectively, and the addresses are P1=1 and P2=2, and there are three common nodes, defined as A, B, C, and the addresses of the three nodes are a =10, b =11 and c =12.
At this point P1 sends a control command to A because the sequence number is incremented, if at this point the sequence number is 100, A will save the address of P1 along with the sequence number, then A saves a set of data with address 1 and sequence number 100.
Assume that 1: because P2 may not know that address 1 has been saved by a and P2 uses address 1, if the sequence number of P2 is 101, then P2 sends a control command to a.
The problems are that:
(1) And whether P2 can control A or not.
(2) If the P2 sequence number in hypothesis 1 is 99, P2 can control a.
Answering:
(1) Since node a already stores a set of data with address 1 and sequence number 100, we know from assumption 1 that P2 uses address 1 to send control command to a, but uses sequence number 101, which is greater than 100 stored in a, so that the command has no attack behavior, belongs to valid command, and can control a.
(2) If answer 1 indicates that a sequence number less than 100 belongs to attack, such a command is invalid, so P2 cannot control a.
To summarize:
often, in the product development process, a situation that P1 and P2 do not have timely information such as a synchronous address and a serial number, and the like, and finally cause control failure, how to avoid or solve such a problem?
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for managing a Provision address based on Bluetooth Mesh, which can solve the technical problem of control failure.
The technical scheme for solving the technical problems is as follows:
in a first aspect, an embodiment of the present invention provides a method for bluetooth Mesh-based provisioning address management, where the method is applied to a device including: in a system of a server, a terminal device and a plurality of bluetooth devices, comprising:
acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices;
sending the maximum number of the storage node addresses of each Bluetooth device to the server;
comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
the server calculates an address field allowed to be allocated according to the maximum value;
and the server allocates the provider node address of the terminal equipment according to the address field allowed to be allocated.
In some embodiments, before obtaining the maximum number of storage node addresses of each bluetooth device in the plurality of bluetooth devices, the method for bluetooth Mesh-based Provisioner address management further includes:
the server creates a Bluetooth Mesh network and randomly generates five parameters of Netkey, netkeyIndex, appkey, appkeyIndex and IvIndex;
logging in from an application program of the mobile terminal to enter a Bluetooth Mesh network, wherein the application program of the mobile terminal is a Provisioner node;
the terminal device and the plurality of Bluetooth devices are in the Bluetooth Mesh network.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the server calculates the address field allowed to be allocated according to the maximum value according to the following formula:
S=(C×Max)÷(1-K)
where Max represents the maximum value; k represents the equipment abnormal probability, and C represents the address field expansion multiple; s represents the number of address segments of the Provisioner node that the server can allocate.
In some embodiments, in the method for managing a provider address based on bluetooth Mesh, the server allocates a provider node address of the terminal device according to the address segment allowed to be allocated in a sequentially increasing and circularly allocating manner.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the way for the bluetooth device node to store the address is first-in first-out.
In some embodiments, in the method for bluetooth Mesh-based provider address management, the obtaining manner of obtaining the maximum number of storage node addresses of each bluetooth device in the plurality of bluetooth devices is obtained through a customized private protocol.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the device exception rate is an average failure rate of receiving data;
the address field expansion multiple is a value set according to the device abnormality rate.
In a second aspect, an embodiment of the present invention further provides a device for bluetooth Mesh-based Provisioner address management, where the device is applied to a bluetooth Mesh-based Provisioner address management system that includes: in a system of a server, a terminal device and a plurality of bluetooth devices, comprising:
an acquisition module: the device comprises a storage node address acquisition unit, a storage node address acquisition unit and a storage node address acquisition unit, wherein the storage node address acquisition unit is used for acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices;
a sending module: the maximum number of the storage node addresses of each Bluetooth device is sent to the server;
a comparison module: the maximum number of the storage node addresses of each Bluetooth device is compared to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
a calculation module: the address field which is allowed to be allocated is calculated by the server according to the maximum value;
a distribution module: and the server is used for distributing the node address of the terminal equipment Provisioner according to the address field allowed to be distributed.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
the processor is used for executing the method for bluetooth Mesh-based Provisioner address management as described in any one of the above by calling the program or the instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a program or instructions, where the program or instructions cause a computer to execute a method for bluetooth Mesh-based Provisioner address management as described in any one of the above.
The beneficial effects of the invention are: a method for managing a Provision address based on Bluetooth Mesh is applied to the following steps: in a system of a server, a terminal device and a plurality of bluetooth devices, the method comprising: acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices; sending the maximum number of the storage node addresses of each Bluetooth device to a server; comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of the plurality of Bluetooth devices; the server calculates the address field allowed to be allocated according to the maximum value; and the server allocates the Provisioner node address of the terminal equipment according to the address field allowed to be allocated. In the embodiment of the application, the maximum number of the addresses of the storage nodes is acquired from the Bluetooth equipment terminal, and the results returned by all the Bluetooth equipment are sent to the server; the server determines the maximum value according to the sent result, and sets the address field which can be used by the Provisioner according to the maximum value, wherein the length of the address field is certainly larger than the maximum value reported by the Bluetooth equipment, so that when each Provisioner applies for an address from the server, the server can find an address from the address field in sequence, and the address allocated each time is different, so that the server can normally communicate with the Bluetooth equipment without storing a serial number.
Drawings
Fig. 1 is a diagram of a method for bluetooth Mesh-based Provisioner address management according to an embodiment of the present invention;
fig. 2 is a diagram of an apparatus for bluetooth Mesh-based Provisioner address management according to an embodiment of the present invention;
fig. 3 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The principles and features of this invention are described below in conjunction with the following drawings, which are set forth by way of illustration only and are not intended to limit the scope of the invention.
In order that the above objects, features and advantages of the present application can be more clearly understood, the present disclosure will be further described in detail with reference to the accompanying drawings and examples. It is to be understood that the embodiments described are only a few embodiments of the present disclosure, and not all embodiments. The specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the application. All other embodiments that can be derived by one of ordinary skill in the art from the description of the embodiments are intended to be within the scope of the present disclosure.
It is noted that, in this document, relational terms such as "first" and "second," and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
Fig. 1 is a diagram of a method for bluetooth Mesh-based provision address management according to an embodiment of the present invention.
In a first aspect, an embodiment of the present invention provides a method for managing a provider address based on a bluetooth Mesh, which is applied to a device including: in a system of a server, a terminal device and a plurality of bluetooth devices, in conjunction with fig. 1, the method includes five steps S101 to S103:
s101: and acquiring the maximum number of the storage node addresses of each Bluetooth device in the plurality of Bluetooth devices.
Specifically, in the embodiment of the present application, the terminal device obtains the maximum number of storage node addresses of each bluetooth device from the multiple bluetooth devices through a customized private protocol.
S102: and sending the maximum number of the storage node addresses of each Bluetooth device to the server.
Specifically, in the embodiment of the application, the terminal device obtains a plurality of maximum numbers after obtaining the maximum number of the storage node addresses of each bluetooth device, the terminal device sends the plurality of maximum numbers to the server, and a list is formed at the server and is stored.
S103: and comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of the plurality of Bluetooth devices.
Specifically, in the embodiment of the present application, the maximum number of the storage node addresses of each bluetooth device in the server side list is compared to obtain the maximum value of the storage node addresses of the multiple bluetooth devices.
S104: the server calculates the address field allowed to be allocated according to the maximum value.
Specifically, in the embodiment of the present application, the server calculates the address field allowed to be allocated according to the maximum value.
S105: and the server allocates the provider node address of the terminal equipment according to the address field allowed to be allocated.
Specifically, in the embodiment of the present application, the server sets the address field that can be used by the provider node according to the address field that is allowed to be allocated, each time the terminal device requests the address of the provider node from the server, the server allocates a new address and records the address allocated this time, and in one address field cycle, the address allocated each time is different, so that the terminal device can normally communicate with the device without storing the serial number.
In some embodiments, before obtaining the maximum number of storage node addresses of each bluetooth device in the plurality of bluetooth devices, the method for bluetooth Mesh-based Provisioner address management further includes:
the server creates a Bluetooth Mesh network and randomly generates five parameters of Netkey, netkeyIndex, appkey, appkeyIndex and IvIndex;
logging in from an application program of the mobile terminal to enter a Bluetooth Mesh network, wherein the application program of the mobile terminal is a Provisioner node;
the terminal device and the plurality of Bluetooth devices are in the Bluetooth Mesh network.
Specifically, in this embodiment of the application, the server creates a bluetooth Mesh network, randomly generates five parameters, i.e., netkey, netkeyIndex, APP, appkeyIndex, and IvIndex, and logs in to the bluetooth Mesh network from a terminal device, e.g., an APP at a mobile phone terminal, where the APP at the mobile phone terminal has a capability of adding devices, so that the APP at the mobile phone terminal is a provider node, the terminal device and the plurality of bluetooth devices are in the bluetooth Mesh network, the terminal device is a provider node, and each device in the plurality of bluetooth devices is a node.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the server calculates the address field allowed to be allocated according to the maximum value according to the following formula:
S=(C×Max)÷(1-K)
where Max represents the maximum value; k represents the equipment abnormal probability, and C represents the address field expansion multiple; s represents the number of address segments of the provider node that the server can assign.
Specifically, in the embodiment of the present application, it is assumed that the expansion multiple C of the server is 1, that is, the expansion multiple is not required, the device abnormality rate K is 20%, and the abnormality rate of the device in the present application is an average value. If the anomaly rates of the server-side devices are average values, the average value is 20%, and the maximum value received by the server is 100, S =125 can be obtained, and then the allocated address segment is [1, 125].
If there is one bluetooth device a holding the maximum number of nodes of 100, the abnormality rate K of the device is 25%.
In some embodiments, in the method for managing a Provisioner address based on bluetooth Mesh, the server allocates the Provisioner node address of the terminal device according to the address segment allowed to be allocated in a sequentially increasing and circularly allocating manner.
Specifically, in the embodiment of the present application, when the server allocates the address field, the allocation rule is a sequential increasing and circular allocation manner, that is, if the address field allocated by the server is [1, 125], the server will increase from 1 to 125, and then start to allocate from 1.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the way for the bluetooth device node to store the address is first-in first-out.
Specifically, in the embodiment of the application, the rule for the bluetooth node to store the address is first-in first-out, when the number of the stored addresses reaches the maximum value, a new node address is stored, and the first address of the array is removed; for example, the maximum number of the node addresses supported and stored by the bluetooth node a is 100, and currently [1, 100] addresses are stored, and at this time, a mesh message of the Provisioner node b address 101 is sent to the node a, the node a stores the 101 address, and deletes the address 1, so that the address list stored at the device side is [2, 101].
In some embodiments, in the method for bluetooth Mesh-based provider address management, the obtaining manner of obtaining the maximum number of storage node addresses of each bluetooth device in the plurality of bluetooth devices is obtained through a customized private protocol.
Specifically, in the embodiment of the application, after logging in the mobile phone APP, the mobile phone APP enters the Bluetooth Mesh network, unbound Bluetooth devices are searched, the devices are added to the Bluetooth Mesh network through the Bluetooth distribution network, and the devices are stored at the server side, so that after the distribution network is completed, the devices send the server for storage after acquiring the maximum number of the addresses of the storage nodes through a self-defined private protocol.
In some embodiments, in the method for bluetooth Mesh-based Provisioner address management, the device exception rate is an average failure rate of receiving data;
the address field expansion multiple is a value set according to the device abnormality rate.
Specifically, the device anomaly rate in the embodiment of the application can be obtained by writing an automatic control program, sending a control message to the bluetooth device at the APP end, counting the number of messages sent by the APP and the number of messages received by the bluetooth device, calculating the success rate of receiving data, and further obtaining the failure rate of receiving data, wherein each bluetooth device can obtain the failure rate of receiving data through the method, and the average failure rate of receiving data obtained through multiple tests.
The address field expansion multiple is a value set according to the abnormal rate of the Bluetooth equipment, if the abnormal rate of the Bluetooth equipment is higher, the address field expansion multiple needs to be larger, and the specific value needs to be flexibly set according to the actual situation.
By verification, the expansion multiple is properly increased, so that the server can be ensured to have enough addresses to be allocated to the Provisioner node, but the addresses cannot be too large, and address waste can be caused if the setting is too large.
In a second aspect, an embodiment of the present invention further provides a device for bluetooth Mesh-based Provisioner address management, where the device is applied to include: in a system of a server, a terminal device and a plurality of bluetooth devices, comprising:
the acquisition module 201: the device comprises a storage node address acquisition unit, a storage node address acquisition unit and a storage node address acquisition unit, wherein the storage node address acquisition unit is used for acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices;
specifically, in this embodiment of the present application, the obtaining module of the terminal device obtains the maximum number of storage node addresses of each bluetooth device from the multiple bluetooth devices.
The sending module 202: the maximum number of the storage node addresses of each Bluetooth device is sent to the server;
specifically, in the embodiment of the application, the terminal device obtains the maximum number of the storage node addresses of each bluetooth device, and then obtains the maximum numbers, and the terminal device sends the maximum numbers to the server through the sending module, and forms a list at the server and stores the list.
The comparison module 203: the maximum number of the storage node addresses of each Bluetooth device is compared to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
specifically, in the embodiment of the present application, the comparison module compares the maximum number of the storage node addresses of each bluetooth device in the server-side list to obtain the maximum value of the storage node addresses of the multiple bluetooth devices.
The calculation module 204: and the server calculates the address field allowed to be allocated according to the maximum value.
Specifically, in this embodiment of the present application, the calculation module of the server calculates the address field allowed to be allocated according to the maximum value.
The assignment module 205: and the server is used for distributing the node address of the terminal equipment Provisioner according to the address field allowed to be distributed.
Specifically, in this embodiment of the present application, the allocation module of the server allocates an address field that can be used by the provider node according to the address field that is allowed to be allocated, each time the terminal device requests the address of the provider node from the server, the allocation module of the server allocates a new address and records the allocated address, and in one address field cycle, the allocated address is different every time, so that the terminal device can normally communicate with the device without storing the serial number.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a processor and a memory;
the processor is used for executing the method for bluetooth Mesh-based Provisioner address management as described in any one of the above by calling the program or the instructions stored in the memory.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, which stores a program or instructions, where the program or instructions cause a computer to execute a method for bluetooth Mesh-based Provisioner address management as described in any one of the above.
Fig. 3 is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure.
As shown in fig. 3, the electronic apparatus includes: at least one processor 301, at least one memory 302, and at least one communication interface 303. The various components in the electronic device are coupled together by a bus system 304. A communication interface 303 for information transmission with an external device. It will be appreciated that the bus system 304 is used to enable communications among the components. The bus system 304 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, the various buses are labeled as bus system 304 in fig. 3.
It will be appreciated that the memory 302 in this embodiment can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory.
In some embodiments, memory 302 stores the following elements, executable units or data structures, or a subset thereof, or an expanded set thereof: an operating system and an application program.
The operating system includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. And the application programs, including various application programs such as a Media Player (Media Player), a Browser (Browser), etc., for implementing various application services. The program for implementing any method of the bluetooth Mesh-based Provisioner address management method provided by the embodiment of the present application may be included in the application program.
In this embodiment of the present application, the processor 301 calls a program or an instruction stored in the memory 302, specifically, may be a program or an instruction stored in an application program, and the processor 301 is configured to execute steps of embodiments of a method for bluetooth Mesh-based Provisioner address management provided in this embodiment of the present application.
Acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices;
sending the maximum number of the storage node addresses of each Bluetooth device to the server;
comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
the server calculates the address field allowed to be allocated according to the maximum value;
and the server allocates the provider node address of the terminal equipment according to the address field allowed to be allocated.
Any method of the method for managing the Provisioner address based on the bluetooth Mesh provided by the embodiment of the present application may be applied to the processor 301, or implemented by the processor 301. The processor 301 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 301. The Processor 301 may be a general-purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The steps of any method in the method for bluetooth Mesh-based Provisioner address management provided by the embodiment of the application can be directly embodied as the execution of a hardware decoding processor, or the execution of the hardware and software units in the decoding processor is combined. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and completes the steps of a bluetooth Mesh-based Provisioner address management method in combination with hardware thereof.
Those skilled in the art will appreciate that although some embodiments described herein include some features included in other embodiments instead of others, combinations of features of different embodiments are meant to be within the scope of the application and form different embodiments.
Those skilled in the art will appreciate that the description of each embodiment has a respective emphasis, and reference may be made to the related description of other embodiments for those parts of an embodiment that are not described in detail.
Although the embodiments of the present application have been described in conjunction with the accompanying drawings, those skilled in the art will be able to make various modifications and variations without departing from the spirit and scope of the application, and such modifications and variations are included in the specific embodiments of the present invention as defined in the appended claims, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of various equivalent modifications and substitutions within the technical scope of the present disclosure, and these modifications and substitutions are intended to be included in the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
While the invention has been described with reference to specific embodiments, it will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (8)

1. A method for managing Provisioner address based on Bluetooth Mesh is characterized by comprising the following steps: in a system of a server, a terminal device and a plurality of bluetooth devices, comprising:
the server creates a Bluetooth Mesh network and randomly generates five parameters of Netkey, netkeyIndex, appkey, appkeyIndex and IvIndex;
logging in from an application program of the terminal equipment into a Bluetooth Mesh network, wherein the application program of the terminal equipment is a Provisioner node;
acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices in the Bluetooth Mesh network;
sending the maximum number of the storage node addresses of each Bluetooth device to the server;
comparing the maximum number of the storage node addresses of each Bluetooth device to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
the server calculates an address field allowed to be allocated according to the maximum value;
the server allocates a provider node address of the terminal equipment according to the address field allowed to be allocated;
the method for the server to calculate the address field allowed to be allocated according to the maximum value comprises the following calculation according to the following formula:
S = (C × Max) ÷ (1 - K)
where Max represents the maximum value; k represents the equipment abnormal probability, and C represents the address field expansion multiple; s represents the number of address segments of the Provisioner node which can be allocated by the server;
the terminal device and the plurality of Bluetooth the device is in the bluetooth Mesh network.
2. The method of claim 1, wherein the server allocates the Provisioner node address of the terminal device according to the address segment allowed to be allocated in a sequentially increasing and circularly allocating manner.
3. The method of bluetooth Mesh-based Provisioner address management according to claim 1, wherein the bluetooth device node saves addresses in a first-in-first-out manner.
4. The method of claim 1, wherein the obtaining of the maximum number of storage node addresses of each bluetooth device in the plurality of bluetooth devices is performed by a customized private protocol.
5. The method of bluetooth Mesh-based Provisioner address management according to claim 1, wherein the device anomaly rate is an average failure rate of receiving data;
the address field expansion multiple is a value set according to the device abnormality rate.
6. An apparatus for bluetooth Mesh-based Provisioner address management, comprising: in a system of a server, a terminal device and a plurality of bluetooth devices, comprising:
an acquisition module: the server creates a Bluetooth Mesh network and randomly generates five parameters of Netkey, netkeyIndex, appkey, appkeyIndex and IvIndex; logging in from an application program of the terminal equipment to enter a Bluetooth Mesh network, wherein the application program of the terminal equipment is a Provisioner node; acquiring the maximum number of storage node addresses of each Bluetooth device in a plurality of Bluetooth devices in the Bluetooth Mesh network;
a sending module: the maximum number of the storage node addresses of each Bluetooth device is sent to the server;
a comparison module: the maximum number of the storage node addresses of each Bluetooth device is compared to obtain the maximum value of the storage node addresses of a plurality of Bluetooth devices;
a calculation module: the method for the server to calculate the address field allowed to be allocated according to the maximum value comprises the following steps:
S = (C × Max) ÷ (1 - K)
where Max represents the maximum value; k represents the abnormal probability of the equipment, and C represents the expansion multiple of the address field; s represents the number of address segments of the Provisioner node which can be allocated by the server;
a distribution module: and the server is used for distributing the node address of the terminal equipment Provisioner according to the address field allowed to be distributed.
7. An electronic device, comprising: a processor and a memory;
the processor is used for executing the method for bluetooth Mesh based Provisioner address management according to any one of claims 1 to 5 by calling the program or the instruction stored in the memory.
8. A computer-readable storage medium storing a program or instructions for causing a computer to perform a method of bluetooth Mesh based Provisioner address management according to any one of claims 1 to 5.
CN202110923625.5A 2021-08-11 2021-08-11 Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh Active CN113660353B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110923625.5A CN113660353B (en) 2021-08-11 2021-08-11 Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110923625.5A CN113660353B (en) 2021-08-11 2021-08-11 Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh

Publications (2)

Publication Number Publication Date
CN113660353A CN113660353A (en) 2021-11-16
CN113660353B true CN113660353B (en) 2022-12-02

Family

ID=78491515

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110923625.5A Active CN113660353B (en) 2021-08-11 2021-08-11 Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh

Country Status (1)

Country Link
CN (1) CN113660353B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150801B (en) * 2022-09-05 2022-12-23 北京联盛德微电子有限责任公司 Inter-node communication method and system based on Bluetooth Mesh network

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672988A (en) * 2012-02-24 2019-04-23 三星电子株式会社 Method and apparatus for distributing IP address within a wireless communication network
CN109819427A (en) * 2019-03-06 2019-05-28 乐鑫信息科技(上海)股份有限公司 Method for the starting configuration of bluetooth Mesh network
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN111683372A (en) * 2020-06-11 2020-09-18 上海庆科信息技术有限公司 Processing method and device of attribute information, processor and terminal
CN112153656A (en) * 2020-09-25 2020-12-29 北京百瑞互联技术有限公司 Method, system and network for public Bluetooth mesh network networking

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110505606B (en) * 2018-05-18 2022-12-02 阿里巴巴集团控股有限公司 Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
CN110191451B (en) * 2019-05-31 2022-08-09 杭州涂鸦信息技术有限公司 State synchronization method, mobile terminal, system and device of Bluetooth equipment
CN111818493B (en) * 2020-05-21 2023-11-07 上海橙群微电子有限公司 Data transmission method, wireless network system, node, and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109672988A (en) * 2012-02-24 2019-04-23 三星电子株式会社 Method and apparatus for distributing IP address within a wireless communication network
CN111065077A (en) * 2018-10-17 2020-04-24 阿里巴巴集团控股有限公司 Bluetooth Mesh network and communication method, equipment and storage medium thereof
CN109819427A (en) * 2019-03-06 2019-05-28 乐鑫信息科技(上海)股份有限公司 Method for the starting configuration of bluetooth Mesh network
CN111683372A (en) * 2020-06-11 2020-09-18 上海庆科信息技术有限公司 Processing method and device of attribute information, processor and terminal
CN112153656A (en) * 2020-09-25 2020-12-29 北京百瑞互联技术有限公司 Method, system and network for public Bluetooth mesh network networking

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Embedded Provisioner for BLE Mesh Network;Kamaldeep Bansal;《IEEE-2020 IEEE International Conference for Innovation in Technology (INOCON)》;20210101;全文 *
基于蓝牙Mesh无线组网技术的智能照明系统的设计与实现;袁孟林;《中国优秀硕士论文全文库-工程信息II辑》;20190915;全文 *

Also Published As

Publication number Publication date
CN113660353A (en) 2021-11-16

Similar Documents

Publication Publication Date Title
CN108376118B (en) Service distribution system, method, device and storage medium
CN107332876B (en) Method and device for synchronizing block chain state
CN110661658B (en) Node management method and device of block chain network and computer storage medium
CN109274782B (en) Method and device for collecting website data
CN110519183B (en) Node speed limiting method and device, electronic equipment and storage medium
CN112416969B (en) Parallel task scheduling system in distributed database
US20180242177A1 (en) Monitoring management method and apparatus
CN110750343B (en) Cluster system timing task scheduling control method and cluster system
CN110597918A (en) Account management method and device and computer readable storage medium
WO2016184178A1 (en) Resource control method and apparatus
WO2016127612A1 (en) Monitoring processing method and device
CN104113435A (en) Method and device for generating identifier
CN113625589A (en) Equipment control method and device, electronic equipment and storage medium
CN103535015A (en) Management method of public network address resource, terminal control protocol server and client
CN113660353B (en) Method, device, equipment and medium for managing Provisioner address based on Bluetooth Mesh
CN114401250A (en) Address allocation method and device
CN109257396B (en) Distributed lock scheduling method and device
CN115766314A (en) Method and device for transmitting messages among components, storage medium and electronic device
CN111459676A (en) Node resource management method, device and storage medium
CN110888892B (en) Block synchronization method, device and storage medium
CN117014189A (en) Multi-gateway scheduling processing method, equipment, system, server and storage medium
CN110798358A (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN114173396B (en) Method and device for determining terminal networking time, electronic equipment and storage medium
CN106936643B (en) Equipment linkage method and terminal equipment
CN113504981A (en) Task scheduling method and device, storage medium and electronic equipment

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
GR01 Patent grant
GR01 Patent grant