Multi-room hybrid networking method and device, electronic equipment, and storage medium
By combining Wi-Fi and UWB technology in multi-room audio equipment, low-latency audio data transmission and device synchronization are achieved, solving the problems of poor synchronization and limited coverage, simplifying the networking process, and improving user experience.
Patent Information
- Application Number
- CN202410787100.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-18
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2044-06-18
AI Technical Summary
Existing multi-room audio equipment networking has problems such as poor synchronization, limited coverage, and complex networking. Especially when the same audio content is played in multiple rooms at the same time, poor synchronization affects the user experience.
Adopting a multi-room hybrid networking method, by obtaining the first device, configuring the first transmission network and the second transmission network, and using the combination of Wi-Fi and UWB technology to achieve low-latency audio data transmission and device synchronization, automatic discovery and networking , reducing the complexity of manual configuration by users.
It improves the coverage and synchronization of multi-room devices, simplifies the networking process, improves user experience, ensures synchronous audio playback of devices in multiple rooms, and reduces audio transmission delays.
Smart Images

Figure CN118354325B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of data transmission, and in particular to a multi-room hybrid networking method and device, electronic equipment, and storage medium. Background Art
[0002] With the development of smart devices and the Internet, users' demand for multimedia services has also increased. Among them, there are more and more application scenarios in which multiple devices, especially devices in multiple rooms, are used to collaboratively play the same audio file. By collaboratively playing the same audio file through different devices, the purpose of improving the playback effect and playback quality of the audio file can be achieved. Usually, one device is selected from the multiple devices that perform the collaborative playback operation as the master device, and all other devices except the master device are slave devices.
[0003] An existing common wireless audio transmission solution is a playback system composed of multi-room audio devices based on Bluetooth technology. This type of system connects multiple audio devices via Bluetooth to achieve audio playback. Bluetooth technology has low latency and good sound quality in close range, but its transmission distance is limited and it usually cannot cover multiple rooms, that is, the coverage is limited. At the same time, Bluetooth technology has limitations on the number of device connections, making it difficult to meet the audio transmission needs of a large range and multiple devices. To solve this problem, another wireless audio transmission solution provided is a playback system composed of multi-room audio devices based on Wi-Fi technology. These systems connect multiple audio devices through a home Wi-Fi network. Users can control audio devices in different rooms through mobile applications and choose to play the same or different music content. The advantage of Wi-Fi technology is that it has a wide coverage range and can support audio transmission in multiple rooms, but Wi-Fi technology has obvious delays in audio synchronization between multiple devices, especially when multiple rooms need to play the same audio content at the same time. The delay caused by this poor synchronization is more obvious, affecting the user experience.
[0004] In addition, in the prior art, in the process of networking multi-room audio devices, manual configuration and connection between devices are usually required, which is a complicated and inconvenient process and has a poor user experience. Summary of the invention
[0005] In view of this, the present application provides a multi-room hybrid networking method and device, an electronic device, and a storage medium, which can improve the problems of poor synchronization, limited coverage, and complex networking in multi-room networking.
[0006] The present application provides a multi-room hybrid networking method, comprising:
[0007] In response to a networking request for multiple rooms, obtaining a first device in each room that is connected to the first transmission network;
[0008] configuring a first transmission network between a plurality of the first devices;
[0009] Scanning the second devices in the rooms where the first devices are located by each of the first devices;
[0010] A second transmission network is configured between the first device and the second device in each room, wherein a transmission delay of the second transmission network is smaller than a transmission delay of the first transmission network.
[0011] Optionally, the method further includes:
[0012] Selecting one of a plurality of first devices connected to the first transmission network as a reference device;
[0013] Adjusting the clocks of all first devices to be consistent with each other with reference to the clock of the reference device;
[0014] In each room, the clocks of all second devices are adjusted to be consistent with each other with reference to the clock of the first device.
[0015] Optionally, the method further includes:
[0016] Transmitting the audio data to one or more of the first devices via the first transmission network;
[0017] The audio data is transmitted between the first devices via the first transmission network, and / or the audio data is transmitted to the corresponding second device via the second transmission network using the first device.
[0018] Optionally, the first transmission network includes a Wi-Fi network, and the second transmission network includes a UWB network.
[0019] Optionally, obtaining a first device connected to the first transmission network in each room includes:
[0020] S11: Acquire all devices in a single room that are connected to the first transmission network;
[0021] S12: Select one of the devices to send a broadcast packet including its own source address and communication parameters but without a destination address;
[0022] S13: Based on the internal protocol of the second transmission network, after receiving the broadcast packet, each of the remaining devices compares the current communication quality of each device with the communication quality of the one of the devices according to the current communication parameters of each device and the communication parameters of the one of the devices;
[0023] S14: For any device among the remaining devices, if the current communication quality is worse than the communication quality of one of the devices, no broadcast packet is sent;
[0024] S15: For any device among the remaining devices, if the current communication quality is better than the communication quality of one of the devices, a broadcast packet including its own source address and communication parameters but without a destination address is sent;
[0025] Repeating S12 to S15 until only one device remains;
[0026] A broadcast packet sent by the last remaining device is received and a source address is obtained therefrom, and a device corresponding to the source address is used as the first device.
[0027] Optionally, the broadcast packet is provided with an identification code for recording the number of times the device has sent the broadcast packet up to the current time; the method further includes:
[0028] It is determined whether there is only one remaining device according to the identification code of the broadcast packet.
[0029] Optionally, the method further includes:
[0030] Obtain the maximum time from when a device sends a broadcast packet to when another device receives the broadcast packet;
[0031] When only one broadcast packet is received when the time from the last broadcast packet received exceeds the maximum time, it is determined that there is only one remaining device.
[0032] The present application provides a multi-room hybrid networking device, comprising:
[0033] An acquisition unit, configured to, in response to a networking request for a plurality of rooms, acquire a first device in each room that is connected to the first transmission network;
[0034] A first configuration unit, configured to configure a first transmission network between a plurality of the first devices;
[0035] A scanning unit, configured to scan the second devices in the rooms where the first devices are located respectively;
[0036] The second configuration unit is used to configure a second transmission network between the first device and the second device in each room.
[0037] The present application provides an electronic device, including a memory and a processor, wherein the memory stores a multi-room hybrid networking program, and when the multi-room hybrid networking program is executed by the processor, the corresponding steps of the multi-room hybrid networking method described above are implemented.
[0038] The present application provides a storage medium storing a computer program, which, when executed by a processor, corresponds to the steps of the multi-room hybrid networking method described above.
[0039] As described above, the present application establishes a connection between the first devices in multiple rooms through a first transmission network, and establishes a connection between the first device and the second device in the respective room through a second transmission network, thereby networking the first devices and the second devices in the multiple rooms, supporting the interconnection and transmission of multi-room devices, so that the coverage area including audio transmission is larger; in addition, the devices can automatically discover and network with each other, reducing the complexity of manual configuration and connection by the user, thereby simplifying the networking process and improving the convenience and ease of use of the system; and the transmission delay of the second transmission network is less than the transmission delay of the first transmission network. For example, the first transmission network is a Wi-Fi network and the second transmission network is a UWB network. UWB technology can realize the characteristics of short-distance wireless high-speed data transmission, that is, using advanced low-latency and high-precision technologies to ensure that devices in multiple rooms are synchronized as much as possible, such as synchronous playback of audio in multiple rooms, reducing delays in audio transmission, and having better synchronization, thereby improving user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 It is a flowchart of a first multi-room hybrid networking method provided in an embodiment of the present application;
[0041] Figure 2 It is a schematic diagram of a multi-room hybrid networking architecture provided in an embodiment of the present application;
[0042] Figure 3 It is a flowchart of a second multi-room hybrid networking method provided in an embodiment of the present application;
[0043] Figure 4 It is a flowchart of a third multi-room hybrid networking method provided in an embodiment of the present application;
[0044] Figure 5 It is a structural diagram of a multi-room hybrid networking device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to solve the above problems existing in the prior art, the present application provides a multi-room hybrid networking method and device, electronic device, and storage medium. These protection themes are based on the same concept, and the principles of solving the problems are basically the same or similar. The implementation methods of each protection theme can refer to each other, and the repeated parts will not be repeated.
[0046] In order to make the purpose, technical solutions and advantages of the present application clearer, the technical solutions of the present application will be clearly described below in conjunction with specific embodiments and corresponding drawings. Obviously, the embodiments described below are only part of the embodiments of the present application, not all of the embodiments. In the absence of conflict, the following embodiments and their technical features can be combined with each other and also belong to the technical solutions of the present application.
[0047] Figure 1 A multi-room hybrid networking method provided for an embodiment of the present application may be referred to as a hybrid networking method or method in some places of this document. The applicable scenarios of the present application include but are not limited to the networking of multiple devices located in multiple rooms, the Internet of Things, etc. Taking multi-room networking as an example, multiple devices can be formed into a system, and the number of devices included can be determined according to the adaptability of actual needs. Transmission is carried out between each device through two network technologies, which may include the communication behavior of a device directly with only one device, or the communication behavior of a device directly with multiple devices. However, no matter which communication behavior, any two directly communicating devices establish connection and transmission through the corresponding internal protocol.
[0048] When executing different services, the role attributes of the same device can be changed, that is, the same device can be used as both a master device and a slave device. The so-called master device can be understood as a role in deployment and management in a certain service, such as being responsible for the transmission of audio data. The master device can determine the slave device for this service. Correspondingly, the so-called slave device can be understood as a role in data obedience deployment and management in this communication transmission service, such as being responsible for the reception and playback of audio data. These master devices and slave devices can be determined by the transmission requirements of audio data to execute the method.
[0049] The execution subject of the method of the present application can be any device in the aforementioned system (which can be called a main device or a user device), and the specific form of the device includes but is not limited to at least one of the following: household appliances such as speakers and mobile phones; corresponding communication devices or communication modules with UWB and / or Wi-Fi functions.
[0050] See also Figure 1 The multi-room hybrid networking method includes at least the following S1 to S4.
[0051] S1: In response to a networking request for multiple rooms, obtain a first device in each room that is connected to a first transmission network.
[0052] The networking request may be initiated by an execution subject of the method (which may be referred to as an "execution device"), in combination with Figure 2 As shown, taking the first transmission network as a Wi-Fi network and the second transmission network as a UWB network as an example, first obtain all devices connected to the Wi-Fi network in all rooms. These devices can all be called first devices, and then the user can select one of the devices as the execution entity to initiate the networking request according to needs.
[0053] S2: Configure a first transmission network between multiple first devices.
[0054] The configuration in S2 includes but is not limited to at least one of the following: information of the first transmission network, such as the name of the Wi-Fi network, etc.; selecting a portion of the first devices to execute the method of the present application; configuring the transmission path between the first devices, such as which first devices in which rooms are responsible for the current audio transmission, and the order and path of the audio transmission. Any technical feature of the present application can be implemented in two or more ways, which can be combined with each other without conflict.
[0055] After each configuration is completed, this example can automatically determine the first device in real time according to the transmission requirements, without the need to pre-set the first device, which is more in line with the actual scene requirements. For example, once the networked device changes, including but not limited to increase, decrease, and changes in the signal strength of the device, the first device for executing this audio transmission can be automatically determined without human intervention.
[0056] After the configuration is completed, each first device can be provided with a unique identifier, which can be a fixed identifier written by the manufacturer of each device, or a unique identifier uniformly assigned by the management party when networking. In this way, the unique identifier of the same device changes dynamically in different networking environments or when executing different transmission events. For all first devices in the network, the distance between any two first devices is within the maximum transmission distance range based on the first transmission network technology.
[0057] S3: Scan the second devices in the rooms where the first devices are located.
[0058] For any first device, the first device only scans the second device in the same room as the first device, and does not regard the device in other rooms as the second device even if it scans the second device. In one example, the first device can scan the second device in the room through the internal protocol of the second transmission network.
[0059] S4: configuring a second transmission network between the first device and the second device in each room, wherein a transmission delay of the second transmission network is smaller than a transmission delay of the first transmission network.
[0060] The configuration in S4 includes but is not limited to at least one of the following: information of the second transmission network, such as the name of the UWB network, etc.; selecting a part of the second devices to execute the method of the present application; configuring the transmission path between each second device, such as which second devices are responsible for the current audio transmission, and the order and path of the audio transmission.
[0061] Combination Figure 2As shown, the present application can be executed by a routing device (such as a router or a gateway) to execute the configurations in S2 and S4, and be responsible for data transmission (such as distribution of audio data), subsequent clock correction to achieve time synchronization management, etc.
[0062] In view of the fact that UWB technology can realize positioning, optionally, the method further includes: displaying the relative positions of the first device and the second device and the corresponding transmission paths on the execution subject device, which can be displayed through icons and Figure 2 It should be understood that the specific form of the icons of each first device and second device can be determined according to the device type obtained based on the UWB internal protocol. For example, if a second device is a speaker, it will be displayed as an icon corresponding to the speaker. If a first device is a wearable device of a certain brand, it will be displayed as an icon corresponding to the wearable device of that brand. If the execution subject device is a mobile phone of a certain brand, it will be displayed as an icon corresponding to the mobile phone of that brand. Here, the user can intuitively know the type and other information of each first device and second device from the execution subject device.
[0063] As described above, the present application establishes a connection between the first devices in multiple rooms through a first transmission network, and establishes a connection between the first device and the second device in the respective room through a second transmission network, thereby networking the first devices and the second devices in the multiple rooms, supporting the interconnection and transmission of multi-room devices, so that the coverage area including audio transmission is larger; in addition, the devices can automatically discover and network with each other, reducing the complexity of manual configuration and connection by the user, thereby simplifying the networking process and improving the convenience and ease of use of the system; and the transmission delay of the second transmission network is less than the transmission delay of the first transmission network. For example, the first transmission network is a Wi-Fi network and the second transmission network is a UWB network. UWB technology can realize the characteristics of short-distance wireless high-speed data transmission, that is, using advanced low-latency and high-precision technologies to ensure that devices in multiple rooms are synchronized as much as possible, such as synchronous playback of audio in multiple rooms, reducing delays in audio transmission, and having better synchronization, thereby improving user experience.
[0064] In the audio playback scenario, combined with Figure 3 As shown, the method further includes S51 and S61.
[0065] S51: Transmit the audio data to one or more first devices via the first transmission network.
[0066] S61: Transmitting audio data between first devices via a first transmission network, and / or utilizing a first device to transmit audio data to a corresponding second device via a second transmission network.
[0067] In S61, the first device may transmit the audio data to the second devices located in the same room as the first device, for example, all the second devices, through the second transmission network.
[0068] In one example, the first device may be a device that establishes a connection with the execution subject of the method and the second device, but the first device is not necessarily a device that can process the data (such as audio data) transmitted between the execution subject and the second device. For example, the data transmitted between the execution subject and the second device is encrypted confidential data, and each first device is only responsible for transmission, which is equivalent to each first device being only a relay node responsible for relay transmission, and cannot decrypt the confidential data during relay transmission, thereby improving transmission security and achieving a larger network coverage through relaying. For another example, the data transmitted between the execution subject device and the second device is video data, and the first device as a relay node is only a device with transceiver functions. On the basis of realizing the relay function, it cannot play the video data. Here, the selection of the first device as a relay node can also be regarded as an example of the configuration in S2.
[0069] Combination Figure 4 As shown, the method further includes S52 to S72.
[0070] S52: Select one from a plurality of first devices connected to the first transmission network as a reference device.
[0071] S62: Adjust the clocks of all first devices to be consistent with each other with reference to the clock of the reference device.
[0072] S72: In each room, the clocks of all second devices are adjusted to be consistent with each other with reference to the clock of the first device.
[0073] Taking the first transmission network as a Wi-Fi network and the second transmission network as a UWB network as an example, by providing a time reference through the selected Wi-Fi device (i.e., the first device), the time synchronization of all Wi-Fi devices and UWB devices (i.e., the second device) can be ensured. At this time, the transmission between the first device and the second device in the same room is also called UWB interaction. The Wi-Fi device not only receives the synchronization signal, but also transmits the synchronization information to the UWB device in the same room through its own UWB module (i.e., the first device also has the function of accessing the second transmission network), thereby achieving high-precision time synchronization and ensuring the synchronous playback of multi-room audio data and high-quality transmission of audio data.
[0074] In the aforementioned S1, each room can only obtain one first device. For a scenario in which a room is provided with multiple devices connected to the first transmission network, the present application can select one of the devices as the first device through the following S11 to S16.
[0075] S11: Acquire all devices in a single room that are connected to the first transmission network.
[0076] S12: Select one of the devices to send a broadcast packet including its own source address and communication parameters but without a destination address.
[0077] S13: Based on the internal protocol of the second transmission network, after receiving the broadcast packet respectively, each of the remaining devices compares their current communication quality with the communication quality of the one of the devices according to their current communication parameters and the communication parameters of the one of the devices.
[0078] S14: For any device among the remaining devices, if the current communication quality is worse than the communication quality of one of the devices, no broadcast packet is sent.
[0079] S15: For any device among the remaining devices, if the current communication quality is better than the communication quality of one of the devices, a broadcast packet including its own source address and communication parameters but without a destination address is sent out.
[0080] S12 to S15 are repeatedly executed until only one device remains.
[0081] S16: Receive the broadcast packet sent by the last remaining device and obtain the source address therefrom, and use the device corresponding to the source address as the first device.
[0082] The communication parameter may include but is not limited to at least one of signal strength, transmission delay, and signal-to-noise ratio. Taking signal strength as an example, the greater the signal strength, the better the communication quality of the device. Taking transmission delay as an example, the smaller the transmission delay, the better the communication quality of the device. Taking signal-to-noise ratio as an example, the greater the signal-to-noise ratio, the better the communication quality of the device.
[0083] This example uses broadcast packets to implement adaptive comparison of communication quality between devices, and can implement selection of the first device in each room without user intervention.
[0084] The method for determining whether there is only one remaining device in this application includes but is not limited to the following:
[0085] Mode 1: The broadcast packet is provided with an identification code for recording the number of times the device has sent the broadcast packet up to the present; before S16, the method further includes S160: determining whether there is only one remaining device according to the identification code of the broadcast packet.
[0086] For example, for a room in which devices connected to the first transmission network include devices A, B, C, D, and E, device A sends a broadcast packet 1. As the first device to send a broadcast packet, the number of times device A has sent a broadcast packet is marked as zero. Devices B, C, D, and E receive the broadcast packet 1 to obtain the communication parameters of device A contained in the broadcast packet 1, and compare their current communication parameters with the communication parameters of one of the devices. If the communication quality of devices B and C is worse than that of device A, devices B and C do not send a broadcast packet. If the communication quality of devices D and E is worse than that of device A, devices B and C do not send a broadcast packet. If the communication quality of both devices is better than that of device A, device D sends broadcast packet 2 and device E sends broadcast packet 3. At this time, the identification codes contained in broadcast packet 2 and broadcast packet 3 respectively indicate the number of times that device D and E have sent broadcast packets so far, which are both 1; device D receives broadcast packet 3 and device E receives broadcast packet 2, and compares the communication qualities respectively. Taking the communication quality of device D as worse than that of device E as an example, device E sends broadcast packet 4 again. The identification code of broadcast packet 4 indicates that the number of times device E has sent broadcast packets so far is 2, then device E corresponding to the identification code with the largest number is selected as the first device in the room.
[0087] Mode 2: Before S16, the method further includes S161: obtaining a maximum time from a device sending a broadcast packet to another device receiving the broadcast packet; and S162: when only one broadcast packet is received when the time from the last broadcast packet received exceeds the maximum time, determining that there is only one remaining device. Then, according to the source address contained in the one broadcast packet, the corresponding device is determined as the first device.
[0088] In a scenario where the first transmission network is a Wi-Fi network and the second transmission network is a UWB network, a connection is established between first devices in different rooms based on the Wi-Fi internal protocol, and a connection is established between the first device and the second device in any room based on the UWB internal protocol. While realizing short-distance wireless high-speed data transmission based on UWB technology, the transmission distance between any two adjacent second devices is increased through the first device, thereby improving the signal attenuation and interference problems of UWB transmission, which is conducive to ensuring the transmission stability and quality over long distances and when the signal is blocked.
[0089] In addition, the present application may also have the following beneficial effects:
[0090] 1. Multi-room automatic networking technology: that is, automatic discovery and networking of Wi-Fi devices and UWB devices; this application realizes efficient discovery and networking of multi-room audio devices through the combination of Wi-Fi and UWB technologies. First, taking advantage of the wide coverage of Wi-Fi technology, the multi-room audio device network is automatically discovered and preliminarily established, simplifying user operations and allowing devices to automatically join the same network group. Subsequently, UWB technology is used to perform more accurate device discovery in the same room, and the UWB devices in each room are added to the previous network group, thereby realizing mixed networking of Wi-Fi and UWB devices in multiple rooms. Specifically, automatic networking includes: automatic discovery and network establishment of UWB devices (multi-room) under the same Wi-Fi network; UWB devices in different rooms form a network after being discovered through the Wi-Fi network; multiple UWB devices in the same room automatically form a network according to the capabilities of the devices.
[0091] 2. Low-latency synchronous transmission of audio: that is, hybrid synchronization technology of Wi-Fi devices and UWB devices; provide a time reference through the selected Wi-Fi device to ensure the time synchronization of all Wi-Fi devices and UWB devices. The Wi-Fi device not only receives the synchronization signal, but also transmits the synchronization information to the UWB device in the same room through the UWB module to achieve high-precision time synchronization, ensuring the synchronous playback and high-quality transmission of audio signals in multiple rooms. The present application can also realize hybrid dynamic synchronization of Wi-Fi devices and UWB devices: that is, provide a dynamically adjusted synchronization algorithm to adjust the audio transmission path and synchronization strategy in real time according to the device location and network load, so as to further optimize the transmission quality and synchronization accuracy.
[0092] 3. Flexible audio playback function: For example, this application supports devices in different rooms to independently play different audio content, and users can select and control the audio played in different rooms according to their needs.
[0093] 4. Technology integration and optimization: that is, the combination of Wi-Fi and UWB technology; make full use of the wide coverage of Wi-Fi and the high-precision and low-latency characteristics of UWB to achieve an effective combination of the two, give full play to their respective advantages, and provide a better solution in multi-room audio transmission.
[0094] The present application also provides a multi-room hybrid networking device, such as Figure 5 As shown, including:
[0095] The acquisition unit 51 is used to respond to the networking request for multiple rooms and acquire a first device connected to the first transmission network in each room.
[0096] The first configuration unit 52 is configured to configure a first transmission network between a plurality of first devices.
[0097] The scanning unit 53 is used to scan the second devices in the rooms where the first devices are located.
[0098] The second configuration unit 54 is used to configure a second transmission network between the first device and the second device in each room.
[0099] The specific implementation methods of the above-mentioned units can refer to the embodiments of the above-mentioned multi-room hybrid networking method, which will not be described one by one here. Therefore, the multi-room hybrid networking device can also have the beneficial effects that can be achieved by any of the aforementioned multi-room hybrid networking methods.
[0100] An embodiment of the present application also provides an electronic device, including a memory and a processor, wherein the memory stores a multi-room hybrid networking program, and when the multi-room hybrid networking program is executed by the processor, the steps corresponding to the multi-room hybrid networking method in any of the above examples are implemented.
[0101] The electronic device can realize the role of the aforementioned execution subject, and the specific form of the electronic device is not limited in this application.
[0102] An embodiment of the present application also provides a storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps corresponding to the multi-room hybrid networking method described in any example are implemented.
[0103] The storage medium may include: a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0104] Since the instructions stored in the storage medium can execute the steps in any multi-room hybrid networking method provided in the embodiments of the present invention, the beneficial effects that can be achieved by any multi-room hybrid networking method provided in the embodiments of the present invention can be achieved. Please refer to the previous embodiments for details and will not be repeated here.
[0105] The above descriptions are only some embodiments of the present application, and are not intended to limit the patent scope of the present application. For ordinary technicians in this field, all equivalent structural changes made using the contents of this specification and drawings are also included in the patent protection scope of the present application.
[0106] This document uses step codes such as S1, S2, etc., the purpose of which is to express the corresponding content more clearly and concisely, and does not constitute a substantial limitation on the order. When technical personnel in this field implement the specific steps, they may execute S2 first and then S1, etc., but these should all be within the scope of protection of this application.
[0107] Although the terms "first, second", etc. are used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from each other. In addition, the singular forms "one", "an", and "the" are intended to include plural forms as well. The terms "or" and "and / or" are interpreted as inclusive, or mean any one or any combination. Only when the combination of elements, functions, steps, or operations is inherently mutually exclusive in some way, an exception to this definition will occur.
Claims
1. A multi-room hybrid networking method, characterized in that: The method comprises: In response to a networking request for multiple rooms, obtaining a first device in each room that is connected to a first transmission network includes: S11: Acquire all devices in a single room that are connected to the first transmission network; S12: Select one of the devices to send a broadcast packet including its own source address and communication parameters but without a destination address; S13: Based on the internal protocol of the second transmission network, after receiving the broadcast packet, each of the remaining devices compares the current communication quality of each device with the communication quality of the one of the devices according to the current communication parameters of each device and the communication parameters of the one of the devices; S14: For any device among the remaining devices, if the current communication quality is worse than the communication quality of one of the devices, no broadcast packet is sent; S15: For any device among the remaining devices, if the current communication quality is better than the communication quality of one of the devices, a broadcast packet including its own source address and communication parameters but without a destination address is sent; Repeating S12 to S15 until only one device remains; and receiving a broadcast packet sent by the last remaining device and obtaining a source address therefrom, and taking the device corresponding to the source address as the first device; configuring a first transmission network between a plurality of the first devices; Scanning the second devices in the rooms where the first devices are located by each of the first devices; A second transmission network is configured between the first device and the second device in each room, wherein a transmission delay of the second transmission network is smaller than a transmission delay of the first transmission network.
2. The method according to claim 1, characterized in that The method further comprises: Selecting one of a plurality of first devices connected to the first transmission network as a reference device; Adjusting the clocks of all first devices to be consistent with each other with reference to the clock of the reference device; In each room, the clocks of all second devices are adjusted to be consistent with each other with reference to the clock of the first device.
3. The method according to claim 1, characterized in that The method further comprises: Transmitting the audio data to one or more of the first devices via the first transmission network; The audio data is transmitted between the first devices via the first transmission network, and / or the audio data is transmitted to the corresponding second device via the second transmission network using the first device.
4. The method according to any one of claims 1 to 3, characterized in that The first transmission network includes a Wi-Fi network, and the second transmission network includes a UWB network.
5. The method according to claim 1, characterized in that: The broadcast packet is provided with an identification code for recording the number of times the device has sent the broadcast packet up to the current time; The method further comprises: It is determined whether there is only one remaining device according to the identification code of the broadcast packet.
6. The method according to claim 1, characterized in that The method further comprises: Obtaining the maximum time from when a device sends a broadcast packet to when another device receives the broadcast packet; When only one broadcast packet is received when the time from the last broadcast packet received exceeds the maximum time, it is determined that there is only one remaining device.
7. A multi-room hybrid networking device, characterized in that: include: An acquisition unit, configured to acquire, in response to a networking request for multiple rooms, a first device in each room that is connected to a first transmission network, comprising: S11: Acquire all devices in a single room that are connected to the first transmission network; S12: Select one of the devices to send a broadcast packet including its own source address and communication parameters but without a destination address; S13: Based on the internal protocol of the second transmission network, after receiving the broadcast packet, each of the remaining devices compares the current communication quality of each device with the communication quality of the one of the devices according to the current communication parameters of each device and the communication parameters of the one of the devices; S14: For any device among the remaining devices, if the current communication quality is worse than the communication quality of one of the devices, no broadcast packet is sent; S15: For any device among the remaining devices, if the current communication quality is better than the communication quality of one of the devices, a broadcast packet including its own source address and communication parameters but without a destination address is sent; Repeating S12 to S15 until only one device remains; and receiving a broadcast packet sent by the last remaining device and obtaining a source address therefrom, and taking the device corresponding to the source address as the first device; A first configuration unit, configured to configure a first transmission network between a plurality of the first devices; A scanning unit, configured to scan the second devices in the rooms where the first devices are located respectively; The second configuration unit is used to configure a second transmission network between the first device and the second device in each room.
8. An electronic device, comprising a memory and a processor, characterized in that: The memory stores a multi-room hybrid networking program, and when the multi-room hybrid networking program is executed by the processor, the multi-room hybrid networking method according to any one of claims 1 to 6 is implemented.
9. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by the processor, implements the multi-room hybrid networking method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Audio synchronization output method and system
CN103338204A
Asset management method and system, network equipment and readable storage medium
CN111818193A
Mesh multi-scene fusion networking method and system and readable storage medium
CN115412581A
UWB transmission method based on relay technology, electronic equipment and storage medium
CN117500023A
Multi-device networking method and device, storage medium and electronic device
CN117768926A
