CN111511013A - Method, electronic device, and computer storage medium for synchronizing control signals - Google Patents

Method, electronic device, and computer storage medium for synchronizing control signals Download PDF

Info

Publication number
CN111511013A
CN111511013A CN202010231439.0A CN202010231439A CN111511013A CN 111511013 A CN111511013 A CN 111511013A CN 202010231439 A CN202010231439 A CN 202010231439A CN 111511013 A CN111511013 A CN 111511013A
Authority
CN
China
Prior art keywords
broadcast
control signal
broadcast message
duration
delay
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010231439.0A
Other languages
Chinese (zh)
Other versions
CN111511013B (en
Inventor
邓毅赟
王治平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tongrui Technology Co.,Ltd.
Original Assignee
Peach Core Technology Suzhou Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Peach Core Technology Suzhou Co ltd filed Critical Peach Core Technology Suzhou Co ltd
Priority to CN202010231439.0A priority Critical patent/CN111511013B/en
Publication of CN111511013A publication Critical patent/CN111511013A/en
Application granted granted Critical
Publication of CN111511013B publication Critical patent/CN111511013B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/004Synchronisation arrangements compensating for timing error of reception due to propagation delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Landscapes

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

Abstract

The invention belongs to the technical field of network communication, and aims to solve the technical problem that in the existing network communication mode, a plurality of nodes have inconsistent response time in the process of executing a control command; the present invention provides a method, an electronic device and a computer storage medium for synchronizing control signals, the method comprising: receiving a first broadcast message including a control signal and a first delay duration Δ T1, the first broadcast message indicating that the control signal is executed after the first delay duration Δ T1; starting a first timer with a timing duration of the first delay duration Δ T1; and when the first timer exceeds a threshold value, executing the operation corresponding to the control signal. Therefore, the plurality of nodes can delay for a period of time and start the control signals simultaneously according to requirements.

Description

Method, electronic device, and computer storage medium for synchronizing control signals
Technical Field
The present invention relates to the field of network communication technologies, and in particular, to a method, a signal transmission terminal, and a networking system for synchronizing control signals.
Background
The Mesh network, i.e. a "wireless Mesh network", is a "multi-hop" (multi-hop) network, and the wireless Mesh network can cooperatively communicate with other networks, and is a dynamic and continuously expandable network architecture, and any two devices can maintain wireless interconnection. The Bluetooth (registered trademark) Mesh in the wireless Mesh technology can meet the requirement of the Mesh node on ad hoc network, and can send the service command of the Mesh model to a specific node through the network structure of the Mesh network through the broadcast mechanism of the Bluetooth (registered trademark) 4.0, so that the command sending in a longer distance is realized. Meanwhile, the Mesh network can send the broadcast data to a plurality of nodes with the same anchor address at one time in a group address mode, and the function that one piece of broadcast data controls a plurality of nodes is realized.
A typical application scenario is as follows:
1. a plurality of Mesh nodes belong to the same group address, and the nodes support the basic function of Mesh light; 2. a Mesh client is provided, which can control the Mesh nodes and can initiate Mesh light service; 3. the Mesh client initiates a command for simultaneously opening or closing light to a plurality of Mesh node nodes. The human eye is typically sensitive to flicker at frequencies below 10 mhz, i.e. if the individual lamp nodes receive commands for more than 100ms, the change in each lamp is perceived by the human eye as asynchronous.
To solve this problem of asynchronism, solutions that may occur to those skilled in the art include:
a: according to the functions which can be provided by the current Bluetooth organization, the broadcast parameters are adjusted, the frequency of the broadcast parameters can be adjusted to be small, for example, the broadcast frequency is once in 20ms, each node can receive broadcast information in 5 broadcasts as far as possible, and therefore the synchronization of command change can be ensured within the delay range of 100 ms. However, even if each node ideally can monitor the broadcast packet within 100ms, if the system is not awake in time or the system is doing some other actions, which delays the time span, it is likely that the actions of the nodes are inconsistent.
B: according to the specification definition of the Mesh, a status transition function (refer to the protocol Mesh profile:3.7.6.1.1status transition) can be provided, so that a specific operation can be executed within a specified time after a user receives a command, but the implementation mode is complex, the problem of time synchronization of multiple Mesh nodes is not completely solved because the combination with the underlying broadcast period is not considered, and the status transition cannot send a synchronization message to a long-distance node because the combination with the function of the relay is not considered.
It should be noted that the various technical solutions described above are only explained for facilitating the understanding of the present invention by those skilled in the art; the various solutions described above are not all prior art.
Disclosure of Invention
The technical problem that response time is inconsistent in the process of executing a control command by a plurality of nodes in the existing network communication mode is solved; the invention provides a method, electronic equipment and computer storage medium for synchronizing control signals, which enable a plurality of nodes to simultaneously start the control signals after delaying for a period of time according to requirements by adding time information of delayed start in broadcast signals sent by a sending end.
In order to achieve the above object, the technical solution provided by the present invention comprises:
a first aspect of the present invention provides a method for synchronizing control signals in a networking system, which is applied to nodes in the networking system, and is characterized in that the method includes:
receiving a first broadcast message including a control signal and a first delay duration Δ T1, the first broadcast message indicating that the control signal is executed after the first delay duration Δ T1;
starting a first timer with a timing duration of the first delay duration Δ T1;
and when the first timer exceeds a threshold value, executing the operation corresponding to the control signal.
In a preferred implementation manner of the embodiment of the present invention, when the node is a first node having a relay function, after receiving the first broadcast message, the method further includes: closing a scanning function or a broadcast operation associated with a non-timing duration of the first node; and transmitting a second broadcast message with the control signal and a second delay duration at 2, the second broadcast message indicating that the control signal is executed after the delay duration at 2; the Δ T1- Δ T2 is T2-T1, the T1 is a transmission time corresponding to a first broadcast message, and the T2 is a transmission time corresponding to a second broadcast message.
In a preferred implementation manner of the embodiment of the present invention, after receiving the first broadcast message, the method further includes: receiving a third broadcast message comprising the control signal and a third delay duration Δ T3, the third broadcast message being sent from a different node than the first broadcast message and indicating that the control signal is executed after the third delay duration Δ T3; determining a minimum value between the remaining duration of the first timer and a third delay duration at 3, and resetting the timing duration of the first timer to the minimum value.
In a preferred implementation manner of the embodiment of the present invention, when the node receives the first broadcast message and a third broadcast including the control signal and a third delay duration Δ T3, respectively, a first delay duration Δ T1 corresponding to the first broadcast message and a third delay duration Δ T3 corresponding to the third broadcast are parsed, a minimum value between the first delay duration Δ T1 and the third delay duration Δ T3 is determined, and a timing duration of the first timer is set to the minimum value.
In a preferred implementation manner of the embodiment of the present invention, when the first timer exceeds a threshold, the executing the operation corresponding to the control signal specifically includes: setting a target execution time equal to the current time of the networking system plus the first delay time delta T1, and executing the operation corresponding to the control signal when the time of the networking system reaches the target execution time.
In a preferred implementation manner of the embodiment of the present invention, the broadcast message is based on a broadcast mechanism of a bluetooth standard, and a new custom message type is added in a broadcast transmission protocol, where the new custom message type includes an operation code, an operation word, and an operation content for identifying a delay time; the nodes are nodes in a Mesh networking system, and the nodes can identify operation codes corresponding to the types of the newly added custom messages and execute corresponding delay operation according to operation words and operation contents.
Another aspect of the present invention further provides a method for synchronizing control signals in a networking system, which is applied to a transmitting end in the networking system, and includes:
periodically transmitting a fourth broadcast message including a control signal and a fourth delay period Δ T4, the fourth broadcast message indicating that the control signal is executed after the fourth delay period Δ T4,
wherein the fourth broadcast message has a transmission period of S and is transmitted N times, and in the fourth broadcast message transmitted in the nth transmission period, the fourth delay time period Δ T4 ═ (N-1)) × S, N and N are positive integers greater than 1, 1< N < ═ N, and 2< ═ N.
In a preferred implementation manner of the embodiment of the present invention, an interval duration for sending the fourth broadcast message is Ta, a period duration corresponding to a broadcast frequency of the sending end is Tb, and Ta > Tb.
The third aspect of the present invention also provides an electronic device, including:
one or more processors and memory;
a plurality of application programs;
and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when executed by the electronic device, cause the electronic device to implement the method of any one of the first aspects, or the method of any one of the second aspects.
The fourth aspect of the present invention also provides a computer storage medium, which is characterized in that the computer readable storage medium comprises a computer program, which, when run on an electronic device, causes the electronic device to perform the method according to any one of the first aspect, or the method according to any one of the second aspect.
By adopting the technical scheme provided by the application, when a broadcast including a control signal is transmitted, delta T1 associated with the control signal is carried at the same time, so that even if the time for receiving the broadcast including the control signal by different nodes is different, the corresponding operation of the control signal can be uniformly executed at a desired time based on respective delay time lengths, and the broadcast with the control signal is transmitted for a plurality of times (periodically), the delay time length delta T1 carried in the nth broadcast is (N- (N-1)) × S, so that no matter which node receives the broadcast, the corresponding operation of the control signal can be executed after a preset delay time length according to requirements, for example, the node which receives the broadcast for the first time starts the control signal after the time length of N × S, the node which receives the broadcast for the second time is (N-1) × S + S (the time length of the broadcast for the first time), the time length from which the control signal is transmitted at the beginning is also N × S, other nodes are similar, so that all nodes receiving the broadcast can be enabled to simultaneously start the control signal, and keep the control signal as a sleep signal transmission time length of a control signal after the first broadcast is started, and the relay node for a relay node which is enabled, the relay node which is enabled after the first broadcast for the relay node 2, the relay node which is enabled, the relay node can be enabled, thus the relay node can be enabled, the relay node can be enabled after the relay node can be enabled, the relay node can be enabled after the relay node can be enabled, the relay node can be enabled after the relay node can be enabled, the relay node can be enabled after.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure and/or process particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
Fig. 1 is a flowchart of a method for synchronizing control signals at a transmitting end in a networking system according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for nodes to synchronize control signals in a networking system according to an embodiment of the present invention.
Fig. 3 is a flowchart of a method for synchronizing control signals in a networking system according to a second embodiment of the present invention.
Fig. 4 is a schematic diagram of a networking system according to a third embodiment of the present invention.
Fig. 5 is a schematic diagram of another networking system according to a third embodiment of the present invention.
Fig. 6 is a block diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that the detailed description is only for the purpose of making the invention easier and clearer for those skilled in the art, and is not intended to be a limiting explanation of the invention; moreover, as long as there is no conflict, the embodiments and the features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are all within the scope of the present invention.
Additionally, the steps illustrated in the flow charts of the drawings may be performed in a control system such as a set of controller-executable instructions and, although a logical ordering is illustrated in the flow charts, in some cases, the steps illustrated or described may be performed in an order different than that illustrated herein.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that although the terms first, second, third, fourth, etc. may be used to describe the delay time durations, nodes, etc. in embodiments of the present invention, these delay time durations, nodes, etc. should not be limited to these terms. These terms are only used to distinguish one node from another, and the like. For example, a first node may also be referred to as a second node, and similarly, a second node may also be referred to as a first node, without departing from the scope of embodiments of the present invention; the names of the first delay time, the second delay time, the third delay time and the fourth delay time can be replaced.
The invention aims to solve the problem that a plurality of receiving nodes cannot synchronously process control signals sent by a signal sending source in the network transmission process; and a time field carrying delay processing in the control signal is provided, so that the receiving node can uniformly process the corresponding operation of the control signal after delaying for a predetermined time. The following preferred embodiment is applied to a Mesh standard network system, and the problem of asynchronism of receiving broadcast data is solved through the service logic defined by the Mesh standard; however, it should be noted that the present invention is not limited to the Mesh network protocol, and the technical solution provided by the present invention may also be adopted for other scenarios requiring synchronous processing of control signals by each node in the networking system.
The technical scheme of the invention is described in detail by the figures and the specific embodiments as follows:
example one
The embodiment provides a method for synchronizing control signals, which is applied to a networking system, where the networking system includes a sending end (the sending end may be an intelligent device, such as a smart phone, a tablet computer, or a server or a remote controller), and a plurality of nodes to be controlled, where the nodes may receive the control signals sent by the sending end and execute operations corresponding to the control signals. In this embodiment, different entities, such as a sending end and a node, are combined to respectively describe the corresponding methods for synchronizing the control signals; these different execution entities, in combination, may correspond to a method for synchronizing control signals throughout a networking system.
As shown in fig. 1, this embodiment provides a method for synchronizing control signals in a networking system, which is applied to a transmitting end in the networking system, and the method includes:
s110, periodically transmitting a broadcast message including the control signal and the delay time duration Δ T, the broadcast message for instructing the control signal to be executed after the fourth delay time duration Δ T,
wherein the transmission cycle of the broadcast message is S and is transmitted N times, in the broadcast message transmitted in the nth transmission cycle, the delay time period Δ T is (N-1)) × S, N and N are positive integers greater than 1, 1< N < ═ N, and 2< ═ N.
Specifically, assuming that the current time is C and a future time point is F, it is assumed that the networking system needs to require those Mesh nodes specified at the time point F to perform the same operation, and the transmission interval of the Mesh client broadcast is S milliseconds. And (3) advancing a delay time duration delta T1, for example, 1s, and the Mesh client hopes that all the designated nodes do the same operation according to the Mesh operation code after the Mesh client is away from the current delta T1 time span. In actual practice, the delay time duration Δ T1 may be an integer multiple of the client broadcast interval.
The method comprises the steps that different description sequences are combined to distinguish broadcast signals and delay time lengths sent by other sending ends or nodes; for example, the broadcast signal sent by the sending end in this embodiment may be referred to as a fourth broadcast signal, and the delay time duration is a fourth delay time duration Δ T4.
However, for broadcast signals of different execution entities, the delay time duration may be according to different scenarios, for example, when the broadcast sent by the sending end is the same as the broadcast received by the receiving segment, no matter whether the broadcast is the first, second, third or fourth defined in the foregoing, the two are the same broadcast, and the corresponding delay time durations are also the same; in different embodiments, they may be set to be the same or different; for example, a broadcast sent by a sending end is received by other nodes and then forwarded, although both broadcasts can resolve the control signal, in order to distinguish different delay durations, different sequence numbers may be used for limiting the broadcasts, so that those skilled in the art can understand the broadcasts more easily.
In a preferred embodiment of this embodiment, the interval duration for the sending end to send the broadcast message is Ta, the period duration corresponding to the broadcast frequency of the sending end is Tb, and Ta > Tb. For example, when the networking system in this embodiment is a Mesh system, a Mesh client (applied to a sending end in the Mesh networking) considers that the number of times of changing broadcast data is reduced and the time overhead inside the system is reduced according to a current broadcast period, the sending end starts a timer, and the timer starts a specific duration (for example, referred to as duration) which is greater than a frequency corresponding to a clock signal in the networking system, for example, the specific duration may be 2 times of a bluetooth broadcast period.
As shown in fig. 2, this embodiment further provides a method for synchronizing control signals in a networking system, which is applied to nodes in the networking system, and the method includes:
s212, receiving a first broadcast message including the control signal and a first delay time duration Δ T1, the first broadcast message indicating that the control signal is executed after the first delay time duration Δ T1;
s214, starting a first timer with the timing duration being a first delay duration delta T1;
and S216, when the first timer exceeds the threshold value, executing the operation corresponding to the control signal.
The first timer may count up from 0, so that the threshold may be a time duration corresponding to Δ T1, so that when the first timer reaches Δ T1 from the start, the operation corresponding to the control signal is started. However, the threshold may be other values, such as Δ T1-T1 or Δ T1+ T1(T1 may be 0 or other customized values), and these different embodiments are within the scope of the present invention. The first timer may also be a countdown from a preset value, such as Δ T1-T1 or Δ T1+ T1(T1 may be 0 or other custom value), such that the threshold may be 0 or other self-defined value. For the accumulation mode, the "exceeding threshold" means that the accumulated time is greater than the threshold, and for the countdown mode, the "exceeding threshold" means that the remaining time is less than the threshold.
It should be noted that the first timer may be directly implemented by an actual timer, and may also be implemented by a unit equivalent to a timing function, for example, implemented by a target execution time. For example, in a preferred implementation manner of this embodiment, when the first timer exceeds the threshold, the executing the operation corresponding to the control signal specifically includes: and setting the target execution time to be equal to the current time of the networking system plus the first delay time delta T1, and executing the operation corresponding to the control signal when the time of the networking system reaches the target execution time.
In a preferred embodiment of this embodiment, the broadcast message is based on a broadcast mechanism of a bluetooth standard, and a user-defined message type is newly added in a broadcast transmission protocol, where the newly added user-defined message type includes an operation code, an operation word, and an operation content for identifying a delay time; the nodes are nodes in the Mesh networking system, and the nodes can identify operation codes corresponding to the types of the newly added custom messages and execute corresponding delay operation according to operation words and operation contents.
Specifically, taking a platform of B L E Mesh as an example, a Mesh client writes a time point of initiating an execution command as a parameter through an operation code defined by a vendor model, the parameter of the time point is set to be Delta T1 for the first time, and after receiving the operation code, the time span of Delta T1 is delayed to execute the action defined by the operation code.
In the technical solution provided in this embodiment, the operation code may be Mesh light, but is not limited thereto, and the specific execution operation may be determined by combining a specific application scenario. And the aforementioned reference to Δ T1 characterizing the control signal in the first broadcast being executed after the delay period Δ T1 may be understood as: the control signal sent by the sending source (Mesh client) makes the receiving node directly execute the operation code after the delta T1, or the node can execute the operation code after the preset condition meets the requirement according to the communication requirement between the realization node and the sending source (Mesh client) and the preset condition after the delta T1.
Example two
In this embodiment, on the basis of the first embodiment, the first node with the relay function is further provided in the networking system. Considering that the distance between each node of the Mesh network is larger, a relay (relay) node is needed in the middle to retransmit data, and for the node which receives the Mesh command firstly and has the relay function, the scanning function or the broadcast operation associated with non-timing duration can be closed, no broadcast is received any more, the role of the Mesh is taken over, a new relay time is calculated according to the current time and the synchronization time point, and the vdn _ set command is reinitiated, so that the nodes at farther distance can be synchronized. Specifically, the method comprises the following steps:
as shown in fig. 3, the present embodiment further provides a control signal synchronization method in a networking system, which is applied to a first node in the networking system, where a transmission source in the networking system executes the foregoing S110, and when a node is a first node having a relay function, after receiving a first broadcast message, the method further includes, before executing S212, S214, and S216, in addition to executing the foregoing S212, S214, and S216:
s112, closing the scanning function of the first node or the broadcast operation associated with the non-timing duration; and transmitting a second broadcast message with the control signal and a second delay duration Δ T2, the second broadcast message for indicating that the control signal is executed after the delay duration Δ T2; the Δ T1- Δ T2 is T2-T1, T1 is a transmission time corresponding to the first broadcast message, and T2 is a transmission time corresponding to the second broadcast message.
It should be noted that, here, T1 may be a broadcast transmission time stamp carried in the first broadcast, and T2 may be a broadcast transmission time stamp carried in the second broadcast; or at least one clock source provided by using a networking system; the present embodiment is not particularly limited thereto.
In a preferred implementation manner of this embodiment, the node, regardless of whether it is the first node with the relay function or another node without the relay function, may receive different broadcasts at the same time, for example, broadcasts with different delay durations sent by a sending source in different broadcast periods, or broadcasts with different delay durations sent by a sending source and a first node, respectively.
After receiving the first broadcast message, the method further includes: receiving a third broadcast message including the control signal and a third delay duration Δ T3, the third broadcast message being sent from a different node than the first broadcast message and indicating that the control signal is executed after the third delay duration Δ T3; a minimum value between the remaining duration of the first timer and the third delay duration at 3 is determined and the timing duration of the first timer is reset to the minimum value.
After receiving the first broadcast message, the method may further include: when the node receives the first broadcast message and a third broadcast including a control signal and a third delay duration Δ T3, respectively, the node parses a first delay duration Δ T1 corresponding to the first broadcast message and a third delay duration Δ T3 corresponding to the third broadcast, determines a minimum value between the first delay duration Δ T1 and the third delay duration Δ T3, and sets a timing duration of the first timer to the minimum value.
In a preferred implementation manner of this embodiment, a difference corresponding to an error range between clock sources in each node receiving the broadcast signal is smaller than S. In addition, in order to ensure that the control signal can be well executed, the addition of an agreed condition in a communication protocol between the Mesh client and the Mesh node can be realized: the Mesh node must start the sequential broadcast interception within the broadcast period less than or equal to N times, and even if other tasks are executed, the Mesh node needs to pause and execute the action of the broadcast interception. In a preferred embodiment, in order to make the control signal better received by other nodes, the sleep wake-up signal may be carried in the broadcast including the control signal, so that different nodes can better and effectively perform operations corresponding to the control signal.
In a further preferred embodiment, different nodes may be further divided into regions, and broadcast addresses corresponding to different regions are different, and first delay time Δ T1 carried in different broadcast addresses is also different, so that, in combination with the above embodiment, operations of executing the control signal in a delayed manner are separately implemented for nodes in different regions, for example, a large display screen may dynamically display image information to be displayed at different times according to requirements.
In another preferred embodiment, before sending a broadcast carrying a control signal, a control operation of a clock signal in the unified networking system may be sent, for example, a broadcast including an instruction of the clock signal and a predicted delay time a is sent, so that all nodes operate similarly according to the above-mentioned procedures, and after a predetermined time a, update their own clocks uniformly according to the instruction of the clock signal in the broadcast; and then, the broadcast corresponding to the step-mentioned control operation is executed. Therefore, the clock signal uniformity of the whole system can be further improved, and each node in the networking system can more uniformly execute the operation corresponding to the control signal.
EXAMPLE III
As shown in fig. 4, a networking system according to an embodiment includes a signal transmission terminal for transmitting a signal and at least one signal transmission terminal for receiving a signal. More specifically, the signal transmission terminal receiving the signal may be an intelligent terminal with a bluetooth function, and the other signal transmission terminals may be controlled devices, such as an electronic screen with a bluetooth function; therefore, the intelligent terminal can respectively send the control signals for lighting or extinguishing the light to the modules needing to be lighted in each electronic screen, and the control signals can be ensured to be simultaneously executed. The device can also be an intelligent terminal with a Bluetooth function, and other signal transmission terminals can be controlled devices, such as a projection screen with the Bluetooth function or a laser generator; by adopting the technical scheme provided by the embodiment, the control signals can be ensured to be executed simultaneously.
The first client 110 in the signal transmission terminal that transmits the signal includes:
a first broadcast signal generation section 112 for generating a first broadcast (which corresponds to the above-mentioned embodiment and may also be referred to as a fourth broadcast; this embodiment is referred to as a first broadcast, and is distinguished for the sake of the following and the following description that a relay function node generates a broadcast), the first broadcast carrying a delay time period, the delay time period characterizing that the control signal in the first broadcast is executed after the delay time period;
a first broadcast signal transmitting section 114 for transmitting a first broadcast.
The signal transmission terminal receiving the signal includes a node 210 including:
a broadcast signal receiving section 212 for receiving a first broadcast including a control signal and a delay time period associated with the control signal;
a broadcast signal analyzing section 216 configured to acquire a control signal in the first broadcast and a delay time associated with the control signal;
and the broadcast signal executing part 218 is configured to execute an operation corresponding to the control signal when the delay time duration meets a preset requirement.
As shown in fig. 5, a networking system according to an embodiment includes a signal transmission terminal for transmitting a signal and at least one signal transmission terminal for receiving a signal, and further includes a first node having a relay function.
The first node 120 includes:
a first broadcast signal receiving section 126 configured to turn off a scanning function of the first node or a broadcast operation associated with a non-timing duration when the first broadcast is received;
the second broadcast signal generating unit 122 (some of the above embodiments are also referred to as a third broadcast) analyzes the control signal and the predetermined time in the first broadcast signal, which are analyzed by the first broadcast signal receiving unit 126, and regenerates the second broadcast signal.
A broadcast signal transmitting part 124, configured to transmit a second broadcast with a control signal, where the second broadcast carries a delay time Δ T2, and Δ T2 indicates that the control signal in the second broadcast is executed after the delay time Δ T2; the transmission time of the first broadcast is T1- Δ T2 ═ T2-T1, T1 is the corresponding transmission time in the first broadcast, and T2 is the corresponding transmission time in the second broadcast.
In order to make the technical solution in this embodiment easier to understand, a Mesh standard network system is taken as an example for description: by taking the principle of status transition of Mesh as a reference, the invention can set two parameters, namely, remaining time and target time, (the target time is current time + remaining time) so that the Mesh node (node) receiving the broadcast can calculate the time point of future command execution by the current system time.
In order to distinguish the existing model functions of the Mesh, a vendor model is redefined here, and the following operation code may be defined in the vendor model, where the operation code of the vendor model occupies 3 bytes according to the Mesh protocol specification, which is specifically shown in table 1 below:
operation code Operation word Content of operation
0x0C3401 Vdn_set Setting remaining time
0x0C3402 Vdn_ack Returning timing
TABLE 1 vendor model operation code
According to the current broadcast period, the Mesh client considers that the number of times of changing broadcast data is reduced, the time overhead in the system is reduced, a client end (a sending source for sending the broadcast, hereinafter also referred to as a client) starts a timer period, and the duration can be 2 times of the Bluetooth broadcast period. And the delay time and the control signal corresponding to the above vendor model are both placed in the data part of the bluetooth broadcast packet.
More specifically, the Mesh client initiates vdn _ set operation, sets remaining time to 1s (i.e. the first time Δ T1 ═ 1s), and this operation is finally sent out by broadcast. While Mesh client starts a periodic timer, defined as 100ms, which theoretically requires 9 operations of vdn _ set.
Every time the timer times out, remaining time is set to last remaining time-100ms (namely, Δ T1 is set to (N-1)) × S hereinafter), vdn _ set operation is continuously initiated, and updated remaining time is broadcasted.
And (5) after the time of 1s, stopping the operation of setting vdn _ set by the Mesh client, and recovering the normal state of the Mesh client.
In order to make the technical solution in this embodiment easier to understand, taking a Mesh standard network system as an example for explanation, the node operation of receiving vdn _ set includes:
1. after receiving vdn _ set operation, according to the time of extracting remaining time, the operation code can be started in advance, if the node has the relay function, the broadcast receiving function can be closed.
2. As a functional extension, after receiving the vdn _ set command, the Mesh node may consider replying vdn _ ack to the Mesh client. Of course, this message may not be replied to if it is to take system performance into account.
3. If vdn _ set command is received, the node has the function of relay, so that the time left until the target time can be recalculated, the vdn _ set command content is reset to a new relay time, and the new relay time is broadcasted again. Thus, synchronization of long-distance nodes can be realized.
4. If nodes at a larger distance are synchronized, the relay node also generates a new vdn _ set command, so that some nodes may receive a plurality of vdn _ set commands for the first time, and at this time, the value with the minimum min (remaining time1, remaining time2 …) can be taken as the time point of the final synchronization of the node, and then the internal timer is started by using the value to wait for the execution of the synchronization command.
5. When the target time arrives, all the nodes execute synchronous operation, and all the nodes recover to a normal state. The synchronization process ends.
Taking the aforementioned remaining time set to 1s, the periodic time set to 100ms, and the broadcast period controlled within 50ms as an example; the time delay of the whole Mesh receiving node can be controlled within 2 times of the broadcasting period, so that the synchronization difference of all the nodes can not exceed 100ms finally. By 1s of advance, roughly 10 different broadcast packets can be sent out, and there is enough time for all nodes to synchronize. In the implementation process, the frame design of the Mesh itself needs to perform encryption and decryption operations on the data packet, and the operations can be realized by hardware, so that the time delay inside the system is reduced as much as possible.
Therefore, with the above technical solution provided by this embodiment, when a broadcast including a control signal is transmitted, Δ T1 associated with the control signal is carried at the same time, and the broadcast with the control signal is also transmitted multiple times, a delay time Δ T1 carried in an nth broadcast is (N-1)) × S, so that no matter which node receives the broadcast, an operation corresponding to the control signal can be performed after a predetermined delay time period as required, for example, a node received in a first broadcast starts a control signal after a time period of N × S, a node receiving the broadcast for the second time is (N-1) × S + S (a time period from the first broadcast for the second broadcast), a time period from the start of transmitting the control signal is also N × S, other nodes are similar, so that all nodes receiving the broadcast can start the control signal at the same time as required, all nodes can light simultaneously with the control signal as Mesh, some nodes may be in a sleep state or perform other actions in a sleep state, but all nodes can keep the same timing of the same time period as a relay node receiving the broadcast signal after the broadcast signal is received by a relay function of a relay node T-9S, and the relay node is capable of performing a relay function of performing a relay broadcast after a subsequent broadcast, so that the relay time period of a relay broadcast is maintained as a relay time period of a relay time interval corresponding to a relay time interval of a relay node corresponding to a (T) of a relay node 19S).
Example four
As shown in fig. 6, the present embodiment provides an electronic device 400, including:
one or more processors 410 and memory 420;
a plurality of application programs;
a power supply 430 supplying power to the processor 410 and the memory 420, and a peripheral circuit 440 corresponding to the power supply 430 and a specific execution operation;
and one or more computer programs, wherein the one or more computer programs are stored in the memory, and when executed by the electronic device, cause the electronic device to implement the method as in any one of the embodiments. When the electronic device 400 is executed to transmit a signal, the electronic device 400 plays a role of a signal transmitting end; when the electronic device 400 is executed to receive a signal, the electronic device 400 plays a role of a signal receiving terminal; when the networking system function needs to be executed, a plurality of electronic devices are required to respectively execute the role of sending signals and the role of receiving signals.
The present embodiment also provides a computer storage medium, wherein the computer-readable storage medium includes a computer program, which, when run on an electronic device, causes the electronic device to perform any one of the methods as provided in the first embodiment.
Those of ordinary skill in the art will understand that: the above-described method according to an embodiment of the present invention may be implemented in hardware, firmware, or as software or computer code storable in a recording medium such as a CD ROM, a RAM, a floppy disk, a hard disk, or a magneto-optical disk, or as computer code originally stored in a remote recording medium or a non-transitory machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein may be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware such as an ASIC, an FPGA, or an SoC. It will be appreciated that the computer, processor, microprocessor controller or programmable hardware includes memory components (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the processing methods described herein. Further, when a general-purpose computer accesses code for implementing the processes shown herein, execution of the code transforms the general-purpose computer into a special-purpose computer for performing the processes shown herein.
Those of ordinary skill in the art will appreciate that the various illustrative elements and method steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present embodiments.
Finally, it should be understood that the above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way. Those skilled in the art can make many changes and simple substitutions to the technical solution of the present invention without departing from the technical solution of the present invention, and the technical solution of the present invention is protected by the following claims.

Claims (10)

1. A control signal synchronization method in a networking system, applied to a node in the networking system, the method comprising:
receiving a first broadcast message including a control signal and a first delay duration Δ T1, the first broadcast message indicating that the control signal is executed after the first delay duration Δ T1;
starting a first timer with a timing duration of the first delay duration Δ T1;
and when the first timer exceeds a threshold value, executing the operation corresponding to the control signal.
2. The method of claim 1, wherein when the node is a first node with relay functionality, after receiving the first broadcast message, the method further comprises: turning off a scanning function and/or a non-timed duration associated broadcast of the first node; and transmitting a second broadcast message with the control signal and a second delay duration at 2, the second broadcast message indicating that the control signal is executed after the delay duration at 2; the Δ T1- Δ T2 is T2-T1, the T1 is a transmission time corresponding to a first broadcast message, and the T2 is a transmission time corresponding to a second broadcast message.
3. The method of claim 1, wherein after receiving the first broadcast message, the method further comprises: receiving a third broadcast message comprising the control signal and a third delay duration Δ T3, the third broadcast message being sent from a different node than the first broadcast message and indicating that the control signal is executed after the third delay duration Δ T3; determining a minimum value between the remaining duration of the first timer and a third delay duration at 3, and resetting the timing duration of the first timer to the minimum value.
4. The method of claim 1, wherein when the node receives the first broadcast message and a third broadcast comprising the control signal and a third delay duration Δ T3, respectively, parsing a first delay duration Δ T1 corresponding to the first broadcast message and a third delay duration Δ T3 corresponding to the third broadcast, determining a minimum value between the first delay duration Δ T1 and the third delay duration Δ T3, and setting a timing duration of the first timer to the minimum value.
5. The method according to any one of claims 1 to 4, wherein, when the first timer exceeds a threshold, performing the operation corresponding to the control signal specifically includes: setting a target execution time equal to the current time of the networking system plus the first delay time delta T1, and executing the operation corresponding to the control signal when the time of the networking system reaches the target execution time.
6. The method according to any one of claims 1 to 4, wherein the broadcast message is based on a broadcast mechanism of the Bluetooth standard, and a new custom message type is added in a broadcast transmission protocol, and the new custom message type comprises an operation code, an operation word and operation content for identifying a delay time; the nodes are nodes in a Mesh networking system, and the nodes can identify operation codes corresponding to the types of the newly added custom messages and execute corresponding delay operation according to operation words and operation contents.
7. A control signal synchronization method in a networking system is applied to a sending end in the networking system, and is characterized by comprising the following steps:
periodically transmitting a fourth broadcast message including a control signal and a fourth delay period Δ T4, the fourth broadcast message indicating that the control signal is executed after the fourth delay period Δ T4,
wherein the fourth broadcast message has a transmission period of S and is transmitted N times, and in the fourth broadcast message transmitted in the nth transmission period, the fourth delay time period Δ T4 ═ (N-1)) × S, N and N are positive integers greater than 1, 1< N < ═ N, and 2< ═ N.
8. The method according to claim 7, wherein the interval duration for transmitting the fourth broadcast message is Ta, the period duration corresponding to the broadcast frequency of the transmitting end is Tb, and Ta > Tb.
9. An electronic device, comprising:
one or more processors and memory;
a plurality of application programs;
and one or more computer programs, wherein the one or more computer programs are stored in the memory, which when executed by the electronic device, cause the electronic device to carry out the method of any of claims 1 to 6, or the method of any of claims 7 to 8.
10. A computer storage medium, characterized in that the computer-readable storage medium comprises a computer program which, when run on an electronic device, causes the electronic device to perform the method of any of claims 1 to 6, or the method of any of claims 7 to 8, or the method of any of claims 9 to 11.
CN202010231439.0A 2020-03-27 2020-03-27 Method, electronic device, and computer storage medium for synchronizing control signals Active CN111511013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010231439.0A CN111511013B (en) 2020-03-27 2020-03-27 Method, electronic device, and computer storage medium for synchronizing control signals

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010231439.0A CN111511013B (en) 2020-03-27 2020-03-27 Method, electronic device, and computer storage medium for synchronizing control signals

Publications (2)

Publication Number Publication Date
CN111511013A true CN111511013A (en) 2020-08-07
CN111511013B CN111511013B (en) 2022-02-01

Family

ID=71874452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010231439.0A Active CN111511013B (en) 2020-03-27 2020-03-27 Method, electronic device, and computer storage medium for synchronizing control signals

Country Status (1)

Country Link
CN (1) CN111511013B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN115348659A (en) * 2022-10-14 2022-11-15 中科物栖(北京)科技有限责任公司 Clock synchronization method and device of wireless Mesh network
WO2024124756A1 (en) * 2022-12-14 2024-06-20 海尔优家智能科技(北京)有限公司 Synchronization method and apparatus for wireless mesh network, and electronic device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
CN101232520A (en) * 2008-02-26 2008-07-30 北京必创科技有限公司 Method for implementing synchronizing collection, wireless sensor network system and synchronizing apparatus
CN102334388A (en) * 2009-02-24 2012-01-25 皇家飞利浦电子股份有限公司 Method of controlling a lighting system
CN102404817A (en) * 2011-10-25 2012-04-04 中国科学院计算技术研究所 Networking method and system for wireless sensor network based on multiple sink nodes
CN107196859A (en) * 2017-07-19 2017-09-22 西安奇妙电子科技有限公司 Message forwarding method, broadcasting method, acknowledgement messaging method and communication equipment
CN107613583A (en) * 2017-10-25 2018-01-19 上海海洋大学 A kind of distributed wireless sensor network data summarization gateway
CN108206989A (en) * 2016-12-16 2018-06-26 北京易方通达科技有限公司 A kind of multicast control instruction confirms feedback method
US20200084860A1 (en) * 2018-09-10 2020-03-12 Abl Ip Holding Llc Command execution synchronization in a nodal network using controlled delay techniques

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087219A (en) * 2006-06-09 2007-12-12 中国科学院软件研究所 Wireless sensor network time synchronization method and device based on error statistics
CN101232520A (en) * 2008-02-26 2008-07-30 北京必创科技有限公司 Method for implementing synchronizing collection, wireless sensor network system and synchronizing apparatus
CN102334388A (en) * 2009-02-24 2012-01-25 皇家飞利浦电子股份有限公司 Method of controlling a lighting system
CN102404817A (en) * 2011-10-25 2012-04-04 中国科学院计算技术研究所 Networking method and system for wireless sensor network based on multiple sink nodes
CN108206989A (en) * 2016-12-16 2018-06-26 北京易方通达科技有限公司 A kind of multicast control instruction confirms feedback method
CN107196859A (en) * 2017-07-19 2017-09-22 西安奇妙电子科技有限公司 Message forwarding method, broadcasting method, acknowledgement messaging method and communication equipment
CN107613583A (en) * 2017-10-25 2018-01-19 上海海洋大学 A kind of distributed wireless sensor network data summarization gateway
US20200084860A1 (en) * 2018-09-10 2020-03-12 Abl Ip Holding Llc Command execution synchronization in a nodal network using controlled delay techniques

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113784486A (en) * 2021-08-11 2021-12-10 深圳市智岩科技有限公司 Device control method, device, electronic device and storage medium
CN113784486B (en) * 2021-08-11 2024-04-12 深圳市智岩科技有限公司 Equipment control method, device, electronic equipment and storage medium
CN115348659A (en) * 2022-10-14 2022-11-15 中科物栖(北京)科技有限责任公司 Clock synchronization method and device of wireless Mesh network
CN115348659B (en) * 2022-10-14 2023-01-03 中科物栖(北京)科技有限责任公司 Clock synchronization method and device of wireless Mesh network
WO2024124756A1 (en) * 2022-12-14 2024-06-20 海尔优家智能科技(北京)有限公司 Synchronization method and apparatus for wireless mesh network, and electronic device

Also Published As

Publication number Publication date
CN111511013B (en) 2022-02-01

Similar Documents

Publication Publication Date Title
CN111511013B (en) Method, electronic device, and computer storage medium for synchronizing control signals
US9167515B2 (en) Operation method in heterogeneous networks and gateway and wireless communication device using the same
CN109547578B (en) Networking method for electronic price tag system
JP6495314B2 (en) System and method for maintaining synchronization with low power terminals in a time synchronization channel hopping network
CN107402534B (en) Adjusting method, EtherCAT main station and computer readable storage medium
US10548085B2 (en) Optimization of broadcast messaging for low-energy devices communicating with a node on a time-slotted channel hopping network
WO2016078349A1 (en) Data transmission method, communication device, and communication system
WO2018042496A1 (en) Communication device, communication method and communication program
CN115226187A (en) Configuration method and device for discontinuous reception
CN110710310B (en) Super system frame number determining method, communication method and device
US11057748B1 (en) Prioritized communication windows in a wireless mesh network
CN110679183B (en) Determining duty schedules for groups of lighting devices providing similar lighting services
US20200367184A1 (en) Signal detection method and apparatus, signal sending method and apparatus, remote user device, and storage medium
CN112312525B (en) Power-saving signal configuration and transmission method and device
US20190104467A1 (en) Slotted channel access in communications network
JP2016123018A (en) Communication device, synchronization method of communication device, communication program and system
CN112312537B (en) Clock synchronization method and device, storage medium and electronic device
CN110475392A (en) A kind of fuzzy phase length determining method, terminal and network side equipment
CN113286378B (en) Monitoring method and device for wireless device
CN114047689A (en) Lighting equipment control method and device, lighting equipment and storage medium
CN109669366B (en) Control method and device
US9307509B1 (en) Transmitting radio signals using simultaneous retransmission
US11627546B2 (en) Delaying rendering time for audio computing systems
US20220369416A1 (en) LTE Modem eDRx Paging Opportunity Management
CN114615729B (en) Data interaction method, earphone device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220825

Address after: 518000 office area on the second floor of Xinghe lingchuang Tianxia phase II, Nankeng community, Bantian street, Longgang District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Tongrui Technology Co.,Ltd.

Address before: Room 402-403, Building D, Zhangjiagang Economic and Technological Development Zone, Suzhou City, Jiangsu Province

Patentee before: Peach Core Technology (Suzhou) Co.,Ltd.

TR01 Transfer of patent right