CN108965426B - Data processing method and device for audio system, computer equipment and storage medium - Google Patents
Data processing method and device for audio system, computer equipment and storage medium Download PDFInfo
- Publication number
- CN108965426B CN108965426B CN201810757354.9A CN201810757354A CN108965426B CN 108965426 B CN108965426 B CN 108965426B CN 201810757354 A CN201810757354 A CN 201810757354A CN 108965426 B CN108965426 B CN 108965426B
- Authority
- CN
- China
- Prior art keywords
- data
- controlled
- response
- extracted
- sending
- 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.)
- Active
Links
- 238000003672 processing method Methods 0.000 title abstract description 17
- 230000004044 response Effects 0.000 claims abstract description 191
- 238000004891 communication Methods 0.000 claims abstract description 41
- 238000000034 method Methods 0.000 claims abstract description 29
- 238000012545 processing Methods 0.000 claims abstract description 16
- 238000004590 computer program Methods 0.000 claims description 23
- 238000013144 data compression Methods 0.000 claims description 7
- 239000011159 matrix material Substances 0.000 claims description 2
- 238000005070 sampling Methods 0.000 claims description 2
- 238000010586 diagram Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 5
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/12—Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Health & Medical Sciences (AREA)
- Computing Systems (AREA)
- General Health & Medical Sciences (AREA)
- Medical Informatics (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application relates to a data processing method and device of an audio system, computer equipment and a storage medium. The method comprises the following steps: when the master control device and the controlled device are detected to establish communication connection, sending a data reporting message to the controlled device, wherein the data reporting message carries data to be extracted, receiving response data uploaded by the controlled device, the response data is obtained by the controlled device responding to the data to be extracted carried in the data reporting message, and sending the response data to the master control device. Therefore, the response data is obtained through the data reporting message and the response data reporting message, the data is processed in a targeted manner, the data processing pressure of the audio system can be effectively relieved, and the data processing efficiency is improved.
Description
Technical Field
The present application relates to the field of audio device control technologies, and in particular, to a data processing method and apparatus for an audio system, a computer device, and a storage medium.
Background
The audio system is widely applied to production and life of people, and digital audio is a technology for recording, storing, editing, compressing or playing sound by utilizing a digital means, and is a brand new sound processing means formed along with the development of a digital signal processing technology, a computer technology and a multimedia technology.
In the audio system, the master control equipment is connected with the controlled audio equipment, and the audio equipment sends real-time data to the master control equipment. However, the data of the audio device increases in geometric level, which causes the traditional data processing load to be heavy and heavy, and has the problem of low data processing efficiency.
Disclosure of Invention
In view of the above, it is necessary to provide a data processing method, an apparatus, a computer device and a storage medium for an audio system, which can improve data processing efficiency.
A method of data processing for an audio system, the method comprising:
when detecting that the master control equipment in the audio system establishes communication connection with the controlled equipment in the audio system, receiving and analyzing a data request sent by the master control equipment to obtain data to be extracted;
sending a data reporting message to the controlled device, wherein the data reporting message carries the data to be extracted;
receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and sending the response data to the main control equipment.
In one embodiment, after sending the response data to the master device, the method further includes:
and when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment.
In one embodiment, when receiving a handover request of a controlled device, after sending a data report closing message to a current controlled device, the method further includes:
when the master control device is detected to establish communication connection with another controlled device, receiving and analyzing a current data request sent by the master control device to obtain current data to be extracted;
sending a data subscription message to the other controlled device, wherein the data subscription message carries the current data to be extracted;
and receiving current response data uploaded by the other controlled device and sending the current response data to the main control device, wherein the current response data is obtained by the other controlled device responding to the current data to be extracted carried in the data subscription message.
In one embodiment, after sending the response data to the master device, the method further includes:
when a paging display switching request is received, sending a data updating report message to the controlled equipment according to the paging display switching request, wherein the data updating report message carries updated data to be extracted;
and receiving response updating data uploaded by the controlled equipment and sending the response updating data to the main control equipment, wherein the response updating data is obtained by the controlled equipment responding to the updated data to be extracted carried in the data updating report message.
In one embodiment, the number of the master devices is multiple, and after sending the response data to the master device, the method further includes:
acquiring a main control equipment identifier and a corresponding relation between the response data and the main control equipment identifier;
and respectively sending the response data to the main control equipment corresponding to the main control equipment identification according to the corresponding relation between the response data and the main control equipment identification.
In an embodiment, when it is detected that the master control device in the audio system establishes a communication connection with the controlled device in the audio system, the receiving and analyzing the data request sent by the master control device further includes: and setting the state of the controlled equipment as a data passive reporting state.
A data processing apparatus of an audio system, the apparatus comprising:
the connection response module is used for receiving and analyzing a data request sent by the main control equipment to obtain data to be extracted when the main control equipment in the audio system is detected to be in communication connection with the controlled equipment in the audio system;
the message sending module is used for sending a data reporting message to the controlled device, wherein the data reporting message carries data to be extracted;
the data receiving module is used for receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and the data sending module is used for sending the response data to the main control equipment.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
when detecting that the master control equipment in the audio system establishes communication connection with the controlled equipment in the audio system, receiving and analyzing a data request sent by the master control equipment to obtain data to be extracted;
sending a data reporting message to the controlled device, wherein the data reporting message carries the data to be extracted;
receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and sending the response data to the main control equipment.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when detecting that the master control equipment in the audio system establishes communication connection with the controlled equipment in the audio system, receiving and analyzing a data request sent by the master control equipment to obtain data to be extracted;
sending a data reporting message to the controlled device, wherein the data reporting message carries the data to be extracted;
receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and sending the response data to the main control equipment.
According to the data processing method, the device, the computer equipment and the storage medium of the audio system, when the master control equipment in the audio system is detected to be in communication connection with the controlled equipment in the audio system, the data request sent by the master control equipment is received and analyzed to obtain the data to be extracted, the data report message is sent to the controlled equipment, the data to be extracted is carried in the data report message, the controlled equipment responds to the data to be extracted carried in the data report message to obtain the response data, the response data uploaded by the controlled equipment is received, and the response data is sent to the master control equipment.
Drawings
FIG. 1 is a diagram of an exemplary data processing method for an audio system;
FIG. 2 is a flow diagram illustrating a data processing method of the audio system in one embodiment;
FIG. 3 is a flow chart illustrating a data processing method of the audio system according to another embodiment;
FIG. 4 is a flowchart illustrating a data processing method of an audio system according to still another embodiment;
FIG. 5 is a flowchart illustrating steps of sending response data to a host device in one embodiment;
FIG. 6 is a timing diagram of a data processing method of an audio system in one embodiment;
FIG. 7 is a block diagram of a data processing apparatus of the audio system in one embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The data processing method of the audio system provided by the application can be applied to the application environment shown in fig. 1. The audio system comprises a main Control device and a controlled audio device, wherein the controlled audio device can communicate with the main Control device through a Transmission Control Protocol/Internet Protocol (TCP/IP) Protocol. When detecting that the master control equipment in the audio system is in communication connection with the controlled equipment in the audio system, the master control equipment server receives and analyzes a data request sent by the master control equipment to obtain data to be extracted, sends a data report message to the controlled equipment, wherein the data report message carries the data to be extracted, the controlled equipment responds to the data to be extracted carried in the data report message to obtain response data, receives the response data uploaded by the controlled equipment, and sends the response data to the master control equipment. The controlled audio device may be, but not limited to, an audio processor, an audio matrix, a power amplifier, a sound box, a multimedia console, a digital sound console, an audio sampling card, a synthesizer, a middle-high frequency sound box, a microphone, an earphone, and the like, the master control device may be, but not limited to, various personal computers, notebook computers, smart phones, and tablet computers, the master control device server may be a software server embedded in the master control device, or may be implemented by an independent server or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 2, a data processing method of an audio system is provided, which is described by taking an example that the method is applied to the master device server in fig. 1, and includes the following steps:
The master control device is a control end device in the audio system, and the controlled device is a control object of the control end device in the audio system. The state identification bit can be set and then detected, whether the communication connection between the master control device and the controlled device is successfully established or not is judged, for example, when the state identification bit is detected to be 1, the master control device and the controlled device are represented to be successfully established; and when the state identification bit is detected to be 0, the main control device and the controlled device are disconnected in communication. The data request refers to a request sent by the master control device for requesting data from the controlled device, and the data to be extracted refers to data that the master control device needs to acquire from the controlled device.
The data reporting message is a data triggering message for reporting data to the main control device by the controlled device. The master control device server sends a data reporting message to the controlled device, wherein the data reporting message carries data to be extracted, and specifically can carry an algorithm name, a channel label, a channel level, a data compression amount and the like of a channel to be displayed.
And step 300, receiving response data uploaded by the controlled device, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled device.
The response data refers to data which is sent by the controlled device and corresponds to the data to be extracted in the data reporting message. And after receiving the data reporting message, the controlled equipment responds to the data reporting message to generate response data and sends the response data to the main control equipment server. Specifically, the data reporting message carries data to be extracted, the data to be extracted is an algorithm name, a channel number, a channel level and a data compression amount of a display channel, and the controlled device responds to the data reporting message to obtain response data which is the algorithm name, the channel number, the channel level and the data compression amount of the display channel of the controlled device.
And step 400, sending response data to the main control equipment.
And after receiving the response data of the controlled device, the main control device server sends the response data to the main control device. And the main control equipment receives the response data again, analyzes the response data and performs subsequent application processing.
According to the data processing method of the audio system, when the master control device in the audio system is detected to be in communication connection with the controlled device in the audio system, the data request sent by the master control device is received and analyzed, the data to be extracted is obtained, the data report message is sent to the controlled device, the data to be extracted is carried in the data report message, the controlled device responds to the data to be extracted carried in the data report message to obtain the response data, the response data uploaded by the controlled device is received, and the response data is sent to the master control device.
In an embodiment, as shown in fig. 3, after sending the response data to the master device, the method further includes: step 520, when receiving the switching request of the controlled device, sending a data report closing message to the current controlled device. The controlled equipment switching request is used for indicating to switch the controlled equipment, and the data reporting closing message is used for indicating the current controlled equipment to stop reporting the response data to the main control equipment server. For example, when it is necessary to implement switching of the controlled device, at this time, the master control device server receives the switching request of the controlled device, and sends a data report closing message to the current controlled device, so that the current controlled device stops sending the response data to the master control device server.
In one embodiment, when receiving a handover request of a controlled device, after sending a data report closing message to a current controlled device, the method further includes: step 540, when detecting that the master control device establishes communication connection with another controlled device, receiving and analyzing a current data request sent by the master control device to obtain current data to be extracted; step 560, sending a data subscription message to another controlled device, where the data subscription message carries the current data to be extracted; and step 580, receiving the current response data uploaded by the other controlled device and sending the current response data to the master control device, where the current response data is obtained by the current data to be extracted carried in the response data subscription message of the other controlled device. The data subscription message is used for instructing the controlled device to send response data to the master control device server, the data subscription message carries current data to be extracted, and the current data to be extracted refers to data which the master control device needs to acquire from the updated controlled device. For example, when switching the controlled device, the controlled device is switched to another controlled device, when it is detected that the master control device is disconnected from the controlled device and the master control device is connected to another controlled device, a data report closing message is sent to the controlled device, and a data subscription message is sent to another controlled device, so that the controlled device disconnected from the communication connection stops sending the response data to the master control device server, and the controlled device with the established communication connection sends the current response data to the master control device server.
In an embodiment, as shown in fig. 4, after sending the response data to the master device, the method further includes: step 620, when a paging display switching request is received, sending a data updating report message to the controlled device according to the paging display switching request, wherein the data updating report message carries updated data to be extracted; and step 640, receiving the response update data uploaded by the controlled device and sending the response update data to the master control device, wherein the response update data is obtained by the updated data to be extracted carried in the response data update report message of the controlled device. The paging display switching request is used for indicating the controlled device to switch paging display contents, the data updating report message is used for indicating the controlled device to update response data, and the updated data to be extracted specifically can be an updated channel algorithm name, an updated channel number and the like. The main control equipment sends a paging display switching request to the main control equipment server, and when the main control equipment server receives the paging display switching request, the main control equipment server analyzes the paging display switching request to obtain paging display switching information, and sends a data updating report message to the controlled equipment according to the paging display switching information, so that the controlled equipment responds to the data updating report message, generates updated data and reports the updated data to the main control equipment server.
In one embodiment, as shown in fig. 5, the number of the master devices is multiple, and sending the response data to the master device includes: step 420, acquiring the main control equipment identifier and the corresponding relation between the response data and the main control equipment identifier; and step 440, respectively sending the response data to the main control devices corresponding to the main control device identifiers according to the corresponding relationship between the response data and the main control device identifiers. The master device identifier is used to distinguish different master devices, and when there are multiple master devices in the audio system, for example, a first master device may be characterized by "1" and a second master device may be characterized by "2". Different master control devices may send different data reporting messages to the controlled device, for example, a first master control device sends a first data reporting message to the controlled device to call the algorithm name of the current display channel, and a second master control device sends a second data reporting message to the controlled device to call the channel number. In this case, the response data includes the algorithm name and the channel number of the current display channel, and the algorithm name of the current display channel is sent to the first main control device and the channel number is sent to the second main control device according to the corresponding relationship between the response data and the main control device identifier.
In one embodiment, when it is detected that the master control device in the audio system establishes a communication connection with the controlled device in the audio system, the method further includes, before receiving and analyzing the data request sent by the master control device, the method further includes: and setting the state of the controlled equipment as a data passive reporting state. The passive data reporting state refers to a state in which the controlled device reports corresponding data when receiving a corresponding data retrieval message, that is, the initial state of the controlled device is that data is not reported.
It should be understood that although the various steps in the flow charts of fig. 2-5 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-5 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, a timing diagram of a data processing method of an audio system is shown in fig. 6, which illustrates dynamic cooperation among a master device, a master device server, and a controlled device. Specifically, as shown in the figure, the master control device sends a data request to the master control device server, the master control device server detects the connection between the master control device and the controlled device, receives and analyzes the data request when detecting that the master control device establishes a communication connection with the controlled device 1, obtains data to be extracted, and sends a data report message to the controlled device 1, where the data report message carries the data to be extracted. The controlled device 1 responds to the data to be extracted in the data reporting message to obtain response data, uploads the response data to the main control device server, and the main control device server sends the response data to the main control device. When switching the controlled device: the method comprises the steps that when a master control device server receives a controlled device switching request, a data report closing message is sent to a controlled device 1, when the master control device server detects that the master control device is in communication connection with a controlled device 2, a current data request sent by the master control device is received and analyzed, current data to be extracted are obtained, and a data subscription message is sent to the controlled device 2, wherein the data subscription message carries the current data to be extracted. The controlled device 1 responds to the data report closing message to stop uploading the response data to the main control device server, and the controlled device 2 responds to the current data to be extracted in the data subscription message to generate current response data and sends the current response data to the main control device server. When switching the paging display: the master control device sends a paging display switching request to the master control device server, and the master control device server sends a data updating report message to the controlled device 1 according to the paging display switching request, wherein the data updating report message carries updated data to be extracted. The controlled equipment 1 responds to the data to be extracted updated in the data updating report message, generates response updating data and feeds the response updating data back to the main control equipment server, and the main control equipment server sends the response updating data to the main control equipment.
In one embodiment, as shown in fig. 7, there is provided a data processing apparatus of an audio system, including: a connection response module 720, a message sending module 740, a data receiving module 760, and a data sending module 780, wherein: and the connection response module is used for receiving and analyzing a data request sent by the main control equipment to obtain the data to be extracted when the main control equipment in the audio system is detected to be in communication connection with the controlled equipment in the audio system. And the message sending module is used for sending a data reporting message to the controlled device, wherein the data reporting message carries the data to be extracted. And the data receiving module is used for receiving response data uploaded by the controlled equipment, and the response data is obtained by the data to be extracted carried in the response data reporting message of the controlled equipment. And the data sending module is used for sending the response data to the main control equipment.
In an embodiment, the data sending module further includes a controlled device switching module configured to send a data report closing message to the current controlled device when receiving a controlled device switching request.
In one embodiment, the controlled device switching module further includes a controlled switching response module, configured to receive and analyze a current data request sent by the master control device when it is detected that the master control device establishes a communication connection with another controlled device, so as to obtain current data to be extracted; the data subscription module is used for sending a data subscription message to another controlled device, wherein the data subscription message carries the current data to be extracted; and the current data sending module is used for receiving current response data uploaded by the other controlled device and sending the current response data to the main control device, wherein the current response data is obtained by the other controlled device responding to the current data to be extracted carried in the data subscription message.
In one embodiment, the data sending module further includes a paging switching module configured to send a data update report message to the controlled device according to the paging display switching request when receiving the paging display switching request, where the data update report message carries updated data to be extracted; and the response updating module is used for receiving response updating data uploaded by the controlled equipment and sending the response updating data to the main control equipment, wherein the response updating data is obtained by the controlled equipment responding to the updated data to be extracted carried in the data updating report message.
In one embodiment, the number of the master control devices is multiple, and the data sending module includes an information obtaining unit, configured to obtain the identifiers of the master control devices and the corresponding relationship between the response data and the identifiers of the master control devices; and the response sending unit is used for respectively sending the response data to the main control equipment corresponding to the main control equipment identification according to the corresponding relation between the response data and the main control equipment identification.
In an embodiment, the connection response module further includes a state setting module, configured to set a state of the controlled device to a data passive reporting state.
For specific limitations of the data processing apparatus of the audio system, reference may be made to the above limitations of the data processing method of the audio system, which are not described herein again. The respective modules in the data processing apparatus of the audio system described above may be implemented in whole or in part by software, hardware, and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the response data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a data processing method of an audio system.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; and sending the response data to the main control equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; and when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment; when the master control device is detected to establish communication connection with another controlled device, receiving and analyzing a current data request sent by the master control device to obtain current data to be extracted; sending a data subscription message to another controlled device, wherein the data subscription message carries the current data to be extracted; and receiving current response data uploaded by the other controlled device and sending the current response data to the main control device, wherein the current response data is obtained by the current data to be extracted carried in the response data subscription message of the other controlled device.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; when a paging display switching request is received, sending a data updating report message to the controlled equipment according to the paging display switching request, wherein the data updating report message carries updated data to be extracted; and receiving response updating data uploaded by the controlled equipment and sending the response updating data to the main control equipment, wherein the response updating data is obtained by the controlled equipment responding to the updated data to be extracted carried in the data updating and reporting message.
In one embodiment, the processor, when executing the computer program, further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; acquiring a main control equipment identifier and a corresponding relation between response data and the main control equipment identifier; and respectively sending the response data to the main control equipment corresponding to the main control equipment identification according to the corresponding relation between the response data and the main control equipment identification.
In one embodiment, the processor, when executing the computer program, further performs the steps of: setting the state of the controlled equipment as a data passive reporting state, and receiving and analyzing a data request sent by the main control equipment to obtain data to be extracted when detecting that the main control equipment in the audio system and the controlled equipment in the audio system establish communication connection; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; and sending the response data to the main control equipment.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; and sending the response data to the main control equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; and when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment; when the master control device is detected to establish communication connection with another controlled device, receiving and analyzing a current data request sent by the master control device to obtain current data to be extracted; sending a data subscription message to another controlled device, wherein the data subscription message carries the current data to be extracted; and receiving current response data uploaded by the other controlled device and sending the current response data to the main control device, wherein the current response data is obtained by the current data to be extracted carried in the response data subscription message of the other controlled device.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; sending response data to the main control equipment; when a paging display switching request is received, sending a data updating report message to the controlled equipment according to the paging display switching request, wherein the data updating report message carries updated data to be extracted; and receiving response updating data uploaded by the controlled equipment and sending the response updating data to the main control equipment, wherein the response updating data is obtained by the controlled equipment responding to the updated data to be extracted carried in the data updating and reporting message.
In one embodiment, the computer program when executed by the processor further performs the steps of: when the master control device in the audio system is detected to establish communication connection with the controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; acquiring a main control equipment identifier and a corresponding relation between response data and the main control equipment identifier; and respectively sending the response data to the main control equipment corresponding to the main control equipment identification according to the corresponding relation between the response data and the main control equipment identification.
In one embodiment, the computer program when executed by the processor further performs the steps of: setting the state of the controlled equipment as a data passive reporting state, and receiving and analyzing a data request sent by the main control equipment to obtain data to be extracted when detecting that the main control equipment in the audio system and the controlled equipment in the audio system establish communication connection; sending a data reporting message to controlled equipment, wherein the data reporting message carries data to be extracted; receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the data to be extracted carried in the response data report message of the controlled equipment; and sending the response data to the main control equipment.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.
Claims (10)
1. A method of data processing for an audio system, the method comprising:
when the master control device in the audio system is detected to establish communication connection with a controlled device in the audio system, receiving and analyzing a data request sent by the master control device to obtain data to be extracted, wherein the master control device is a control end device in the audio system, the master control device is any one of a personal computer, a notebook computer, a smart phone and a tablet personal computer, the controlled device is a control object of the control end device, whether the communication connection is successfully established is judged by detecting a state identification bit, the data to be extracted is data which is required by the master control device and is obtained from the controlled device, and the data to be extracted comprises an algorithm name, a channel number, a channel level and a data compression amount of a channel to be displayed; the initial state of the controlled equipment is a data passive reporting state;
sending a data reporting message to the controlled device, wherein the data reporting message carries the data to be extracted, and the data reporting message is a data triggering message for the controlled device to report the data to the main control device;
receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and sending the response data to the master control equipment, wherein the response data are the algorithm name, the channel number, the channel level and the data compression amount of the display channel of the controlled equipment.
2. The method of claim 1, wherein sending the response data to the master device further comprises:
and when receiving a switching request of the controlled equipment, sending a data report closing message to the current controlled equipment.
3. The method of claim 2, wherein when receiving a handover request of a controlled device, after sending a data report close message to a current controlled device, the method further comprises:
when the master control device is detected to establish communication connection with another controlled device, receiving and analyzing a current data request sent by the master control device to obtain current data to be extracted;
sending a data subscription message to the other controlled device, wherein the data subscription message carries the current data to be extracted;
and receiving current response data uploaded by the other controlled device and sending the current response data to the main control device, wherein the current response data is obtained by the other controlled device responding to the current data to be extracted carried in the data subscription message.
4. The method of claim 1, wherein after sending the response data to the master device, the method further comprises:
when a paging display switching request is received, sending a data updating report message to the controlled equipment according to the paging display switching request, wherein the data updating report message carries updated data to be extracted;
and receiving response updating data uploaded by the controlled equipment and sending the response updating data to the main control equipment, wherein the response updating data is obtained by the controlled equipment responding to the updated data to be extracted carried in the data updating report message.
5. The method according to claim 1, wherein the number of the master devices is plural, and the sending the response data to the master device includes:
acquiring a main control equipment identifier and a corresponding relation between the response data and the main control equipment identifier;
and respectively sending the response data to the main control equipment corresponding to the main control equipment identification according to the corresponding relation between the response data and the main control equipment identification.
6. The method of claim 1, wherein the controlled device is an audio processor, an audio matrix, a power amplifier, a sound box, a multimedia console, a digital sound console, an audio sampling card, a synthesizer, a medium-high frequency sound box, a microphone, or an earphone.
7. A data processing apparatus of an audio system, the apparatus comprising:
the connection response module is used for receiving and analyzing a data request sent by a main control device in the audio system to obtain data to be extracted when the main control device in the audio system is detected to be in communication connection with a controlled device in the audio system, wherein the main control device is a control end device in the audio system and comprises a personal computer, a notebook computer, a smart phone and a tablet computer, and whether the communication connection is successfully established is judged by setting a state identification bit and detecting the state identification bit; the controlled device is a control object of the control end device, the data to be extracted is data which is required by the main control device and is acquired from the controlled device, and the data to be extracted comprises an algorithm name, a channel number, a channel level and a data compression amount of a channel which is required to be displayed; the initial state of the controlled equipment is a data passive reporting state;
a message sending module, configured to send a data reporting message to the controlled device, where the data reporting message carries the data to be extracted, and the data reporting message is a data trigger message for the controlled device to report data to the main control device;
the data receiving module is used for receiving response data uploaded by the controlled equipment, wherein the response data is obtained by the controlled equipment responding to the data to be extracted carried in the data reporting message;
and the data sending module is used for sending the response data to the master control equipment, wherein the response data is the algorithm name, the channel number, the channel level and the data compression amount of the display channel of the controlled equipment.
8. The apparatus of claim 7, wherein the data sending module is followed by further comprising:
and the disconnection response module is used for sending a data report closing message to the current controlled equipment when the master control equipment is detected to be disconnected from the current controlled equipment in communication.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
10. 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 method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810757354.9A CN108965426B (en) | 2018-07-11 | 2018-07-11 | Data processing method and device for audio system, computer equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810757354.9A CN108965426B (en) | 2018-07-11 | 2018-07-11 | Data processing method and device for audio system, computer equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108965426A CN108965426A (en) | 2018-12-07 |
CN108965426B true CN108965426B (en) | 2021-11-02 |
Family
ID=64483604
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810757354.9A Active CN108965426B (en) | 2018-07-11 | 2018-07-11 | Data processing method and device for audio system, computer equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108965426B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115242873B (en) * | 2022-06-29 | 2024-03-15 | 深圳市大族数控科技股份有限公司 | Message response method and device for PCB (printed circuit board) equipment, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022481A (en) * | 2007-03-21 | 2007-08-22 | 华为技术有限公司 | Method and device for realizing private conversation in multi-point meeting |
CN107105307A (en) * | 2017-05-02 | 2017-08-29 | 深圳市茁壮网络股份有限公司 | A kind for the treatment of method and apparatus of audio |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685143B (en) * | 2012-05-23 | 2015-02-04 | 北京新媒传信科技有限公司 | Audio data transmission method, client side and server |
US9316503B2 (en) * | 2013-04-28 | 2016-04-19 | Tencent Technology (Shenzhen) Company Limited | Method, server, and system for obtaining navigation information |
CN106027675A (en) * | 2016-07-12 | 2016-10-12 | 许伟 | Oxygen generator data sharing control system and method |
-
2018
- 2018-07-11 CN CN201810757354.9A patent/CN108965426B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101022481A (en) * | 2007-03-21 | 2007-08-22 | 华为技术有限公司 | Method and device for realizing private conversation in multi-point meeting |
CN107105307A (en) * | 2017-05-02 | 2017-08-29 | 深圳市茁壮网络股份有限公司 | A kind for the treatment of method and apparatus of audio |
Also Published As
Publication number | Publication date |
---|---|
CN108965426A (en) | 2018-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109525990B (en) | Wireless screen projection method and device, computer equipment and storage medium | |
CN108933993B (en) | Short message cache queue selection method and device, computer equipment and storage medium | |
CN110647438B (en) | Event monitoring method and device, computer equipment and storage medium | |
CN110008118B (en) | Page data testing method and device, computer equipment and storage medium | |
CN108449405B (en) | Event reminding method and device, computer equipment and storage medium | |
CN110750267B (en) | Service information updating method, device, computer equipment and storage medium | |
CN110719318B (en) | Message processing method and system | |
CN108256114B (en) | Document online preview method and device, computer equipment and storage medium | |
CN109933439B (en) | Message transmission method, device, computer equipment and storage medium | |
CN110909629B (en) | Face recognition data processing method and device, computer equipment and storage medium | |
CN110602445B (en) | Video monitoring data acquisition method and device, computer equipment and storage medium | |
CN110908778A (en) | Task deployment method, system and storage medium | |
CN108388478B (en) | Log data processing method and system | |
CN114416121A (en) | Firmware burning method and device, burning equipment and firmware burning system | |
CN108595280B (en) | Interface adaptation method and device, computer equipment and storage medium | |
CN110659373A (en) | Image retrieval method, image retrieval device, computer device and storage medium | |
CN108965426B (en) | Data processing method and device for audio system, computer equipment and storage medium | |
CN111382976B (en) | Early warning data processing method and device, computer equipment and storage medium | |
CN110457614B (en) | Data increment updating method and device for reducing data concurrency and computer equipment | |
CN109857344B (en) | Heartbeat state judgment method and device based on shared memory and computer equipment | |
CN108920355B (en) | Dotting event information acquisition method and device, computer equipment and storage medium | |
CN111258860B (en) | Data alarm method, device, computer equipment and storage medium | |
CN110113384A (en) | Network request processing method, device, computer equipment and storage medium | |
CN112118136B (en) | Multi-cloud configuration conversion method and device, computer equipment and storage medium | |
CN113691684B (en) | Outbound method, device, system, computer equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP02 | Change in the address of a patent holder | ||
CP02 | Change in the address of a patent holder |
Address after: 518000 R & D building 1601, block a, building 7, Vanke Cloud City Phase I, Xingke 1st Street, Xili community, Xili street, Nanshan District, Shenzhen City, Guangdong Province (16 / F, block a, building 1, international innovation Valley) Patentee after: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd. Address before: 518051 202-B, 2 floor, block C, office building, Hua Han Innovation Park, 16 Langshan Road, Nanshan District, Shenzhen, Guangdong. Patentee before: SHENZHEN TENDZONE INTELLIGENT TECHNOLOGY Co.,Ltd. |