Bluetooth device management method, system, device and related equipment

By realizing packet category judgment and processing of energy-saving core control and management module in Bluetooth devices, the problem of poor energy-saving performance of Bluetooth MESH devices is solved, and a deeper energy-saving effect is achieved.

CN114125802BActive Publication Date: 2025-03-25CHINA MERCHANTS FINANCE HLDG CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111435302.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-29
Publication Date
2025-03-25
Estimated Expiration
2041-11-29

AI Technical Summary

Technical Problem

The existing Bluetooth MESH equipment has poor energy saving performance and cannot be deeply energy-saving.

Method used

By realizing the category judgment of data packets and processing of energy-saving core control management modules in Bluetooth devices, the Bluetooth device is centrally managed to improve energy-saving performance. The specific steps include receiving data packets and making category judgments. If the preset category is met, input the energy-saving core control management module to process. If it does not meet, perform the next hop node calculation and forwarding.

Benefits of technology

Through this method, the energy-saving performance of Bluetooth devices has been significantly improved, achieving a deeper energy-saving effect.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114125802B_ABST
    Figure CN114125802B_ABST
Patent Text Reader

Abstract

The present invention discloses a Bluetooth device management method, which is applied to the field of Bluetooth device management and is used to improve the energy-saving performance of Bluetooth devices. The method provided by the present invention comprises: receiving a data packet from a current node, wherein the current node is a mesh network Bluetooth device node; based on the current node, performing a category judgment on the data packet to obtain a judgment result; if the judgment result is that the data packet meets the preset category, the data packet is input into an energy-saving core control management module for processing; if the judgment result is that the data packet does not meet the preset category, a next-hop node is calculated to obtain a next-hop node; the data packet is sent to the next-hop node, and the next-hop node is used as the current node, and the step of performing a category judgment on the data packet based on the current node to obtain the judgment result is returned and continued to be executed until the data packet is input into the energy-saving core control management module for processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Bluetooth device management, and in particular to a Bluetooth device management method, system, device, computer equipment and storage medium. Background Art

[0002] With the continuous enrichment of IoT, especially smart home related devices, the diversification, systematization and ease of use of application scenarios are becoming more and more obvious, and Bluetooth MESH devices have become a hot spot in the market with their excellent network coverage performance and excellent mobile phone interoperability. At the same time, since a large number of related devices are powered by batteries, the corresponding energy-saving and battery life technology has become a core technology of utmost importance. Bluetooth MESH devices refer to mesh network Bluetooth devices.

[0003] The current Bluetooth MESH device standards include some energy-saving technologies, such as the standard Bluetooth MESH energy consumption model, low voltage energy consumption (BM-LPN CurrentConsumption) and low voltage life (BM-LPN Lifetime) control, etc. However, these are limited to simple device energy consumption characteristic parameter configuration and related power saving specifications and suggestions, and cannot enable Bluetooth MESH devices to achieve deep energy saving.

[0004] Therefore, the prior art has the technical problem that the energy-saving performance of Bluetooth MESH devices is poor. Summary of the invention

[0005] The embodiments of the present invention provide a Bluetooth device management method, system, device, computer equipment and storage medium to improve the energy-saving performance of Bluetooth devices.

[0006] A method for managing a Bluetooth device, comprising:

[0007] Receiving a data packet from a current node, wherein the current node is a mesh network Bluetooth device node;

[0008] Based on the current node, classify the data packet to obtain a classifying result;

[0009] If the judgment result is that the data packet meets the preset category, the data packet is input into the energy-saving core control management module for processing;

[0010] If the judgment result is that the data packet does not conform to the preset category, a next hop node is calculated to obtain the next hop node;

[0011] The data packet is sent to the next hop node, and the next hop node is used as the current node, and the step of performing category judgment on the data packet based on the current node is returned to continue to execute until the data packet is input into the energy-saving core control management module for processing.

[0012] A Bluetooth device management system includes an energy-saving core control management module and at least two nodes. The energy-saving core control management module is installed on a mesh network Bluetooth device and is used to manage the mesh network Bluetooth device. The node is a mesh network Bluetooth device node and is used to perform Bluetooth communication.

[0013] A Bluetooth device management device, comprising:

[0014] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned Bluetooth device management method when executing the computer program.

[0015] A computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned Bluetooth device management method are implemented.

[0016] The Bluetooth device management method, system, device, computer device and storage medium provided by the embodiment of the present invention receive a data packet from the current node, wherein the current node is a mesh network Bluetooth device node; based on the current node, the data packet is judged in category to obtain a judgment result; if the judgment result is that the data packet meets the preset category, the data packet is input into the energy-saving core control management module for processing; if the judgment result is that the data packet does not meet the preset category, the next hop node is calculated to obtain the next hop node; the data packet is sent to the next hop node, and the next hop node is used as the current node, and the step of returning to judge the category of the data packet based on the current node and obtaining the judgment result is continued until the data packet is input into the energy-saving core control management module for processing. Through the above steps, the data packet that meets the preset category is input into the energy-saving core control management module for processing, so that the energy-saving core control management module can centrally manage the Bluetooth device, thereby improving the energy-saving performance of the Bluetooth device. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0018] Figure 1 is a schematic diagram of an application environment of a Bluetooth device management method in an embodiment of the present invention;

[0019] Figure 2 is a flow chart of a method for managing a Bluetooth device in one embodiment of the present invention;

[0020] Figure 3 is an example diagram of a Bluetooth device management system in one embodiment of the present invention;

[0021] Figure 4 is a schematic diagram of the structure of a Bluetooth device management device in one embodiment of the present invention;

[0022] Figure 5 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0024] The Bluetooth device management method provided in this application can be applied in Figure 1 In an application environment, a computer device communicates with a server via a network. The computer device may be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, and portable wearable devices. The server may be implemented as an independent server or a server cluster consisting of multiple servers.

[0025] In one embodiment, if Figure 2 As shown, a Bluetooth device management method is provided, which is applied in Figure 1 The server in the example is used to illustrate, including the following steps S10 to S50:

[0026] S10. Receive a data packet from a current node, wherein the current node is a mesh network Bluetooth device node.

[0027] In step S10, the above-mentioned receiving of data packets refers to receiving data packets from the Bluetooth MESH protocol stack bearer layer, wherein the Bluetooth MESH protocol stack bearer layer refers to the method used to define the way in which mesh network Bluetooth device nodes transmit network messages. The network messages include but are not limited to data packets and messages.

[0028] A data packet is received from the Bluetooth MESH protocol stack bearer layer corresponding to the current node, and a transmission operation is performed on the data packet according to the method of transmitting network messages defined by the Bluetooth MESH protocol stack bearer layer, which is conducive to the subsequent transmission and processing of the data packet, thereby enabling Bluetooth devices to be centrally managed.

[0029] S20: Based on the current node, classify the data packet and obtain a classifying result.

[0030] In step S20, the identification content of the above category judgment includes but is not limited to the header content of the data packet and the protocol content of the data packet.

[0031] Preferably, the header content of the data packet is used here.

[0032] In step S20, it specifically includes the following steps S201 to S203:

[0033] S201. Based on the current node, determine the extension flag of the header content of the data packet to obtain a first determination result.

[0034] S202: If the first judgment result is that the header content of the data packet includes an extension flag, then the judgment result is that the data packet meets the preset category.

[0035] S203. If the first judgment result is that the header content of the data packet does not contain an extension flag, then determine whether the data packet is a local node data packet, and obtain a judgment result, wherein if the data packet is a local node data packet, the judgment result is that the data packet meets the preset category, and if the data packet is not a local node data packet, the judgment result is that the data packet does not meet the preset category.

[0036] For step S201, the extension flag bit refers to a field set by the energy-saving core control management module to the data packet when the data packet is transmitted.

[0037] There is no specific limitation on the representation of the extension flag. For example, 0 and 1 are used to represent the extension flag. When the position corresponding to the extension flag is 0, it means that the extension flag is included. When the position corresponding to the extension flag is 1, it means that the extension flag is not included.

[0038] For step S202, the above-mentioned preset category refers to that the header content of the data packet includes an extension flag or the data packet is a local node data packet.

[0039] When the first judgment result is that the header content of the data packet contains an extension flag, the judgment result is that the data packet meets the preset category, and the routing table and network parameters of the current node are updated.

[0040] The method of updating the routing table and network parameters of the current node includes the following:

[0041] Perform a deadline check on the routing table corresponding to the current node to obtain a test result.

[0042] If the detection result is that the routing table is expired, a routing table request is sent to all nodes, and the routing table corresponding to the current node is generated based on the information fed back by all nodes.

[0043] If the detection result is that the routing table is not expired, the routing table and network parameters corresponding to the current node are updated based on the data packet.

[0044] If the detection result is that the routing table is expired, a routing table request is sent to all nodes, and based on the information fed back by all nodes, a routing table corresponding to the current node is generated, and the routing policy is modified to the standard flooding mode; if the detection result is that the routing table is not expired, the routing table and control information in the data packet are obtained, and the routing table and network parameters of the current node are updated.

[0045] It should be understood that the method for updating the routing table and network parameters of the current node here can be specifically set according to actual conditions, and this is a reference method.

[0046] Through the above steps, the judgment result of the data packet is obtained, which is conducive to subsequent processing according to the judgment result, and centralized management of the Bluetooth device according to the processing result, thereby improving the energy saving performance of the Bluetooth device.

[0047] S30: If the judgment result is that the data packet meets the preset category, the data packet is input into the energy-saving core control management module for processing.

[0048] In step S30, the energy-saving core control management module is a module for managing mesh network Bluetooth devices.

[0049] The above processing includes but is not limited to network node routing table and endurance management, node forwarding capability tracking and scheduling, node activation time calculation and time calibration, and Bluetooth MESH protocol stack standard network layer processing.

[0050] By inputting the data packet into the energy-saving core control management module for processing, the energy-saving core control management module can perform energy-saving processing on the data packet of the Bluetooth device, thereby improving the energy-saving performance of the Bluetooth device.

[0051] S40: If the judgment result is that the data packet does not conform to the preset category, a next hop node calculation is performed to obtain the next hop node.

[0052] In step S40, when the data packet does not include the extension flag and is not a local node data packet, the data packet is a forwarding packet, and it is necessary to forward the data packet to one or more limited next-hop nodes based on the next-hop routing table and the network control information of the current node, and no longer use the flood routing strategy to forward the data packet to the entire network domain, and recalculate the next-hop routing table and the network control information of the next-hop node. Among them, the network control information of the current node includes but is not limited to priority, historical forwarding success rate, and power consumption control.

[0053] If the next-hop node is a low-power node, or is connected to a low-power node and has a friend node, the energy-saving core control management module controls sleep and scheduled wake-up. Under the control of the energy-saving core control management module, the next-hop node data will only be temporarily stored in the adjacent normal power device; the temporarily stored data will only be forwarded to a specific node when the low-power node is activated, and will no longer be broadcast to the entire network.

[0054] Furthermore, each node in the above solution adds an AES hardware encryption algorithm and a general hardware encryption algorithm interface. On the basis of being compatible with the encryption algorithm of the standard Bluetooth mesh network device node, the node, under the control of the energy-saving core control management module, regularly switches the nodes using the same type of main Bluetooth module chip to the encryption algorithm directly supported by the hardware.

[0055] By calculating the next hop node of the data packet through the above steps, the next hop node can be quickly obtained, and the data packet can be quickly forwarded to the next hop node for processing, so that the Bluetooth device is centrally managed, thereby improving the energy saving performance of the Bluetooth device.

[0056] S50, sending the data packet to the next hop node, and taking the next hop node as the current node, returning to the step of performing a category judgment on the data packet based on the current node, and obtaining the judgment result, and continuing to execute until the data packet is input into the energy-saving core control management module for processing.

[0057] The data packet is quickly forwarded to the next hop node for processing, so that the Bluetooth device is centrally managed, thereby improving the energy-saving performance of the Bluetooth device.

[0058] The Bluetooth device management method provided by the embodiment of the present invention receives a data packet from the current node, wherein the current node is a mesh network Bluetooth device node. Based on the current node, the category of the data packet is judged to obtain a judgment result. If the judgment result is that the data packet meets the preset category, the data packet is input into the energy-saving core control management module for processing. If the judgment result is that the data packet does not meet the preset category, the next hop node is calculated to obtain the next hop node. The data packet is sent to the next hop node, and the next hop node is used as the current node, and the step of judging the category of the data packet based on the current node and obtaining the judgment result is returned and continued until the data packet is input into the energy-saving core control management module for processing. Through the above steps, the data packet that meets the preset category is input into the energy-saving core control management module for processing, so that the energy-saving core control management module can centrally manage Bluetooth devices, thereby improving the energy-saving performance of Bluetooth devices.

[0059] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0060] In one embodiment, a Bluetooth device management system is provided, which can be applied to the Bluetooth device management method in the above embodiment.

[0061] like Figure 3 As shown, the Bluetooth device management system includes an energy-saving core control management module 01 and at least two nodes 02. The energy-saving core control management module 01 is installed on the mesh network Bluetooth device and is used to manage the mesh network Bluetooth device. The node 02 is a mesh network Bluetooth device node 021 for Bluetooth communication.

[0062] The energy-saving core control management module 01 may be installed in one or more normal power equipment nodes in the network.

[0063] Node 02 is a mesh network Bluetooth device node 021, which is used for Bluetooth communication. The mesh network Bluetooth device node 02 includes a next hop routing table, which includes a next hop node list, which is used to store nodes that have a connection relationship with the mesh network Bluetooth device node 021.

[0064] It should be understood that in each node 02, a next hop routing table of the node is added. The next hop routing table includes but is not limited to the next node list, network address, MAC address, activation time, RSSI, endurance power consumption, number of hops, delay, and forwarding success rate for data forwarding of the node.

[0065] In the Bluetooth device management system, the power consumption control, sleep and wake-up, data forwarding node selection, and optimal multi-hop path selection of all network nodes can be uniformly managed and optimized by the energy-saving core control management module 01. This effectively balances and optimizes the speed and delay of data packet forwarding, the power consumption of the entire Bluetooth network, and the endurance of low-power nodes, thereby improving the energy-saving performance of Bluetooth devices.

[0066] Furthermore, the energy-saving core control management module 01 includes a router management module 011, a node battery life prediction module 012, a node data forwarding module 013, a node activation module 014, and a time reference module 015. The router management module 011 is used to manage the routing table information of the mesh network Bluetooth device node 021. The node battery life prediction module 012 is used to predict the battery life of the mesh network Bluetooth device node 021. The node data forwarding module 013 is used to dynamically identify the data forwarding capability of the mesh network Bluetooth device node 021 and schedule the mesh network Bluetooth device node 021 according to the data forwarding capability. The node activation module 014 is used to activate the mesh network Bluetooth device node 021. The time reference module 015 is used to synchronize the time references of all mesh network Bluetooth device nodes 021.

[0067] The functions of the router management module 011 include but are not limited to routing table optimization, path aging time calculation, timing / forced routing table distribution, and node activation time scheduling. Based on the centralized routing table, the router management module 011 can be used to adjust subsequent prediction, scheduling, and other tasks.

[0068] The node endurance prediction module 012 completes the migration of public services between nodes by setting an endurance threshold, wherein the public services include but are not limited to low-power node data caching, network equipment OTA management (Over The Air, short message mechanism), network topology monitoring and updating, and network node addition and deletion.

[0069] The function of the node data forwarding module 013 includes but is not limited to detecting nodes with poor signals and low forwarding success rates in the overall network, excluding them from the forwarding next hop list of the corresponding nodes, and improving the routing table priority of nodes with good signals and high forwarding success rates.

[0070] Furthermore, in the node data forwarding module 013, based on the flooding routing strategy, the data packet of the mesh network Bluetooth device node 021 is forwarded to any node 02 that is not the parent node.

[0071] It should be understood that in node data forwarding, only when the aging time of the routing table expires or when forwarding control node network maintenance information, the flood routing strategy is used, that is, the data is forwarded to any node except the parent, while ensuring that there is no repeated transmission within a single time slice; other ordinary data forwarding is forwarded to the allowed next hop node based on the activation time, RSSI and endurance power consumption of the next node in the routing table. At the same time, if this node is a normal power device, the forwarding success rate and delay time are counted. After completing data forwarding, enter the sleep / standby state according to the node type.

[0072] In order to realize the forwarding and temporary storage of low-power node data, the support functions of node power consumption calculation and core control customized package are added on the basis of the original friendship node of the forwarding node. In particular, under the control of the energy-saving core control management module 01, the low-power node data will only be temporarily stored in the adjacent normal power equipment; the temporarily stored data will only be forwarded to a specific node when the low power consumption is activated, and will no longer be broadcast to the entire network.

[0073] The optimal path selection is achieved through the node data forwarding module 013. It is no longer a simple global average flood broadcast. It has been updated to a new optimal routing path selection method that takes into account the node power consumption, node type, actual network communication quality and radio frequency environment.

[0074] The node activation module 014 is used to continuously optimize the node activation time, so that the node activation time point and duration match its endurance and network structure, reduce repeated data forwarding and activation times, and give full play to the temporary storage and forwarding capabilities of the normal power equipment.

[0075] In the Bluetooth device management system, the power consumption control, sleep and wake-up, data forwarding node selection, and optimal multi-hop path selection of nodes in the entire network can all be uniformly managed and optimized by the energy-saving core control management module 01. This effectively balances and optimizes the speed and delay of data packet forwarding, the power consumption of the entire Bluetooth network, and the endurance of low-power nodes. The activation time scheduling of low-power nodes, the temporary storage of data transmission and reception, and specific business processes can obtain the support of more adjacent nodes under the scheduling of the core control module, which greatly increases the key endurance parameters of low-power nodes, thereby improving the energy-saving performance of Bluetooth devices.

[0076] In one embodiment, a Bluetooth device management apparatus is provided, and the Bluetooth device management apparatus corresponds one-to-one to the Bluetooth device management method in the above embodiment. Figure 4 As shown, the Bluetooth device management device includes a data packet receiving module 11, a category determination module 12, a processing module 13, a next hop node acquisition module 14 and a circulation module 15. The functional modules are described in detail as follows:

[0077] The data packet receiving module 11 is used to receive a data packet from a current node, wherein the current node is a mesh network Bluetooth device node.

[0078] The category judgment module 12 is used to judge the category of the data packet based on the current node and obtain a judgment result.

[0079] The processing module 13 is used to input the data packet into the energy-saving core control management module for processing if the judgment result is that the data packet meets the preset category.

[0080] The next hop node acquisition module 14 is used to calculate the next hop node to obtain the next hop node if the judgment result is that the data packet does not conform to the preset category.

[0081] The loop module 15 is used to send the data packet to the next hop node, and use the next hop node as the current node, return to the current node, and judge the category of the data packet. The step of obtaining the judgment result continues to be executed until the data packet is input into the energy-saving core control management module for processing.

[0082] In one embodiment, the category determination module 12 further includes:

[0083] The first judgment result acquisition unit is used to perform an extension flag bit judgment on the header content of the data packet based on the current node to obtain a first judgment result.

[0084] The extension flag bit inclusion unit is used to determine that the data packet meets the preset category if the first determination result is that the packet header content of the data packet includes the extension flag bit.

[0085] A judgment result acquisition unit is used to determine whether the data packet is a local node data packet if the first judgment result is that the packet header content of the data packet does not contain an extension flag, and obtain a judgment result, wherein if the data packet is a local node data packet, the judgment result is that the data packet meets the preset category, and if the data packet is not a local node data packet, the judgment result is that the data packet does not meet the preset category.

[0086] In one of the embodiments, after the extension flag bit includes the unit, the Bluetooth device management apparatus further includes:

[0087] The detection result acquisition unit is used to perform a deadline detection on the routing table corresponding to the current node to obtain a detection result.

[0088] The routing table acquisition unit is used to send a routing table request to all nodes if the detection result is that the routing table is expired, and generate a routing table corresponding to the current node according to the information fed back by all nodes.

[0089] The updating unit is used to update the routing table and network parameters corresponding to the current node based on the data packet if the detection result shows that the routing table is not expired.

[0090] The meaning of "first" and "second" in the above modules / units is only to distinguish different modules / units, and is not used to define which module / unit has a higher priority or other limiting meanings. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules in this application is only a logical division, and there may be other division methods when implemented in actual applications.

[0091] For the specific definition of the Bluetooth device management device, please refer to the definition of the Bluetooth device management method above, which will not be repeated here. Each module in the above-mentioned Bluetooth device management device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0092] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5 As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data involved in the Bluetooth device management method. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a Bluetooth device management method is implemented.

[0093] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps of the Bluetooth device management method in the above embodiment are implemented, such as Figure 2Alternatively, when the processor executes the computer program, the functions of each module / unit of the Bluetooth device management device in the above embodiment are realized, for example Figure 4 The functions of modules 11 to 15 are shown in Figure 1. To avoid repetition, they will not be described here.

[0094] The processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the computer device, and various interfaces and lines are used to connect various parts of the entire computer device.

[0095] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the computer device by running or executing the computer program and / or module stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, video data, etc.), etc.

[0096] The memory may be integrated into the processor or may be arranged separately from the processor.

[0097] In one embodiment, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the steps of the Bluetooth device management method in the above embodiment are implemented, such as Figure 2 Alternatively, when the computer program is executed by the processor, the functions of each module / unit of the Bluetooth device management device in the above embodiment are realized, for example Figure 4 The functions of modules 11 to 15 are shown in Figure 1. To avoid repetition, they will not be described here.

[0098] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0099] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0100] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for managing a Bluetooth device, characterized in that: include: Receiving a data packet from a current node, wherein the current node is a mesh network Bluetooth device node; Based on the current node, classify the data packet to obtain a classifying result; If the judgment result is that the data packet meets the preset category, the data packet is input into the energy-saving core control management module for processing, so that the energy-saving core control management module performs energy-saving processing on the data packet; If the judgment result is that the data packet does not conform to the preset category, a next hop node is calculated to obtain the next hop node; Send the data packet to the next hop node, and use the next hop node as the current node, and return to the step of performing category judgment on the data packet based on the current node, and continue to execute the step of obtaining the judgment result until the data packet is input into the energy-saving core control management module for processing; The step of performing category determination on the data packet based on the current node to obtain a determination result comprises: Based on the current node, an extension flag bit is judged on the header content of the data packet to obtain a first judgment result, wherein the extension flag bit refers to a field set by the energy-saving core control management module on the data packet when the data packet is transmitted; If the first judgment result is that the header content of the data packet includes an extension flag, then the judgment result is that the data packet meets the preset category; If the first judgment result is that the header content of the data packet does not contain an extension flag, then it is determined whether the data packet is a local node data packet to obtain the judgment result, wherein if the data packet is a local node data packet, then the judgment result is that the data packet meets the preset category, and if the data packet is not a local node data packet, then the judgment result is that the data packet does not meet the preset category.

2. The method according to claim 1, characterized in that: If the first judgment result is that the header content of the data packet includes an extension flag, then the judgment result is that the data packet meets the preset category, the method further includes: Performing a deadline detection on the routing table corresponding to the current node to obtain a detection result; If the detection result is that the routing table is expired, a routing table request is sent to all other nodes, and a routing table corresponding to the current node is generated according to information fed back by all other nodes; If the detection result is that the routing table is not expired, the routing table and network parameters corresponding to the current node are updated based on the data packet.

3. A Bluetooth device management system, characterized in that: It includes an energy-saving core control management module and at least two nodes, wherein the energy-saving core control management module is used to manage mesh network Bluetooth device nodes, and the at least two nodes are mesh network Bluetooth device nodes for Bluetooth communication; The mesh network Bluetooth device node is also used to execute the steps of the Bluetooth device management method as claimed in claim 1 or 2.

4. The system according to claim 3, characterized in that The energy-saving core control management module includes a router management module, a node endurance prediction module, a node data forwarding module, a node activation module, and a time reference module. The router management module is used to manage the routing table information of the mesh network Bluetooth device node. The node endurance prediction module is used to predict the endurance of the mesh network Bluetooth device node. The node data forwarding module is used to dynamically identify the data forwarding capability of the mesh network Bluetooth device node and schedule the mesh network Bluetooth device node according to the data forwarding capability. The node activation module is used to activate the mesh network Bluetooth device node. The time reference module is used to synchronize the time references of all the mesh network Bluetooth device nodes.

5. The system according to claim 4, characterized in that In the node data forwarding module, based on the flooding routing strategy, the data packet of the mesh network Bluetooth device node is forwarded to any node that is not the parent node.

6. The system according to claim 3, characterized in that The mesh network Bluetooth device node includes a next hop routing table, and the next hop routing table includes a next hop node list for storing nodes having a connection relationship with the mesh network Bluetooth device node.

7. A Bluetooth device management device, characterized in that: include: A data packet receiving module, used to receive a data packet from a current node, wherein the current node is a mesh network Bluetooth device node; A category judgment module, used to judge the category of the data packet based on the current node to obtain a judgment result; a processing module, configured to input the data packet into the energy-saving core control management module for processing if the judgment result is that the data packet meets the preset category, so that the energy-saving core control management module performs energy-saving processing on the data packet; A next hop node acquisition module, configured to calculate a next hop node to obtain a next hop node if the judgment result is that the data packet does not conform to a preset category; A loop module, used for sending the data packet to the next hop node, and taking the next hop node as the current node, returning to the step of performing category judgment on the data packet based on the current node, and obtaining the judgment result, until the data packet is input into the energy-saving core control management module for processing; Category judgment module, including: A first judgment result acquisition unit is used to perform an extension flag bit judgment on the packet header content of the data packet based on the current node to obtain a first judgment result, wherein the extension flag bit refers to a field set by the energy-saving core control management module to the data packet when the data packet is transmitted; An extension flag bit inclusion unit, used for, if the first judgment result is that the header content of the data packet includes the extension flag bit, then judging the result is that the data packet meets the preset category; A judgment result acquisition unit is used to determine whether the data packet is a local node data packet if the first judgment result is that the packet header content of the data packet does not contain an extension flag, and obtain a judgment result, wherein if the data packet is a local node data packet, the judgment result is that the data packet meets the preset category, and if the data packet is not a local node data packet, the judgment result is that the data packet does not meet the preset category.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the computer program, the steps of the Bluetooth device management method as claimed in claim 1 or 2 are implemented.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the Bluetooth device management method according to claim 1 or 2 are implemented.

Citation Information

Patent Citations

  • Data transmission method and related equipment and device

    CN111711941A