Time sequence collaboration method and device and storage medium

By sending Bluetooth broadcast information and obtaining time-sharing settings parameters in the Wi-Fi+BLE module, the problem of changing the time window offset between different models of modules is solved, and the timing coordination between wireless mobile networks and Bluetooth networks is realized, which improves the reliability and stability of communication.

CN120302405APending Publication Date: 2025-07-11NINGBO FOTILE KITCHEN WARE CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510259554.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-06
Publication Date
2025-07-11

AI Technical Summary

Technical Problem

Due to hardware limitations or design differences in Wi-Fi+BLE modules of different models, their time-sharing settings may be inconsistent, resulting in a shift of the reception time window during operation, affecting the normal reception of data.

Method used

By sending Bluetooth broadcast information, establish a target connection between the slave and the host, obtain the target time-sharing setting parameters sent by the host, determine the Bluetooth network delay based on the timestamp of the Bluetooth status data, and configure the time-sharing parameter when the preset conditions are met to ensure that the timing of the wireless mobile network window and the Bluetooth network window is matched.

Benefits of technology

It improves the reliability and stability of communication, ensures the normal reception of data, provides flexible and timely parameter adjustment methods, adjusts the offset between the wireless mobile network window and the Bluetooth network window, and ensures the accuracy of communication timing matching.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120302405A_ABST
    Figure CN120302405A_ABST
Patent Text Reader

Abstract

The invention discloses a time sequence collaboration method and device and a storage medium, and the method comprises the steps: transmitting Bluetooth broadcast information, so as to enable a host to establish target connection between a slave and the host under the condition that the host obtains the Bluetooth broadcast information at a Bluetooth network window, and enabling the host to perform periodic switching between the Bluetooth network window and a wireless mobile network window; obtaining a target time-sharing setting parameter sent by the host through the target connection, wherein the time-sharing setting parameter represents time-sharing switching information of the wireless mobile network window and the Bluetooth network window; receiving Bluetooth state data sent by the host when the plurality of Bluetooth network windows are opened, and determining Bluetooth network time delay based on timestamps of receiving the plurality of Bluetooth state data; and when the Bluetooth network time delay meets a preset time delay condition, performing time-sharing parameter configuration based on the current timestamp, the historical timestamp of the last received Bluetooth state data and the time-sharing setting parameter. According to the method, automatic and accurate time sequence synchronization between the master and slave machines is realized, and the communication efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of household appliances, and in particular to a timing coordination method, device and storage medium. Background Art

[0002] Although the Wi-Fi+BLE (Wireless Fidelity+Bluetooth Low Energy, wireless mobile network and Bluetooth network) integrated solution has the advantages of low cost and high flexibility, it also has the following major problems: First, the time-sharing multiplexing of Wi-Fi (Wireless Fidelity, wireless mobile network) and Bluetooth within the same model of Wi-Fi+BLE integrated module can avoid conflicts between the two. However, due to hardware limitations or design differences, the time-sharing setting parameters of different models of Wi-Fi+BLE modules may not be unified, and are often fixed during production. During operation, due to the lack of effective timing coordination, the receiving time windows between different modules will continue to shift and change, thereby affecting the normal reception of data. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the first aspect of the present invention proposes a timing coordination method, which is applied to a slave, comprising:

[0004] Sending Bluetooth broadcast information, so that when the host obtains the Bluetooth broadcast information in the Bluetooth network window, the host establishes a target connection between the slave and the host, and the host periodically switches between the Bluetooth network window and the wireless mobile network window;

[0005] Acquire, through the target connection, a target time-sharing setting parameter sent by the host, wherein the time-sharing setting parameter represents time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0006] receiving Bluetooth status data sent by the host when the plurality of Bluetooth network windows are opened, and determining a Bluetooth network delay based on timestamps of receiving the plurality of Bluetooth status data;

[0007] When the Bluetooth network delay meets the preset delay condition, time-sharing parameter configuration is performed based on the current timestamp, the historical timestamp of the Bluetooth status data received most recently, and the time-sharing setting parameters.

[0008] Furthermore, the Bluetooth broadcast information includes an identity code;

[0009] The sending of the Bluetooth broadcast information so that the host acquires the Bluetooth broadcast information in the Bluetooth network window and establishes a target connection between the slave and the host includes:

[0010] Turn on Bluetooth broadcasting in Bluetooth exclusive mode, and send the Bluetooth broadcast information so that the host can receive the Bluetooth broadcast information when the Bluetooth broadcast signal is scanned in the Bluetooth network window, and establish the target connection when the identity identification code meets the preset connection requirements.

[0011] Furthermore, the method further includes:

[0012] When the target connection fails to be successfully established within the first preset time, perform the time-sharing parameter configuration according to the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter.

[0013] Furthermore, the target time-sharing setting parameters include an identity identification code, a time-sharing parameter header information, and an end symbol;

[0014] The obtaining of the target time-sharing setting parameters sent by the host through the target connection includes:

[0015] Receiving the identity identification code, the time-sharing parameter header information, and the end symbol sent by the host;

[0016] When the identity identification code, the time-sharing parameter header information, and the end symbol meet the preset verification rules, save the target time-sharing setting parameters.

[0017] Furthermore, the target time-sharing setting parameters include a wireless mobile network window duration parameter and a Bluetooth network window duration parameter;

[0018] The receiving of the Bluetooth status data sent by the host when multiple Bluetooth network windows are opened, and determining the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data includes:

[0019] Based on the multiple timestamps, determine the adjacent difference between two adjacent timestamps, and perform data fusion processing on the multiple adjacent differences to determine the duration fusion result;

[0020] Based on the wireless mobile network window duration parameter and the Bluetooth network window duration parameter, perform a summation calculation to determine the target window duration parameter;

[0021] Based on the difference between the duration fusion result and the target window duration parameter, determine the Bluetooth network delay.

[0022] Furthermore, when the Bluetooth network delay meets the preset delay condition, performing time-sharing parameter configuration based on the current timestamp, the historical timestamp of the most recently received Bluetooth status data, and the time-sharing setting parameters includes:

[0023] Send a stop message to the host and exit the Bluetooth exclusive mode, so that the host stops sending the Bluetooth status data and disconnects the target connection. Determine the window time deviation based on the current timestamp and the historical timestamp of the most recent receipt of the Bluetooth status data.

[0024] When the window time deviation is less than the target window duration parameter and the window time deviation is less than the Bluetooth network window duration parameter, determine a first time interval, where the first time interval is determined based on the difference between the Bluetooth network window duration parameter and the window time deviation.

[0025] Determine the first window time start point of the wireless mobile network window as the time node after the first time interval starting from the current time node.

[0026] Perform time-sharing parameter configuration of the wireless mobile network window based on the first window time start point and the wireless mobile network window duration parameter.

[0027] Further, the method further includes:

[0028] When the window time deviation is less than the target window duration parameter and the window time deviation is greater than or equal to the Bluetooth network window duration parameter, determine a second time interval, where the second time interval is determined based on the difference between the target window duration parameter and the window time deviation.

[0029] Determine the second window time start point of the Bluetooth network window as the time node after the second time interval starting from the current time node.

[0030] Perform time-sharing parameter configuration of the Bluetooth network window based on the second window time start point and the Bluetooth network window duration parameter.

[0031] Further, the determining the window time deviation based on the current timestamp and the historical timestamp of the most recent receipt of the Bluetooth status data includes:

[0032] When the window time deviation is greater than or equal to the target window duration parameter, determine the window time deviation as the current difference.

[0033] Determine the difference between the current difference and the target window duration parameter as the next difference.

[0034] Determine the next difference as the current difference.

[0035] Repeat the steps: Determine the next difference as the difference between the current difference and the target window duration parameter; Determine the next difference as the current difference until the current difference is less than the target window duration parameter;

[0036] Determine the current difference as the window time deviation.

[0037] Furthermore, a timing coordination method is applied to a host, and the method includes:

[0038] Perform periodic switching between a wireless mobile network window and a Bluetooth network window according to a target time-sharing setting parameter;

[0039] Obtain Bluetooth broadcast information sent by a slave in the Bluetooth network window, and establish a target connection between the slave and the host;

[0040] Send the target time-sharing setting parameter to the slave through the target connection, where the target time-sharing setting parameter represents the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0041] Send multiple Bluetooth status data to the slave in multiple Bluetooth network windows.

[0042] Furthermore, the Bluetooth broadcast information includes an identity identification code;

[0043] The obtaining Bluetooth broadcast information sent by a slave in the Bluetooth network window and establishing a target connection between the slave and the host includes:

[0044] Receive the Bluetooth broadcast information in the Bluetooth network window;

[0045] Establish the target connection when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements.

[0046] Furthermore, the method further includes:

[0047] When the identity identification code does not meet the preset connection requirements, repeat the steps: Receive the Bluetooth broadcast information in the Bluetooth network window; Establish the target connection when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements;

[0048] When the Bluetooth broadcast information is not successfully received within a second preset time, end the timing coordination process.

[0049] Furthermore, after the method, it further includes:

[0050] When receiving a stop message sent by the slave, stop sending the Bluetooth status data and disconnect the target connection.

[0051] A second aspect of the present invention provides a timing coordination device, which is applied to a slave device and includes:

[0052] A Bluetooth information sending module, configured to send Bluetooth broadcast information, so that when the master device obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave device and the master device is established, and the master device periodically switches between the Bluetooth network window and the wireless mobile network window;

[0053] A target time-sharing setting parameter obtaining module, configured to obtain the target time-sharing setting parameter sent by the master device through the target connection, where the time-sharing setting parameter characterizes the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0054] A Bluetooth network delay determining module, configured to receive Bluetooth status data sent by the master device when multiple Bluetooth network windows are opened, and determine the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data;

[0055] A time-sharing parameter configuration module, configured to perform time-sharing parameter configuration based on the current timestamp, the historical timestamp of the last received Bluetooth status data, and the time-sharing setting parameter when the Bluetooth network delay meets a preset delay condition.

[0056] A third aspect of the present invention provides a timing coordination device, which is applied to a master device and includes:

[0057] A network window control module, configured to periodically switch between a wireless mobile network window and a Bluetooth network window according to target time-sharing setting parameters;

[0058] A Bluetooth broadcast information obtaining module, configured to obtain Bluetooth broadcast information sent by a slave device in the Bluetooth network window and establish a target connection between the slave device and the master device;

[0059] A target time-sharing setting parameter sending module, configured to send target time-sharing setting parameters to the slave device through the target connection, where the target time-sharing setting parameter characterizes the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0060] A Bluetooth status data sending module, configured to send multiple Bluetooth status data to the slave device in multiple Bluetooth network windows.

[0061] A fourth aspect of the present invention provides an electronic device, including a processor and a memory. At least one instruction, at least one program, a code set or an instruction set is stored in the memory. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the timing coordination method as described in the first aspect of the present invention.

[0062] A fifth aspect of the present invention provides a computer-readable storage medium. At least one instruction, at least one program, a code set or an instruction set is stored in the storage medium. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the timing coordination method as described in the first aspect of the present invention.

[0063] As can be seen from the embodiments of the timing coordination method, device and storage medium provided by the present invention above, the beneficial effects of the present invention are as follows: by sending Bluetooth broadcast information, when the host obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave and the host is established, and the host periodically switches between the Bluetooth network window and the wireless mobile network window, so that the host can obtain information and establish a target connection more safely and effectively during the Bluetooth network window; by obtaining the target time-sharing setting parameters sent by the host through the target connection, the time-sharing setting parameters represent the time-sharing switching information between the wireless mobile network window and the Bluetooth network window, ensuring the effectiveness and accuracy of the received time-sharing setting parameters, and the time-sharing setting parameters can be unified, thereby improving the reliability of communication; by receiving the Bluetooth status data sent by the host when multiple Bluetooth network windows are opened, based on the timestamps of the received multiple Bluetooth status data, the Bluetooth network delay is determined, thereby providing a more accurate estimation of the Bluetooth network delay; when the Bluetooth network delay meets the preset delay condition, based on the current timestamp, the historical timestamp of the most recent received Bluetooth status data and the time-sharing setting parameters, time-sharing parameter configuration is performed, thereby ensuring that the slave can perform timing adjustment at the best time, providing a flexible and timely parameter adjustment method, adjusting the offset between the wireless mobile network window and the Bluetooth network window, ensuring the accuracy of communication timing matching, thereby improving communication stability and ensuring the normal reception of data.

[0064] Additional aspects and advantages of the present invention will be given in part in the following description, become apparent in part from the following description, or be learned through the practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, without creative efforts, other drawings can be obtained based on these drawings.

[0066] Figure 1 is a flowchart of a timing coordination method on the slave side provided by an embodiment of the present invention;

[0067] Figure 2 is a flowchart of establishing a target connection between the slave and the host on the slave side provided by an embodiment of the present invention;

[0068] Figure 3 is a flowchart of obtaining the target time-sharing setting parameters sent by the host provided by an embodiment of the present invention;

[0069] Figure 4 is a flowchart of determining the Bluetooth network delay provided by an embodiment of the present invention;

[0070] Figure 5 is a flowchart of time-sharing parameter configuration provided by an embodiment of the present invention;

[0071] Figure 6 is a flowchart of determining the window time deviation provided by an embodiment of the present invention;

[0072] Figure 7 is a flowchart of a timing coordination method on the host side provided by an embodiment of the present invention;

[0073] Figure 8 is a flowchart of establishing a target connection between the slave and the host on the host side provided by an embodiment of the present invention;

[0074] Figure 9 is a block diagram of a timing coordination device applied to the slave provided by an embodiment of the present invention;

[0075] Figure 10 is a block diagram of a timing coordination device applied to the host provided by an embodiment of the present invention. Detailed implementation manners

[0076] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Examples of the embodiments are shown in the drawings, where the same or similar reference numerals throughout represent the same or similar elements or elements with the same or similar functions.

[0077] Embodiment

[0078] In view of the existing same-model Wi-Fi+BLE integrated modules, time-sharing multiplexing of Wi-Fi and Bluetooth can avoid conflicts between the two. However, due to the randomness of power-on time windows between modules, the Wi-Fi time window of module A may overlap with the Bluetooth time window of module B. The incompatibility of the two communication modes leads to incomplete data reception and other problems affecting normal communication. In addition, the time-sharing settings of Wi-Fi+BLE modules of different models may be different and solidified inside the modules. During operation, the receiving time windows of the two will continue to offset and change, thereby affecting the normal reception of data. The present invention proposes a timing coordination method, which provides a solution for realizing the automaticity and accuracy of timing synchronization between master and slave machines and improving communication efficiency for smart kitchen appliances. Figure 1 It is a flowchart of a timing coordination method provided by an embodiment of the present invention. This specification provides method operation steps such as the embodiment or flowchart, but may include more or fewer operation steps based on conventional or non-creative labor. The order of steps listed in the embodiment is only one way of executing the steps among many orders, and does not represent the only execution order. When the actual system or server product is executed, it can be executed in sequence or in parallel according to the method shown in the embodiment or the accompanying drawings (for example, in a parallel processor or multi-threaded processing environment). For the slave, specifically as Figure 1 As shown, the method may include the following steps:

[0079] S101: Sending Bluetooth broadcast information, so that when the host obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave and the host is established, and the host periodically switches between the Bluetooth network window and the wireless mobile network window;

[0080] Specifically, in one embodiment, the Bluetooth broadcast information includes an identity code.

[0081] Figure 2 is a flowchart of establishing a target connection between a slave and a host provided by an embodiment of the present invention, specifically as followsFigure 2 As shown in Figure 2 , step S101 includes the following steps:

[0082] S1011: Turn on Bluetooth broadcasting in Bluetooth exclusive mode and send Bluetooth broadcast information.

[0083] Specifically, in one embodiment, the slave module is set to BLE (Bluetooth Low Energy) exclusive mode, turns on Bluetooth broadcasting and waits to be scanned. In this mode, the transceiver of Wi-Fi is turned off, so that all time windows are set for BLE use, ensuring normal Bluetooth communication.

[0084] S1012: Establish a target connection when the identity identification code meets the preset connection requirements.

[0085] Specifically, in one embodiment, the target connection is a GATT (Generic Attribute Profile) connection.

[0086] By turning on Bluetooth broadcasting in Bluetooth exclusive mode, the host can obtain information more safely and effectively during the Bluetooth network window and establish a target connection, providing a more secure connection method and ensuring that the host will establish a connection only when the identity identification code of the slave meets the preset requirements.

[0087] S1013: When the target connection cannot be successfully established within the first preset time, perform time-sharing parameter configuration according to the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter.

[0088] Specifically, in one embodiment, the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter are the default built-in time-sharing parameters of the slave, and the first preset time can be set according to the actual situation, and this embodiment is not limited thereto.

[0089] By automatically performing time-sharing parameter configuration according to the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter when the slave cannot successfully establish a target connection within the preset time, the robustness of the system is increased, ensuring that even in the case of a failed initial connection, it can automatically re-attempt configuration to achieve a communication connection.

[0090] S102: Obtain the target time-sharing setting parameter sent by the host through the target connection, and the time-sharing setting parameter represents the time-sharing switching information between the wireless mobile network window and the Bluetooth network window.

[0091] Specifically, in one embodiment, the target time-sharing setting parameters include an identity identification code, time-sharing parameter header information, and an end symbol; they also include a wireless mobile network (Wi-Fi, Wireless Fidelity) window duration parameter and a Bluetooth network (BLE, Bluetooth Low Energy) window duration parameter; when sending the target time-sharing setting parameters, the data format is as follows:

[0092] Table 1. Data Format

[0093]

[0094] Figure 3 is a flowchart for obtaining the target time-sharing setting parameters sent by the host provided by an embodiment of the present invention. Specifically, as Figure 3 shown, step S102 includes the following steps:

[0095] S1021: Receive the identity identification code, time-sharing parameter header information, and end symbol sent by the host;

[0096] Specifically, in one embodiment, the formats of the sent identity identification code, time-sharing parameter header information, and end symbol are shown in Table 1.

[0097] S1022: When the identity identification code, time-sharing parameter header information, and end symbol meet the preset verification rules, save the target time-sharing setting parameters;

[0098] Specifically, in one embodiment, the saved target time-sharing setting parameters are used for subsequent updates.

[0099] Obtaining the target time-sharing setting parameters sent by the host through the target connection, including the verification of the identity identification code, time-sharing parameter header information, and end symbol in the time-sharing setting parameters, ensures the validity and accuracy of the received time-sharing setting parameters, thereby improving the reliability of communication.

[0100] S103: Receive the Bluetooth status data sent by the host when multiple Bluetooth network windows are opened, and determine the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data;

[0101] Specifically, in one embodiment, the target time-sharing setting parameters include a wireless mobile network window duration parameter and a Bluetooth network window duration parameter.

[0102] Figure 4 is a flowchart for determining the Bluetooth network delay provided by an embodiment of the present invention. Specifically, as Figure 4 shown, step S103 includes the following steps:

[0103] S1031: Based on multiple timestamps, determine the adjacent differences between two adjacent timestamps, perform data fusion processing on the multiple adjacent differences, and determine the duration fusion result;

[0104] Specifically, in one embodiment, the calculation formula for determining the duration fusion result is as follows:

[0105] t = [(t c2 - t c1 ) + (t c3 - t c2 ) +... + (t c10 - t c9 )] / 10 (Equation 1)

[0106] Wherein, t is the duration fusion result, and t ci is the timestamp of the i-th Bluetooth status data received.

[0107] S1032: Based on the wireless mobile network window duration parameter and the Bluetooth network window duration parameter, perform a summation calculation to determine the target window duration parameter;

[0108] Specifically, in one embodiment, the calculation formula for determining the target window duration parameter is as follows:

[0109] T = T W + T B (Equation 2)

[0110] Wherein, T is the target window duration parameter, T W is the wireless mobile network window duration parameter, and T B is the Bluetooth network window duration parameter.

[0111] S1033: Based on the difference between the duration fusion result and the target window duration parameter, determine the Bluetooth network delay;

[0112] Specifically, in one embodiment, the calculation formula for determining the Bluetooth network delay is as follows:

[0113] ΔT = t - T (Equation 3)

[0114] Wherein, ΔT is the Bluetooth network delay, t is the duration fusion result, and T is the target window duration parameter.

[0115] By determining the Bluetooth network delay based on the received multiple timestamps, including averaging the differences between adjacent timestamps, calculating the target window duration parameter and the delay, a more accurate estimation of the Bluetooth network delay is provided.

[0116] S104: When the Bluetooth network delay meets the preset delay condition, based on the current timestamp, the historical timestamp of the most recently received Bluetooth status data, and the time-sharing setting parameter, perform time-sharing parameter configuration;

[0117] Specifically, in one embodiment, when the Bluetooth network latency does not meet the preset latency condition, the timing coordination process ends.

[0118] Figure 5 is a flowchart of time-sharing parameter configuration provided by an embodiment of the present invention. Specifically, as Figure 5 shown, step S104 includes the following steps:

[0119] S1041: Send a stop message to the host, exit the Bluetooth exclusive mode, so that the host stops sending Bluetooth status data and disconnects the target connection. Based on the current timestamp and the historical timestamp of the last received Bluetooth status data, determine the window time deviation;

[0120] Specifically, in one embodiment, the calculation formula for determining the window time deviation is as follows:

[0121]

[0122] where ΔT C is the window time deviation, is the current timestamp, is the historical timestamp of the last received Bluetooth status data.

[0123] Figure 6 is a flowchart of determining the window time deviation provided by an embodiment of the present invention. Specifically, as Figure 6 shown, step S1041 includes the following steps:

[0124] S1411: When the window time deviation is greater than or equal to the target window duration parameter, determine the window time deviation as the current difference;

[0125] Specifically, in one embodiment, the comparison formula for determining the current difference is as follows:

[0126]

[0127] where ΔT C is the window time deviation, T is the target window duration parameter, is the current difference.

[0128] S1412: Determine the difference between the current difference and the target window duration parameter as the next difference;

[0129] Specifically, in one embodiment, the calculation formula for determining the next difference is as follows:

[0130]

[0131] where, is the next difference, ΔT is the current difference, and T is the target window duration parameter.

[0132] S1413: Determine the next difference as the current difference;

[0133] Specifically, in one embodiment, the calculation formula for determining the next difference as the current difference is as follows:

[0134]

[0135] Wherein, ΔT is the current difference, ΔT' is the next difference.

[0136] S1414: Determine whether the current difference is less than the target window duration parameter;

[0137] Specifically, in one embodiment, when it is determined that the current difference is less than the target window duration parameter, that is:

[0138]

[0139] Wherein, ΔT is the current difference, and T is the target window duration parameter.

[0140] Then enter step S1415;

[0141] If the judgment is no, return to step S1412 and perform loop calculation until the current difference is less than the target window duration parameter.

[0142] S1415: Determine the current difference as the window time deviation;

[0143] Specifically, in one embodiment, the calculation formula for determining the window time deviation is as follows:

[0144]

[0145] Wherein, ΔT C is the window time deviation, ΔT is the current difference.

[0146] Figure 9 is the flowchart of the loop calculation provided by the embodiment of the present invention, specifically as Figure 9 shown.

[0147] An iterative method for handling cases where the window time deviation is greater than or equal to the target window duration parameter. When the initial deviation is too large, directly making a large time adjustment may cause instability or even temporary disconnection of the communication system. By a series of calculation steps, the current difference is continuously reduced until it is less than the target window duration parameter to determine the final window time deviation, ensuring that even when the initial time synchronization difference is large, the timing can be finally adjusted accurately, the time correction can be achieved smoothly, thereby reducing the impact on system stability, maintaining the synchronization of network communication, and avoiding possible data conflicts or communication interruptions.

[0148] S1042: When the window time deviation is less than the target window duration parameter and the window time deviation is less than the Bluetooth network window duration parameter, determine a first time interval, where the first time interval is determined based on the difference between the Bluetooth network window duration parameter and the window time deviation;

[0149] Specifically, in one embodiment, the calculation formula for determining the first time interval is as follows:

[0150] If ΔT C <T B , then T1 = T B - ΔT C (Equation Ten)

[0151] Where, ΔT C is the window time deviation, T B is the Bluetooth network window duration parameter, and T1 is the first time interval.

[0152] S1043: Determine the first window time start point of the wireless mobile network window for the time node after the first time interval starting from the current time node;

[0153] Specifically, in one embodiment, starting from the current time node, after timing for T1 time, it is the first window time start point, that is, starting from this moment, it is set as the wireless mobile network window.

[0154] S1044: Based on the first window time start point and the wireless mobile network window duration parameter, perform time-sharing parameter configuration for the wireless mobile network window;

[0155] Specifically, in one embodiment, update the time-sharing settings of the slave device. Based on the time start point of the wireless mobile network window, the slave device switches between the wireless mobile network window and the Bluetooth network window periodically according to the target time-sharing parameters T W and T B The slave device saves the matched time-sharing setting parameters, and the subsequent restart performs the local time-sharing configuration according to this parameter.

[0156] By exiting the Bluetooth exclusive mode and notifying the host to stop sending Bluetooth status data under the condition of meeting the preset time delay condition, the energy consumption is saved, and at the same time, the resource occupation that may be caused by the continuous connection is reduced; when the window time deviation is less than the target window duration parameter and greater than or equal to the Bluetooth network window duration parameter, the time interval is calculated, the window time deviation is determined based on the current timestamp and the historical timestamp, and the time-sharing parameter is configured accordingly, and the starting point of the wireless mobile network window is determined under the specific deviation condition, ensuring the accuracy of the communication timing, so as to optimize the switching efficiency of the subsequent wireless mobile network time window while maintaining the current connection state, and ensuring that the slave can perform timing adjustment at the best time.

[0157] S1045: When the window time deviation is less than the target window duration parameter and the window time deviation is greater than or equal to the Bluetooth network window duration parameter, determine the second time interval, and the second time interval is determined based on the difference between the target window duration parameter and the window time deviation;

[0158] Specifically, in one embodiment, the calculation formula for determining the second time interval is as follows:

[0159] If ΔT C ≥T B , then T2 = T - ΔT C (Equation Ten)

[0160] Where, ΔT C is the window time deviation, T is the target window duration parameter, and T2 is the second time interval.

[0161] S1046: Determine the second window time starting point of the Bluetooth network window for the time nodes after the second time interval starting from the current time node;

[0162] Specifically, in one embodiment, starting from the current time node, after timing for T2 time, it is the second window time starting point, that is, the Bluetooth network window is set from this moment.

[0163] S1047: Based on the second window time starting point and the Bluetooth network window duration parameter, perform time-sharing parameter configuration for the Bluetooth network window;

[0164] Specifically, in one embodiment, update the time-sharing settings of the slave. Based on the starting point of the Bluetooth network window, the slave switches between the wireless mobile network window and the Bluetooth network window periodically according to the target time-sharing parameters T W and T B The slave saves the matched time-sharing setting parameters, and the subsequent restart performs the time-sharing configuration of the local machine according to this parameter.

[0165] By calculating the time interval when the window time deviation is less than the target window duration parameter and greater than or equal to the Bluetooth network window duration parameter, and configuring the time-sharing parameter accordingly, the flexibility of the system's timing control is improved, allowing the host and slave to adjust the timing synchronization in real time in the face of changing network delays, and improving the reliability and efficiency of Bluetooth communication.

[0166] An embodiment of the present invention also provides a timing coordination method, and the execution subject is the host, specifically as Figure 7 shown, the method may include the following steps:

[0167] S201: Periodically switch between the wireless mobile network window and the Bluetooth network window according to the target time-sharing setting parameter;

[0168] Specifically, in one embodiment, the current time-sharing setting parameter of the host is the target time-sharing setting parameter, and the host periodically switches between the wireless mobile network window and the Bluetooth network window according to the target time-sharing setting parameter.

[0169] S202: Obtain the Bluetooth broadcast information sent by the slave in the Bluetooth network window, and establish a target connection between the slave and the host;

[0170] Specifically, Figure 8 is the flowchart for establishing a target connection between the slave and the host on the host side provided by the embodiment of the present invention, specifically as Figure 8 shown, step S202 includes the following steps:

[0171] S2021: Receive the Bluetooth broadcast information in the Bluetooth network window;

[0172] Specifically, in one embodiment, in one embodiment, the host first scans the broadcast signal of the slave, parses the received broadcast data, and the parsed Bluetooth broadcast information includes the identity identification code UUID (Universally Unique Identifier).

[0173] S2022: Establish a target connection when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements;

[0174] Specifically, in one embodiment, it is judged whether the identity identification code UUID meets the preset connection requirements, and the target connection is a GATT connection.

[0175] By scanning and identifying the identity identification code sent by the slave, a target connection is established only when this code meets the preset connection requirements, improving security, and ensuring through authentication that only authorized slaves can establish a connection with the host, thereby preventing unauthorized devices from connecting or interfering with communication.

[0176] S2023: When the identity identification code does not meet the preset connection requirements, repeat the steps: under the Bluetooth network window, receive Bluetooth broadcast information; when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements, establish a target connection;

[0177] Specifically, in one embodiment, when the identity identification code does not meet the preset connection requirements, the host continues to scan.

[0178] S2024: When the Bluetooth broadcast information is not successfully received within the second preset time, end the timing coordination process;

[0179] Specifically, in one embodiment, the second preset time can be set according to the actual situation, and this embodiment is not limited thereto.

[0180] By continuously repeating the steps of scanning and identity code determination until the set second preset time ends, a solution is provided for dealing with scanning failures or slave identity identification errors, ensuring the robustness of the process and the reliability of the connection.

[0181] S203: Send target time-sharing setting parameters to the slave through the target connection, where the target time-sharing setting parameters represent the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0182] Specifically, in one embodiment, the target time-sharing parameters are the same as those described in step S102.

[0183] S204: Send multiple Bluetooth status data to the slave in multiple Bluetooth network windows;

[0184] Specifically, in one embodiment, one Bluetooth status data is sent in one Bluetooth network window.

[0185] S205: When the stop information sent by the slave is received, stop sending the Bluetooth status data and disconnect the target connection;

[0186] By when the stop information sent by the slave is received, the host will stop sending the status data and disconnect the target connection, which can effectively control the life cycle of the connection, allow the slave to actively end the communication and release resources, thereby increasing the flexibility and controllability of the system. At the same time, it also helps to save power because unnecessary connections can be disconnected in time.

[0187] Specifically, in one embodiment, taking the timing coordination between an intelligent range hood and a gas stove in a smart home control system in the kitchen as an example, it is determined that the intelligent gas stove is the master device and the intelligent range hood is the slave device. The intelligent range hood includes a Bluetooth information sending module, which is used to send Bluetooth broadcast information in the Bluetooth exclusive mode, including the identity identification code of the range hood. The intelligent gas stove scans and receives these broadcast information during the set Bluetooth network window through the built-in Bluetooth function module to complete the establishment of the target connection.

[0188] When the intelligent gas stove scans the broadcast signal of the intelligent range hood within its Bluetooth network window and verifies that the identity identification code meets the preset connection requirements, a GATT connection will be established. After that, the intelligent gas stove sends the target time-sharing setting parameters to the intelligent range hood through the established GATT connection. These parameters characterize the time-sharing switching information between the wireless mobile network window and the Bluetooth network window.

[0189] After receiving the target time-sharing setting parameters sent by the intelligent gas stove, the intelligent range hood determines the Bluetooth network delay based on the timestamps of multiple received Bluetooth status data. When the Bluetooth network delay meets the preset delay condition, the intelligent range hood performs time-sharing parameter configuration according to the current timestamp, the historical timestamp of the most recently received Bluetooth status data, and the time-sharing setting parameters to adjust its own communication timing to ensure synchronization with the intelligent gas stove.

[0190] In this embodiment, the synchronization of the intelligent gas stove and the intelligent range hood will support a series of smart home scenarios. For example, when the user starts the gas stove for cooking, the range hood can respond in time and turn on the exhaust function, so as to keep the kitchen environment clean and safe.

[0191] In order to prevent problems such as incomplete data reception in the two communication methods, this embodiment ensures that the master device and the slave device switch between the Bluetooth network window and the wireless mobile network window periodically. When the target connection cannot be established, time-sharing parameter configuration is performed according to the preset wireless mobile window duration parameter and Bluetooth network window duration parameter to promote continuous data reception and processing.

[0192] It should be noted that the above is only an example of the application of the present invention in an actual scenario and is not limited thereto.

[0193] An embodiment of the present invention also provides a timing coordination device. Figure 9 It is a block diagram of a timing coordination device shown according to an exemplary embodiment. Referring to Figure 9 , the device is applied to the slave device and includes:

[0194] A Bluetooth information sending module 901, which is used to send Bluetooth broadcast information so that when the host obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave and the host is established, and the host performs periodic switching between the Bluetooth network window and the wireless mobile network window;

[0195] A target time-sharing setting parameter obtaining module 902, which is used to obtain the target time-sharing setting parameter sent by the host through the target connection, and the time-sharing setting parameter represents the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0196] A Bluetooth network delay determining module 903, which is used to receive the Bluetooth status data sent by the host when multiple Bluetooth network windows are opened, and determine the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data;

[0197] A time-sharing parameter configuration module 904, which is used to perform time-sharing parameter configuration based on the current timestamp, the historical timestamp of the last received Bluetooth status data, and the time-sharing setting parameter when the Bluetooth network delay meets the preset delay condition.

[0198] Specifically, in one embodiment, the above Bluetooth information sending module 901 may further include:

[0199] A Bluetooth broadcast module, which is used to turn on Bluetooth broadcast in the Bluetooth exclusive mode and send Bluetooth broadcast information;

[0200] A first target connection establishing module, which is used to establish a target connection when the identity identification code meets the preset connection requirements;

[0201] A preset time-sharing parameter configuration module, which is used to perform time-sharing parameter configuration according to the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter when the target connection cannot be successfully established within the first preset time.

[0202] Specifically, in one embodiment, the above target time-sharing setting parameter obtaining module 902 may further include:

[0203] A receiving module, which is used to receive the identity identification code, the time-sharing parameter header information, and the end symbol sent by the host;

[0204] A target time-sharing setting parameter saving module, which is used to save the target time-sharing setting parameter when the identity identification code, the time-sharing parameter header information, and the end symbol meet the preset verification rules.

[0205] Specifically, in one embodiment, the above Bluetooth network delay determining module 903 may further include:

[0206] A duration fusion result determination module, configured to determine adjacent differences between two adjacent timestamps based on multiple timestamps, perform data fusion processing on multiple adjacent differences, and determine a duration fusion result;

[0207] A target window duration parameter determination module, configured to perform a summation calculation based on a wireless mobile network window duration parameter and a Bluetooth network window duration parameter to determine a target window duration parameter;

[0208] A Bluetooth network delay determination module, configured to determine a Bluetooth network delay based on the difference between the duration fusion result and the target window duration parameter.

[0209] Specifically, in one embodiment, the above-mentioned time-sharing parameter configuration module 904 may further include:

[0210] A window time deviation determination module, configured to send a stop message to the host to exit the Bluetooth exclusive mode, so that the host stops sending Bluetooth status data and disconnects the target connection, and determine a window time deviation based on the current timestamp and the historical timestamp when the Bluetooth status data was last received.

[0211] Specifically, in one embodiment, the above-mentioned window time deviation determination module may further include:

[0212] A current difference determination module, configured to determine the window time deviation as the current difference when the window time deviation is greater than or equal to the target window duration parameter;

[0213] A next difference determination module, configured to determine the difference between the current difference and the target window duration parameter as the next difference;

[0214] A current difference update module, configured to determine the next difference as the current difference;

[0215] A current difference judgment module, configured to judge whether the current difference is less than the target window duration parameter;

[0216] A window time deviation determination module, configured to determine the current difference as the window time deviation.

[0217] A first time interval determination module, configured to determine a first time interval when the window time deviation is less than the target window duration parameter and the window time deviation is less than the Bluetooth network window duration parameter, and the first time interval is determined based on the difference between the Bluetooth network window duration parameter and the window time deviation;

[0218] A first window time starting point determination module, configured to determine the time node after the first time interval starting from the current time node as the first window time starting point of the wireless mobile network window;

[0219] A wireless mobile network window time-sharing parameter configuration module is used to configure the time-sharing parameters of the wireless mobile network window based on the first window time start point and the wireless mobile network window duration parameter;

[0220] A second time interval determination module is used to determine a second time interval when the window time deviation is less than the target window duration parameter and greater than or equal to the Bluetooth network window duration parameter. The second time interval is determined based on the difference between the target window duration parameter and the window time deviation;

[0221] A second window time start point determination module is used to determine the time node after the second time interval starting from the current time node as the second window time start point of the Bluetooth network window;

[0222] A Bluetooth network window time-sharing parameter configuration module is used to configure the time-sharing parameters of the Bluetooth network window based on the second window time start point and the Bluetooth network window duration parameter.

[0223] An embodiment of the present invention also provides a timing coordination device, Figure 10 which is a block diagram of a timing coordination device shown according to an exemplary embodiment. Refer to Figure 10 , and the device is applied to a host and includes:

[0224] A network window control module 905 is used to perform periodic switching between the wireless mobile network window and the Bluetooth network window according to the target time-sharing setting parameter;

[0225] A Bluetooth broadcast information acquisition module 906 is used to acquire Bluetooth broadcast information sent by a slave device in the Bluetooth network window and establish a target connection between the slave device and the host;

[0226] A target time-sharing setting parameter sending module 907 is used to send the target time-sharing setting parameter to the slave device through the target connection. The target time-sharing setting parameter characterizes the time-sharing switching information between the wireless mobile network window and the Bluetooth network window;

[0227] A Bluetooth status data sending module 908 is used to send multiple Bluetooth status data to the slave device in multiple Bluetooth network windows.

[0228] Specifically, in one embodiment, the above Bluetooth broadcast information acquisition module 906 may further include:

[0229] A Bluetooth broadcast information receiving module is used to receive Bluetooth broadcast information in the Bluetooth network window;

[0230] A second target connection establishment module is used to establish a target connection when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements;

[0231] A step repetition module, configured to, when the identity identification code does not meet the preset connection requirement, repeat the steps: receive Bluetooth broadcast information under the Bluetooth network window; establish a target connection when the identity identification code in the Bluetooth broadcast information meets the preset connection requirement.

[0232] A timing coordination process end module, configured to end the timing coordination process when the Bluetooth broadcast information is not successfully received within the second preset time.

[0233] Regarding the device in the above embodiments, the specific manners in which each module performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.

[0234] An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the program, the timing coordination method provided in the above method embodiment is implemented.

[0235] An embodiment of the present invention further provides a storage medium, which can be disposed in a server to store at least one instruction, at least one program, a code set, or an instruction set related to implementing the speed planning method in the method embodiment. The at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by the processor to implement the timing coordination method provided in the above method embodiment.

[0236] Optionally, in this embodiment, the above storage medium may be located in at least one of multiple network servers in a computer network. Optionally, in this embodiment, the above storage medium may include, but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk, or an optical disc, etc., various media that can store program codes.

[0237] It should be noted that, without departing from the scope of the present disclosure, the timing coordination method provided in the embodiments of the present invention can be applied to the interaction between any type of kitchen appliances.

[0238] As can be seen from the embodiments of the timing coordination method, electronic device, and storage medium provided by the present invention above, in the embodiments of the present invention, by sending Bluetooth broadcast information, when the host obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave device and the host is established, and the host periodically switches between the Bluetooth network window and the wireless mobile network window, so that the host can obtain information and establish a target connection more safely and effectively during the Bluetooth network window; by obtaining the target time-sharing setting parameters sent by the host through the target connection, the time-sharing setting parameters characterize the time-sharing switching information between the wireless mobile network window and the Bluetooth network window, ensuring the effectiveness and accuracy of the received time-sharing setting parameters, and the time-sharing setting parameters can be unified, thereby improving the reliability of communication; by receiving the Bluetooth status data sent by the host when multiple Bluetooth network windows are opened, based on the timestamps of the received multiple Bluetooth status data, the Bluetooth network delay is determined, thereby providing a more accurate estimation of the Bluetooth network delay to help optimize the timing coordination strategy; when the Bluetooth network delay meets the preset delay condition, based on the current timestamp, the historical timestamp of the last received Bluetooth status data, and the time-sharing setting parameters, time-sharing parameter configuration is performed, thereby ensuring that the slave device can perform timing adjustment at the best time, providing a flexible and timely parameter adjustment method, adjusting the offset between the wireless mobile network window and the Bluetooth network window, ensuring the accuracy of communication timing matching, thereby improving communication stability and ensuring the normal reception of data.

[0239] It should be noted that the above sequence of the embodiments of the present invention is only for description and does not represent the advantages or disadvantages of the embodiments. And the above describes specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0240] Each embodiment in this specification is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0241] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims

1. A timing coordination method, characterized in that, Applied to a slave device, the method includes: Sending Bluetooth broadcast information so that when the master device obtains the Bluetooth broadcast information in the Bluetooth network window, a target connection between the slave device and the master device is established, and the master device periodically switches between the Bluetooth network window and the wireless mobile network window; Obtaining, through the target connection, target time-sharing setting parameters sent by the master device, where the time-sharing setting parameters characterize the time-sharing switching information between the wireless mobile network window and the Bluetooth network window; Receiving Bluetooth status data sent by the master device when multiple Bluetooth network windows are open, and determining the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data; When the Bluetooth network delay meets the preset delay condition, performing time-sharing parameter configuration based on the current timestamp, the historical timestamp of the most recently received Bluetooth status data, and the time-sharing setting parameters.

2. The method according to claim 1, characterized in that The Bluetooth broadcast information includes an identity identification code; The sending of the Bluetooth broadcast information so that when the master device obtains the Bluetooth broadcast information in the Bluetooth network window, establishing the target connection between the slave device and the master device includes: Enabling Bluetooth broadcast in the Bluetooth exclusive mode, and sending the Bluetooth broadcast information so that the master device receives the Bluetooth broadcast information when scanning the Bluetooth broadcast signal in the Bluetooth network window, and establishing the target connection when the identity identification code meets the preset connection requirements.

3. The method according to claim 2, characterized in that The method further includes: When the target connection is not successfully established within the first preset time, performing the time-sharing parameter configuration according to the preset wireless mobile network window duration parameter and the preset Bluetooth network window duration parameter.

4. The method according to claim 1, wherein The target time-sharing setting parameters include an identity identification code, time-sharing parameter header information, and an end symbol; The obtaining, through the target connection, of the target time-sharing setting parameters sent by the master device includes: Receiving the identity identification code, the time-sharing parameter header information, and the end symbol sent by the master device; When the identity identification code, the time-sharing parameter header information, and the end symbol meet the preset verification rules, saving the target time-sharing setting parameters.

5. The method according to claim 1, wherein The target time-sharing setting parameters include a wireless mobile network window duration parameter and a Bluetooth network window duration parameter; The receiving of the Bluetooth status data sent by the master device when multiple Bluetooth network windows are open, and determining the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data includes: Based on the multiple timestamps, determining the adjacent difference between two adjacent timestamps, and performing data fusion processing on the multiple adjacent differences to determine a duration fusion result; Performing a summation calculation based on the wireless mobile network window duration parameter and the Bluetooth network window duration parameter to determine a target window duration parameter; Determining the Bluetooth network delay based on the difference between the duration fusion result and the target window duration parameter.

6. The method according to claim 5, characterized in that, The when the Bluetooth network delay meets the preset delay condition, performing time-sharing parameter configuration based on the current timestamp, the historical timestamp of the most recently received Bluetooth status data, and the time-sharing setting parameters, includes: Send a stop message to the host and exit the Bluetooth exclusive mode, so that the host stops sending the Bluetooth status data and disconnects the target connection, and determine the window time deviation based on the current timestamp and the historical timestamp when the Bluetooth status data was last received; When the window time deviation is less than the target window duration parameter and the window time deviation is less than the Bluetooth network window duration parameter, determine a first time interval, where the first time interval is determined based on the difference between the Bluetooth network window duration parameter and the window time deviation; Determine the first window time start point of the wireless mobile network window as the time node after the first time interval starting from the current time node; Based on the first window time start point and the wireless mobile network window duration parameter, perform time-sharing parameter configuration for the wireless mobile network window.

7. The method according to claim 6, wherein The method further includes: When the window time deviation is less than the target window duration parameter and the window time deviation is greater than or equal to the Bluetooth network window duration parameter, determine a second time interval, where the second time interval is determined based on the difference between the target window duration parameter and the window time deviation; Determine the second window time start point of the Bluetooth network window as the time node after the second time interval starting from the current time node; Based on the second window time start point and the Bluetooth network window duration parameter, perform time-sharing parameter configuration for the Bluetooth network window.

8. The method according to claim 6, characterized in that, The determining the window time deviation based on the current timestamp and the historical timestamp when the Bluetooth status data was last received includes: When the window time deviation is greater than or equal to the target window duration parameter, determine the window time deviation as the current difference; Determine the difference between the current difference and the target window duration parameter as the next difference; Determine the next difference as the current difference; Repeat the steps: determine the difference between the current difference and the target window duration parameter as the next difference; determine the next difference as the current difference until the current difference is less than the target window duration parameter; Determine the current difference as the window time deviation.

9. A timing coordination method, characterized in that, Applied to the host, the method includes: Perform periodic switching between the wireless mobile network window and the Bluetooth network window according to the target time-sharing setting parameters; Obtain the Bluetooth broadcast information sent by the slave in the Bluetooth network window and establish a target connection between the slave and the host; Send the target time-sharing setting parameters to the slave through the target connection, where the target time-sharing setting parameters represent the time-sharing switching information between the wireless mobile network window and the Bluetooth network window; Send multiple Bluetooth status data to the slave in multiple Bluetooth network windows.

10. The method according to claim 9, wherein The Bluetooth broadcast information includes an identity identification code; The obtaining the Bluetooth broadcast information sent by the slave in the Bluetooth network window and establishing a target connection between the slave and the host includes: Receive the Bluetooth broadcast information in the Bluetooth network window; When the identity identification code in the Bluetooth broadcast information meets the preset connection requirements, establish the target connection.

11. The method according to claim 10, wherein The method further includes: When the identity identification code does not meet the preset connection requirements, repeat the steps: under the Bluetooth network window, receive the Bluetooth broadcast information; when the identity identification code in the Bluetooth broadcast information meets the preset connection requirements, establish the target connection; When the Bluetooth broadcast information is not successfully received within the second preset time, end the timing coordination process.

12. The method according to claim 9, characterized in that, After the method, it further includes: When receiving the stop information sent by the slave device, stop sending the Bluetooth status data and disconnect the target connection.

13. A timing coordination device, characterized in that, Applied to the slave device, the device includes: A Bluetooth information sending module, configured to send Bluetooth broadcast information, so that when the master device obtains the Bluetooth broadcast information in the Bluetooth network window, establish a target connection between the slave device and the master device, and the master device periodically switches between the Bluetooth network window and the wireless mobile network window; A target time-sharing setting parameter obtaining module, configured to obtain the target time-sharing setting parameter sent by the master device through the target connection, and the time-sharing setting parameter represents the time-sharing switching information between the wireless mobile network window and the Bluetooth network window; A Bluetooth network delay determining module, configured to receive the Bluetooth status data sent by the master device when multiple Bluetooth network windows are opened, and determine the Bluetooth network delay based on the timestamps of the received multiple Bluetooth status data; A time-sharing parameter configuration module, configured to perform time-sharing parameter configuration based on the current timestamp, the historical timestamp of the most recent received Bluetooth status data, and the time-sharing setting parameter when the Bluetooth network delay meets the preset delay condition.

14. A timing coordination device, characterized in that, Applied to the master device, the device includes: A network window control module, configured to perform periodic switching between the wireless mobile network window and the Bluetooth network window according to the target time-sharing setting parameter; A Bluetooth broadcast information obtaining module, configured to obtain the Bluetooth broadcast information sent by the slave device in the Bluetooth network window and establish a target connection between the slave device and the master device; A target time-sharing setting parameter sending module, configured to send the target time-sharing setting parameter to the slave device through the target connection, and the target time-sharing setting parameter represents the time-sharing switching information between the wireless mobile network window and the Bluetooth network window; A Bluetooth status data sending module, configured to send multiple Bluetooth status data to the slave device in multiple Bluetooth network windows.

15. An electronic device, characterized in that, The electronic device includes a processor and a memory, and at least one instruction, at least one program, a code set or an instruction set is stored in the memory, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to implement the timing coordination method according to any one of claims 1-12.

16. A computer-readable storage medium, characterized in that, At least one instruction, at least one program, a code set or an instruction set is stored in the storage medium, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the timing coordination method according to any one of claims 1-12.

Citation Information

Cited By

  • Networking system data transmission method, networking system and electronic equipment

    CN120856489A