CN119254572B - An audio transmission system based on tree topology - Google Patents
An audio transmission system based on tree topology Download PDFInfo
- Publication number
- CN119254572B CN119254572B CN202411438804.XA CN202411438804A CN119254572B CN 119254572 B CN119254572 B CN 119254572B CN 202411438804 A CN202411438804 A CN 202411438804A CN 119254572 B CN119254572 B CN 119254572B
- Authority
- CN
- China
- Prior art keywords
- node
- data
- audio transmission
- audio
- communication interface
- 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
- 230000005540 biological transmission Effects 0.000 title claims abstract description 174
- 230000002093 peripheral effect Effects 0.000 claims abstract description 29
- 230000001360 synchronised effect Effects 0.000 claims description 52
- 230000004044 response Effects 0.000 claims description 27
- 239000012634 fragment Substances 0.000 claims description 8
- 230000000977 initiatory effect Effects 0.000 claims description 3
- 238000000034 method Methods 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000005070 sampling Methods 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/44—Star or tree networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/12—Discovery or management of network topologies
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
- H04L45/745—Address table lookup; Address filtering
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses an audio transmission system based on a tree topology structure, and relates to the technical field of vehicle-mounted audio. The system comprises a host, an audio transmission network, peripheral equipment and a control device, wherein the host is used for acquiring topology information of the audio transmission network and establishing a routing table, the audio transmission network comprises a plurality of audio transmission nodes forming a tree topology structure, the audio transmission nodes are used for acquiring data frames sent by other audio transmission nodes and analyzing the data frames, transmitting the data frames to a target node according to the routing table, generating data frames to be sent according to the acquired audio data and control information, inquiring the routing table to transmit the data frames to the target node, and the peripheral equipment is used for processing the audio data by the target node connected with the peripheral equipment and collecting the audio data and the control information. The invention builds a tree topology structure system, and the control information and the audio data adopt the same routing protocol, so that the transmission of the audio data and the control information among any nodes is realized, and the data transmission efficiency and the system flexibility are improved.
Description
Technical Field
The invention relates to the technical field of vehicle-mounted audio, in particular to an audio transmission system based on a tree topology structure.
Background
In the field of vehicle audio, along with the continuous increase of in-vehicle audio acquisition equipment and audio playing equipment, a transmission scheme for transmitting audio data to each position in a vehicle according to requirements to play and acquire the audio data from each position in the vehicle to an audio processor is needed, and meanwhile, the audio processor is needed to correspondingly control the audio playing equipment and the audio acquisition equipment according to requirements when transmitting the audio data, so that the transmission scheme is needed to support the transmission and response of control information, in the existing system, a daisy chain topological structure is mainly adopted, only a half duplex transmission mode is supported, other slave nodes can only be controlled through an audio processor stopped at a master node, the transmission efficiency is lower, and the single system topological structure cannot meet the control requirements under a plurality of audio processor scenes.
Disclosure of Invention
In view of the above-mentioned drawbacks or shortcomings in the prior art, the present invention provides an audio transmission system based on a tree topology, which includes a daisy chain topology application scenario by constructing a tree topology, and the audio data and the control information adopt the same routing transmission protocol, so that the transmission of control information between any nodes can be realized.
The invention provides an audio transmission system based on a tree topology structure,
Host, audio transmission network and peripheral equipment;
the audio transmission network comprises a plurality of audio transmission nodes forming a tree topology structure, wherein a root node is connected with the host and at least one sub-node, and each sub-node is connected with the peripheral equipment;
The host is used for acquiring topology information of the audio transmission network and establishing a corresponding routing table in the root node and each level of sub-nodes according to the acquired topology information;
The audio transmission node is used for acquiring data frames sent by other audio transmission nodes, inquiring the routing table according to the analysis result of the data frames to acquire a transmission path of a target node, and transmitting the data frames to the target node according to the transmission path of the target node;
The peripheral device is used for applying the processing of the audio data by the target node according to the audio data and the control information acquired by the target node connected with the peripheral device, and is used for acquiring the audio data and the control information and inputting the audio data and the control information into the sub-node connected with the peripheral device.
Further, the non-leaf node in the child node comprises an uplink communication interface, at least two downlink communication interfaces, a peripheral interface and a data processing and routing module;
The uplink communication interface is used for receiving a downlink data frame transmitted by the upper-level audio transmission node and transmitting the downlink data frame to the data processing and routing module;
the downlink communication interface is used for receiving an uplink data frame transmitted by the next-stage audio transmission node and transmitting the uplink data frame to the data processing and routing module;
the data processing and routing module is used for analyzing the data frame, outputting the data in the data frame from the peripheral interface according to the setting of the control register, adding the data input by the peripheral interface into the uplink data frame or the downlink data frame, and then sending the data to the next audio transmission node through the uplink communication interface or the downlink communication interface.
Further, the data frame comprises a preamble, a synchronous subframe, a plurality of data fragments and a tail frame which are sequentially arranged;
the preamble adopts a sequence which does not accord with the Manchester coding rule, and the synchronous subframe adopts a sequence of the Manchester coding rule;
The synchronous subframe comprises a synchronous control subframe and a synchronous response subframe, a root node periodically transmits the synchronous control subframe at a preset frequency, and a child node generates a working clock according to the synchronous control subframe and a phase-locked loop transmitted by the root node and transmits the synchronous control subframe to a next-stage child node through a downlink communication interface until a leaf node returns the synchronous response subframe through an uplink communication interface after receiving the synchronous control subframe.
Further, the plurality of data segments comprise simple data segments, control information data segments and routing data segments, wherein the simple data segments comprise transmitted audio data and a first check value, the control information data segments comprise segment types, source node information, target node information, control information and a second check value, and the routing data segments comprise segment types, target node information, audio data and a third check value.
Further, the data processing and routing module is further configured to control, through a control register, which simple data segments in the received data frame are used by the current audio transmission node, and instruct which simple data segments the received audio data are stored in to be sent to the next-stage audio transmission node.
Further, the data processing and routing module is further configured to parse the received control information data segment to obtain target node information;
if the current audio transmission node is a target node, the data processing and routing module operates according to the control information, inserts response information into a data frame of reverse transmission according to the format of a control information data segment, takes the current audio transmission node as a source node and takes an initiating node of the control information as a target node;
if the current audio transmission node is not the target node, the data processing and routing module queries the routing table to determine which output port the control information data segment is transmitted to the next audio transmission node.
Further, the data processing and routing module is further configured to parse the received routing data segment to obtain target node information;
if the current audio transmission node is the target node, the data processing and routing module outputs the audio data in the received routing data segment through the peripheral interface of the current audio transmission node;
If the current audio transmission node is not the target node, the data processing and routing module queries the routing table to determine which output port the routing data segment is transmitted to the next audio transmission node.
Further, when the at least two downlink communication interfaces in the audio transmission node both receive the uplink data frame, the data processing and routing module merges the two uplink data frames, and then sends the merged uplink data frame to the previous audio transmission node through the uplink communication interface.
Further, the leaf node in the sub-node has an uplink communication interface and does not have a downlink communication interface, and after the leaf node receives the synchronization control sub-frame, the leaf node sends the synchronization response sub-frame to the primary audio transmission node through the uplink communication interface.
Further, configuring the root node as a node with an uplink communication interface and a downlink communication interface, enabling the root node to send a data frame containing a synchronous control subframe through the downlink communication interface, and if a synchronous response subframe returned by the downlink communication interface is received within a preset time, determining that the downlink communication interface is connected with a next node;
The next-stage node of the root node is configured as a node with an uplink communication interface and a downlink communication interface through a synchronous control subframe, the next-stage node of the root node continuously transmits the synchronous control subframe transmitted from the upper stage to the next-stage node through the downlink communication interface, if the downlink communication interface can receive a synchronous response subframe within a preset time, the downlink communication interface is determined to be connected with the next-stage node, and if the synchronous response subframe is not received within the preset time, the downlink communication interface is determined to not have the next-stage node;
Repeating the steps until the node of the next stage cannot be found, assigning an independent number to each found node to acquire topology information of the audio transmission network, and establishing a corresponding routing table in each audio transmission node according to the acquired topology information.
The audio transmission system based on the tree topology structure has the advantages that the audio transmission system of the tree topology structure is built, the application scene of a daisy chain system is covered, a full duplex transmission mode is adopted, uplink data frames and downlink data frames can be transmitted simultaneously, higher audio sampling frequency and more nodes are supported, a routing table of each node is built, routing data segments are introduced on the basis of simple data segments, the transmission efficiency and flexibility of the audio data are considered, the audio data and control information adopt the same routing transmission protocol, the transmission of the audio data and control information among any nodes is realized, and the limitation that an audio processor only can stop at a master node in the current daisy chain system controls other slave node peripheral equipment is eliminated.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
Fig. 1 is a schematic structural diagram of an audio transmission system based on a tree topology according to an embodiment of the present invention;
Fig. 2 is a schematic structural diagram of an audio transmission node in an audio transmission system based on a tree topology according to an embodiment of the present invention;
FIG. 3 is an example of an audio transmission system based on a tree topology according to one embodiment of the present invention;
FIG. 4 is a schematic diagram of an exemplary routing representation of an audio transmission system based on a tree topology according to one embodiment of the present invention;
Fig. 5 is a flowchart of an audio transmission method based on a tree topology according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present invention to describe the acquisition modules, these acquisition modules should not be limited to these terms. These terms are only used to distinguish the acquisition modules from each other.
The term "if" as used herein may be interpreted as "at" or "when" depending on the context "or" in response to a determination "or" in response to a detection. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should be noted that, the terms "upper", "lower", "left", "right", and the like in the embodiments of the present invention are described in terms of the angles shown in the drawings, and should not be construed as limiting the embodiments of the present invention. In addition, in the context, it will also be understood that when an element is referred to as being formed "on" or "under" another element, it can be directly formed "on" or "under" the other element or be indirectly formed "on" or "under" the other element through intervening elements.
Referring to fig. 1, an embodiment of the present invention provides an audio transmission system based on a tree topology, the system including a host, an audio transmission network, and peripheral devices;
the audio transmission network comprises a plurality of audio transmission chips forming a tree topology structure, and the audio transmission chips are used as audio transmission nodes of the system. The audio transmission nodes are connected through transmission media such as coaxial cables or twisted pair wires, wherein a root node is connected with the host and at least one sub-node, and each sub-node is connected with the peripheral equipment;
Referring to fig. 2, a schematic structural diagram of an audio transmission node, a non-leaf node in a sub-node includes an uplink communication interface, at least two downlink communication interfaces, a peripheral interface and a data processing and routing module, where the peripheral interface includes an audio data interface, conforms to an I2S/TDM/PDM protocol, and is used for connecting with an audio device, and further includes an I2C interface, and is used for connecting with a controller, the uplink communication interface is used for receiving a downlink data frame transmitted by an uplink audio transmission node and transmitting the downlink data frame to the data processing and routing module, the downlink communication interface is used for receiving an uplink data frame transmitted by a downlink audio transmission node and transmitting the uplink data frame to the data processing and routing module, the data processing and routing module parses the data frame, obtains audio data and control information, outputs the audio data in the data frame from the corresponding audio data interface according to a setting of a control register, plays the audio data acquired by the audio device such as a speaker, and the control information input by the audio device such as a microphone is added to the uplink data frame or the downlink data frame transmitted by the audio device or the controller, and then transmits the audio data frame to the uplink communication node or the downlink communication node through the uplink communication interface. When at least two downlink communication interfaces in the audio transmission node receive the uplink data frames, the data processing and routing module combines the two uplink data frames and sends the combined uplink data frames to the upper-level audio transmission node through the uplink communication interfaces. The transmission of the downlink data frame and the uplink data frame between the audio transmission nodes uses the same transmission medium, and the two directions can be simultaneously transmitted.
The data frame comprises a preamble, a synchronous subframe, a plurality of data fragments and a tail frame which are sequentially arranged, the preamble adopts a sequence which does not accord with Manchester coding rules, the synchronous subframe adopts the sequence which does not accord with Manchester coding rules, a data frame receiver prepares to receive the synchronous subframe when detecting the preamble sequence, a first code word which accords with Manchester coding rules represents the beginning of the synchronous subframe, the synchronous subframe comprises a synchronous control subframe and a synchronous response subframe, a root node periodically transmits the synchronous control subframe at a preset frequency, the preset frequency is usually the audio data sampling frequency of a system, the subframe generates a working clock of the root node according to the synchronous control subframe and a phase-locked loop transmitted by the root node, and transmits the synchronous control subframe to a next-stage subframe through a downlink communication interface until a leaf node receives the synchronous control subframe, and returns the synchronous response subframe through an uplink communication interface, so that the whole synchronization and control of the system are realized, and the leaf node is the last-stage subframe which does not have the downlink communication interface.
The plurality of data segments comprise simple data segments, control information data segments and routing data segments, and the sizes of the data segments are equal in one data frame. The simple data segment includes the transmitted audio data and the first check value, preferably, the embodiment uses a CRC (Cyclic Redundancy Check ) value as the check value, the sender calculates the CRC value when loading the audio data, and attaches the CRC value to the rear of the audio data to form a simple data segment, and the receiver calculates the CRC value and compares with the received CRC value to check the data integrity after receiving 1 simple data segment. On one hand, the data processing and routing module of the audio transmission node controls that one or a plurality of simple data segments in the received data frame can be used by the current audio transmission node through the control register, on the other hand, the control register also indicates that the received audio data needs to be placed in which simple data segments to be sent to the next-stage audio transmission node, wherein the number of the simple data segments in the data frame is fixed, the data processing and routing module can be set through the control register of the audio transmission node, and each audio transmission node in the system needs to use the same setting. However, in the tree topology system of this embodiment, the simple data segment cannot flexibly realize data transmission between any nodes, especially dynamically change the transmission path between the nodes, and if the target node of the data transmission is wanted to be changed, only the control register of the target node can be set.
Therefore, on the basis of simple data segment transmission, the embodiment also introduces a control information data segment and a routing data segment, further realizes the transmission of control information and audio data between any nodes, and gives consideration to the efficiency and flexibility of audio data transmission. After the control information data segment and the route data segment are arranged in the simple data segment, the audio transmission node can directly process the audio data after receiving the simple data segment, and after receiving the control information data segment and the route data segment, the control information data segment and the route data segment need to be analyzed to obtain the segment types, and then corresponding processing is performed.
The control information data segment comprises a segment type, source node information, target node information, control information and a second check value, the control information data segment is used for transmitting control information between audio transmission nodes according to a routing table, the audio transmission nodes need the current audio transmission nodes to analyze the control information data segment through a data processing and routing module to acquire the source node information and the target node information, whether the current node is the target node or not can be known, if the current node is the target node, the control information is operated according to the control information, for example, the control information is written into a control register so as to process received audio data subsequently, response information is inserted into a data frame transmitted reversely according to the format of the control information data segment, the current audio transmission node is used as the source node, an initiating node of the control information is used as the target node, and response information is returned, and if the current audio transmission node is not the target node, the data processing and routing module inquires the routing table so as to determine which output port the control information data segment is transmitted to the next audio transmission node.
The route data segment comprises a segment type, target node information, audio data and a third check value, the route data segment is used for transmitting the audio data between the audio transmission nodes according to a route table, the current audio transmission node analyzes the route data segment through a data processing and route module to obtain the target node information, if the current node is the target node, the audio data in the received route data segment is output through a peripheral interface of the current audio transmission node, if the current node is not the target node, the route table is queried to determine which output port of the route data segment is transmitted to the next audio transmission node.
The host is used for acquiring topology information of an audio transmission network and establishing a corresponding routing table in a root node and each level of sub-nodes according to the acquired topology information, specifically, the host traverses the root node from the root node to configure the node with an uplink communication interface and a downlink communication interface at the same time, the root node sends a data frame containing a synchronous control sub-frame through the downlink communication interface, if a synchronous response sub-frame returned by the downlink communication interface is received within a preset time, the downlink communication interface is determined to be connected with a next level node, the host configures the next level node of the root node to be the node with the uplink communication interface and the downlink communication interface at the same time through the synchronous control sub-frame, the next level node of the root node continuously sends the synchronous control sub-frame transmitted by the upper level to the next level node through the downlink communication interface, if the downlink communication interface can receive the synchronous response sub-frame within the preset time, the downlink communication interface is determined to be connected with the next level node, if the synchronous response sub-frame is not received within the preset time, the downlink communication interface is determined to not to be connected with the next level node, and the next level node is not found to be the node, and the topology information can be found out in the network according to the topology information.
For example, referring to an audio transmission system example based on a tree topology structure in fig. 3, a host obtains topology information of an audio transmission network of the system, numbers a root node as a master, numbers sub-nodes as slave0, slave1, slave2, slave3 and slave4 respectively, constructs a routing table of each audio transmission node as shown in fig. 4 according to the topology information of the audio transmission network, and each node can know which interface needs to be used for transmitting to the next node by querying the routing table, so that data control information among any nodes can be transmitted by adopting the same routing transmission protocol. For example, master sends data frames to slave3, each node knows that the transmission paths are master 0, slave0.B0, slave1.B1, slave3 by looking up the routing table, and for another example, slave4 sends data frames to slave3, each node knows that the transmission paths are slave4.A, slave2.A, slave0.B0, slave1.B1, slave3 by looking up the routing table.
The audio transmission node is used as an intermediate node for audio transmission, acquires a data frame sent by other audio transmission nodes, queries a routing table according to the analysis result of the data frame to acquire a transmission path of a target node, and transmits the data frame to the target node according to the transmission path of the target node, and after the current node slave0 acquires the data frame which is sent by a master and contains audio data and control information, the data frame is analyzed by a data processing and routing module, the target node is acquired as slave3 according to the analysis result, the transmission path of the current node for transmitting the data frame to the target node slave3 is acquired as slave0.B0 by the query routing table, the data frame is transmitted to slave1 through a communication interface B0, and the data frame is transmitted to slave3 through the communication interface B1 by analyzing the data frame and the query routing table, the slave3 acquires control information and audio data, and acquires the current node as the target node, and transmits the audio data to a corresponding audio data interface through the audio data interface according to the control information, and transmits the audio data to a corresponding audio data interface to a control device as a data segment to the master node in response to the master 3, and the data segment is inserted into the master as a data segment in a reverse format.
The audio transmission node is further configured to serve as a source node for audio transmission, generate a data frame to be sent according to the acquired audio data and control information, query a routing table to acquire a transmission path corresponding to a target node, and transmit the data frame to be sent to a next audio transmission node according to the transmission path.
Specifically, the source node obtains the audio data and the control information, firstly, obtains the control information through other nodes, locally obtains the audio data, for example, a root node obtains the control information from a connected host or a child node obtains the control information from a connected controller, packages the control information into a control information fragment format and transmits the control information fragment format to the current audio transmission node, the current audio transmission node receives and analyzes the control information fragment to obtain the control information, writes the control information into a control register, and the current audio transmission node obtains the local audio data through an audio data interface, takes the current audio transmission node as the source node, and transmits the control information and the audio data in a data frame format according to the control information until reaching the target node. In the system shown in fig. 3, the host computer writes a command of transmitting audio data acquired by the node slave4 to the target node slave3 through the I2C bus, the master acquires control information and then transmits the control information to the node slave4 in a control information fragment format, the current node slave4 analyzes the control information fragment through the data processing and routing module, writes the control information into the control register, acquires audio data acquired by an audio device such as a microphone through an audio data interface thereof according to the control information, can know according to the routing table that a data frame is to be transmitted to the target node slave3, the current node slave4 transmission path is slave4.a, transmits the control information and the audio data to the next node slave2 in a data frame format through an uplink communication interface a thereof, the node slave2 performs data frame analysis through a data processing and routing module thereof, confirms that the current node slave2 is not the target node according to the target node information, and can know according to the routing table that the slave2 needs to transmit the audio data frame to the audio data to the target node slave3 through an uplink communication interface thereof, and then the audio data is to the target node slave3, and the audio data is to be continuously analyzed through the control information processing module until the audio frame is to be transmitted to the target node slave 3;
2. the method comprises the steps of directly obtaining local control information and audio data, obtaining the control information and the audio data through a connected host when a root node is used as a source node, and obtaining the control information and the audio data through a connected controller when a child node is used as the source node. The slave node slave4 is used as a source node, a user can input a command through a controller connected with the slave node slave4, the controller directly writes control information related to the command into a control register of the slave4 through an I2C bus, and after the slave4 obtains the control information and the local audio data transmitted by the audio data interface, the slave node transmits the control information and the audio data to the target node in a data frame format.
The peripheral equipment comprises audio equipment and a controller, wherein the audio equipment comprises a power amplifier, a loudspeaker, a microphone and the like, the loudspeaker is used for receiving audio data which are transmitted after being processed by the connected audio transmission nodes and converting the audio data into sound signals for playing, the microphone is used for collecting the audio data and transmitting the audio data to the connected audio transmission nodes, and the controller is used for writing control information into the connected audio transmission nodes through an I2C bus.
Referring to fig. 5, another embodiment of the present invention further provides a tree topology-based audio transmission method, which is applied to the tree topology-based audio transmission shown in fig. 1, and includes:
step S101, the host acquires topology information of the audio transmission network, and establishes a corresponding routing table in the root node and each level of sub-nodes according to the acquired topology information;
Step S102, the root node obtains audio data and control information from the host to generate a data frame to be sent, inquires the routing table to obtain a transmission path corresponding to a target node, and transmits the data frame to be sent to a next audio transmission node according to the transmission path;
step S103, the next audio transmission node analyzes the data frame through the data processing and routing module, queries the routing table according to the analysis result of the data frame to obtain a transmission path of the target node, and transmits the data frame to the target node according to the transmission path of the target node.
The audio transmission system based on the tree topology structure is constructed to cover the application scene of a daisy chain system, an uplink data frame and a downlink data frame can be transmitted simultaneously by adopting a full duplex transmission mode, higher audio sampling frequency and more nodes are supported, a node routing table is constructed, a control information data segment and a routing data segment are introduced on the basis of a simple data segment, the transmission efficiency and flexibility of audio data are considered, the audio data and the control information adopt the same routing transmission protocol, the transmission of audio data and control information among any nodes is realized, and the limitation that an audio processor which can only stop at a master node in the current daisy chain system controls other slave node peripheral equipment is eliminated.
The foregoing description is only of the preferred embodiments of the invention. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in the present invention is not limited to the specific combinations of technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the disclosure. Such as the above-mentioned features and the technical features disclosed in the present invention (but not limited to) having similar functions are replaced with each other.
Claims (8)
1. An audio transmission system based on a tree topology, comprising:
host, audio transmission network and peripheral equipment;
the audio transmission network comprises a plurality of audio transmission nodes forming a tree topology structure, wherein a root node is connected with the host and at least one sub-node, and each sub-node is connected with the peripheral equipment;
The host is used for acquiring topology information of the audio transmission network and establishing a corresponding routing table in the root node and each level of sub-nodes according to the acquired topology information;
The audio transmission node is used for acquiring data frames sent by other audio transmission nodes, inquiring the routing table according to the analysis result of the data frames to acquire a transmission path of a target node, and transmitting the data frames to the target node according to the transmission path of the target node;
The peripheral equipment is used for applying the processing of the target node to the audio data according to the audio data and the control information acquired by the target node connected with the peripheral equipment, and is used for acquiring the audio data and the control information and inputting the audio data and the control information into the sub-node connected with the peripheral equipment;
The non-leaf nodes in the child nodes comprise an uplink communication interface, at least two downlink communication interfaces, a peripheral interface and a data processing and routing module;
The uplink communication interface is used for receiving a downlink data frame transmitted by the upper-level audio transmission node and transmitting the downlink data frame to the data processing and routing module;
the downlink communication interface is used for receiving an uplink data frame transmitted by the next-stage audio transmission node and transmitting the uplink data frame to the data processing and routing module;
The data processing and routing module is used for analyzing the data frame, outputting the data in the data frame from the peripheral interface according to the setting of the control register, adding the data input by the peripheral interface into the uplink data frame or the downlink data frame, and then sending the data to a next audio transmission node through the uplink communication interface or the downlink communication interface;
the data frame comprises a preamble, a synchronous subframe, a plurality of data fragments and a tail frame which are sequentially arranged;
the preamble adopts a sequence which does not accord with the Manchester coding rule, and the synchronous subframe adopts a sequence of the Manchester coding rule;
The synchronous subframe comprises a synchronous control subframe and a synchronous response subframe, a root node periodically transmits the synchronous control subframe at a preset frequency, and a child node generates a working clock according to the synchronous control subframe and a phase-locked loop transmitted by the root node and transmits the synchronous control subframe to a next-stage child node through a downlink communication interface until a leaf node returns the synchronous response subframe through an uplink communication interface after receiving the synchronous control subframe.
2. An audio transmission system based on a tree topology according to claim 1, wherein:
The data segments comprise simple data segments, control information data segments and routing data segments, wherein the simple data segments comprise transmitted audio data and a first check value, the control information data segments comprise segment types, source node information, target node information, control information and a second check value, and the routing data segments comprise segment types, target node information, audio data and a third check value.
3. An audio transmission system based on a tree topology according to claim 2, wherein:
The data processing and routing module is further used for controlling which simple data segments in the received data frame are used by the current audio transmission node through the control register, and indicating which simple data segments the received audio data are stored in for sending to the next-stage audio transmission node.
4. An audio transmission system based on a tree topology according to claim 2, wherein:
The data processing and routing module is also used for analyzing the received control information data segment to obtain target node information;
if the current audio transmission node is a target node, the data processing and routing module operates according to the control information, inserts response information into a data frame of reverse transmission according to the format of a control information data segment, takes the current audio transmission node as a source node and takes an initiating node of the control information as a target node;
if the current audio transmission node is not the target node, the data processing and routing module queries the routing table to determine which output port the control information data segment is transmitted to the next audio transmission node.
5. An audio transmission system based on a tree topology according to claim 2, wherein:
the data processing and routing module is also used for analyzing the received routing data segment to obtain target node information;
if the current audio transmission node is the target node, the data processing and routing module outputs the audio data in the received routing data segment through the peripheral interface of the current audio transmission node;
If the current audio transmission node is not the target node, the data processing and routing module queries the routing table to determine which output port the routing data segment is transmitted to the next audio transmission node.
6. An audio transmission system based on a tree topology according to claim 1, wherein:
When the at least two downlink communication interfaces in the audio transmission node receive the uplink data frames, the data processing and routing module combines the two uplink data frames and sends the combined uplink data frames to the upper-level audio transmission node through the uplink communication interfaces.
7. An audio transmission system based on a tree topology according to claim 1, wherein:
And after the leaf node receives the synchronous control subframe, the leaf node sends a synchronous response subframe to the primary audio transmission node through the uplink communication interface.
8. The audio transmission system of claim 2, wherein the host is further configured to:
configuring a root node as a node with an uplink communication interface and a downlink communication interface, enabling the root node to send a data frame containing a synchronous control subframe through the downlink communication interface, and if a synchronous response subframe returned by the downlink communication interface is received within a preset time, determining that the downlink communication interface is connected with a next-stage node;
The next-stage node of the root node is configured as a node with an uplink communication interface and a downlink communication interface through a synchronous control subframe, the next-stage node of the root node continuously transmits the synchronous control subframe transmitted from the upper stage to the next-stage node through the downlink communication interface, if the downlink communication interface can receive a synchronous response subframe within a preset time, the downlink communication interface is determined to be connected with the next-stage node, and if the synchronous response subframe is not received within the preset time, the downlink communication interface is determined to not have the next-stage node;
Repeating the steps until the node of the next stage cannot be found, assigning an independent number to each found node to acquire topology information of the audio transmission network, and establishing a corresponding routing table in each audio transmission node according to the acquired topology information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411438804.XA CN119254572B (en) | 2024-10-15 | 2024-10-15 | An audio transmission system based on tree topology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202411438804.XA CN119254572B (en) | 2024-10-15 | 2024-10-15 | An audio transmission system based on tree topology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN119254572A CN119254572A (en) | 2025-01-03 |
CN119254572B true CN119254572B (en) | 2025-04-15 |
Family
ID=94027878
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202411438804.XA Active CN119254572B (en) | 2024-10-15 | 2024-10-15 | An audio transmission system based on tree topology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN119254572B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN120321124B (en) * | 2025-06-11 | 2025-09-05 | 慷智集成电路(上海)有限公司 | Vehicle-mounted video transmission hybrid topology network |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107896238A (en) * | 2016-10-04 | 2018-04-10 | 丰田自动车株式会社 | Vehicle network system |
Family Cites Families (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100373889C (en) * | 2004-12-03 | 2008-03-05 | 北京大学 | A method of multicast transmission in IP network |
CN100442786C (en) * | 2007-07-10 | 2008-12-10 | 北京航空航天大学 | Routing Method Based on Tree Structure |
US8675649B2 (en) * | 2008-11-18 | 2014-03-18 | Yamaha Corporation | Audio network system and method of detecting topology in audio signal transmitting system |
CN102185749B (en) * | 2011-06-07 | 2014-12-10 | 北京交通大学 | Method for avoiding routing loop by adopting tree topology relationship |
CN112217723B (en) * | 2015-12-30 | 2025-04-04 | 华为技术有限公司 | Method for establishing routing table, electronic device and network |
CN106604350B (en) * | 2016-12-02 | 2020-04-24 | 北京中电普华信息技术有限公司 | Method for establishing tree-shaped route in power distribution and utilization wireless self-organizing network |
CN116529720A (en) * | 2020-10-21 | 2023-08-01 | 美国亚德诺半导体公司 | Node discovery and configuration in a daisy chain network |
CN114513450A (en) * | 2020-10-26 | 2022-05-17 | 华为技术有限公司 | Method, device, equipment and storage medium for sending calculation route information |
CN115665039B (en) * | 2022-09-08 | 2024-09-13 | 安天科技集团股份有限公司 | Method and device for searching optimal root node of undirected tree graph and electronic equipment |
CN117176634A (en) * | 2022-11-04 | 2023-12-05 | 思瑞浦微电子科技(上海)有限责任公司 | Topological network and data transmission method |
CN118055060A (en) * | 2024-02-28 | 2024-05-17 | 天合光能股份有限公司 | Data transmission method, data transmission device, tree network and electronic equipment |
-
2024
- 2024-10-15 CN CN202411438804.XA patent/CN119254572B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107896238A (en) * | 2016-10-04 | 2018-04-10 | 丰田自动车株式会社 | Vehicle network system |
Non-Patent Citations (1)
Title |
---|
车载多媒体网络技术综述;秦贵和;陈吉龙;王洋;杨浩;;计算机应用与软件;20150115(01);第1.4、3.1节 * |
Also Published As
Publication number | Publication date |
---|---|
CN119254572A (en) | 2025-01-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN119254572B (en) | An audio transmission system based on tree topology | |
US20230396504A1 (en) | Node discovery and configuration in a daisy-chained network | |
RU2004139118A (en) | DETERMINATION AND CONFIGURATION OF THE DATA TRANSFER WAY IN THE NETWORK | |
CN105681819B (en) | Method, device and system for transmitting and receiving signals | |
CN104301802A (en) | Digital device, network and method for streaming audio or video data | |
CN109561395A (en) | A kind of blue-tooth transmission method and device | |
CN101346945A (en) | Method, multimedia device for the transmission and/or reception of multimedia data via a data transmission system, and gateway for connecting a multimedia device to a data transmission system accordin | |
EP1411517B1 (en) | Control unit and method for transmitting audio signals over an optical network | |
CN107968722B (en) | Method for converting interface control file into AFDX (avionics full Duplex switched Ethernet) network equipment configuration file | |
KR20110068037A (en) | Method and device for addressing in tree structure network | |
DE112021005184T5 (en) | Auxiliary communication via a pulse density modulated interface | |
CN117221032B (en) | A topological network and management method | |
CN117978576A (en) | Transmission system | |
US20230344673A1 (en) | Asynchronous data networking over a network bus | |
US20240080746A1 (en) | Information processing system, information processing device, and information processing method | |
CN113329359B (en) | Communication method, communication device, electronic equipment and readable storage medium | |
CN117176634A (en) | Topological network and data transmission method | |
US20060083266A1 (en) | Initial access signaling method in synchronous ethernet device | |
CN116599906B (en) | Chime playing method based on vehicle-mounted time sensitive network | |
CN112218205B (en) | Annular network audio system based on INIC | |
CN119005098B (en) | Chiplet interface circuit, instantiation method and alignment method | |
CN110349584A (en) | A kind of audio data transmission method, device and speech recognition system | |
US20240378011A1 (en) | Dynamic audio routing over a network bus | |
US20250088160A1 (en) | Data processing and electronics management in multi-zone audio amplifiers | |
JP5278886B2 (en) | Relay connection unit |
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 |