Signal synchronization method and system based on low-power-consumption Bluetooth mesh networking
By setting node association relationship and real-time monitoring signals in the Bluetooth mesh network, the signal synchronization command is generated to solve the problem of signal loss during signal abnormality of Bluetooth terminals, and the integrity and effectiveness of the signal are achieved.
Patent Information
- Application Number
- CN202411442591.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-02-11
AI Technical Summary
The prior art cannot synchronize signals during abnormal signal in Bluetooth terminals in a timely manner in Bluetooth mesh network, resulting in signal loss.
By setting node association relationships in the Bluetooth mesh network, monitoring and backing up Bluetooth signals in real time, generating signal spectrum diagrams to analyze the signal transmission status, and if abnormal, a signal synchronization command will be generated to restore signal synchronization.
The signal content synchronization during signal abnormality of Bluetooth terminal is realized, avoiding signal loss, and making the signals transmitted by Bluetooth terminal more complete and effective.
Smart Images

Figure CN119421230A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Bluetooth mesh networking signal synchronization, and in particular to a signal synchronization method and system based on low-power Bluetooth mesh networking. Background Art
[0002] Bluetooth mesh, also known as Bluetooth mesh network, is a physical network with multi-point to multi-point network topology that enables many-to-many device communication, thus facilitating the construction of large-scale device networks that require dozens or hundreds of nodes. Bluetooth mesh network provides a complete network architecture that can define all layers from low-power Bluetooth interoperability to mesh network model applications. It also has multiple security features, which can be encrypted with authentication while avoiding confusion;
[0003] In the prior art, when the Bluetooth terminal signal in the Bluetooth mesh network is lost, the signal content of the Bluetooth terminal during the period of signal loss will also be lost. When the signal is restored, only the Bluetooth signal at the current moment will be updated in real time, and the lost Bluetooth signal will be distorted. When the Bluetooth terminal signal in the Bluetooth mesh network is abnormal, it is impossible to synchronize the Bluetooth signal in time during the period of Bluetooth terminal signal abnormality, resulting in signal loss. Summary of the invention
[0004] The purpose of this section is to summarize some aspects of embodiments of the present invention and briefly introduce some preferred embodiments. Some simplifications or omissions may be made in this section and the specification abstract and the invention title of this application to avoid blurring the purpose of this section, the specification abstract and the invention title, and such simplifications or omissions cannot be used to limit the scope of the present invention.
[0005] In view of the above existing problems, the present invention is proposed.
[0006] Therefore, the present invention provides a signal synchronization method and system for low-power Bluetooth mesh networking to solve the problem that when the Bluetooth terminal signal in the Bluetooth mesh networking is abnormal, the existing method cannot synchronize the Bluetooth signal in time during the abnormal period of the Bluetooth terminal signal, resulting in signal loss.
[0007] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0008] In a first aspect, an embodiment of the present invention provides a signal synchronization method based on a low-power Bluetooth mesh network, comprising: based on a node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network, loading a Bluetooth signal transmitted by each Bluetooth terminal;
[0009] Processing the loaded Bluetooth signal to obtain a signal spectrum;
[0010] Analyze the signal transmission status of each Bluetooth terminal based on the signal spectrum;
[0011] If the signal transmission is in an abnormal state, the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state is synchronized.
[0012] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking described in the present invention, the loading of the Bluetooth signal transmitted by each Bluetooth terminal includes:
[0013] Obtain the location of each Bluetooth terminal and the signal coverage of the Bluetooth terminal, and build a Bluetooth mesh network based on the Bluetooth terminal location and signal coverage;
[0014] Setting corresponding node association relationships for each Bluetooth terminal in the Bluetooth mesh network, and loading Bluetooth signals transmitted by each Bluetooth terminal according to the set node association relationships; the node association relationships include primary nodes and secondary nodes;
[0015] The Bluetooth terminal corresponding to the secondary node sends a Bluetooth signal to the Bluetooth terminal corresponding to the primary node that has a node association relationship with the secondary node in real time, obtains the sending time of the Bluetooth signal, and generates a corresponding real-time time series according to the sending time of the Bluetooth signal, wherein the real-time time series consists of continuous time;
[0016] Setting a time window and setting a corresponding deadline for the time window, wherein the time window is composed of a first time axis and a second time axis;
[0017] Backing up the Bluetooth signal sent by the Bluetooth terminal within the time window, and recording the backed-up Bluetooth signal as a backup signal;
[0018] The Bluetooth terminal corresponding to the master node loads in real time the Bluetooth signals sent by the Bluetooth terminals corresponding to each secondary node and the corresponding real-time time series.
[0019] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking described in the present invention, it also includes: when the Bluetooth terminal corresponding to the secondary node starts to send Bluetooth signals, a first time axis and a second time axis are generated, and the first time axis is fixed at the moment when the Bluetooth terminal starts to send Bluetooth signals, and the second time axis corresponds to the real time. When the interval between the first time axis and the second time axis is the cutoff time, the first time axis is updated to the moment of the second time axis and fixed.
[0020] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking described in the present invention, the step of processing the loaded Bluetooth signal to obtain a signal spectrum includes:
[0021] Constructing a two-dimensional coordinate system of time with respect to signal spectrum values, wherein the signal spectrum values are 0 and 1;
[0022] Generate corresponding signal spectrum change curves for the Bluetooth signals loaded by each secondary node that has a node association relationship with the main node, and map each generated signal spectrum change curve into a two-dimensional coordinate system;
[0023] Generate a corresponding real-time time axis in a two-dimensional coordinate system according to the current moment, the real-time time axis intersects with each signal spectrum change curve to obtain a corresponding signal spectrum diagram;
[0024] The signal spectrum values corresponding to the intersection points of the real-time time axis and each signal spectrum change curve are extracted to obtain the corresponding binary signal spectrum sequence.
[0025] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking of the present invention, wherein: analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum includes:
[0026] Set the spectrum sequence threshold;
[0027] Decomposing the obtained binary signal spectrum sequence according to the set spectrum sequence threshold to obtain a plurality of signal spectrum subsequences, and associating the obtained signal spectrum subsequences with Bluetooth terminals corresponding to the signal spectrum values constituting the signal spectrum subsequences;
[0028] Traversing each obtained signal spectrum subsequence, and obtaining a spectrum sequence value corresponding to each signal spectrum subsequence;
[0029] If the spectrum sequence values corresponding to all signal spectrum subsequences are consistent with the set spectrum sequence threshold, it means that the signal transmission status of each Bluetooth terminal is normal, and when the interval between the second time axis and the first time axis of the time window is the cutoff time, a feedback signal is generated;
[0030] If the spectrum sequence value corresponding to a signal spectrum subsequence is inconsistent with the set spectrum sequence threshold, it means that an abnormality exists in each Bluetooth terminal associated with the signal spectrum subsequence, and the signal spectrum subsequence is marked as an abnormal sequence;
[0031] The signal spectrum values that are 0 in the abnormal sequence are traversed, and the Bluetooth terminals corresponding to the signal spectrum values are marked as signal-abnormal Bluetooth terminals, and a signal synchronization instruction is generated.
[0032] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking described in the present invention, wherein: if the signal transmission is in an abnormal state, the signal synchronization of the signal transmitted by the Bluetooth terminal with abnormal signal transmission state includes: marking the signal spectrum change curve corresponding to the Bluetooth terminal with abnormal signal, and establishing a signal synchronization interval associated with the Bluetooth terminal with abnormal signal in the signal spectrum diagram, wherein the signal synchronization interval includes an interval start time and an interval end time, and the current time is recorded as the interval start time;
[0033] The signal spectrum value of the marked signal spectrum change curve is detected in real time. When the signal spectrum value of the signal spectrum change curve changes from 0 to 1, it is recorded as the interval end time, and a signal synchronization instruction is generated;
[0034] The generated signal synchronization instruction is sent to the Bluetooth terminal with abnormal signal.
[0035] As a preferred solution of the signal synchronization method based on low-power Bluetooth mesh networking described in the present invention, it also includes: after the signal abnormal Bluetooth terminal receives the signal synchronization instruction, the Bluetooth signal of the corresponding time period in the backup signal is intercepted according to the interval start time and interval end time of the signal synchronization interval, and the intercepted Bluetooth signal is recorded as the signal to be synchronized;
[0036] Upload the obtained signal to be synchronized to the Bluetooth terminal corresponding to the corresponding master node;
[0037] The Bluetooth terminal corresponding to the master node generates a corresponding spectrum change curve of the signal to be synchronized according to the received signal to be synchronized;
[0038] The generated spectrum change curve of the signal to be synchronized is mapped to the signal synchronization interval to complete the Bluetooth signal synchronization of the Bluetooth terminal with abnormal signal.
[0039] In a second aspect, the present invention provides a signal synchronization system based on low-power Bluetooth mesh networking, comprising:
[0040] An information loading module, used to load the Bluetooth signals transmitted by each Bluetooth terminal based on the node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network;
[0041] A signal processing module, used for processing the loaded Bluetooth signal to obtain a signal spectrum;
[0042] A signal analysis module, used for analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum;
[0043] The signal synchronization module is used to synchronize the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state if the signal transmission is in an abnormal state.
[0044] In a third aspect, the present invention provides a computing device, comprising:
[0045] Memory and processor;
[0046] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the signal synchronization method based on low-power Bluetooth mesh networking are implemented.
[0047] In a fourth aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the signal synchronization method based on low-power Bluetooth mesh networking.
[0048] Compared with the prior art, the present invention has the following beneficial effects: the present invention sets a node association relationship for each Bluetooth terminal in the Bluetooth mesh network, monitors the signals transmitted by each Bluetooth terminal in real time through the node association relationship, periodically backs up the contents of the transmitted signals, generates a corresponding signal spectrum diagram based on the monitored Bluetooth signals, determines whether there is an abnormality in the signal transmission status of each Bluetooth terminal based on the signal spectrum diagram, generates a signal synchronization instruction when an abnormality exists, and when the signal transmission status of the Bluetooth terminal returns to normal, synchronizes the signal content of the Bluetooth terminal during the abnormal signal period through the signal content backed up by the Bluetooth terminal, thereby avoiding the loss of information content when the Bluetooth terminal signal is abnormal, making the signal transmitted by the Bluetooth terminal more complete and effective, and thus traceable. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative labor. Among them:
[0050] Figure 1 A method flow chart of a signal synchronization method and system based on low-power Bluetooth mesh networking according to an embodiment of the present invention;
[0051] Figure 2 A system schematic diagram of a signal synchronization method and system based on low-power Bluetooth mesh networking according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the above-mentioned purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are described in detail below in conjunction with the drawings of the specification. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary persons in the art without creative work should fall within the scope of protection of the present invention.
[0053] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.
[0054] Secondly, the term "one embodiment" or "embodiment" as used herein refers to a specific feature, structure, or characteristic that may be included in at least one implementation of the present invention. The term "in one embodiment" that appears in different places in this specification does not necessarily refer to the same embodiment, nor does it refer to a separate or selective embodiment that is mutually exclusive with other embodiments.
[0055] The present invention is described in detail with reference to schematic diagrams. When describing the embodiments of the present invention, for the sake of convenience, the cross-sectional diagrams showing the device structure will not be partially enlarged according to the general scale, and the schematic diagrams are only examples, which should not limit the scope of protection of the present invention. In addition, in actual production, the three-dimensional dimensions of length, width and depth should be included.
[0056] At the same time, in the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "upper, lower, inner and outer" are based on the directions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore cannot be understood as limiting the present invention. In addition, the terms "first, second or third" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance.
[0057] In the present invention, unless otherwise clearly specified and limited, the terms "install, connect, connect" should be understood in a broad sense, for example: it can be a fixed connection, a detachable connection or an integral connection; it can also be a mechanical connection, an electrical connection or a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0058] Example 1
[0059] Reference Figure 1-2, is an embodiment of the present invention, which provides a signal synchronization method based on low-power Bluetooth mesh networking, including:
[0060] S1: Based on the node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network, the Bluetooth signal transmitted by each Bluetooth terminal is loaded;
[0061] In the embodiment of the present application, loading the Bluetooth signal transmitted by each Bluetooth terminal includes:
[0062] Obtain the location of each Bluetooth terminal and the signal coverage of the Bluetooth terminal, and build a Bluetooth mesh network based on the Bluetooth terminal location and signal coverage;
[0063] A corresponding node association relationship is set for each Bluetooth terminal in the Bluetooth mesh network, and the Bluetooth signal transmitted by each Bluetooth terminal is loaded according to the set node association relationship; the node association relationship includes a primary node and a secondary node.
[0064] It should be noted that each primary node and secondary node corresponds to a Bluetooth terminal, and each primary node is associated with at least one secondary node, and the existence of an associated primary node and secondary node indicates that there is a node association relationship;
[0065] The Bluetooth terminal corresponding to each master node is labeled as i, where i=1, 2, ..., n, and n is an integer, n>0; the secondary node that has a node association relationship with the master node labeled i is labeled as j, where j=1, 2, ..., m, and m is an integer, m>0.
[0066] In the embodiment of the present application, the Bluetooth terminal corresponding to the secondary node sends a Bluetooth signal to the Bluetooth terminal corresponding to the primary node having a node association relationship with the secondary node in real time, and obtains the sending time of the Bluetooth signal, and generates a corresponding real-time time series according to the sending time of the Bluetooth signal, and the real-time time series consists of continuous time;
[0067] Set a time window and set a corresponding deadline for the time window, where the time window consists of a first time axis and a second time axis;
[0068] Backing up the Bluetooth signal sent by the Bluetooth terminal within the time window, and recording the backed-up Bluetooth signal as a backup signal;
[0069] The Bluetooth terminal corresponding to the master node loads in real time the Bluetooth signals sent by the Bluetooth terminals corresponding to each secondary node and the corresponding real-time time series.
[0070] In an embodiment of the present application, it also includes: when the Bluetooth terminal corresponding to the secondary node starts to send a Bluetooth signal, a first time axis and a second time axis are generated, and the first time axis is fixed at the moment when the Bluetooth terminal starts to send the Bluetooth signal, and the second time axis corresponds to the real time. When the interval between the first time axis and the second time axis is the deadline, the first time axis is updated to the moment of the second time axis and fixed, and so on.
[0071] S2: Processing the loaded Bluetooth signal to obtain a signal spectrum;
[0072] In the embodiment of the present application, processing the loaded Bluetooth signal to obtain a signal spectrum includes:
[0073] Construct a two-dimensional coordinate system of time with respect to the signal spectrum value, where the signal spectrum value is 0 and 1;
[0074] Generate corresponding signal spectrum change curves for the Bluetooth signals loaded by each secondary node that has a node association relationship with the main node, and map each generated signal spectrum change curve into a two-dimensional coordinate system;
[0075] Generate a corresponding real-time time axis in the two-dimensional coordinate system according to the current moment, and intersect the real-time time axis with each signal spectrum change curve to obtain a corresponding signal spectrum diagram;
[0076] The signal spectrum values corresponding to the intersection points of the real-time time axis and each signal spectrum change curve are extracted to obtain the corresponding binary signal spectrum sequence.
[0077] It should be noted that, in the specific implementation process, when the primary node receives the Bluetooth signal transmitted by the secondary node, the corresponding generated signal spectrum value is "1", otherwise it is "0", and the corresponding signal spectrum change curve is obtained according to the generated continuous signal spectrum value.
[0078] S3: Analyze the signal transmission status of each Bluetooth terminal based on the signal spectrum;
[0079] In the embodiment of the present application, analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum includes:
[0080] Set the spectrum sequence threshold;
[0081] Decomposing the obtained binary signal spectrum sequence according to the set spectrum sequence threshold to obtain a plurality of signal spectrum subsequences, and associating the obtained signal spectrum subsequences with Bluetooth terminals corresponding to the signal spectrum values constituting the signal spectrum subsequences;
[0082] It should be noted that the lengths of the signal spectrum subsequences are all the same. If the length of a signal spectrum subsequence is inconsistent with the lengths of other signal spectrum subsequences, the end of the signal spectrum subsequence is complemented.
[0083] Exemplarily, the obtained binary signal spectrum sequence is set to 11111111 11111111 111011;
[0084] Then the obtained binary signal spectrum sequence is decomposed into signal spectrum subsequences of length 8;
[0085] Then the obtained signal spectrum subsequences are 11111111, 11111111, 111011 respectively;
[0086] After performing end complement on the obtained signal spectrum subsequence 111011, the corresponding signal spectrum subsequence 11101111 is obtained.
[0087] In the embodiment of the present application, each signal spectrum subsequence obtained is traversed, and a spectrum sequence value corresponding to each signal spectrum subsequence is obtained;
[0088] It should be further explained that, in a specific implementation process, the spectrum sequence value is obtained by base-based conversion according to each signal spectrum subsequence.
[0089] If the spectrum sequence values corresponding to all signal spectrum subsequences are consistent with the set spectrum sequence threshold, it means that the signal transmission status of each Bluetooth terminal is normal, then when the interval between the second time axis and the first time axis of the time window is the cutoff time, a feedback signal is generated; and the feedback signal is sent to each Bluetooth terminal, and after receiving the feedback signal, the Bluetooth terminal clears the corresponding backup signal in the time window;
[0090] If the spectrum sequence value corresponding to a signal spectrum subsequence is inconsistent with the set spectrum sequence threshold, it means that an abnormality exists in each Bluetooth terminal associated with the signal spectrum subsequence, and the signal spectrum subsequence is marked as an abnormal sequence;
[0091] The signal spectrum values that are 0 in the abnormal sequence are traversed, and the Bluetooth terminals corresponding to the signal spectrum values are marked as signal abnormal Bluetooth terminals, and a signal synchronization instruction is generated.
[0092] S4: If the signal transmission is in an abnormal state, the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state is synchronized.
[0093] In an embodiment of the present application, if the signal transmission is in an abnormal state, the signal synchronization of the signal transmitted by the Bluetooth terminal with abnormal signal transmission state includes: marking the signal spectrum change curve corresponding to the Bluetooth terminal with abnormal signal, and establishing a signal synchronization interval associated with the Bluetooth terminal with abnormal signal in the signal spectrum diagram, the signal synchronization interval includes the interval start time and the interval end time, and the current time is recorded as the interval start time;
[0094] The signal spectrum value of the marked signal spectrum change curve is detected in real time. When the signal spectrum value of the signal spectrum change curve changes from 0 to 1, it is recorded as the interval end time, and a signal synchronization instruction is generated;
[0095] The generated signal synchronization instruction is sent to the Bluetooth terminal with abnormal signal.
[0096] In the embodiment of the present application, it also includes: after the signal abnormal Bluetooth terminal receives the signal synchronization instruction, the Bluetooth signal of the corresponding time period in the backup signal is intercepted according to the interval start time and the interval end time of the signal synchronization interval, and the intercepted Bluetooth signal is recorded as the signal to be synchronized;
[0097] Upload the obtained signal to be synchronized to the Bluetooth terminal corresponding to the corresponding master node;
[0098] The Bluetooth terminal corresponding to the master node generates a corresponding spectrum change curve of the signal to be synchronized according to the received signal to be synchronized;
[0099] The generated spectrum change curve of the signal to be synchronized is mapped to the signal synchronization interval to complete the Bluetooth signal synchronization of the Bluetooth terminal with abnormal signal.
[0100] The above is a schematic scheme of a signal synchronization method based on low-power Bluetooth mesh networking in this embodiment. It should be noted that the technical scheme of the signal synchronization system based on low-power Bluetooth mesh networking and the technical scheme of the signal synchronization method based on low-power Bluetooth mesh networking are of the same concept. For details not described in detail in the technical scheme of the signal synchronization system based on low-power Bluetooth mesh networking in this embodiment, please refer to the description of the technical scheme of the signal synchronization method based on low-power Bluetooth mesh networking.
[0101] In this embodiment, a signal synchronization system based on low-power Bluetooth mesh networking includes:
[0102] The information loading module 100 is used to load the Bluetooth signal transmitted by each Bluetooth terminal based on the node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network;
[0103] The signal processing module 200 is used to process the loaded Bluetooth signal to obtain a signal spectrum;
[0104] A signal analysis module 300, used for analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum;
[0105] The signal synchronization module 400 is used to synchronize the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state if the signal transmission is in an abnormal state.
[0106] In the embodiment of the present application, a control center 500 is also included;
[0107] The control center 500 is communicatively connected with the signal loading module 100, the signal processing module 200, the signal analysis module 300 and the signal synchronization module 400;
[0108] In the embodiment of the present application, the signal processing module 200 is disposed in the Bluetooth terminal corresponding to each master node, and the Bluetooth signal loaded into the Bluetooth terminal corresponding to the master node is processed by the information processing module 200.
[0109] In the embodiment of the present application, the signal analysis module 300 analyzes the signal transmission status of each Bluetooth terminal according to the obtained signal spectrum diagram. If the analysis shows that the Bluetooth terminal is a Bluetooth terminal with abnormal signal, a signal synchronization instruction is generated and uploaded to the signal synchronization module 400.
[0110] This embodiment further provides a computing device, which is applicable to the case of a signal synchronization method based on low-power Bluetooth mesh networking, including:
[0111] A memory and a processor; the memory is used to store computer executable instructions, and the processor is used to execute computer executable instructions to implement the signal synchronization method based on low-power Bluetooth mesh networking as proposed in the above embodiment.
[0112] This embodiment also provides a storage medium on which a computer program is stored. When the program is executed by a processor, the signal synchronization method based on low-power Bluetooth mesh networking proposed in the above embodiment is implemented.
[0113] The storage medium proposed in this embodiment and the signal synchronization method for implementing low-power Bluetooth mesh networking proposed in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0114] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ReadOnly, Memory, ROM), random access memory (RandomAccess Memory, RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform the methods of various embodiments of the present invention.
[0115] Example 2
[0116] Reference Figure 1-2 , which is an embodiment of the present invention. This embodiment is different from the first embodiment in that this embodiment uses 10 nRF52840DK development kits, each of which is programmed to implement the signal synchronization method of the Bluetooth mesh network recorded in Example 1.
[0117] This embodiment is tested in an open space without any obstructions. The nodes are placed on a wooden table 1 meter high to ensure that the transmission range of each node includes other nodes. A partial Mesh network topology is constructed, a four-hop network from a single source to a single sink, providing multiple possible routing paths.
[0118] In this embodiment, the parameters are set as follows: link speed: 2Mbps, data rate: 10 PDUs per second, packet size: 15 bytes, number of packets sent: 100, transmission power: -40dBm, transmission range: approximately 2-2.5 meters, relay: enabled, pre-configuration: enabled, use hard-coded values, packet replication rate: 3 transmissions, 20 milliseconds interval.
[0119] This embodiment evaluates the networking performance through the data packet transmission success rate: calculating the ratio of successfully received data packets to the total sent data packets; and the route request-route reply setup time: the total time from the initiation of the route request to the receipt of the route reply.
[0120] Test steps:
[0121] Initialize the network, configure all nodes to join the Mesh network, and ensure the role of each node (such as relay node, proxy node, etc.).
[0122] Send 100 data packets from the source node to the sink node and record the transmission status of each data packet.
[0123] Experimental data is collected by connecting to the serial port of each node.
[0124] Calculate the packet transmission success rate and route request-route reply setup time to analyze network stability and transmission efficiency.
[0125] Test results:
[0126] The packet transmission success rate is calculated based on the number of packets received and the total number of packets sent. The average packet transmission success rate is above 99% after testing. The time from the initiation of the routing request to the receipt of the routing reply is recorded and analyzed to evaluate the network response speed. After testing, the average delay is less than 90 milliseconds and the maximum delay is less than 0.5 seconds.
[0127] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solutions of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical solutions of the present invention, which should all be included in the scope of the claims of the present invention.
Claims
1. A signal synchronization method based on low-power Bluetooth mesh networking, characterized in that: include: Based on the node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network, the Bluetooth signal transmitted by each Bluetooth terminal is loaded; Processing the loaded Bluetooth signal to obtain a signal spectrum; Analyze the signal transmission status of each Bluetooth terminal based on the signal spectrum; If the signal transmission is in an abnormal state, the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state is synchronized.
2. The signal synchronization method based on low-power Bluetooth mesh networking according to claim 1, characterized in that: Loading the Bluetooth signals transmitted by each Bluetooth terminal includes: Obtain the location of each Bluetooth terminal and the signal coverage of the Bluetooth terminal, and build a Bluetooth mesh network based on the Bluetooth terminal location and signal coverage; Setting corresponding node association relationships for each Bluetooth terminal in the Bluetooth mesh network, and loading Bluetooth signals transmitted by each Bluetooth terminal according to the set node association relationships; the node association relationships include primary nodes and secondary nodes; The Bluetooth terminal corresponding to the secondary node sends a Bluetooth signal to the Bluetooth terminal corresponding to the primary node that has a node association relationship with the secondary node in real time, obtains the sending time of the Bluetooth signal, and generates a corresponding real-time time series according to the sending time of the Bluetooth signal, wherein the real-time time series consists of continuous time; Setting a time window and setting a corresponding deadline for the time window, wherein the time window is composed of a first time axis and a second time axis; Backing up the Bluetooth signal sent by the Bluetooth terminal within the time window, and recording the backed-up Bluetooth signal as a backup signal; The Bluetooth terminal corresponding to the master node loads in real time the Bluetooth signals sent by the Bluetooth terminals corresponding to each secondary node and the corresponding real-time time series.
3. The signal synchronization method based on low-power Bluetooth mesh networking as claimed in claim 2, characterized in that: Also includes: When the Bluetooth terminal corresponding to the secondary node starts to send Bluetooth signals, the first time axis and the second time axis are generated, and the first time axis is fixed at the moment when the Bluetooth terminal starts to send Bluetooth signals. The second time axis corresponds to the real time. When the interval between the first time axis and the second time axis is the deadline, the first time axis is updated to the moment of the second time axis and fixed.
4. The signal synchronization method based on low-power Bluetooth mesh networking as claimed in claim 3, characterized in that: Processing the loaded Bluetooth signal to obtain a signal spectrum includes: Constructing a two-dimensional coordinate system of time with respect to signal spectrum values, wherein the signal spectrum values are 0 and 1; Generate corresponding signal spectrum change curves for the Bluetooth signals loaded by each secondary node that has a node association relationship with the main node, and map each generated signal spectrum change curve into a two-dimensional coordinate system; Generate a corresponding real-time time axis in a two-dimensional coordinate system according to the current moment, the real-time time axis intersects with each signal spectrum change curve to obtain a corresponding signal spectrum diagram; The signal spectrum values corresponding to the intersection points of the real-time time axis and each signal spectrum change curve are extracted to obtain the corresponding binary signal spectrum sequence.
5. The signal synchronization method based on low-power Bluetooth mesh networking as claimed in claim 4, characterized in that: Analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum includes: Set the spectrum sequence threshold; Decomposing the obtained binary signal spectrum sequence according to the set spectrum sequence threshold to obtain a plurality of signal spectrum subsequences, and associating the obtained signal spectrum subsequences with Bluetooth terminals corresponding to the signal spectrum values constituting the signal spectrum subsequences; Traversing each obtained signal spectrum subsequence, and obtaining a spectrum sequence value corresponding to each signal spectrum subsequence; If the spectrum sequence values corresponding to all signal spectrum subsequences are consistent with the set spectrum sequence threshold, it means that the signal transmission status of each Bluetooth terminal is normal, and when the interval between the second time axis and the first time axis of the time window is the cutoff time, a feedback signal is generated; If the spectrum sequence value corresponding to a signal spectrum subsequence is inconsistent with the set spectrum sequence threshold, it means that an abnormality exists in each Bluetooth terminal associated with the signal spectrum subsequence, and the signal spectrum subsequence is marked as an abnormal sequence; The signal spectrum values that are 0 in the abnormal sequence are traversed, and the Bluetooth terminals corresponding to the signal spectrum values are marked as signal-abnormal Bluetooth terminals, and a signal synchronization instruction is generated.
6. The signal synchronization method based on low-power Bluetooth mesh networking according to claim 5, characterized in that: If the signal transmission is in an abnormal state, the signal synchronization of the signal transmitted by the Bluetooth terminal with abnormal signal transmission state includes: marking the signal spectrum change curve corresponding to the Bluetooth terminal with abnormal signal, and establishing a signal synchronization interval associated with the Bluetooth terminal with abnormal signal in the signal spectrum diagram, wherein the signal synchronization interval includes an interval start time and an interval end time, and the current time is recorded as the interval start time; The signal spectrum value of the marked signal spectrum change curve is detected in real time. When the signal spectrum value of the signal spectrum change curve changes from 0 to 1, it is recorded as the interval end time, and a signal synchronization instruction is generated; The generated signal synchronization instruction is sent to the Bluetooth terminal with abnormal signal.
7. The signal synchronization method based on low-power Bluetooth mesh networking according to claim 6, characterized in that: Also includes: After receiving the signal synchronization instruction, the signal abnormal Bluetooth terminal intercepts the Bluetooth signal of the corresponding time period in the backup signal according to the interval start time and interval end time of the signal synchronization interval, and records the intercepted Bluetooth signal as the signal to be synchronized; Upload the obtained signal to be synchronized to the Bluetooth terminal corresponding to the corresponding master node; The Bluetooth terminal corresponding to the master node generates a corresponding spectrum change curve of the signal to be synchronized according to the received signal to be synchronized; The generated spectrum change curve of the signal to be synchronized is mapped to the signal synchronization interval to complete the Bluetooth signal synchronization of the Bluetooth terminal with abnormal signal.
8. A signal synchronization system based on low-power Bluetooth mesh networking, characterized in that: include: An information loading module, used to load the Bluetooth signals transmitted by each Bluetooth terminal based on the node association relationship corresponding to each Bluetooth terminal in the Bluetooth mesh network; A signal processing module, used for processing the loaded Bluetooth signal to obtain a signal spectrum; A signal analysis module, used for analyzing the signal transmission status of each Bluetooth terminal based on the signal spectrum; The signal synchronization module is used to synchronize the signal transmitted by the Bluetooth terminal in the abnormal signal transmission state if the signal transmission is in an abnormal state.
9. An electronic device, comprising: Memory and processor; The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the signal synchronization method based on low-power Bluetooth mesh networking according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the signal synchronization method based on low-power Bluetooth mesh networking as described in any one of claims 1 to 7.