Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting switching of multiple master devices

By analyzing Bluetooth-Wi-Fi dual-mode connectivity and latency, the switching between multiple master devices in audio and video terminals was optimized, solving the problems of low transmission rate and complex switching, and achieving fast and reliable device switching and efficient audio and video file transmission.

CN121940740APending Publication Date: 2026-04-28SHENZHEN HESHENGCHENG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610291360.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-03-11
Publication Date
2026-04-28

AI Technical Summary

Technical Problem

Existing audio and video terminals suffer from low transmission rates, complex device switching, and low switching timeliness when connected to multiple master devices, and cannot handle abnormal situations in a timely manner.

Method used

By using dual-mode Bluetooth and Wi-Fi connectivity, a Bluetooth transmission path and a network transmission path are established to collect device information, analyze device control commands, record switching delays, build a switching delay list, set time slices based on the delay time, and optimize the data transmission process.

Benefits of technology

It enables fast and reliable switching between multiple master devices, ensuring the security and transmission efficiency of Wi-Fi connections, preventing transmission anomalies caused by abnormal conditions, and ensuring timely access to audio and video files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121940740A_ABST
    Figure CN121940740A_ABST
Patent Text Reader

Abstract

The invention discloses a Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting switching of multiple main devices, relates to the field of signal distribution and conversion, and solves the problem that an existing audio and video terminal is insufficient in rapid switching capacity among the multiple main devices. Constructing a Bluetooth transmission path and a network transmission path; s2, collecting equipment information of the main equipment to obtain an equipment control instruction, and performing equipment switching on the main equipment according to the equipment instruction; recording the equipment switching time to obtain a switching delay list, and performing file pre-storage on the main equipment; s3, performing statistics on the switching time of the main equipment, setting a time slice, performing data transmission analysis on a Bluetooth transmission path and a network transmission path, and controlling the transmission paths; s4, performing real-time switching on the main equipment, and performing transmission optimization in combination with path control; according to the invention, the fluency of multi-master device switching can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of signal distribution and conversion, and relates to Bluetooth-Wi-Fi dual-mode audio and video terminal control technology, specifically a Bluetooth-Wi-Fi dual-mode audio and video terminal control method that supports switching between multiple master devices. Background Technology

[0002] Existing methods for controlling audio and video terminals have the following specific drawbacks: 1. Current connections between audio / video terminals and main devices are typically single-mode connections (such as Bluetooth or Wi-Fi connections). Bluetooth connections have low transmission rates and are limited in the number of connected devices. Wi-Fi connections are complex for audio / video terminals and multiple main devices, and it is difficult to switch devices in a timely manner.

[0003] 2. Existing control of audio and video terminals mainly involves interaction with a single device. It is difficult to achieve real-time interaction with multiple master devices. It requires multiple control steps to switch between different master devices, resulting in low switching efficiency. In addition, after the switch is completed, the audio and video files need to be retransmitted, which cannot meet the seamless connection between different devices.

[0004] 3. The existing dual-mode control method (simultaneous control via Bluetooth and Wi-Fi) for audio and video terminals is too simplistic. It transmits control commands via Bluetooth and then invokes Wi-Fi based on the control commands. This method ignores the transmission function of Bluetooth and cannot handle abnormal situations (such as Wi-Fi disconnection) in a timely manner, which affects the use of audio and video terminals.

[0005] To address this, we propose a Bluetooth-Wi-Fi dual-mode audio and video terminal control method that supports switching between multiple master devices. Summary of the Invention

[0006] To address the shortcomings of existing technologies, the present invention aims to provide a Bluetooth-Wi-Fi dual-mode audio and video terminal control method that supports switching between multiple master devices. The present invention aims to improve the switching capability of audio and video terminals between multiple master devices and reduce switching latency.

[0007] To achieve the above objectives, the present invention adopts the following technical solution: a Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching, the specific working process of each step is as follows: Step S1: Obtain the audio / video terminal and the main device, connect the audio / video terminal and the main device via Bluetooth to establish a Bluetooth transmission path; connect the audio / video terminal and the main device via Wi-Fi to establish a network transmission path; Step S2: Collect device information of the master device according to the Bluetooth transmission path, analyze the device information to obtain device control commands, and switch the master device according to the device commands; record the switching time of different master devices to obtain a switching delay list, analyze the delay time of each master device based on the switching delay list, and pre-save the master device file. Step S3: Statistically analyze the switching time of the master device from the switching delay list, set up time slices based on the switching time, analyze the data transmission of the Bluetooth transmission path and the network transmission path through the time slices, determine the transmission efficiency of different paths, and control the transmission path. Step S4: Perform real-time switching of the master device and optimize data transmission of the switching master device in conjunction with path control.

[0008] Furthermore, the specific steps of step S1 are as follows: Step S11: Count the number of master devices as; iterate through the master devices based on the number of master devices, pair each master device with the audio / video terminal, and connect each master device with the audio / video terminal via Bluetooth according to the pairing results to build a Bluetooth transmission path. Step S12: Obtain the Wi-Fi credentials of the audio and video terminal based on the Bluetooth transmission path, and transmit them to each master device. The master device receives the Wi-Fi credentials of the audio and video terminal, establishes a Wi-Fi connection with the audio and video terminal, and builds a network transmission path.

[0009] Furthermore, the specific steps of step S2 are as follows: Step S21: Transmit the device information of the master device to the audio and video terminal through the Bluetooth transmission channel, deconstruct the device information, extract the command type of the device information, collect the control information according to the command type, obtain the device control command, analyze the control status of the device according to the device control command, and switch the master device according to the control status of the device. Step S22: Traverse the master devices, count the switching time between all different master devices, build a switching delay list, analyze the device delay time based on the switching delay list, and pre-save the master devices for files.

[0010] Furthermore, the specific steps of step S21 are as follows: Step S211: Deconstruct the device information to obtain Bluetooth data packets. Based on the Bluetooth data packets, extract the type of the data packets and determine the type of the data packets. If it is a control packet, collect the content of the data packets to obtain device control commands. If it is a transmission packet, do not record it. Step S212: Obtain the time node at which the master device connects to the audio / video terminal as the initial time node. Based on the initial time node, obtain the timestamp of the subsequent device control instructions to get the control timestamp t. Based on the control timestamp, count the device control instructions of all master devices to get the timing control instruction sxk(a, t).

[0011] Furthermore, the subsequent steps of step S212 are as follows: Step S213: Analyze the control state of the device according to the timing control instructions. If the timing control instruction sxk(a, t) is a connection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device changes from connected to disconnected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device changes from disconnected to connected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device is stationary. If sxk(a, t) is a connection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device is stationary. Obtain and assign the connection state of each master device, denoted as ljz(a). Step S214: Statistically analyze the connection status of the master device to obtain the handover judgment value qhp; If qhp is 0, it indicates that no device handover has occurred; if qhp is not 0, it indicates that a device handover has occurred. When a device switchover occurs, the primary device whose connection status changes from disconnected to connected is extracted, and its connection status at multiple subsequent timestamps is collected and denoted as ljz(a, t2). The absolute value of ljz(a, t2) is statistically analyzed to obtain a statistical value, and the primary device with the smallest statistical value is selected for switchover.

[0012] Furthermore, the specific steps of step S22 are as follows: Step S221: Extract a master device as the initial device css(a1), extract a master device as the target device mbs(a2), switch devices according to the initial device and the target device, record the time required for device switching, and obtain the delay time ycs(a1, a2) of the target device. Iterate through the initial devices and count the delay time of the target device under different initial devices to obtain the delay time list ylb(a2) = [ycs(1, a2) to ycs(as, a2)]; Step S222: Test the information transmission rate of the network transmission path, combine the information transmission rate with the delay time list to obtain the information pre-stored amount, extract the maximum value of the information pre-stored amount, and pre-store the information on the master device; traverse the target devices to obtain the delay time list of different target devices; combine the information transmission rate of the network transmission path to pre-store the information on all master devices.

[0013] Furthermore, the specific steps of step S3 are as follows: Step S31: Extract the switching time of each master device from the switching delay list to obtain a switching time list. Extract the minimum value in the switching time list to construct a time slice. Divide the data transmission between the master device and the audio terminal device according to the time slice. Step S32: Transmit the data transmission process within the time slice through both the Bluetooth transmission path and the network transmission path, analyze the transmission status of the Bluetooth transmission path and the network transmission path, and select the transmission path for different time slices based on the transmission status of the Bluetooth transmission path and the network transmission path.

[0014] Furthermore, the specific steps of step S31 are as follows: Step S311: Obtain the switching delay list of all master devices, extract the list elements in the switching delay list in a synchronous order, count the list elements extracted each time, and construct a switching time list. Iterate through the elements in the switching time list, take the first element as the target value, extract the elements in the switching time list and compare them with the target value, assign the target value according to the minimum of the two, and repeat the above comparison process to compare all elements in the switching time list. Step S312: Based on the traversal results of the switching time list, extract the target value, use the target value as the time period for switching the master device, and construct a time slice; divide the data transmission process between the master device and the audio terminal device according to the time slice to obtain multiple time slices, and record the data transmission process based on the time slices.

[0015] Furthermore, the specific steps of step S32 are as follows: Step S321: Divide the time slice into two equal local time segments. Transmit each local time segment through both the Bluetooth and network transmission paths. Monitor the transmission status of both the Bluetooth and network transmission paths. Analyze the transmission status to obtain a status value. Step S322: Obtain the status values ​​of the Bluetooth transmission path and the network transmission path, select the transmission path with the higher status value for data transmission, and set record values ​​jlz1 and jlz2. Record each selection of the transmission path. If the transmission path is selected consecutively, increment the record value; if the transmission path changes, clear the record value. Based on the record value, initially select the connection path for subsequent time slices, and perform cyclical status value judgment to adjust the record value. Step S323: Acquire the status value of the initially selected connection path in real time. When the status value decreases, analyze the Bluetooth transmission path and network transmission path for the next time slice and modify the recorded value.

[0016] Furthermore, the specific steps of step S321 are as follows: The time frames are extracted based on local time periods, and the number of time frames zs is counted. Based on the Bluetooth transmission path, the transmission rate lsl, the number of data packets sjb, and the audio frame data ypz(z) of the master device in each local time period are monitored. The number of received packets jsb and the received data ljs(z) of the audio and video terminal in each local time period are monitored. The Bluetooth transmission status value lzt is calculated by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data. Based on the network transmission path, the transmission rate wsl, the number of data packets wsj, and the audio frame data wyp(z) of the master device in a local time period are monitored. The number of received packets wjs and the received data wlj(z) of the audio and video terminal in a local time period are also monitored. The network status value wzt is calculated by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data.

[0017] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: 1. This invention pairs multiple master devices with audio and video terminals via Bluetooth to establish a Bluetooth transmission path. Based on the Bluetooth transmission path, a Wi-Fi connection is established to ensure the security and accuracy of the Wi-Fi connection. The invention constructs multiple paths through Bluetooth and Wi-Fi, providing timely feedback of device control information via Bluetooth and efficient transmission of audio and video files via Wi-Fi.

[0018] 2. This invention tests the switching latency between multiple devices, extracts the maximum latency time for each device based on the test results, and performs redundancy processing on the latency of the master device using the maximum latency time to ensure accurate latency processing; the master device pre-stores files based on the latency time and Wi-Fi transmission to ensure timely access to files after device switching.

[0019] 3. This invention extracts the switching time of each master device based on the delay time, constructs time slices based on the switching time, analyzes the transmission efficiency of different paths through the time slices, and controls the transmission paths of subsequent time slices. This method adjusts the paths in real time to ensure the transmission status of data and prevent transmission anomalies caused by abnormal conditions. Attached Figure Description

[0020] To facilitate understanding by those skilled in the art, the present invention will be further described below with reference to the accompanying drawings.

[0021] Figure 1 This is a schematic diagram of the method flow of the present invention; Figure 2 This is a schematic diagram of the device switching analysis of the present invention; Figure 3 This is a schematic diagram of the transmission control of the present invention; Detailed Implementation It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

[0022] This application provides a Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching. The executing entity of this method includes, but is not limited to, at least one of the following electronic devices that can be configured to execute the method provided in this application: a server, a terminal, etc. In other words, the Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching can be executed by software or hardware installed on a terminal device or a server device. The server includes, but is not limited to, a single server, a server cluster, a cloud server, or a cloud server cluster.

[0023] Reference Figure 1 The diagram shown is a flowchart illustrating a Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to an embodiment of the present invention. In this embodiment, the Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching includes: Step S1: Connect the audio / video terminal (such as headphones, glasses) and the main device (mobile phone, tablet, computer) via Bluetooth to establish a Bluetooth transmission path; connect the audio / video terminal and the main device via Wi-Fi to establish a network transmission path. Step S11: Count the number of master devices as; iterate through the master devices based on the number of master devices, pair each master device with the audio / video terminal, and connect each master device with the audio / video terminal via Bluetooth according to the pairing result to build a Bluetooth transmission path. The Bluetooth transmission path is denoted as lcs(a); lcs(a) represents the Bluetooth transmission path between the a-th master device and the audio / video terminal, a∈[1, as]; Step S12: Obtain the Wi-Fi credentials of the audio and video terminal based on the Bluetooth transmission path, and transmit them to each master device. The master device receives the Wi-Fi credentials of the audio and video terminal, establishes a Wi-Fi connection with the audio and video terminal, and builds a network transmission path. The network transmission path is denoted as wcs(a), where wcs(a) represents the network transmission channel between the a-th master device and the audio and video terminal.

[0024] It should be noted that: Wi-Fi credentials refer to a set of information used to prove the identity of a device and obtain permission to access a Wi-Fi network, including a network identifier and a security key. Wi-Fi credentials ensure the accuracy and security of the connection between the host device and the audio / video terminal. It should be noted that this invention connects the main device and the audio / video terminal via Bluetooth and Wi-Fi respectively, providing timely feedback of device control information via Bluetooth and efficient transmission of audio / video files via Wi-Fi. This transforms the serial, slow, and unreliable switching process of the traditional single-mode solution into a parallel, fast, and deterministic process.

[0025] Step S2: Collect device information of the master device according to the Bluetooth transmission path, analyze the device information to obtain device control commands, and switch the master device according to the device commands; record the switching time of different master devices to obtain a switching delay list, analyze the delay time of each master device based on the switching delay list, and pre-save the master device file. Please see Figure 2 Step S21: Transmit the device information of the master device to the audio and video terminal through the Bluetooth transmission channel, deconstruct the device information, extract the command type of the device information, collect the control information according to the command type, obtain the device control command, analyze the control status of the device according to the device control command, and switch the master device according to the control status of the device. It should be noted that device information refers to a Bluetooth data packet, the format of which includes packet type, packet size, and actual content.

[0026] Step S211: Deconstruct the device information to obtain Bluetooth data packets. Based on the Bluetooth data packets, extract the type of the data packets and determine the type of the data packets. If it is a control packet, collect the content of the data packets to obtain device control commands. If it is a transmission packet, do not record it. Step S212: Obtain the time node at which the master device connects to the audio / video terminal as the initial time node. Based on the initial time node, obtain the timestamp of the subsequent device control instructions to get the control timestamp t. Based on the control timestamp, count the device control instructions of all master devices to get the timing control instruction sxk(a,t), where sxk(a,t) represents the device control instruction of the a-th master device at the t-th timestamp. It should be noted that the timestamps mentioned above refer to the time intervals between different times and the initial time node; Step S213: Analyze the control state of the device according to the timing control instructions. If the timing control instruction sxk(a, t) is a connection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device changes from connected to disconnected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device changes from disconnected to connected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device is stationary. If sxk(a, t) is a connection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device is stationary. Obtain and assign the connection state of each master device, denoted as ljz(a). It should be noted that the above connection and disconnection requests are only used to determine the data transmission between the host device and the audio / video terminal; the Bluetooth connection channel remains connected. The above assignment of connection state means that if the connection state changes from connected to disconnected, ljz(a) is assigned a value of -1; if the connection state changes from disconnected to connected, ljz(a) is assigned a value of 1; if the connection state is static, ljz(a) is assigned a value of 0. Step S214: Statistically analyze the connection status of the main device, sum the absolute values ​​of the connection status, and obtain the switching judgment value qhp; qhp = |ljz(1)| + ... + |ljz(as)|; If qhp is 0, it indicates that no device handover has occurred; if qhp is not 0, it indicates that a device handover has occurred. When device switching occurs, the master device whose connection status changes from disconnected to connected is extracted, and its connection status at multiple subsequent timestamps is collected and denoted as ljz(a, t2). The absolute value of ljz(a, t2) is statistically analyzed to obtain the statistical value. The master device with the smallest statistical value is extracted to obtain the switching target device. The master device is switched according to the switching target device.

[0027] Step S22: Traverse the master devices, count the switching time between all different master devices, construct a switching delay list, analyze the device delay time based on the switching delay list, and pre-save the master devices for files; Step S221: Extract a master device as the initial device css(a1), extract a master device as the target device mbs(a2), switch devices according to the initial device and the target device, record the time required for device switching, and obtain the delay time ycs(a1, a2) of the target device. Iterate through the initial devices and count the delay time of the target device under different initial devices to obtain the delay time list ylb(a2) = [ycs(1, a2) to ycs(as, a2)]; Step S222: Test the information transmission rate of the network transmission path, combine the information transmission rate with the delay time list to obtain the information pre-stored amount, extract the maximum value of the information pre-stored amount, and pre-store the information on the main device; traverse the target devices to obtain the delay time list of different target devices; combine the information transmission rate of the network transmission path to pre-store the information on all main devices. It should be noted that: by pre-storing information, the main device can transmit audio and video files in a timely manner after switching, ensuring stable reception of audio and video terminals.

[0028] Step S3: Statistically analyze the switching time of the master device from the switching delay list, set up time slices based on the switching time, analyze the data transmission of the Bluetooth transmission path and the network transmission path through the time slices, determine the transmission efficiency of different paths, and control the transmission path. Step S31: Extract the switching time of each master device from the switching delay list to obtain a switching time list. Extract the minimum value in the switching time list to construct a time slice. Divide the data transmission between the master device and the audio terminal device according to the time slice. Step S311: Obtain the switching delay list of all master devices, extract the list elements in the switching delay list in a synchronous order, count the list elements extracted each time, and construct a switching time list. It should be noted that the switching time list is based on the transmission time of data transmission from one master device to other master devices, which is equivalent to the transmission delay time of other master devices relative to the master device. Iterate through the elements in the switching time list, take the first element as the target value, extract the elements in the switching time list and compare them with the target value, assign the target value according to the minimum of the two, and repeat the above comparison process to compare all elements in the switching time list.

[0029] Step S312: Based on the traversal results of the switching time list, extract the target value, use the target value as the time period for switching the master device, and construct a time slice; divide the data transmission process between the master device and the audio terminal device according to the time slice to obtain multiple time slices, and record the data transmission process based on the time slices.

[0030] Step S32: Transmit the data transmission process within the time slice through both the Bluetooth transmission path and the network transmission path, analyze the transmission status of the Bluetooth transmission path and the network transmission path, and select the transmission path for different time slices based on the transmission status of the Bluetooth transmission path and the network transmission path. Please see Figure 3 Step S321: Divide the time slice into two equal local time segments. Transmit each local time segment through both the Bluetooth transmission path and the network transmission path. Monitor the transmission status of the Bluetooth transmission path (including packet loss rate, transmission rate, and accuracy) and the transmission status of the network transmission path. Analyze the transmission status to obtain the status value. Step S3211: Extract time frames based on local time periods and count the number of time frames zs; based on the Bluetooth transmission path, monitor the transmission rate lsl, the number of data packets sjb, and the audio frame data ypz(z) of the master device in each local time period; monitor the number of received packets jsb and the received data ljs(z) of the audio and video terminal in each local time period; calculate the Bluetooth transmission status value lzt by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data. ; Where lzq is the accuracy of Bluetooth transmission, which is obtained by iterating through zs time frames, counting the number of audio frame data ypz(z) that match the received data ljs(z), and proportionally dividing the result by the number of time frames; q1, q2, and q3 are weights that can be adaptively adjusted and satisfy q1 + q2 + q3 = 1. Step S3212: Based on the network transmission path, monitor the transmission rate wsl, the number of data packets wsj, and the audio frame data wyp(z) of the master device in a local time period, and monitor the number of received packets wjs and the received data wlj(z) of the audio and video terminal in a local time period; calculate the Bluetooth transmission status value wzt by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data. ; Where wzq is the accuracy of network transmission, which is obtained by iterating through zs time frames, counting the number of audio frame data wyp(z) that match the received data wlj(z), and then proportional to the number of time frames; q1, q2, and q3 are weights, which are consistent with the weights of Bluetooth status values.

[0031] Step S322: Obtain the status values ​​of the Bluetooth transmission path and the network transmission path, select the transmission path with the higher status value for data transmission, and set record values ​​jlz1 and jlz2. Record each selection of the transmission path. If the transmission path is selected consecutively, increment the record value; if the transmission path changes, clear the record value. Based on the record value, initially select the connection path for subsequent time slices, and perform cyclical status value judgment to adjust the record value. Step S323: Acquire the status value of the initially selected connection path in real time. When the status value decreases, analyze the Bluetooth transmission path and network transmission path for the next time slice and modify the recorded value.

[0032] It should be noted that: In the first time slice, the state value of the Bluetooth transmission path is 0.5, and the state value of the network transmission path is 0.8. Therefore, the network transmission path is selected for data transmission, and the selection is recorded, resulting in jlz1 = 0 and jlz2 = 1. The next time slice is initialized, and the network transmission path is selected. In the third time slice, the state value of the Bluetooth transmission path is 0.6, and the state value of the network transmission path is 0.7, so jlz1 = 0 and jlz2 = jlz2 + 1. The next jlz2 + 1 time slice is initialized, and the network transmission path is selected. This process is repeated until the (jlz2 + 1) + 1st time slice. At the same time, for each initialized time slice, the state value of the used connection path is monitored. When the state value decreases, a comparison between different connection paths is performed for the next time slice to prevent the inability to handle abnormal situations during the time slice process.

[0033] Step S4: Perform real-time switching of the master device and optimize data transmission for switching the master device in conjunction with path control; Step S41: Monitor the device control commands of all master devices in real time, switch the master devices based on the device control commands, transmit the device control commands for switching the master devices through the Bluetooth transmission channel, call the pre-stored files of the switched devices, and transmit audio and video files through the network transmission channel. Step S42: Monitor the data transmission process in real time, record the status values ​​of different transmission paths, and adjust and optimize the transmission paths.

[0034] Compared to the problems described in the background technology, this invention establishes a Bluetooth transmission path by pairing multiple master devices with an audio / video terminal via Bluetooth. Based on this Bluetooth transmission path, a Wi-Fi connection is established, ensuring the security and accuracy of the Wi-Fi connection. The multi-path construction using Bluetooth and Wi-Fi allows for timely feedback of device control information via Bluetooth and efficient transmission of audio / video files via Wi-Fi. Furthermore, this invention tests the switching latency between multiple devices, extracts the maximum latency time for each device based on the test results, and performs redundancy processing on the latency of the master device using the maximum latency time, ensuring accurate latency handling. Files are pre-stored on the master device based on the latency time and Wi-Fi transmission, ensuring timely file retrieval after device switching. Finally, based on the latency time, this invention extracts the switching time of each master device, constructs time slices based on the switching time, analyzes the transmission efficiency of different paths using the time slices, and controls the transmission paths of subsequent time slices. This method allows for real-time adjustment of the paths, ensuring the transmission status of data and preventing transmission anomalies caused by abnormal conditions. Therefore, the Bluetooth-Wi-Fi dual-mode audio and video terminal control method that supports multiple master device switching provided by the embodiments of the present invention can improve the switching capability of audio and video terminals between multiple master devices.

[0035] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0036] Finally, it should be noted that deleting any one of the above embodiments does not affect the technical solutions of other embodiments. The above embodiments are only used to illustrate the technical solutions of the present invention and not to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims

1. A control method for a Bluetooth-Wi-Fi dual-mode audio / video terminal supporting multi-master device switching, characterized in that, include: Step S1: Obtain the audio / video terminal and the main device, connect the audio / video terminal and the main device via Bluetooth, and establish a Bluetooth transmission path; Connect the audio / video terminal to the main device via Wi-Fi to establish a network transmission path; Step S2: Collect device information of the master device according to the Bluetooth transmission path, analyze the device information to obtain device control commands, and switch the master device according to the device commands; record the switching time of different master devices to obtain a switching delay list, analyze the delay time of each master device based on the switching delay list, and pre-save the master device file. Step S3: Statistically analyze the switching time of the master device from the switching delay list, set up time slices based on the switching time, analyze the data transmission of the Bluetooth transmission path and the network transmission path through the time slices, determine the transmission efficiency of different paths, and control the transmission path. Step S4: Perform real-time switching of the master device and optimize data transmission of the switching master device in conjunction with path control.

2. The Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching according to claim 1, characterized in that, The specific steps of step S1 are as follows: Step S11: Count the number of master devices as; iterate through the master devices based on the number of master devices, pair each master device with the audio / video terminal, and connect each master device with the audio / video terminal via Bluetooth according to the pairing results to build a Bluetooth transmission path. Step S12: Obtain the Wi-Fi credentials of the audio and video terminal based on the Bluetooth transmission path, and transmit them to each master device. The master device receives the Wi-Fi credentials of the audio and video terminal, establishes a Wi-Fi connection with the audio and video terminal, and builds a network transmission path.

3. The Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching according to claim 1, characterized in that, The specific steps of step S2 are as follows: Step S21: Transmit the device information of the master device to the audio and video terminal through the Bluetooth transmission channel, deconstruct the device information, extract the command type of the device information, collect the control information according to the command type, obtain the device control command, analyze the control status of the device according to the device control command, and switch the master device according to the control status of the device. Step S22: Traverse the master devices, count the switching time between all different master devices, build a switching delay list, analyze the device delay time based on the switching delay list, and pre-save the master devices for files.

4. The Bluetooth-Wi-Fi dual-mode audio and video terminal control method supporting multi-master device switching according to claim 3, characterized in that, The specific steps of step S21 are as follows: Step S211: Deconstruct the device information to obtain Bluetooth data packets. Based on the Bluetooth data packets, extract the type of the data packets and determine the type of the data packets. If it is a control packet, collect the content of the data packets to obtain device control commands. If it is a transmission packet, do not record it. Step S212: Obtain the time node at which the master device connects to the audio / video terminal as the initial time node. Based on the initial time node, obtain the timestamp of the subsequent device control instructions to get the control timestamp t. Based on the control timestamp, count the device control instructions of all master devices to get the timing control instruction sxk(a, t).

5. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 4, characterized in that, The subsequent steps of step S212 are as follows: Step S213: Analyze the control state of the device according to the timing control instructions. If the timing control instruction sxk(a, t) is a connection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device changes from connected to disconnected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device changes from disconnected to connected. If sxk(a, t) is a disconnection request and sxk(a, t+1) is a disconnection request, the connection state of the a-th master device is stationary. If sxk(a, t) is a connection request and sxk(a, t+1) is a connection request, the connection state of the a-th master device is stationary. Obtain and assign the connection state of each master device, denoted as ljz(a). Step S214: Statistically analyze the connection status of the master device to obtain the handover judgment value qhp; If qhp is 0, it indicates that there is no device switching; If qhp is not 0, it indicates that a device switch has occurred; When a device switchover occurs, the primary device whose connection status changes from disconnected to connected is extracted, and its connection status at multiple subsequent timestamps is collected and denoted as ljz(a, t2). The absolute value of ljz(a, t2) is statistically analyzed to obtain a statistical value, and the primary device with the smallest statistical value is selected for switchover.

6. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 3, characterized in that, The specific steps of step S22 are as follows: Step S221: Extract a master device as the initial device css(a1), extract a master device as the target device mbs(a2), switch devices according to the initial device and the target device, record the time required for device switching, and obtain the delay time ycs(a1, a2) of the target device. Iterate through the initial devices and count the delay time of the target device under different initial devices to obtain the delay time list ylb(a2) = [ycs(1, a2) to ycs(as, a2)]; Step S222: Test the information transmission rate of the network transmission path, combine the information transmission rate with the delay time list to obtain the information pre-stored amount, extract the maximum value of the information pre-stored amount, and pre-store the information on the main device. Iterate through the target devices to obtain a list of delay times for different target devices; Based on the information transmission rate of the network transmission path, information is pre-stored for all master devices.

7. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 1, characterized in that, The specific steps of step S3 are as follows: Step S31: Extract the switching time of each master device from the switching delay list to obtain a switching time list. Extract the minimum value in the switching time list to construct a time slice. Divide the data transmission between the master device and the audio terminal device according to the time slice. Step S32: Transmit the data within the time slice through both the Bluetooth transmission path and the network transmission path, analyze the transmission status of the Bluetooth transmission path and the network transmission path, and select the transmission path for different time slices.

8. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 7, characterized in that, The specific steps of step S31 are as follows: Step S311: Obtain the switching delay list of all master devices, extract the list elements in the switching delay list in a synchronous order, count the list elements extracted each time, and construct a switching time list. Iterate through the elements in the switching time list, take the first element as the target value, extract the elements in the switching time list and compare them with the target value, assign the target value according to the minimum of the two, and repeat the above comparison process to compare all elements in the switching time list. Step S312: Based on the traversal results of the switching time list, extract the target value, use the target value as the time period for master device switching, and construct a time slice; The data transmission process between the master device and the audio terminal device is divided into multiple time slices based on the time slices, and the data transmission process is recorded based on the time slices.

9. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 7, characterized in that, The specific steps of step S32 are as follows: Step S321: Divide the time slice into two equal local time segments. Transmit each local time segment through both the Bluetooth and network transmission paths. Monitor the transmission status of both the Bluetooth and network transmission paths. Analyze the transmission status to obtain a status value. Step S322: Obtain the status values ​​of the Bluetooth transmission path and the network transmission path, select the transmission path with the higher status value for data transmission, set record values ​​jlz1 and jlz2, record each selection of the transmission path, and increment the record value if the transmission path is selected continuously. If the transmission path is changed, the recorded value is cleared; based on the recorded value, the connection path for subsequent time slices is initially selected, and the loop status value is judged to adjust the recorded value. Step S323: Acquire the status value of the initially selected connection path in real time. When the status value decreases, analyze the Bluetooth transmission path and network transmission path for the next time slice and modify the recorded value.

10. A Bluetooth-Wi-Fi dual-mode audio / video terminal control method supporting multi-master device switching according to claim 9, characterized in that, The specific steps of step S321 are as follows: The time frames are extracted based on the local time period, and the number of time frames zs is counted. Based on the Bluetooth transmission path, the transmission rate lsl, the number of data packets sjb, and the audio frame data ypz(z) of the master device in the local time period are monitored. The number of received packets jsb and the received data ljs(z) of the audio and video terminal in the local time period are monitored. The Bluetooth status value lzt is calculated by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data. Based on the network transmission path, the transmission rate wsl, the number of data packets wsj, and the audio frame data wyp(z) of the main device in each time frame are monitored in a local time period. The number of received packets wjs and the received data wlj(z) of the audio and video terminal in each time frame are also monitored in a local time period. The network status value wzt is calculated by combining the transmission rate, the number of data packets, and the audio frame data with the number of received packets and the received data to determine the Bluetooth transmission status value.