CN-121984800-A - Vehicle-mounted audio system based on CAN bus and A2B bus cooperation and control method
Abstract
The invention relates to the technical field of vehicle-mounted audio communication, in particular to a vehicle-mounted audio system based on the cooperation of a CAN bus and an A2B bus and a control method, and discloses the vehicle-mounted audio system based on the cooperation of the CAN bus and the A2B bus, which comprises a main node module; a slave node module; A2B bus and CAN bus, wherein the master node module comprises SOC, master control MCU, audio processor DSP and A2B master node chip, and correspondingly disclose the control method of the audio system, comprising S1, configuration acquisition step, S2, state inquiry step, S3, collaborative initialization step, S4, mute release step, S5, operation maintenance step, reducing wire harness use compared with the conventional audio system, correspondingly providing the control method of the audio system, establishing the control method with A2B bus and CAN bus as cores, carrying out state inquiry on each function module by using the master control MCU, and monitoring the system state in real time in the operation stage, thereby ensuring good safety of the system after starting.
Inventors
- XIONG WEI
- LIU DEGAO
Assignees
- 重庆利龙中宝智能技术有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20251209
Claims (10)
- 1. The control method of the vehicle-mounted audio system based on the cooperation of the CAN bus and the A2B bus is characterized by comprising the following steps of: s1, a configuration acquisition step, wherein a main control MCU (micro control Unit) sends a query instruction through a CAN (controller area network) bus to acquire configuration information of an audio system; s2, a state query step, wherein based on the configuration information, the main control MCU initiates state query to each functional module through the CAN bus and receives state feedback information from each functional module; S3, in a collaborative initialization step, the main control MCU confirms that each functional module is ready according to the state feedback information, sends an A2B initialization enabling instruction through the CAN bus, reports an A2B initialization progress in real time, and an A2B main node chip starts a node discovery process; S4, after confirming that the initialization of the A2B bus is successful based on the initialization state information, the main control MCU sends a control instruction to the audio system through the CAN bus so as to execute mute release operation, gradually increase the volume and avoid starting noise; And S5, operating and maintaining, namely enabling the audio system to enter a normal operation mode, enabling the main control MCU to send heartbeat packets through the CAN bus, and performing intelligent volume adjustment based on audio parameters of the CAN bus.
- 2. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 1, In step S3, the process of starting node discovery by the A2B master node chip specifically includes the following steps: S31, initializing a main node, after the A2B main node chip is electrified, firstly performing self-checking and PLL locking, establishing a stable clock reference and setting an initial clock frequency; S32, initiating a discovery command, wherein the A2B master node chip sends the discovery command through the A2B bus, and each A2B slave node chip sets different response periods to ensure that the nodes respond in sequence, wherein the discovery command comprises response time window parameters; S33, A2B responds and verifies from the node chip, and after the A2B receives a discovery command from the node chip, node information is replied within a specified response time window; s34, after the A2B master node chip receives the response, verifying the validity of the identity of the A2B slave node chip, after the verification is passed, writing configuration parameters into the A2B slave node chip by the A2B master node chip through an I2C-over-A2B mechanism, and distributing a unique node address; And S35, after the configuration of all the A2B slave node chips is finished, the A2B master node chip confirms that the discovery process is finished by reading the interrupt state register.
- 3. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 1, The node information includes a vendor ID, a product ID, and a version number.
- 4. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 2, In step S34, the configuration parameters include: The audio time slot allocation, namely configuring the number and the position of the uplink time slot and the downlink time slot occupied by the node; configuring working modes of a PDM microphone and an I2S interface; clock configuration enabling local clock output from a node, and Interrupt masking, namely configuring the interrupt type which needs to be reported by the node.
- 5. The control method of the car audio system based on the cooperation of the CAN bus and the A2B bus as claimed in claim 2, wherein In step S34, the I2C-over-A2B mechanism flow is as follows: the main control MCU sends an I2C command to the A2B main node chip through a standard I2C interface; The I2C command received by the A2B master node chip is packaged on the A2B bus and is transmitted to the appointed A2B slave node chip in a transparent way; and the A2B analyzes the I2C command from the node chip and sends the I2C command to an external device through a local I2C interface of the I2C command to complete configuration.
- 6. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 1, The progressive volume boost includes the steps of: S41, the master control MCU sends a volume control instruction to an audio system through the CAN bus, wherein the instruction comprises multi-channel volume control data, and combines a multi-dimensional state sensing algorithm to control the volume of each audio channel to gradually increase from a zero value to a target value according to a preset lifting curve, wherein each channel is independently controlled, and an intelligent arbitration mechanism is introduced; and S42, in the volume lifting process, if the main control MCU detects that the audio signal is abnormal, a mute instruction is sent through the CAN bus, so that the audio system enters a mute state.
- 7. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 6, The multi-channel comprises a main audio channel, a navigation voice channel, a call audio channel, a prompt tone channel and a noise reduction reference channel.
- 8. The method for controlling a car audio system based on the cooperation of a CAN bus and an A2B bus according to claim 1, The intelligent volume adjustment in step S5 includes the steps of: s51, the main control MCU receives the whole vehicle state information through the CAN bus; And S52, calculating target audio parameters according to a preset algorithm, and sending a control command to the power amplifier node through the CAN bus.
- 9. A car audio system based on CAN bus and A2B bus cooperation, comprising: The main node module is configured to be responsible for initialization, node discovery, configuration management and audio stream scheduling of the A2B network; Each slave node module comprises an A2B slave node chip which is used for connecting local audio peripherals and communicating with the master node module through an A2B bus; an A2B bus connecting the master node module and each of the slave node modules in series using a daisy chain topology, and A CAN bus connecting the master node module and local audio peripherals configured to assume system control, status management and fault diagnosis; The main node module comprises an SOC, a main control MCU, an audio processor DSP and an A2B main node chip, wherein the SOC is connected with the audio processor DSP through an interface protocol, the main control MCU is connected with a local audio peripheral through a CAN bus and is connected with the A2B main node chip through the interface protocol, and the audio processor DSP is connected with the A2B main node chip through the interface protocol.
- 10. The car audio system based on the cooperation of the CAN bus and the A2B bus according to claim 9, The interface protocol includes I2S, TDM and I2C.
Description
Vehicle-mounted audio system based on CAN bus and A2B bus cooperation and control method Technical Field The invention relates to the technical field of vehicle-mounted audio communication, in particular to a vehicle-mounted audio system based on the cooperation of a CAN bus and an A2B bus and a control method. Background Along with the rapid development of the intelligent and networking of automobiles, the complexity of the vehicle-mounted audio system is continuously improved. Modern automobiles need to process audio signals from multiple sources, including host entertainment systems, multiple microphone pickup, multiple speaker outputs, active noise reduction systems, and the like. Conventional audio system architectures typically employ point-to-point connections. For example, each time an audio processing module (such as a power amplifier channel or a microphone input) is added, a separate physical connection cable needs to be added, and this architecture causes the number, weight, cost and complexity of the system harness to increase significantly with the increase of the number of channels, which becomes a main physical bottleneck for system expansion. This problem is particularly pronounced in space and weight sensitive applications, especially in the automotive industry. Disclosure of Invention The invention aims to provide a control method of a vehicle-mounted audio system based on the cooperation of a CAN bus and an A2B bus, so as to solve the problem of poor expandability of a traditional audio transmission system, and also provides the vehicle-mounted audio system based on the cooperation of the CAN bus and the A2B bus, so as to solve the problem of high cost caused by complex wiring harness of the traditional audio transmission system. In order to achieve the above object, the present invention discloses a control method for a car audio system based on the cooperation of a CAN bus and an A2B bus, comprising the steps of: s1, a configuration acquisition step, wherein a main control MCU (micro control Unit) sends a query instruction through a CAN (controller area network) bus to acquire configuration information of an audio system; s2, a state query step, wherein based on the configuration information, the main control MCU initiates state query to each functional module through the CAN bus and receives state feedback information from each functional module; S3, in a collaborative initialization step, the main control MCU confirms that each functional module is ready according to the state feedback information, sends an A2B initialization enabling instruction through the CAN bus, reports an A2B initialization progress in real time, and an A2B main node chip starts a node discovery process; S4, after confirming that the initialization of the A2B bus is successful based on the initialization state information, the main control MCU sends a control instruction to the audio system through the CAN bus so as to execute mute release operation, gradually increase the volume and avoid starting noise; And S5, operating and maintaining, namely enabling the audio system to enter a normal operation mode, enabling the main control MCU to send a heartbeat packet through the CAN bus, and performing intelligent volume adjustment based on audio parameters of the CAN bus to enter a normal operation state. The configuration information comprises DSP model, A2B node number and supported audio format, if the inquiry command is overtime and has no response, the diagnosis mode is entered, if the inquiry command is normally replied, the state inquiry step is carried out, the state feedback information comprises DSP sound effect mode, radio working state and A2B power amplifier preparation state, each module state is coded in a bitmap mode, each key module enters the collaborative initialization step after being ready, an A2B initialization enabling command is sent through the CAN bus, the A2B initialization progress is reported through the CAN bus in real time, and CAN diagnosis information feedback when the A2B initialization fails is supported. After the initialization of the A2B bus is finished, multichannel volume control data are sent through the CAN bus, the volume is gradually increased from 0 to a target value, when abnormal audio signals are detected, the audio system CAN enter a normal running state if abnormal audio signals are not detected, intelligent volume adjustment is carried out on the basis of the audio parameters of the CAN bus, the master control MCU periodically sends heartbeat packets, if the heartbeat packets are lost for more than 3 times, a protection mechanism is triggered, and when nodes are added, only new slave node chips are connected in series on the A2B bus without rewiring, so that the expandability of the system is remarkably enhanced. Further, in step S3, the A2B master node chip start node discovery process specifically includes the following steps: S31, initializing a main node, after