CN111212471A - Synchronous processing method, system, equipment and storage medium of audio equipment - Google Patents

Synchronous processing method, system, equipment and storage medium of audio equipment Download PDF

Info

Publication number
CN111212471A
CN111212471A CN201911320947.XA CN201911320947A CN111212471A CN 111212471 A CN111212471 A CN 111212471A CN 201911320947 A CN201911320947 A CN 201911320947A CN 111212471 A CN111212471 A CN 111212471A
Authority
CN
China
Prior art keywords
equipment
data
data source
unit
audio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911320947.XA
Other languages
Chinese (zh)
Inventor
周子铨
余庆华
徐彦超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Shanghai Co Ltd
Original Assignee
Spreadtrum Communications Shanghai Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Shanghai Co Ltd filed Critical Spreadtrum Communications Shanghai Co Ltd
Priority to CN201911320947.XA priority Critical patent/CN111212471A/en
Publication of CN111212471A publication Critical patent/CN111212471A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Abstract

The invention discloses a synchronous processing method, a system, equipment and a storage medium of audio equipment. The audio equipment comprises a master audio equipment and a slave audio equipment, the master audio equipment is used for receiving data sent by a data source equipment, and the synchronous processing method comprises the following steps: controlling the audio device to listen to data transmitted by the data source device; judging whether the audio equipment correctly monitors the data sent by the data source equipment; and if not, sending an interference signal, wherein the interference signal is used for interfering data transmission between the main audio equipment and the data source equipment. The invention sends the interference signal when the slave audio equipment does not correctly listen to the data sent by the data source equipment, so that the data source equipment can not receive the confirmation frame fed back when the master audio equipment correctly receives the data or the master audio equipment can not correctly receive the data sent by the data source equipment and further can not feed back the confirmation frame, and the data source equipment can also retransmit the data to the master audio equipment, so that the slave audio equipment can listen to the data again.

Description

Synchronous processing method, system, equipment and storage medium of audio equipment
Technical Field
The present invention relates to the field of WiFi technologies, and in particular, to a method, a system, a device, and a storage medium for synchronous processing of audio devices.
Background
At present, a scheme for implementing audio synchronization among multiple audio devices includes that a data source device (e.g., a mobile phone) sends audio data to each audio device connected to the data source device, so that the audio data occupies a large bandwidth, and air interface resources are greatly wasted.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a method, a system, a device and a storage medium for synchronous processing of audio devices, in order to overcome the defect in the prior art that it is difficult to find audio asynchronism among multiple audio devices.
The invention solves the technical problems through the following technical scheme:
a synchronization processing method of an audio device including a master audio device for receiving data transmitted by a data source device and a slave audio device, the synchronization processing method comprising:
controlling the slave audio equipment to listen to the data transmitted by the data source equipment;
judging whether the slave audio equipment correctly senses the data sent by the data source equipment;
and if not, sending an interference signal, wherein the interference signal is used for interfering data transmission between the main audio equipment and the data source equipment.
Preferably, the step of determining whether the slave audio device correctly senses the data transmitted by the data source device includes:
judging whether the slave audio equipment can sense RTS (Request To Send)/CTS (Clear To Send allowed) interaction between the master audio equipment and the data source equipment;
if the RTS/CTS interaction cannot be sensed, whether the slave audio equipment can sense the data sent by the data source equipment or not is judged;
if the data sent by the data source equipment cannot be sensed, determining that the slave audio equipment does not sense the data sent by the data source equipment correctly;
the step of transmitting the interference signal includes:
detecting the state of an air interface between the data source equipment and the main audio equipment;
and sending the interference signal after a first preset time period after the state of the air interface is detected to be switched from the Busy state to the Idle state.
Preferably, the step of determining whether the slave audio device correctly senses the data transmitted by the data source device includes:
judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment;
if RTS/CTS interaction can be monitored, whether data sent by the data source equipment can be monitored in a second preset time period after a CTS frame is monitored is judged;
if the data sent by the data source equipment cannot be sensed, determining that the slave audio equipment does not sense the data sent by the data source equipment correctly;
the step of transmitting the interference signal includes:
transmitting the interference signal at the end of the second preset time period.
Preferably, the step of determining whether the slave audio device correctly senses the data transmitted by the data source device includes:
judging whether the slave audio equipment can listen to the data sent by the data source equipment;
if the data sent by the data source equipment can be intercepted, judging whether the data intercepted by the slave audio equipment comprises a frame check sequence;
if the frame check sequence is included, judging whether the data sensed by the slave audio equipment can pass the cyclic redundancy check according to the frame check sequence;
if the cyclic redundancy check cannot be passed, determining that the slave audio equipment does not correctly listen to the data sent by the data source equipment;
the step of transmitting the interference signal includes:
and transmitting the interference signal after a first preset time period after the slave audio equipment listens to the actual time of the data transmitted by the data source equipment.
Preferably, the step of determining whether the slave audio device correctly senses the data transmitted by the data source device includes:
judging whether the slave audio equipment can listen to the data sent by the data source equipment;
if the data sent by the data source equipment can be intercepted, judging whether the data intercepted by the slave audio equipment comprises a frame check sequence;
if the frame check sequence is not included, determining that the slave audio equipment does not correctly listen to the data sent by the data source equipment;
the step of transmitting the interference signal includes:
determining whether the data heard from the audio device includes an L-SIG field;
if the L-SIG field is included, predicting the predicted time when the slave audio equipment finishes listening the data transmitted by the data source equipment according to the length field in the L-SIG field, and transmitting the interference signal after the predicted time and a first preset time period.
An electronic device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the computer program to realize the synchronous processing method of any one of the audio devices.
A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, realizes the steps of the synchronization processing method of any one of the audio devices described above.
A synchronous processing system of audio equipment comprises a master audio equipment and a slave audio equipment, wherein the master audio equipment is used for receiving data sent by a data source equipment, and the synchronous processing system comprises a monitoring module, a judging module and an interference module; wherein:
the listening module is used for controlling the slave audio equipment to listen to the data sent by the data source equipment;
the judging module is used for judging whether the slave audio equipment correctly senses the data sent by the data source equipment, and if not, the interference module is called;
the interference module is configured to send an interference signal, where the interference signal is configured to interfere with data transmission between the main audio device and the data source device.
Preferably, the judging module includes a first judging unit, a third judging unit, and a determining unit; wherein:
the first judging unit is used for judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment, and if not, the third judging unit is called;
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module comprises a detection unit and a first interference unit:
the detection unit is used for detecting the state of an air interface between the data source equipment and the main audio equipment;
the first interference unit is used for sending the interference signal after a first preset time period after the state of the air interface is detected to be switched from the Busy state to the Idle state.
Preferably, the judging module includes a first judging unit, a second judging unit and a determining unit; wherein:
the first judging unit is used for judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment, and if so, the second judging unit is called;
the second judging unit is used for judging whether the data sent by the data source equipment can be intercepted in a second preset time period after the CTS frame is intercepted, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module includes:
a second interference unit, configured to send the interference signal at the end of the second preset time period.
Preferably, the judging module includes a third judging unit, a fourth judging unit, a fifth judging unit and a determining unit; wherein:
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if so, the fourth judging unit is called;
the fourth judging unit is used for judging whether the data sensed by the slave audio equipment comprises a frame check sequence, and if so, the fifth judging unit is called;
the fifth judging unit is used for judging whether the data sensed by the slave audio equipment can pass the cyclic redundancy check according to the frame check sequence, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module includes:
and the third interference unit is used for sending the interference signal after the slave audio equipment monitors the actual time of the data sent by the data source equipment and a first preset time interval.
Preferably, the judging module includes a third judging unit, a fourth judging unit and a determining unit; wherein:
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if so, the fourth judging unit is called;
the fourth judging unit is used for judging whether the data sensed by the slave audio equipment comprises a frame check sequence or not, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module comprises a sixth judging unit, a predicting unit and a fourth interference unit; wherein:
the sixth judging unit is configured to judge whether the data sensed by the slave audio device includes an L-SIG field, and if so, invoke the predicting unit;
the prediction unit is used for predicting the prediction time when the slave audio equipment finishes monitoring the data transmitted by the data source equipment according to the length field in the L-SIG field;
the fourth interference unit is configured to transmit the interference signal after the predicted time by a first preset time period.
The positive progress effects of the invention are as follows: the method and the device detect whether the slave audio equipment correctly monitors the data transmitted from the data source equipment to the master audio equipment, and transmit an interference signal for interfering data transmission between the data source equipment and the master audio equipment when the slave audio equipment does not correctly monitor the data, so that the data source equipment cannot receive a confirmation frame fed back when the master audio equipment correctly receives the data or the master audio equipment cannot correctly receive the data transmitted from the data source equipment and further cannot feed back the confirmation frame, and the situation that the slave audio equipment cannot correctly monitor the data transmitted from the data source to the master audio can be found.
Drawings
Fig. 1 is a flowchart of a synchronization processing method of an audio device according to embodiment 1 of the present invention.
Fig. 2 is a flowchart of a synchronization processing method of an audio device according to embodiment 2 of the present invention.
Fig. 3 is a flowchart of a synchronization processing method of an audio device according to embodiment 3 of the present invention.
Fig. 4 is a schematic structural diagram of an electronic device according to embodiment 4 of the present invention.
Fig. 5 is a block diagram of a synchronization processing system of an audio device according to embodiment 6 of the present invention.
Fig. 6 is a block diagram of a synchronization processing system of an audio device according to embodiment 7 of the present invention.
Fig. 7 is a block diagram of a synchronization processing system of an audio device according to embodiment 8 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
The present embodiment provides a synchronization processing method for an audio device, where the audio device includes a master audio device and a slave audio device, the master audio device is configured to receive data sent by a data source device, and fig. 1 shows a flowchart of the present embodiment. Referring to fig. 1, the synchronization processing method of the present embodiment includes:
s1, controlling the audio equipment to listen to the data sent by the data source equipment;
s2, judging whether the audio equipment correctly monitors the data sent by the data source equipment;
if not, go to step S3;
and S3, sending an interference signal.
In this embodiment, the slave audio device and the master audio device are in the same network frequency band, the slave audio device and the master audio device may be a WiFi headset or a WiFi loudspeaker, and the data source device may be a mobile terminal such as a mobile phone or a tablet.
In this embodiment, the interference signal is used to interfere data transmission between the master audio device and the data source device, and may be a Null frame, an electromagnetic energy, or the like, and specifically is used to preempt an air interface resource when data is transmitted between the data source device and the master audio device, so that the data source device cannot receive an acknowledgement frame fed back when the master audio device correctly receives data, or that the master audio device cannot correctly receive data sent by the data source device and cannot feed back the acknowledgement frame, and the data source device needs to send data to the master audio device again because the data source device does not receive the acknowledgement frame fed back by the master audio device, so that the slave audio device can continue to listen to the retransmitted data.
In this embodiment, whether the slave audio device correctly listens to the data sent by the data source device to the master audio device is detected, and if not, an interference signal interfering data transmission between the data source device and the master audio device is sent, so that the data source device cannot receive a confirmation frame fed back when the master audio device correctly receives the data, or the master audio device cannot correctly receive the data sent by the data source device and further cannot feed back the confirmation frame, and a situation that the slave audio device cannot correctly listen to the data sent by the data source device to the master audio can be found.
Further, the data source device retransmits data to the master audio device because the data source device does not receive the acknowledgement frame fed back by the master audio device, and the slave audio device can continue to listen to the retransmitted data, which is also beneficial to realizing audio synchronization between the master audio device and the slave audio device. When the data source device receives the acknowledgement frame fed back by the master audio device, the data source device may send other data to the slave audio device, and the slave audio device may also listen to the other data synchronously to achieve audio synchronization.
Example 2
The present embodiment provides a synchronization processing method for an audio device based on embodiment 1, and fig. 2 shows a flowchart of the present embodiment.
In step S2 of this embodiment, it may be determined whether the slave audio device correctly listens to the data transmitted by the data source device in conjunction with RTS/CTS interaction between the data source device and the master audio device, where the RTS frame and the CTS frame are control frames defined in the WiFi protocol for protecting subsequent data transmission. The operation of generally initiating RTS/CTS interaction includes that a sends an RTS frame to B, B replies a CTS frame to a, and a sends a data frame to B after SIFS (Short interface Space, Short inter-frame interval, time defined by WiFi protocol, generally 16 us).
Specifically, in this embodiment, the recording may be performed when the slave device listens to the RTS/CTS interaction, and the release may be performed when it is determined that the slave audio device correctly listens to the data sent by the data source device and when it is determined that the slave audio device fails to correctly listen to the data sent by the data source device, so that the recorded RTS/CTS interaction can accurately assist the determination of whether the slave audio device correctly listens to the data sent by the data source device.
Referring to fig. 2, step S2 in this embodiment may specifically include:
s211, judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment;
if not, go to step S212;
s212, judging whether the audio equipment can listen to the data sent by the data source equipment;
if not, go to step S213;
and S213, determining that the data transmitted by the data source equipment is not correctly heard from the audio equipment.
Step S3 may specifically include:
s311, detecting the state of an air interface between the data source equipment and the main audio equipment;
s312, after detecting that the state of the air interface is switched from Busy state to Idle state, sending an interference signal through a first preset time period.
Wherein step S311 is performed after step S213.
In this case, since the slave audio device cannot monitor RTS/CTS interaction between the master audio device and the data source device, and cannot monitor data sent by the data source device, the state of the air interface may be detected in an energy detection manner, and the time when the data source device finishes sending the data is predicted based on the state switching of the air interface, specifically, when the state of the air interface is switched from the Busy state to the Idle state, it may be considered that the data is sent finished, and an interference signal is sent after the completion of the data sending, and an acknowledgement frame is sent and received between the data source device and the master audio device in an interference manner, where the first preset time period may be the SIFS.
Further, referring to fig. 2, the step S2 may include, when the step S211 determines yes:
s214, judging whether the data sent by the data source equipment can be intercepted in a second preset time period after the CTS frame is intercepted;
if not, go to step S215;
and S215, determining that the data transmitted by the data source device is not correctly sensed from the audio device.
Step S3 may further include:
and S313, transmitting the interference signal at the end of the second preset time period.
Wherein step S313 is performed after step S215.
In this case, the slave audio device listens to RTS/CTS interaction between the master audio device and the data source device, but fails to listen to data transmitted by the data source device within a second preset time period after the CTS frame is listened to, and there is often data transmission and reception within a second preset time period after the CTS frame, and thus, an interference signal may be transmitted at the end of the second preset time period. Specifically, in this embodiment, the second preset time period may be set in a self-defined manner according to an actual application, for example, the second preset time period may be in the millisecond level, but the second preset time period should cover a time point when the main audio device receives a signal indicating that data transmission starts, so that when the second preset time period ends, the main audio device may not receive data sent by the data source device, and the main audio device may interfere with receiving of the data, so that the main audio device cannot reply an acknowledgement frame to the data source device.
On the basis of embodiment 1, the present embodiment provides a way of determining whether the slave audio device correctly listens to the data sent by the data source device based on the RTS/CTS interaction, which is beneficial to enable the situation that the slave audio device fails to correctly listen to the data sent by the data source to the master audio to be discovered, so as to further promote audio synchronization.
Example 3
The present embodiment provides a synchronization processing method for an audio device based on embodiment 1, and fig. 3 shows a flowchart of the present embodiment.
In this embodiment, whether the data sent by the data source device is correctly intercepted by the audio device is determined based on the data sent by the data source device intercepted by the audio device, specifically, referring to fig. 3, step S2 in this embodiment may specifically include:
s221, judging whether the audio equipment can monitor the data sent by the data source equipment;
if yes, go to step S222;
s222, judging whether the data sensed by the audio equipment comprises a frame check sequence;
if yes, go to step S223;
s223, judging whether the data sensed by the audio equipment can pass through cyclic redundancy check according to the frame check sequence;
if not, go to step S224;
and S224, determining that the data transmitted by the data source equipment is not correctly heard from the audio equipment.
Step S3 may further include:
s321, transmitting the interference signal after a first preset time period elapses after the audio device listens to the actual time of the data transmitted by the data source device.
Wherein step S321 is performed after step S224.
In this case, the audio device listens to the data transmitted by the data source device, and specifically, in this embodiment, in order to enable the audio device to correctly listen to the data transmitted by the data source device, it is also possible to control the audio device to receive link information between the master audio device and the data source device, so that the data listened to by the audio device is obtained by listening to the data transmitted by the data source device to the master audio device based on the link information.
In this embodiment, it may be first determined whether data listened to from the audio device includes a frame check sequence, and further determined whether the listened data can pass a cyclic redundancy check according to the frame check sequence if the data includes the frame check sequence, and if the data cannot pass the cyclic redundancy check, it is determined that the data sent by the data source device cannot be correctly listened to from the audio device, and an interference signal is sent for a first preset time period after an actual time of sending the data by the data source device is listened to, so as to seize an air interface resource when the main audio device sends a confirmation frame to the data source device, where the first preset time period may be SIFS (Short interface Space, Short inter-frame interval, time defined by WiFi protocol, and is generally 16 us).
Further, referring to fig. 3, the step S2 may include, when the step S222 determines no:
s225, determining that the data sent by the data source equipment is not correctly heard from the audio equipment;
step S3 may further include:
s322, judging whether the data intercepted by the audio equipment comprises an L-SIG field;
if yes, go to step S323;
s323, predicting the prediction time when the data transmitted by the data source equipment is intercepted by the audio equipment according to the length field in the L-SIG field;
and S324, transmitting the interference signal after the predicted time and within a first preset time period.
Wherein step S322 is performed after step S225.
In this case, the slave audio device listens to the data sent by the data source device, but the listened data does not include a frame check sequence, and in order to preempt air interface resources when the master audio device sends an acknowledgement frame to the data source device, it is necessary to predict a time point at which the master audio device sends the acknowledgement frame. Specifically, when the L-SIG field is included in the data sensed by the slave audio device, the reception of the data transmitted by the data source device by the master audio device may be predicted based on the length field included therein, that is, the predicted time at which the slave audio device senses the reception, and the transmission of the acknowledgement frame by the master audio device over the first preset period after the predicted time may be predicted.
On the basis of embodiment 1, the present embodiment provides a way of determining whether the data transmitted from the audio device is correctly intercepted by the data source device based on the data transmitted from the data source device intercepted by the audio device, which is beneficial to enabling a situation that the data transmitted from the data source device to the main audio is not correctly intercepted by the audio device to be discovered, so as to further promote audio synchronization.
Example 4
Fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, and shows a block diagram of an exemplary electronic device 90 suitable for implementing an embodiment of the present invention. The electronic device 90 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 4, the electronic device 90 may take the form of a general purpose computing device, which may be a server device, for example. The components of the electronic device 90 may include, but are not limited to: the at least one processor 91, the at least one memory 92, and a bus 93 that connects the various system components (including the memory 92 and the processor 91).
The bus 93 includes a data bus, an address bus, and a control bus.
Memory 92 may include volatile memory, such as Random Access Memory (RAM)921 and/or cache memory 922, and may further include Read Only Memory (ROM) 923.
Memory 92 may also include a program tool 925 (or utility) having a set (at least one) of program modules 924, such program modules 924 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 91 executes various functional applications and data processing, such as a synchronization processing method of an audio device provided in any one of embodiments 1 to 3 of the present invention, by executing the computer program stored in the memory 92.
The electronic device 90 may also communicate with one or more external devices 94 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 95. Also, the model-generated electronic device 90 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via a network adapter 96. As shown, the network adapter 96 communicates with the other modules of the model-generated electronic device 90 via a bus 93. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating electronic device 90, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Specifically, in the present embodiment, the electronic apparatus is an audio apparatus.
Example 5
The present embodiment provides a computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the steps of the synchronization processing method of the audio device provided in any one of embodiments 1 to 3.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps of implementing the synchronization processing method of an audio device as described in any one of embodiments 1 to 3, when said program product is run on said terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may be executed entirely on the user device, partly on the user device, as a stand-alone software package, partly on the user device and partly on a remote device or entirely on the remote device.
Example 6
The present embodiment provides a synchronous processing system of an audio device, where the audio device includes a master audio device and a slave audio device, the master audio device is configured to receive data sent by a data source device, and fig. 5 shows a module diagram of the present embodiment. Referring to fig. 5, the synchronous processing system of the present embodiment includes:
the monitoring module 1 is used for controlling the audio equipment to monitor the data sent by the data source equipment;
the judging module 2 is used for judging whether the audio equipment correctly monitors the data sent by the data source equipment;
if not, calling an interference module 3;
and the interference module 3 is used for sending interference signals.
In this embodiment, the slave audio device and the master audio device are in the same network frequency band, the slave audio device and the master audio device may be a WiFi headset or a WiFi loudspeaker, and the data source device may be a mobile terminal such as a mobile phone or a tablet.
In this embodiment, the interference signal is used to interfere data transmission between the master audio device and the data source device, and may be a Null frame, an electromagnetic energy, or the like, and specifically is used to preempt an air interface resource when data is transmitted between the data source device and the master audio device, so that the data source device cannot receive an acknowledgement frame fed back when the master audio device correctly receives data, or that the master audio device cannot correctly receive data sent by the data source device and cannot feed back the acknowledgement frame, and the data source device needs to send data to the master audio device again because the data source device does not receive the acknowledgement frame fed back by the master audio device, so that the slave audio device can continue to listen to the retransmitted data.
In this embodiment, whether the slave audio device correctly listens to the data sent by the data source device to the master audio device is detected, and if not, an interference signal interfering data transmission between the data source device and the master audio device is sent, so that the data source device cannot receive a confirmation frame fed back when the master audio device correctly receives the data, or the master audio device cannot correctly receive the data sent by the data source device and further cannot feed back the confirmation frame, and a situation that the slave audio device cannot correctly listen to the data sent by the data source device to the master audio can be found.
Further, the data source device retransmits data to the master audio device because the data source device does not receive the acknowledgement frame fed back by the master audio device, and the slave audio device can continue to listen to the retransmitted data, which is also beneficial to realizing audio synchronization between the master audio device and the slave audio device. When the data source device receives the acknowledgement frame fed back by the master audio device, the data source device may send other data to the slave audio device, and the slave audio device may also listen to the other data synchronously to achieve audio synchronization.
Example 7
This embodiment provides a synchronous processing system of an audio device on the basis of embodiment 6, and fig. 6 shows a module diagram of this embodiment.
In this embodiment, whether the slave audio device correctly listens To data transmitted by the data source device may be determined in conjunction with RTS (Request To Send)/CTS (Clear To Send) interaction between the data source device and the master audio device, where RTS and CTS frames are control frames defined in the WiFi protocol To protect subsequent data transmission. The operation of generally initiating RTS/CTS interaction includes that a sends an RTS frame to B, B replies a CTS frame to a, and a sends a data frame to B after SIFS (short interframe Space, time defined by WiFi protocol, generally 16 us).
Specifically, in this embodiment, the recording may be performed when the slave device listens to the RTS/CTS interaction, and the release may be performed when it is determined that the slave audio device correctly listens to the data sent by the data source device and when it is determined that the slave audio device fails to correctly listen to the data sent by the data source device, so that the recorded RTS/CTS interaction can accurately assist the determination of whether the slave audio device correctly listens to the data sent by the data source device.
Referring to fig. 6, in this embodiment, the determining module 2 may specifically include a first determining unit 211, a third determining unit 212, and a determining unit 213, and the interference module 3 may specifically include a detecting unit 311 and a first interference unit 312. Wherein:
the first judging unit 211 is configured to judge whether the slave audio device can listen to RTS/CTS interaction between the master audio device and the data source device;
if not, the third judgment unit 212 is called;
the third judgment unit 212 is used for judging whether the audio device can listen to the data transmitted by the data source device;
if not, the determination unit 213 is called, and the detection unit 311 is called after the determination unit 213 is called;
the determining unit 213 is configured to determine that the data transmitted from the data source device is not correctly sensed from the audio device;
the detecting unit 311 is configured to detect a state of an air interface between the data source device and the main audio device;
the first interference unit 312 is configured to send an interference signal after a first preset time period after detecting that the state of the air interface is switched from the Busy state to the Idle state.
In this case, since the slave audio device cannot sense RTS/CTS interaction between the master audio device and the data source device, a state of an air interface may be detected in an energy detection manner, and a time when the data source device finishes sending data is predicted based on a state switch of the air interface, specifically, when the state of the air interface is switched from a Busy state to an Idle state, the data may be considered to be sent finished, and an interference signal may be sent after the completion of the data sending, so as to interfere with sending and receiving of an acknowledgement frame between the data source device and the master audio device, where the first preset time period may be the SIFS.
Further, referring to fig. 6, the determining module 2 may further include a second determining unit 214, and the interfering module 3 may further include a second interfering unit 313. Wherein:
the second judging unit 214 is configured to judge whether the data sent by the data source device can be intercepted within a second preset time period after the CTS frame is intercepted when the first judging unit 211 judges yes;
if not, the determination unit 213 is invoked, and after the determination unit 213 is invoked, the second interference unit 313 is invoked;
the second interference unit 313 is configured to transmit an interference signal at the end of the second preset time period.
In this case, the slave audio device listens to RTS/CTS interaction between the master audio device and the data source device, but fails to listen to data transmitted by the data source device within a second preset time period after the CTS frame is listened to, and there is often data transmission and reception within a second preset time period after the CTS frame, and thus, an interference signal may be transmitted at the end of the second preset time period. Specifically, in this embodiment, the second preset time period may be set in a self-defined manner according to an actual application, for example, the second preset time period may be in the millisecond level, but the second preset time period should cover a time point when the main audio device receives a signal indicating that data transmission starts, so that when the second preset time period ends, the main audio device may not receive data sent by the data source device, and the main audio device may interfere with receiving of the data, so that the main audio device cannot reply an acknowledgement frame to the data source device.
On the basis of embodiment 6, the present embodiment provides a way of determining whether the slave audio device correctly listens to the data sent by the data source device based on the RTS/CTS interaction, which is beneficial to enable the situation that the slave audio device fails to correctly listen to the data sent by the data source to the master audio to be discovered, so as to further promote audio synchronization.
Example 8
This embodiment provides a synchronous processing system of an audio device on the basis of embodiment 6, and fig. 7 shows a block diagram of this embodiment.
In the present embodiment, whether the data sent by the data source device is correctly intercepted from the audio device is determined based on the data sent by the data source device intercepted from the audio device, specifically, referring to fig. 7, in the present embodiment, the determining module 2 may specifically include a third determining unit 221, a fourth determining unit 222, a fifth determining unit 223, and a determining unit 224, and the interference module 3 may specifically include a third interference unit 321. Wherein:
the third judgment unit 221 is configured to judge whether the data transmitted from the data source apparatus can be intercepted by the audio apparatus;
if yes, the fourth determination unit 222 is called;
the fourth judging unit 222 is configured to judge whether the data sensed from the audio device includes a frame check sequence;
if yes, the fifth judgment unit 223 is invoked;
the fifth judging unit 223 is configured to judge whether the data sensed from the audio device can pass the cyclic redundancy check according to the frame check sequence;
if not, the determination unit 224 is invoked, and after the determination unit 224 is invoked, the third interference unit 321 is invoked;
a determination unit 224 configured to determine that the data transmitted from the data source device is not correctly sensed from the audio device;
the third interference unit 321 is configured to transmit an interference signal after a first preset time period elapses after an actual time when the audio device listens to data transmitted by the data source device.
In this case, the audio device listens to the data transmitted by the data source device, and specifically, in this embodiment, in order to enable the audio device to correctly listen to the data transmitted by the data source device, it is also possible to control the audio device to receive link information between the master audio device and the data source device, so that the data listened to by the audio device is obtained by listening to the data transmitted by the data source device to the master audio device based on the link information.
In this embodiment, it may be first determined whether data listened to from the audio device includes a frame check sequence, and further determined whether the listened data can pass a cyclic redundancy check according to the frame check sequence if the data includes the frame check sequence, and if the data cannot pass the cyclic redundancy check, it is determined that the data sent by the data source device cannot be correctly listened to from the audio device, and an interference signal is sent for a first preset time period after an actual time of sending the data by the data source device is listened to, so as to seize an air interface resource when the main audio device sends a confirmation frame to the data source device, where the first preset time period may be SIFS (Short interface Space, Short inter-frame interval, time defined by WiFi protocol, and is generally 16 us).
Referring to fig. 7, the interference module 3 may further include a sixth determining unit 322, a predicting unit 323, and a fourth interfering unit 324. In the present embodiment, the determination unit 224 may be called when the fourth determination unit 222 determines no, and the sixth determination unit 322 may be called after the determination unit 224 is called.
Wherein:
the sixth judging unit 322 is configured to judge whether the data sensed from the audio device includes an L-SIG field;
if yes, calling a prediction unit 323;
the prediction unit 323 is configured to predict a prediction time when data transmitted from the data source device is intercepted by the audio device, based on the length field in the L-SIG field;
the fourth interference unit 324 is configured to transmit the interference signal after the predicted time passes through a first preset time period.
In this case, the slave audio device listens to the data sent by the data source device, but the listened data does not include a frame check sequence, and in order to preempt air interface resources when the master audio device sends an acknowledgement frame to the data source device, it is necessary to predict a time point at which the master audio device sends the acknowledgement frame. Specifically, when the L-SIG field is included in the data sensed by the slave audio device, the reception of the data transmitted by the data source device by the master audio device may be predicted based on the length field included therein, that is, the predicted time at which the slave audio device senses the reception, and the transmission of the acknowledgement frame by the master audio device over the first preset period after the predicted time may be predicted.
On the basis of embodiment 6, the present embodiment provides a way of determining whether the data transmitted from the audio device is correctly intercepted by the data source device based on the data transmitted from the data source device intercepted by the audio device, which is beneficial to enabling a situation that the data transmitted from the data source device to the main audio is not correctly intercepted by the audio device to be discovered, so as to further promote audio synchronization.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that this is by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (12)

1. A synchronization processing method of an audio device, the audio device including a master audio device and a slave audio device, the master audio device being configured to receive data transmitted by a data source device, the synchronization processing method comprising:
controlling the slave audio equipment to listen to the data transmitted by the data source equipment;
judging whether the slave audio equipment correctly senses the data sent by the data source equipment;
and if not, sending an interference signal, wherein the interference signal is used for interfering data transmission between the main audio equipment and the data source equipment.
2. The synchronous processing method of the audio device according to claim 1, wherein the step of determining whether the slave audio device correctly senses the data transmitted by the data source device comprises:
judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment;
if the RTS/CTS interaction cannot be sensed, whether the slave audio equipment can sense the data sent by the data source equipment or not is judged;
if the data sent by the data source equipment cannot be sensed, determining that the slave audio equipment does not sense the data sent by the data source equipment correctly;
the step of transmitting the interference signal includes:
detecting the state of an air interface between the data source equipment and the main audio equipment;
and sending the interference signal after a first preset time period after the state of the air interface is detected to be switched from the Busy state to the Idle state.
3. The synchronous processing method of the audio device according to claim 1, wherein the step of determining whether the slave audio device correctly senses the data transmitted by the data source device comprises:
judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment;
if RTS/CTS interaction can be monitored, whether data sent by the data source equipment can be monitored in a second preset time period after a CTS frame is monitored is judged;
if the data sent by the data source equipment cannot be sensed, determining that the slave audio equipment does not sense the data sent by the data source equipment correctly;
the step of transmitting the interference signal includes:
transmitting the interference signal at the end of the second preset time period.
4. The synchronous processing method of the audio device according to claim 1, wherein the step of determining whether the slave audio device correctly senses the data transmitted by the data source device comprises:
judging whether the slave audio equipment can listen to the data sent by the data source equipment;
if the data sent by the data source equipment can be intercepted, judging whether the data intercepted by the slave audio equipment comprises a frame check sequence;
if the frame check sequence is included, judging whether the data sensed by the slave audio equipment can pass the cyclic redundancy check according to the frame check sequence;
if the cyclic redundancy check cannot be passed, determining that the slave audio equipment does not correctly listen to the data sent by the data source equipment;
the step of transmitting the interference signal includes:
and transmitting the interference signal after a first preset time period after the slave audio equipment listens to the actual time of the data transmitted by the data source equipment.
5. The synchronous processing method of the audio device according to claim 1, wherein the step of determining whether the slave audio device correctly senses the data transmitted by the data source device comprises:
judging whether the slave audio equipment can listen to the data sent by the data source equipment;
if the data sent by the data source equipment can be intercepted, judging whether the data intercepted by the slave audio equipment comprises a frame check sequence;
if the frame check sequence is not included, determining that the slave audio equipment does not correctly listen to the data sent by the data source equipment;
the step of transmitting the interference signal includes:
determining whether the data heard from the audio device includes an L-SIG field;
if the L-SIG field is included, predicting the predicted time when the slave audio equipment finishes listening the data transmitted by the data source equipment according to the length field in the L-SIG field, and transmitting the interference signal after the predicted time and a first preset time period.
6. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of synchronous processing of an audio device according to any of claims 1-5 when executing the computer program.
7. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the synchronization processing method of an audio device according to any one of claims 1 to 5.
8. The synchronous processing system of the audio equipment is characterized in that the audio equipment comprises a master audio equipment and a slave audio equipment, the master audio equipment is used for receiving data sent by a data source equipment, and the synchronous processing system comprises a monitoring module, a judging module and an interference module; wherein:
the listening module is used for controlling the slave audio equipment to listen to the data sent by the data source equipment;
the judging module is used for judging whether the slave audio equipment correctly senses the data sent by the data source equipment, and if not, the interference module is called;
the interference module is configured to send an interference signal, where the interference signal is configured to interfere with data transmission between the main audio device and the data source device.
9. The synchronous processing system of an audio device according to claim 8, wherein the judging module includes a first judging unit, a third judging unit, and a determining unit; wherein:
the first judging unit is used for judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment, and if not, the third judging unit is called;
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module comprises a detection unit and a first interference unit:
the detection unit is used for detecting the state of an air interface between the data source equipment and the main audio equipment;
the first interference unit is used for sending the interference signal after a first preset time period after the state of the air interface is detected to be switched from the Busy state to the Idle state.
10. The synchronous processing system of an audio device according to claim 8, wherein the judging module includes a first judging unit, a second judging unit, and a determining unit; wherein:
the first judging unit is used for judging whether the slave audio equipment can monitor RTS/CTS interaction between the master audio equipment and the data source equipment, and if so, the second judging unit is called;
the second judging unit is used for judging whether the data sent by the data source equipment can be intercepted in a second preset time period after the CTS frame is intercepted, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module includes:
a second interference unit, configured to send the interference signal at the end of the second preset time period.
11. The synchronous processing system of an audio device according to claim 8, wherein the judgment module includes a third judgment unit, a fourth judgment unit, a fifth judgment unit, and a determination unit; wherein:
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if so, the fourth judging unit is called;
the fourth judging unit is used for judging whether the data sensed by the slave audio equipment comprises a frame check sequence, and if so, the fifth judging unit is called;
the fifth judging unit is used for judging whether the data sensed by the slave audio equipment can pass the cyclic redundancy check according to the frame check sequence, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module includes:
and the third interference unit is used for sending the interference signal after the slave audio equipment monitors the actual time of the data sent by the data source equipment and a first preset time interval.
12. The synchronous processing system of an audio device according to claim 8, wherein the judging module includes a third judging unit, a fourth judging unit, and a determining unit; wherein:
the third judging unit is used for judging whether the slave audio equipment can monitor the data sent by the data source equipment, and if so, the fourth judging unit is called;
the fourth judging unit is used for judging whether the data sensed by the slave audio equipment comprises a frame check sequence or not, and if not, the determining unit is called;
the determining unit is used for determining that the slave audio equipment does not correctly sense the data sent by the data source equipment;
the interference module comprises a sixth judging unit, a predicting unit and a fourth interference unit; wherein:
the sixth judging unit is configured to judge whether the data sensed by the slave audio device includes an L-SIG field, and if so, invoke the predicting unit;
the prediction unit is used for predicting the prediction time when the slave audio equipment finishes monitoring the data transmitted by the data source equipment according to the length field in the L-SIG field;
the fourth interference unit is configured to transmit the interference signal after the predicted time by a first preset time period.
CN201911320947.XA 2019-12-19 2019-12-19 Synchronous processing method, system, equipment and storage medium of audio equipment Pending CN111212471A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911320947.XA CN111212471A (en) 2019-12-19 2019-12-19 Synchronous processing method, system, equipment and storage medium of audio equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911320947.XA CN111212471A (en) 2019-12-19 2019-12-19 Synchronous processing method, system, equipment and storage medium of audio equipment

Publications (1)

Publication Number Publication Date
CN111212471A true CN111212471A (en) 2020-05-29

Family

ID=70789227

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911320947.XA Pending CN111212471A (en) 2019-12-19 2019-12-19 Synchronous processing method, system, equipment and storage medium of audio equipment

Country Status (1)

Country Link
CN (1) CN111212471A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106465417A (en) * 2014-07-18 2017-02-22 英特尔公司 MAC protocol for full duplex wireless communications
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication means, device and audio-frequence player device, system
CN108737949A (en) * 2017-04-14 2018-11-02 展讯通信(上海)有限公司 Bluetooth equipment and its method for avoiding WiFi system from interfering and Bluetooth system
CN109587714A (en) * 2018-12-11 2019-04-05 恒玄科技(上海)有限公司 Send method, apparatus, storage medium and the bluetooth headset of audio data
CN109995479A (en) * 2019-06-03 2019-07-09 南京中感微电子有限公司 A kind of voice data communication method, system and audio communication device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106465417A (en) * 2014-07-18 2017-02-22 英特尔公司 MAC protocol for full duplex wireless communications
CN108737949A (en) * 2017-04-14 2018-11-02 展讯通信(上海)有限公司 Bluetooth equipment and its method for avoiding WiFi system from interfering and Bluetooth system
CN108513702A (en) * 2018-04-26 2018-09-07 万魔声学科技有限公司 Audio wireless communication means, device and audio-frequence player device, system
CN109587714A (en) * 2018-12-11 2019-04-05 恒玄科技(上海)有限公司 Send method, apparatus, storage medium and the bluetooth headset of audio data
CN109995479A (en) * 2019-06-03 2019-07-09 南京中感微电子有限公司 A kind of voice data communication method, system and audio communication device

Similar Documents

Publication Publication Date Title
CN110380828B (en) Sidelink operation method and terminal
US10409251B2 (en) Automatic inspection and monitoring method based on time domain slotting control
EP4075701A1 (en) Data receiving method and apparatus for bluetooth headset, device, and storage medium
JP7234402B2 (en) Secondary link monitoring method for vehicle communication, vehicle communication terminal, electronic device and computer program
CN111694674B (en) Message distribution processing method, device, equipment and storage medium
JP2010074594A (en) Wireless device and method of controlling and monitoring wireless device
CA2624506A1 (en) A distributed monitoring method
CN103650401A (en) Internal communication method for mobile terminal
WO2019024790A1 (en) Rar interception method, sending method, related device and system
KR20120126873A (en) System for Dynamic Analysis of Embedded Software of Vehicle using UDS
CN114143659A (en) Earphone data sending method, terminal equipment, master earphone, slave earphone and system
CN116150054B (en) Interrupt information processing method based on PCIE
CN111212471A (en) Synchronous processing method, system, equipment and storage medium of audio equipment
CN110048865B (en) Bus data transmission method and device, electronic equipment and storage medium
JP2012038257A (en) Os operating state confirmation system, confirmation object device, os operating state confirmation device, and os operating state confirmation method and program
CN116260747A (en) Monitoring method and device of terminal test equipment and electronic equipment
CN105704422B (en) A kind of video conference group network system and its method
CN114286393A (en) Link self-adaption method, device, equipment and storage medium
WO2019015050A1 (en) Exception handling method and device for repeater in wireless sensor network
WO2019015049A1 (en) Method and device for exception handling in wireless sensor network
JPH03220661A (en) System for communication between processors
JP2834062B2 (en) Information processing system
CN114385104A (en) Method, device, medium and equipment for transmitting display data between terminals
JP2002305561A (en) Wireless communication unit, wireless communication system, and wireless communication method
JP2002026951A (en) Optical network system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200529

RJ01 Rejection of invention patent application after publication