CN117812691A - Synchronization method, device, equipment and medium - Google Patents

Synchronization method, device, equipment and medium Download PDF

Info

Publication number
CN117812691A
CN117812691A CN202311846538.XA CN202311846538A CN117812691A CN 117812691 A CN117812691 A CN 117812691A CN 202311846538 A CN202311846538 A CN 202311846538A CN 117812691 A CN117812691 A CN 117812691A
Authority
CN
China
Prior art keywords
node
master node
slave node
connection
event information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311846538.XA
Other languages
Chinese (zh)
Inventor
路俊峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ingeek Information Security Consulting Associates Co ltd
Original Assignee
Ingeek Information Security Consulting Associates 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 Ingeek Information Security Consulting Associates Co ltd filed Critical Ingeek Information Security Consulting Associates Co ltd
Priority to CN202311846538.XA priority Critical patent/CN117812691A/en
Publication of CN117812691A publication Critical patent/CN117812691A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a synchronization method, a synchronization device, synchronization equipment and a synchronization medium. The method comprises the following steps: responding to the receiving of the monitoring parameter changing instruction by the master node, and determining the connection event information corresponding to the slave node; and synchronizing the slave node with the master node based on the connection event information. According to the invention, when the master node receives the monitoring parameter change instruction, the slave node receives the connection event information synchronized by the master node and synchronizes the slave node with the master node based on the connection event information, so that a long-time re-synchronization process of the slave node is avoided, or the synchronization process is not required to be executed again, the technical problem that the slave node can be synchronized with the master node only in a long time in the prior art is solved, and the total time required for achieving synchronization between the slave node and the master node is shortened.

Description

Synchronization method, device, equipment and medium
Technical Field
The present invention relates to the field of bluetooth communication technologies, and in particular, to a synchronization method, apparatus, device, and medium.
Background
Fig. 1 is a schematic diagram of synchronization of listening parameters provided in the prior art. As shown in fig. 1, for the scenario that the bluetooth link has just been established, since the initial frequency hopping channel must be zero, the slave node may wait on the nth frequency hopping point according to the frequency hopping algorithm, where N may be selected to be smaller, such as n=1 second/connection interval; for the scenario of connection interval or hopping table update, since the slave node cannot know which hopping channels will be in the following 1 second or 2 seconds at all, an initial channel must be selected randomly, the listening window must be all available channels multiplied by the connection interval, and if it is not listening, another channel needs to be changed. Assuming that the connection interval is 100ms and the number of available hopping channels is 37, the listening time of one hopping channel is 100ms by 37=3.7 s, and more than 10s is required for listening to three channels, so that key user data cannot be heard.
It can be seen that in all three scenarios, the slave node needs to wait for a relatively long window on a certain channel or certain channels, so that a technical problem that the slave node needs a relatively long time to synchronize with the master node occurs.
Disclosure of Invention
The invention provides a synchronization method, a synchronization device, synchronization equipment and a synchronization medium, which are used for solving the technical problem that a slave node needs a long time to be synchronized with a master node in the prior art.
According to an aspect of the present invention, there is provided a synchronization method including:
responding to the monitoring parameter changing instruction, and determining connection event information corresponding to the slave node;
and synchronizing the slave node with the master node based on the connection event information.
According to another aspect of the present invention, there is provided a synchronization apparatus including:
the first determining module is used for responding to the monitoring parameter changing instruction and determining the connection event information corresponding to the slave node;
and the synchronization module is used for synchronizing the slave node and the master node based on the connection event information.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the synchronization method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to perform the synchronization method according to any one of the embodiments of the present invention.
According to the technical scheme, when the master node receives the monitoring parameter change instruction, the slave node receives the connection event information synchronized by the master node and synchronizes the slave node with the master node based on the connection event information, so that a long-time resynchronization process of the slave node is avoided, or the synchronization process is not required to be executed again, the technical problem that the slave node can synchronize with the master node after a long time in the prior art is solved, and the total time required for synchronization between the slave node and the master node is shortened.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a prior art synchronization diagram of a listening parameter;
FIG. 2 is a flow chart of a synchronization method provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of communication interaction among a master node, a slave node and a bluetooth device according to an embodiment of the present invention;
FIG. 4 is a flow chart of another synchronization method provided by an embodiment of the present invention;
FIG. 5 is a flow chart of yet another synchronization method provided by an embodiment of the present invention;
FIG. 6 is a schematic diagram of synchronization between a master node and a slave node according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of synchronization between a master node and a slave node according to another embodiment of the present invention;
fig. 8 is a schematic structural diagram of a synchronization device according to an embodiment of the present invention;
fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In an embodiment, fig. 2 is a flowchart of a synchronization method provided in the embodiment of the present invention, where the method may be implemented by a synchronization device, and the synchronization device may be implemented in hardware and/or software, and the synchronization device may be configured in an electronic device. Wherein the electronic device may be a slave node. As shown in fig. 2, the method includes:
s110, responding to the master node to receive the monitoring parameter changing instruction, and determining the connection event information corresponding to the slave node.
The monitoring parameters refer to parameters required by the slave node to monitor a communication link between the master node and the Bluetooth device. The bluetooth device refers to a terminal device that can control a vehicle through a bluetooth technology, for example, the bluetooth device may be a physical key with a bluetooth module, or may be an intelligent terminal with a bluetooth module, and the intelligent terminal may be a smart phone, a tablet, or the like. In one embodiment, the listening parameters include: a frequency hopping channel table including a plurality of frequency hopping channels; a connection interval; number of hops. In general, the available bluetooth channels (which may also be referred to as available frequency hopping channels) specified by the bluetooth protocol are at most 37, but in actual communication operation, because there are some frequency hopping channels with poor communication performance, the frequency hopping channels with poor communication performance may be filtered, that is, at this time, fewer than 37 available frequency hopping channels are available. The connection interval refers to a data transmission time interval corresponding to the communication between the Bluetooth device and the main node, the connection interval is generally in units of milliseconds, and a smaller connection interval indicates that the main node and the Bluetooth device can frequently perform data transmission, so that the real-time performance and the response of the data transmission are improved; the larger connection interval can reduce the communication frequency between the main node and the Bluetooth device, and reduce the power consumption. In the actual bluetooth communication connection, the connection interval between the master node and the bluetooth device can be determined through negotiation, and different connection intervals can be adopted in different communication stages. Typically, the connection interval may be 7.5ms-4s. The hop count refers to the number of channels that need to be spaced between the front and rear hopping channels when data transmission is performed.
In bluetooth communication of a vehicle, a master node and a plurality of slave nodes may be included, where the master node generally refers to a device that initiates bluetooth communication and controls a communication process, and may be generally placed at a console in the vehicle; a slave node refers to a device that responds to a master node request and listens to the communication link between the master node and the bluetooth device, and may typically be located elsewhere on the vehicle (e.g., on the rear and sides of the vehicle). Fig. 3 is a schematic diagram of communication interaction among a master node, a slave node and a bluetooth device according to an embodiment of the present invention. As shown in fig. 3, the bluetooth device may be equipped with N parts at most, that is, the total number of mobile phones and physical keys is N, and the mobile phones and physical keys are respectively connected to the master node, and parameters such as a system type and a software version of the mobile phones are not limited, and only the bluetooth device is required to have a bluetooth module to support bluetooth communication. Meanwhile, the master node can support N paths of Bluetooth connection at most. And establishing communication links such as a mobile phone link, an entity key link and the like between the Bluetooth equipment and the master node, monitoring the RSSI value of a communication channel between the Bluetooth equipment and the master node through the slave node, simultaneously, the master node can monitor the RSSI value of the communication channel between the master node and the Bluetooth equipment, and synchronize monitoring parameters to the slave node, so that the slave node monitors the RSSI value of the communication channel between the master node and the Bluetooth equipment according to the monitoring parameters, and reports the monitored RSSI value to the master node, namely the master node is positioned through the two RSSI values.
The instruction for changing the listening parameter refers to an instruction for changing the listening parameter between the bluetooth device and the master node, for example, a connection interval and a frequency hopping channel contained in a frequency hopping table are changed. In general, the listening parameters may be changed by the bluetooth device. After the Bluetooth device changes the monitoring parameters, the changed monitoring parameters are sent to the master node, so that the master node synchronizes the changed monitoring parameters to the slave node, and the slave node monitors a communication link between the master node and the Bluetooth device based on the changed monitoring parameters.
Wherein, the connection event information may include: the number of connection events, the total number of connection events corresponding to the changed monitoring parameters adopted by the slave node, and the number of connection event skipping. The number of the connection events is used for representing the number of the communication connection established between the main node and the Bluetooth equipment and data transmission; the total number of connection events refers to the total number of connection events corresponding to the situation that the slave node is expected to adopt the changed monitoring parameters; the number of skipped connection events refers to the number of slave nodes that do not monitor connection events of the communication link between the master node and the bluetooth device when the slave nodes receive the changed monitoring parameters.
And S120, synchronizing the slave node and the master node based on the connection event information.
In the embodiment, when the slave node monitors that the number of the connection events synchronized in real time by the master node has reached the total number of the connection events, the slave node can directly monitor a communication link between the master node and the Bluetooth device by adopting the changed monitoring parameters, so that the synchronization between the master node and the slave node is achieved; or the slave node determines a target monitoring channel of the slave node on a communication link between the master node and the Bluetooth equipment based on the number of skipped connection events and the current frequency hopping channel corresponding to the actual change time of the monitoring parameters of the master node so as to synchronize the slave node and the master node on the target monitoring channel.
According to the technical scheme, when the master node receives the monitoring parameter change instruction, the slave node receives the connection event information synchronized by the master node and synchronizes the slave node with the master node based on the connection event information, so that a long-time resynchronization process of the slave node is avoided, or the synchronization process is not required to be executed again, the technical problem that the slave node needs a long time to synchronize with the master node in the prior art is solved, and the total time required for achieving synchronization between the slave node and the master node is shortened.
In an embodiment, fig. 4 is a flowchart of another synchronization method provided in the embodiment of the present invention, where on the basis of the foregoing embodiment, a master node is adopted to directly synchronize the total number of connection events corresponding to the changed listening parameters with a slave node, so as to describe a synchronization process between the slave node and the master node. As shown in fig. 4, the method includes:
and S210, responding to the receiving of the monitoring parameter changing instruction by the master node, and receiving the number of the synchronous connection events of the master node in real time.
When the master node receives an instruction of changing the monitoring parameters sent by the Bluetooth device, the master node synchronizes the number of connection events between the master node and the Bluetooth device to the slave node in real time.
And S220, monitoring a communication link between the master node and the Bluetooth equipment by adopting the changed monitoring parameters when the number of the connection events reaches the total number of the preset connection events so as to synchronize the slave node and the master node.
Of course, the master node also needs to send the changed listening parameters to the slave node while synchronizing the number of connection events that have occurred to the slave node. When the number of the connection events reaches the total number of the connection events which are configured in advance, the slave node is required to monitor the communication link between the master node and the Bluetooth device according to the changed monitoring parameters so as to ensure the synchronization between the slave node and the master node.
For example, assuming that when the master node receives an instruction that the frequency hopping table is changed, the number of connection events is 78, and the total number of connection events corresponding to the changed monitoring parameters is 84, that is, the slave node expects to monitor the communication link between the master node and the bluetooth device by adopting the changed monitoring parameters at the 84 th connection event, the master node synchronizes the number of the connection events to the slave node in real time, and when the number of the connection events reaches 84, the communication link between the master node and the bluetooth device is automatically monitored by adopting the changed monitoring parameters, or the slave node automatically monitors the communication link between the master node and the bluetooth device by adopting the changed monitoring parameters after 84-78=8 connection events. For another example, assuming that when the master node receives an instruction that the connection interval and the number of connection event ignores are changed, the number of connection events is 188, and the total number of connection events corresponding to the changed monitoring parameters is 194, that is, the slave node expects to monitor a communication link between the master node and the bluetooth device by adopting the changed connection interval and the number of connection event ignores at the 194 th connection event, the master node synchronizes the number of connection events to the slave node in real time, and monitors the communication link between the master node and the bluetooth device by automatically adopting the changed connection interval and the number of connection event ignores when the number of connection events has reached 194, or monitors the communication link between the master node and the bluetooth device by automatically adopting the changed connection interval and the number of connection event ignores after 194-188=6 connection events.
According to the technical scheme, when the master node receives a monitoring parameter changing instruction, the master node directly sends the preset total number of connection events corresponding to the expected slave node adopting the changed monitoring parameters to the slave node, and synchronizes the number of the connection events to the slave node in real time, so that when the slave node monitors that the number of the connection events reaches the preset total number of the connection events, the communication link between the master node and the Bluetooth device is monitored by directly adopting the changed monitoring parameters, so that the slave node and the master node are synchronized, and the effect of completely synchronizing the slave node and the master node is achieved when the slave node does not need to execute a synchronization process again after receiving the command.
In an embodiment, fig. 5 is a flowchart of another synchronization method according to an embodiment of the present invention, where synchronization between a slave node and a master node is described using a preconfigured node transmission delay and a current frequency hopping channel based on the above embodiment. As shown in fig. 5, the method includes:
and S310, responding to the receiving of the monitoring parameter changing instruction by the master node, and acquiring the actual receiving time of the monitoring parameter and the preconfigured node transmission delay.
The node transmission delay refers to the delay required by data transmission between the master node and the slave node, namely the total time length required from the transmission of the data from the master node to the reception of the data from the slave node. In general, the master node and the slave node CAN communicate through wired connection, that is, data transmission is performed by adopting different interface types, such as a universal asynchronous receiver Transmitter (Universal Asynchronous Receiver-Transmitter, UART), a controller area network (Controller Area Network, CAN) and a local internet (Local Interconnect Network, LIN), so that transmission events required by data with different lengths CAN be measured. The actual receiving time of the listening parameter refers to the time when the slave node actually receives the changed listening parameter.
S320, determining the actual change time of the monitoring parameter based on the actual receiving time of the monitoring parameter and the node transmission delay.
The actual change time of the monitoring parameter refers to the time when the master node receives the changed monitoring parameter. In an embodiment, because there is a delay in data transmission between the master node and the slave node, that is, a node transmission delay, a corresponding actual change time of the listening parameter may be obtained based on a difference between an actual receiving time of the listening parameter and the node transmission delay.
S330, determining the number of connection event skipping corresponding to the slave node based on the actual change time of the monitoring parameter, the actual receiving time of the monitoring parameter and the preconfigured connection interval.
In the embodiment, a difference value between the actual receiving time of the monitoring parameter and the actual changing time of the monitoring parameter is determined, and the ratio of the difference value to the connection interval is used as the number of connection event skipping corresponding to the slave node.
S340, acquiring a current frequency hopping channel corresponding to the actual change time of the monitoring parameter of the master node.
The current frequency hopping channel refers to the frequency hopping channel adopted by the master node when the master node receives the monitoring parameter change instruction. Under the condition that the master node synchronizes the pre-configured node transmission delay to the slave node, the current frequency hopping channel adopted by the master node at the actual change time of the monitoring parameter needs to be synchronized to the slave node.
S350, determining a target monitoring channel of the slave node on a communication link between the master node and the Bluetooth device based on the current frequency hopping channel and the number of the connection event skips.
The slave node may determine the current frequency hopping channel and the number of connection event hops directly, the frequency hopping channel that the slave node needs to skip over the communication link between the master node and the bluetooth device, and determine the target listening channel based on the pre-configured number of hops. For example, assuming that the current frequency hopping channel adopted by the master node at the time of actually changing the listening parameter is channel 1, the number of skipped connection events is 2, and the number of hops is 8, the frequency hopping table includes 37 frequency hopping channels (channel 1, channel 2, and channel 3, … …, channel 37 respectively), it can be determined that the frequency hopping channel adopted by the master node at the time of actually receiving the listening parameter is channel 17, the target listening channel of the slave node is the next listening channel, that is, channel 25, and if the slave node cannot perform listening at channel 25, the slave node determines that the target listening channel is the next channel according to the number of hops, that is, listening at channel 33.
S360, synchronizing the slave node and the master node based on the target monitoring channel.
According to the technical scheme of the embodiment, the slave node can simply and rapidly calculate the target monitoring channel corresponding to the slave node based on the preconfigured node transmission delay and the actual receiving time of the monitoring parameter, so that the slave node can be prevented from re-executing the synchronization process for a long time.
In an embodiment, the synchronization method further comprises: receiving the number of connection event neglects which are preconfigured by a main node; and determining the next monitoring channel of the slave node on the physical key link between the master node and the Bluetooth device based on the neglected number of the connection events. The number of connection events to be ignored may be understood as the number of connection events corresponding to the reply packet that is not required by the master node. In an embodiment, the master node may synchronize the Latency parameter with the slave node, and under Latency, the master node is in a low power consumption state, i.e. does not need to wake up. When the Bluetooth device sends the data packet, the main node does not need to reply to the data packet. For example, when the number of connection event ignores (i.e. Latency) is 2, the bluetooth device does not need to reply when transmitting the first two data packets, but replies to the 3 rd data packet when transmitting it. Of course, while the master node does not need to reply to the data packet, the slave node does not need to monitor it either, i.e. the slave node monitors only at the 3 rd connection event.
In an embodiment, fig. 6 is a schematic diagram of synchronization between a master node and a slave node according to an embodiment of the present invention, and a synchronization process of a listening parameter is described using a node transmission delay and a current frequency hopping channel. As shown in fig. 6, it is assumed that when the listening parameter is changed during Hop N, at this time, the target listening channel of the slave node may be calculated by using the node transmission delay and the current frequency hopping channel to be the next listening channel (i.e. Hop n+1) or the next listening channel (i.e. Hop n+2), and the slave node may completely achieve synchronization with the master node on at least the next listening channel (i.e. Hop n+3).
In an embodiment, fig. 7 is a schematic diagram of synchronization between a master node and a slave node according to another embodiment of the present invention, where the synchronization process of the listening parameter is described by using the number of connection events and the total number of connection events corresponding to the changed listening parameter used by the slave node. As shown in fig. 7, the master node synchronizes the number of connection events (Event Counter 1) to the slave node at regular time, when the monitoring parameters are changed, calculates the current number of connection events (Event Counter 2), records the total number of connection events (denoted as Instant) corresponding to the changed monitoring parameters adopted by the slave node, and directly adopts the changed monitoring parameters by the slave node when the current number of connection events (Event Counter 3) is equal to the Instant, so as to complete the synchronization process between the master node and the slave node.
In an embodiment, fig. 8 is a schematic structural diagram of a synchronization device according to an embodiment of the invention. As shown in fig. 8, the apparatus includes: a first determination module 410 and a synchronization module 420.
A first determining module 410, configured to determine connection event information corresponding to the slave node in response to the master node receiving the listening parameter change instruction;
and a synchronization module 420, configured to synchronize the slave node with the master node based on the connection event information.
In an embodiment, the connection event information includes: the number of the connection events and the total number of the connection events corresponding to the changed monitoring parameters adopted by the slave node; the first determining module 410 is specifically configured to: the number of connection events synchronized by the master node has occurred is received in real time.
In an embodiment, the synchronization module 420 is specifically configured to monitor the communication link between the master node and the bluetooth device by using the changed monitoring parameter when the number of the connection events has reached the total number of the connection events configured in advance, so as to synchronize the slave node with the master node.
In an embodiment, the connection event information includes: the number of skipped connection events; the first determining module 410 includes:
the first acquisition unit is used for acquiring the actual receiving time of the monitoring parameter and the pre-configured node transmission delay;
the first determining unit is used for determining the actual change time of the monitoring parameter based on the actual receiving time of the monitoring parameter and the node transmission delay;
and the second determining unit is used for determining the number of connection event skipping corresponding to the slave node based on the actual change time of the monitoring parameter, the actual receiving time of the monitoring parameter and a preset connection interval.
In one embodiment, the synchronization module 420 includes:
the second acquisition unit is used for acquiring a current frequency hopping channel corresponding to the actual change time of the monitoring parameter of the master node;
a third determining unit, configured to determine a target listening channel of the slave node on a communication link between the master node and the bluetooth device based on the current frequency hopping channel and the connection event skip number;
and the synchronization unit is used for synchronizing the slave node and the master node based on the target monitoring channel.
In an embodiment, the synchronization device further comprises:
the receiving module is used for receiving the connection event neglect number preconfigured by the master node;
and the second determining module is used for determining the next monitoring channel of the slave node on the physical key link between the master node and the Bluetooth equipment based on the connection event neglected number.
In an embodiment, the listening parameters include: a frequency hopping channel table including a plurality of frequency hopping channels; a connection interval; number of hops.
The synchronization device provided by the embodiment of the invention can execute the synchronization method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
In one embodiment, fig. 9 is a block diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 9, a schematic diagram of an electronic device 10 that may be used to implement an embodiment of the present invention is shown. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 9, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as the synchronization method.
In some embodiments, the synchronization method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the synchronization method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the synchronization method in any other suitable way (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method of synchronizing, comprising:
responding to the receiving of the monitoring parameter changing instruction by the master node, and determining the connection event information corresponding to the slave node;
and synchronizing the slave node with the master node based on the connection event information.
2. The method of claim 1, wherein the connection event information comprises: the number of the connection events and the total number of the connection events corresponding to the changed monitoring parameters adopted by the slave node; the determining the connection event information corresponding to the slave node comprises the following steps:
the number of connection events synchronized by the master node has occurred is received in real time.
3. The method of claim 2, wherein synchronizing the slave node with the master node based on the connection event information comprises:
and when the number of the connection events reaches the total number of the connection events which are preset, monitoring a communication link between the master node and the Bluetooth equipment by adopting the changed monitoring parameters so as to synchronize the slave node and the master node.
4. The method of claim 1, wherein the connection event information comprises: the number of skipped connection events; the determining the connection event information corresponding to the slave node comprises the following steps:
acquiring the actual receiving time of the monitoring parameter and the pre-configured node transmission delay;
determining the actual change time of the monitoring parameter based on the actual receiving time of the monitoring parameter and the node transmission delay;
and determining the number of connection event skipping corresponding to the slave node based on the actual change time of the monitoring parameter, the actual receiving time of the monitoring parameter and a preset connection interval.
5. The method of claim 4, wherein synchronizing the slave node with the master node based on the connection event information comprises:
acquiring a current frequency hopping channel corresponding to the actual change time of the monitoring parameter of the master node;
determining a target monitoring channel of a slave node on a communication link between a master node and Bluetooth equipment based on the current frequency hopping channel and the number of connection event skipped;
and synchronizing the slave node with the master node based on the target monitoring channel.
6. The method according to claim 1, characterized in that the method further comprises:
receiving the number of connection event neglects which are preconfigured by a main node;
and determining the next monitoring channel of the slave node on the physical key link between the master node and the Bluetooth device based on the neglected number of the connection events.
7. The method of any of claims 1-6, wherein the listening parameters comprise: a frequency hopping channel table including a plurality of frequency hopping channels; a connection interval; number of hops.
8. A synchronization device, comprising:
the first determining module is used for determining connection event information corresponding to the slave node in response to the master node receiving the monitoring parameter changing instruction;
and the synchronization module is used for synchronizing the slave node and the master node based on the connection event information.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the synchronization method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the synchronization method of any one of claims 1-7.
CN202311846538.XA 2023-12-28 2023-12-28 Synchronization method, device, equipment and medium Pending CN117812691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311846538.XA CN117812691A (en) 2023-12-28 2023-12-28 Synchronization method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311846538.XA CN117812691A (en) 2023-12-28 2023-12-28 Synchronization method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN117812691A true CN117812691A (en) 2024-04-02

Family

ID=90429456

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311846538.XA Pending CN117812691A (en) 2023-12-28 2023-12-28 Synchronization method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN117812691A (en)

Similar Documents

Publication Publication Date Title
JP6346970B2 (en) Method and device for anchor master selection
WO2015196685A1 (en) Clock synchronization method and apparatus
CN112929366A (en) Wireless gaming protocol
CN110445511B (en) Self-adaptive synchronous frequency hopping method and device, wireless AP and communication system
CN105281884A (en) Method for time synchronization between nodes in network without center
CN106717068B (en) The distance between a kind of NAN equipment measurement method and NAN equipment
WO2022057472A1 (en) Clock synchronization method and related device
US20230007606A1 (en) Method for time synchronization, method for broadcast setting, chip, electronic device, and storage medium
CN117812691A (en) Synchronization method, device, equipment and medium
CN113726608B (en) Data processing method and device
CN103813437A (en) Mobile wireless ad hoc network clock synchronization method based on time domain narrow pulse
CN110224779B (en) Method, device, equipment and medium for calculating absolute time of equipment for receiving and sending message
CN116782255A (en) Same-frequency subnet fusion method and device, communication node and storage medium
CN109874136B (en) Bluetooth memory sharing method and device, storage medium and electronic equipment
CN110650259B (en) Call request response method, device, server, terminal and storage medium
CN114363943A (en) Method and electronic device for determining transmission delay
CN114786244B (en) Soft access device control method, apparatus, device, storage medium and program product
CN114650587B (en) Method and device for monitoring wireless link, wireless terminal and storage medium
CN110831146B (en) Method for node synchronization in wireless network, terminal device and storage medium
CN117615443A (en) Clock synchronization method, device and equipment of home base station and storage medium
CN117320191A (en) Data transmission method, device, equipment and system
CN115484668A (en) Node synchronization system, method, device, equipment and storage medium
CN115107792A (en) Time synchronization method, device and equipment and automatic driving vehicle
CN116938284A (en) Frequency hopping anti-interference method, device, equipment and storage medium
CN117318870A (en) Clock synchronization method and device, storage medium and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination