CN112965928A - Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium - Google Patents

Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium Download PDF

Info

Publication number
CN112965928A
CN112965928A CN202110338876.7A CN202110338876A CN112965928A CN 112965928 A CN112965928 A CN 112965928A CN 202110338876 A CN202110338876 A CN 202110338876A CN 112965928 A CN112965928 A CN 112965928A
Authority
CN
China
Prior art keywords
power amplifier
vehicle
machine system
built
type
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.)
Granted
Application number
CN202110338876.7A
Other languages
Chinese (zh)
Other versions
CN112965928B (en
Inventor
王建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ecarx Hubei Tech Co Ltd
Original Assignee
Hubei Ecarx Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hubei Ecarx Technology Co Ltd filed Critical Hubei Ecarx Technology Co Ltd
Priority to CN202110338876.7A priority Critical patent/CN112965928B/en
Publication of CN112965928A publication Critical patent/CN112965928A/en
Application granted granted Critical
Publication of CN112965928B publication Critical patent/CN112965928B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Amplifiers (AREA)

Abstract

The invention provides a vehicle machine system power amplifier type identification method, electronic equipment and a computer storage medium, wherein the method comprises the following steps: the GPIO driving module outputs a power-on signal, the power amplifier type judging module polls and outputs all built-in power amplifier information in the built-in power amplifier information table through the I2C driving module within a preset time length from the time when the GPIO driving module outputs the power-on signal, and whether the power amplifier type of the vehicle machine system is a built-in power amplifier is determined according to a response result of the I2C bus. And reading the identification information of the external power amplifier equipment through the CAN driving module under the condition that the preset time length is exceeded and the power amplifier type of the vehicle machine system is not determined to be the internal power amplifier, and determining whether the power amplifier type of the vehicle machine system is the external power amplifier or not according to the identification information. Based on the technical scheme provided by the invention, the power amplifier type configured by the vehicle can be automatically identified after the vehicle-mounted host computer is powered on, two software versions do not need to be compiled, the software development and maintenance cost is reduced, and the performance requirement of early sounding of the power amplifier is met.

Description

Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium
Technical Field
The invention relates to the technical field of automobiles, in particular to a vehicle-machine system power amplifier type identification method, electronic equipment and a computer storage medium.
Background
To meet the demands of different consumers, automobiles are generally classified into three types, i.e., low-mix, medium-mix and high-mix, for different market prices. For a sound system, a host of a high-distribution vehicle type is usually matched with an external power amplifier with high price, and high-level sound effects such as surround sound, dynamic compensation and active noise reduction can be realized; in order to reduce cost, the middle and low vehicle distribution type integrates a chip of a power amplifier into a host generally, and supports relatively few sound functions.
For the car machine system supporting the two different types of power amplifiers, the audio interface between the DSP chip inside the car host and the power amplifier, the control interface between the main control chip and the power amplifier, and the speaker configuration are completely different, so that the car host is required to make a corresponding Software variation (Software variation).
At present, there are two types of vehicle-mounted host software variants, one of which is to directly compile two software versions, namely an external power amplifier software version and an internal power amplifier software version, through a macro switch, and manually identify the power amplifier type and call the corresponding software version. This approach has the disadvantage of increasing the pre-development cost and post-maintenance cost. Secondly, the vehicle-mounted host dynamically configures the DSP and the relevant parameters of the power amplifier according to the Car Configuration signal parameters sent by the complete vehicle CEM ECU (electronic control unit), but since the Car Configuration parameters are sent only after the Car is ignited, the vehicle-mounted host cannot know the power amplifier type configured by the Car during the time before the Car is ignited, so that the initialization action of the DSP and the power amplifier needs to be delayed until the Car is ignited, and the performance requirement of the early sound of the power amplifier cannot be met.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a car machine system power amplifier type identification method, an electronic device and a computer storage medium, which overcome the above problems or at least partially solve the above problems.
According to one aspect of the invention, a vehicle machine system power amplifier type identification method is provided, which is applied to an MCU main control chip, wherein the MCU main control chip comprises a CAN driving module, an I2C driving module, a GPIO driving module and a power amplifier type judgment module, and the method comprises the following steps:
the GPIO driving module outputs a power-on signal;
the power amplifier type judging module polls and outputs each built-in power amplifier information in a built-in power amplifier information table through the I2C driving module within a preset time length from the time when the GPIO driving module outputs the power-on signal, and determines whether the power amplifier type of the vehicle machine system is a built-in power amplifier according to a response result of an I2C bus;
the power amplifier type judging module reads identification information of external power amplifier equipment through the CAN driving module under the condition that the preset time length is exceeded and the power amplifier type of the car machine system is not determined to be an internal power amplifier, and determines whether the power amplifier type of the car machine system is the external power amplifier or not according to the identification information.
Optionally, the determining, by the power amplifier type determining module, whether the power amplifier type of the in-vehicle machine system is a built-in power amplifier according to a response result of the I2C bus includes:
the power amplifier type judging module judges whether a response exists on the I2C bus within the preset time length; and if so, determining that the power amplifier type of the vehicle machine system is a built-in power amplifier.
Optionally, the determining module of the power amplifier type determines whether the power amplifier type of the in-vehicle machine system is an external power amplifier according to the identification information, including:
the power amplifier type judging module identifies whether the external power amplifier information table stores the identification information or not; and if so, determining that the power amplifier type of the vehicle-mounted machine system is an external power amplifier.
Optionally, the power amplifier type determining module identifies whether the external power amplifier information table stores the identification information, and further includes:
and if the external power amplifier information table does not store the identification information, determining that the power amplifier type of the vehicle-mounted machine system is a default power amplifier.
Optionally, the identification information of the external power amplifier includes at least one of: part number information and an audio mode signal.
Optionally, the method further comprises:
if the power amplifier type judgment module determines that the power amplifier type of the vehicle-mounted machine system is a built-in power amplifier, the built-in power amplifier is initialized and started according to built-in power amplifier information of the built-in power amplifier; and if the power amplifier type of the vehicle-mounted machine system is determined to be an external power amplifier, initializing and starting the external power amplifier according to the identification information of the external power amplifier.
Optionally, the built-in power amplifier information includes address information of the built-in power amplifier.
Optionally, the GPIO driver module and the I2C driver module are configured to be electrically connected to the internal power amplifier, and respectively power on and transmit control data for the internal power amplifier;
the I2C driving module is configured to be electrically connected with the external power amplifier device and transmits control data for the external power amplifier.
According to another aspect of the present invention, there is also provided an electronic apparatus, including:
a processor;
a memory storing a computer program;
the computer program, when executed by the processor, causes the electronic device to perform the method as any one of the above.
According to yet another aspect of the invention, there is also provided a computer storage medium having stored therein at least one instruction, at least one program, set of code or set of instructions, which is loaded by a processor and which performs a method as described in any one of the above.
In the invention, after the vehicle-mounted host is powered on, the GPIO driving module outputs a power-on signal, the power amplifier type judging module polls and outputs each built-in power amplifier information in the built-in power amplifier information table through the I2C driving module within a preset time length from the time when the GPIO driving module outputs the power-on signal, and determines whether the power amplifier type of the vehicle-mounted system is a built-in power amplifier according to a response result of the I2C bus; and reading the identification information of the external power amplifier equipment through the CAN driving module under the condition that the preset time length is exceeded and the power amplifier type of the vehicle machine system is not determined to be the internal power amplifier, and determining whether the power amplifier type of the vehicle machine system is the external power amplifier or not according to the identification information. Based on the technical scheme provided by the invention, the power amplifier type of the vehicle-mounted machine system can be automatically identified after the vehicle-mounted host is powered on, two software versions do not need to be compiled, and the software development and maintenance cost is reduced; furthermore, after the power amplifier type configured for the vehicle is confirmed, the DSP can be informed to perform corresponding initialization, so that the performance requirement of early sounding of the power amplifier is met.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
The above and other objects, advantages and features of the present invention will become more apparent to those skilled in the art from the following detailed description of specific embodiments thereof, taken in conjunction with the accompanying drawings.
Drawings
Some specific embodiments of the invention will be described in detail hereinafter, by way of illustration and not limitation, with reference to the accompanying drawings. The same reference numbers in the drawings identify the same or similar elements or components. Those skilled in the art will appreciate that the drawings are not necessarily drawn to scale. In the drawings:
FIG. 1 is a schematic block diagram of an in-vehicle host according to one embodiment of the present invention;
FIG. 2 is a schematic block diagram of an MCU master control chip according to one embodiment of the invention;
fig. 3 is a schematic flow chart of a vehicle-mounted device system power amplifier type identification method according to an embodiment of the present invention;
fig. 4 is a schematic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 is a schematic configuration diagram of an in-vehicle host according to an embodiment of the present invention. Referring to fig. 1, an MCU (micro controller Unit) main control chip 100 and a DSP (Digital signal processing) audio chip 400 are integrated in a vehicle-mounted host 200, and the DSP audio chip 600 is electrically connected to the MCU main control chip 100 through an I2C bus for transmitting control data. Under the condition that the power amplifier type of the vehicle-mounted system is a built-in power amplifier, a built-in power amplifier chip 300 is integrated in the vehicle-mounted host 200, and the built-in power amplifier chip 300 is electrically connected with the MCU main control chip 100 through an I2C bus and used for transmitting control data; the built-in power amplifier chip 300 is also electrically connected with the MCU main control chip 100 through a GPIO terminal for receiving a power-on signal of the MCU main control chip 100, wherein the GPIO terminal is specially used for powering on the built-in power amplifier chip 300 in the design of the MCU main control chip 100; the DSP audio chip 600 is electrically connected to the built-in power amplifier chip 300 through an audio bus, and is configured to transmit audio data. Under the condition that the power amplifier type of the vehicle-mounted machine system is an external power amplifier, the external power amplifier equipment 500 is independent of the vehicle-mounted host 200, the external power amplifier equipment 500 is powered by the whole vehicle and is powered before the vehicle-mounted host, and the external power amplifier equipment 500 is electrically connected with the MCU main control chip 100 through the CAN bus and used for transmitting control data; the DSP audio chip 600 is also electrically connected to the external power amplifier 50 through an audio bus for transmitting audio data.
Fig. 2 is a schematic structural diagram of an MCU master control chip according to one embodiment of the present invention. Referring to fig. 2, a CAN driver module 140, an I2C driver module 130, a GPIO driver module 120, a DSP management module 110, a power amplifier management module 150, and a power amplifier type determination module 160 are integrated in the MCU main control chip. The CAN driver module 140 provides a read/write interface of the CAN bus; the I2C driving module 130 provides a read-write interface of the I2C bus; the GPIO driver module 120 provides a terminal read/write interface; the power amplifier type determining module 160 integrates the pre-adapted internal power amplifier information of one (or more) internal power amplifier chips 300 and the part number information of the external power amplifier device 500 or other CAN signal information capable of supporting the MCU main control chip 100 to identify the external power amplifier type. The power amplifier management module 150 is responsible for internal power amplifier, external power amplifier initialization and application layer communication management. The DSP management module is responsible for DSP audio chip 600 set initialization and application layer communication management.
Based on the MCU main control chip 100, the present invention provides a car machine system power amplifier type identification method, and fig. 3 is a schematic flow of the car machine system power amplifier type identification method according to an embodiment of the present invention. Referring to fig. 3, the method may include at least the following steps.
Step S302: the GPIO driving module 120 outputs a power-on signal;
step S304: the power amplifier type judging module 160 polls and outputs each built-in power amplifier information in the built-in power amplifier information table through the I2C driving module 130 within a preset time length from the time when the GPIO driving module 120 outputs the power-on signal, and determines whether the power amplifier type of the car machine system is a built-in power amplifier according to a response result of the I2C bus;
step S306: the power amplifier type determining module 160 reads the identification information of the external power amplifier device through the CAN driving module 140 under the condition that the preset time length is exceeded and the power amplifier type of the in-vehicle system is not determined to be the internal power amplifier, and determines whether the power amplifier type of the in-vehicle system is the external power amplifier according to the identification information.
In the embodiment of the present invention, after the vehicle-mounted host 200 is powered on, the GPIO driving module 120 outputs a power-on signal, the power amplifier type determining module 160 polls and outputs each internal power amplifier information in the internal power amplifier information table through the I2C driving module 130 within a preset time period from when the GPIO driving module 120 outputs the power-on signal, and determines whether the power amplifier type of the vehicle-mounted system is a internal power amplifier according to a response result of the I2C bus. The power amplifier type determining module 160 reads the identification information of the external power amplifier device 500 through the CAN driving module 140 under the condition that the preset time length is exceeded and the power amplifier type of the in-vehicle system is not determined to be the internal power amplifier, and determines whether the power amplifier type of the in-vehicle system is the external power amplifier according to the identification information. Based on the technical scheme provided by the invention, the power amplifier type of the vehicle-mounted machine system can be automatically identified after the vehicle-mounted host 200 is powered on, two versions of software do not need to be compiled, and the software development and maintenance cost is reduced; furthermore, after the power amplifier type of the vehicle-mounted machine system is determined, the DSP can be informed to perform corresponding initialization, and the performance requirement of early sounding of the power amplifier is met.
The vehicle-mounted host 200 is connected to the environment of the whole vehicle through a connector, and the whole vehicle supplies power to the vehicle-mounted host 200 through a wiring harness connector. After the MCU main control chip 100 is powered on, the GPIO driving module 120 outputs a power-on signal. In the presence of the built-in power amplifier chip 300, the built-in power amplifier chip 300 receives a power-on signal from the GPIO driver module 120.
In some embodiments of the present invention, the determining, by the power amplifier type determining module 160 mentioned in step S302, whether the power amplifier type of the in-vehicle system is a built-in power amplifier according to the response result of the I2C bus may include: the power amplifier type determining module 160 determines whether there is a response on the I2C bus within a preset time period; and if so, determining that the power amplifier type of the vehicle machine system is a built-in power amplifier.
Specifically, the preset duration at least meets the initialization duration of the built-in power amplifier chip and the duration of each piece of built-in power amplifier information in the built-in power amplifier information table which is completely polled once. The preset time period may be set according to actual conditions, for example, 100ms, and the like, and the present invention is not limited. If the power amplifier configured in the vehicle-mounted machine system is a built-in power amplifier in the corresponding built-in power amplifier information table, the built-in power amplifier configured in the vehicle-mounted machine system sends an ACK response to the I2C bus after receiving the corresponding built-in power amplifier information. The power amplifier type determining module 160 may continuously detect the I2C bus, and after detecting that the ACK response exists in the I2C bus, may determine that the power amplifier type of the in-vehicle system is a built-in power amplifier.
The internal power amplifier information may include address information of the internal power amplifier chip 300, where the address information of different internal power amplifier chips is different, for example, the address information of the internal power amplifier chips of NXP and TI is different. The power amplifier type determining module 160 may determine not only the power amplifier type of the car machine system but also the address information of the internal power amplifier chip 300 according to the response on the I2C bus. After determining the address information of the internal power amplifier chip 300, the power amplifier type determining module 160 initializes the internal power amplifier according to the internal power amplifier information of the internal power amplifier.
Specifically, the power amplifier type determining module 160 notifies the address information of the built-in power amplifier chip 300 to the DSP management module 110 and the power amplifier management module 150, so that the DSP management module 110 and the power amplifier management module 150 are respectively responsible for the initialization and the application layer management of the built-in power amplifier chip 300 and the DSP audio chip 600. Therefore, two software versions do not need to be compiled, and the requirement of early sounding of the power amplifier can be met.
In addition, the power amplifier type determining module 160 reads the identification information of the external power amplifier device 500 through the CAN driving module 140 when the preset time length is exceeded and the power amplifier type of the in-vehicle system is not determined to be the internal power amplifier, and determines whether the power amplifier type of the in-vehicle system is the external power amplifier according to the identification information.
Specifically, determining, by the power amplifier type determining module 160, whether the power amplifier type of the in-vehicle machine system is an external power amplifier according to the identification information may include: the power amplifier type judgment module 160 identifies whether the external power amplifier information table stores the identification information; and if so, determining that the power amplifier type of the vehicle machine system is an external power amplifier.
Wherein the identification information may include at least one of: part number information and significance mode signal information. The power amplifier type judging module 160 compares the read identification information of the external power amplifier with the part number information and the audio mode signal information in the external power amplifier information table, and if the identification information is stored in the external power amplifier information table, the power amplifier type of the vehicle-mounted machine system can be determined to be the external power amplifier; if the external power amplifier information table does not store the identification information, the power amplifier type of the vehicle-mounted machine system can be determined to be a non-external power amplifier.
Since the part number information and the audio mode signal information of different external power amplifiers are also different, the part number information or the audio mode signal information of the external power amplifier device 500 can be determined while the power amplifier type of the vehicle-mounted device system is determined to be the external power amplifier. After determining the part number information or the sound effect mode signal information of the external power amplifier device 500, the power amplifier type determining module 160 may initialize and start the external power amplifier according to the identification information of the external power amplifier device 500.
Specifically, the power amplifier type determining module 160 may notify the external power amplifier identification information to the DSP management module 110 and the power amplifier management module 150, so that the DSP management module 110 and the power amplifier management module 150 are respectively responsible for the initialization and the application layer management of the external power amplifier device 500 and the DSP audio chip 600. Therefore, two software versions do not need to be compiled, and the requirement of early sounding of the power amplifier can be met.
In some embodiments of the present invention, after the power amplifier type determining module 160 identifies whether the external power amplifier information table stores the identification information, the method further includes: and if the external power amplifier information table does not store the identification information, determining that the power amplifier type of the vehicle-mounted machine system is a default power amplifier.
Specifically, after the power amplifier type of the vehicle machine system is determined to be the default power amplifier, the power amplifier of the vehicle machine system can be driven according to the pre-stored address information of the built-in power amplifier or the part number information of the external power amplifier or the sound effect mode signal information. The pre-stored address information of the internal power amplifier or the part number information of the external power amplifier or the sound effect mode signal is stored in the power amplifier type determining module 160.
Based on the same inventive concept, the present invention further provides an electronic device 400, and fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. Referring to fig. 4, the electronic device 400 comprises a processor 410 and a memory 420 in which a computer program 421 is stored; the computer program 421, when executed by the processor 410, causes the electronic device 400 to perform a method according to any of the embodiments described above.
Based on the same inventive concept, the present invention also proposes a computer storage medium having at least one instruction, at least one program, code set, or instruction set stored therein, the at least one instruction, at least one program, code set, or instruction set being loaded by a processor and executing the method according to any one of the above embodiments.
The invention provides a vehicle machine system power amplifier type identification method, an electronic device and a computer storage medium, in the method, after a vehicle-mounted host 200 is powered on, a GPIO driving module 120 outputs a power-on signal, a power amplifier type judgment module 160 polls and outputs each built-in power amplifier information in a built-in power amplifier information table through an I2C driving module 130 within a preset time period after the GPIO driving module 120 outputs the power-on signal, and determines whether the power amplifier type of the vehicle machine system is a built-in power amplifier according to a response result of an I2C bus. The power amplifier type determining module 160 reads the identification information of the external power amplifier device 500 through the CAN driving module 140 under the condition that the preset time length is exceeded and the power amplifier type of the in-vehicle system is not determined to be the internal power amplifier, and determines whether the power amplifier type of the in-vehicle system is the external power amplifier according to the identification information. Based on the technical scheme provided by the invention, the power amplifier type of the vehicle-mounted machine system can be automatically identified after the vehicle-mounted host 200 is powered on, two versions of software do not need to be compiled, and the software development and maintenance cost is reduced; furthermore, after the power amplifier type of the vehicle-mounted machine system is determined, the DSP can be informed to perform corresponding initialization, and the performance requirement of early sounding of the power amplifier is met.
It is clear to those skilled in the art that the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, further description is omitted here.
In addition, the functional units in the embodiments of the present invention may be physically independent of each other, two or more functional units may be integrated together, or all the functional units may be integrated in one processing unit. The integrated functional units may be implemented in the form of hardware, or in the form of software or firmware.
Those of ordinary skill in the art will understand that: the integrated functional units, if implemented in software and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computing device (e.g., a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention when the instructions are executed. And the aforementioned storage medium includes: u disk, removable hard disk, Read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disk, and other various media capable of storing program code.
Alternatively, all or part of the steps of implementing the foregoing method embodiments may be implemented by hardware (such as a computing device, e.g., a personal computer, a server, or a network device) associated with program instructions, which may be stored in a computer-readable storage medium, and when the program instructions are executed by a processor of the computing device, the computing device executes all or part of the steps of the method according to the embodiments of the present invention.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments can be modified or some or all of the technical features can be equivalently replaced within the spirit and principle of the present invention; such modifications or substitutions do not depart from the scope of the present invention.

Claims (10)

1. The utility model provides a car machine system power amplifier type identification method, is applied to MCU main control chip, its characterized in that, MCU main control chip includes CAN drive module, I2C drive module, GPIO drive module and power amplifier type judgement module, the method includes:
the GPIO driving module outputs a power-on signal;
the power amplifier type judging module polls and outputs each built-in power amplifier information in a built-in power amplifier information table through the I2C driving module within a preset time length from the time when the GPIO driving module outputs the power-on signal, and determines whether the power amplifier type of the vehicle machine system is a built-in power amplifier according to a response result of an I2C bus;
the power amplifier type judging module reads identification information of external power amplifier equipment through the CAN driving module under the condition that the preset time length is exceeded and the power amplifier type of the car machine system is not determined to be an internal power amplifier, and determines whether the power amplifier type of the car machine system is the external power amplifier or not according to the identification information.
2. The method of claim 1, wherein the determining, by the power amplifier type determining module, whether the power amplifier type of the in-vehicle system is a built-in power amplifier according to a response result of the I2C bus comprises:
the power amplifier type judging module judges whether a response exists on the I2C bus within the preset time length; and if so, determining that the power amplifier type of the vehicle machine system is a built-in power amplifier.
3. The method of claim 1, wherein the determining, by the power amplifier type determining module, whether the power amplifier type of the in-vehicle machine system is an external power amplifier according to the identification information comprises:
the power amplifier type judging module identifies whether the external power amplifier information table stores the identification information or not; and if so, determining that the power amplifier type of the vehicle-mounted machine system is an external power amplifier.
4. The method of claim 3, wherein the power amplifier type determining module further identifies whether the external power amplifier information table stores the identification information, and further comprises:
and if the external power amplifier information table does not store the identification information, determining that the power amplifier type of the vehicle-mounted machine system is a default power amplifier.
5. The method of claim 1, wherein the identification information of the external power amplifier comprises at least one of: part number information and an audio mode signal.
6. The method of claim 1, further comprising:
if the power amplifier type judgment module determines that the power amplifier type of the vehicle-mounted machine system is a built-in power amplifier, the built-in power amplifier is initialized and started according to built-in power amplifier information of the built-in power amplifier; and if the power amplifier type of the vehicle-mounted machine system is determined to be an external power amplifier, initializing and starting the external power amplifier according to the identification information of the external power amplifier.
7. The method of claim 1, wherein the internal power amplifier information comprises address information of the internal power amplifier.
8. The method of claim 1,
the GPIO driving module and the I2C driving module are configured to be electrically connected with the built-in power amplifier and respectively supply power to the built-in power amplifier and transmit control data;
the I2C driving module is configured to be electrically connected with the external power amplifier device and transmits control data for the external power amplifier.
9. An electronic device, comprising:
a processor;
a memory storing a computer program;
the computer program, when executed by the processor, causes the electronic device to perform the method of any of claims 1-8.
10. A computer storage medium having stored therein at least one instruction, at least one program, a set of code or instructions, which is loaded by a processor and which performs the method of any one of claims 1 to 8.
CN202110338876.7A 2021-03-30 2021-03-30 Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium Active CN112965928B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110338876.7A CN112965928B (en) 2021-03-30 2021-03-30 Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110338876.7A CN112965928B (en) 2021-03-30 2021-03-30 Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN112965928A true CN112965928A (en) 2021-06-15
CN112965928B CN112965928B (en) 2022-04-19

Family

ID=76279651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110338876.7A Active CN112965928B (en) 2021-03-30 2021-03-30 Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN112965928B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166686A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for switching to external loudspeaker
CN210007874U (en) * 2019-06-05 2020-01-31 苏州凯云迪电子科技有限公司 sound system applied to automobile and automobile

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017166686A1 (en) * 2016-03-31 2017-10-05 乐视控股(北京)有限公司 Method and apparatus for switching to external loudspeaker
CN210007874U (en) * 2019-06-05 2020-01-31 苏州凯云迪电子科技有限公司 sound system applied to automobile and automobile

Also Published As

Publication number Publication date
CN112965928B (en) 2022-04-19

Similar Documents

Publication Publication Date Title
US11243594B2 (en) Electronic device supporting connection with external device and power consumption reducing method when using electronic device in connection with external device
US10664411B2 (en) Chained bus memory device
US20110090883A1 (en) Information terminal and computer program
GB2463809A (en) Peripheral device operation method, peripheral device and host
US20040008633A1 (en) Network accessing system for computer and method of controlling the same
JP2005032244A (en) Method and device for automatic reset of usb smart card device in mute mode
US20030223486A1 (en) Method for detecting data transmission rate of USB controller by using USB device
EP1181638A1 (en) Method and apparatus for maintaining load balance on a graphics bus when an upgrade device is installed
US10824578B2 (en) Bitwise writing apparatus for system-on-chip system
CN112965928B (en) Vehicle machine system power amplifier type identification method, electronic equipment and computer storage medium
US6731924B2 (en) Apparatus and method for controlling data transfer transmitted via radio communication applicable to electronic equipment and electronic equipment communication system
CN107102879A (en) Information is sent and firmware upgrade method, device, terminal, equipment and storage medium
US20060282656A1 (en) Computer system and method of controlling power consumption in the computer system
CN111475432B (en) Slave computer starting control device, single bus system and control method thereof
US20120281515A1 (en) Disc drive system
US7130992B2 (en) Detecting insertion of removable media
CN113741985A (en) Method, device and equipment for cold start of system after BIOS (basic input output System) upgrade and readable medium
CN112199103B (en) Equipment upgrading method and terminal equipment
CN102866764B (en) The method for managing power supply of terminal device and internal storage location thereof
CN113205780B (en) Adaptive method and system for integrated I2C light sensing module of all-in-one machine
US11609596B2 (en) Electronic device for controlling frequency of processor and method of operating the same
US20230342273A1 (en) Information processing apparatus and control method
CN115576612A (en) External device adaptation method and device, intelligent terminal and readable storage medium
CN114780166A (en) Pin configuration method, related device, equipment and readable storage medium
US7043590B2 (en) Interface apparatus using single driver, computer system including interface apparatus using single driver, and related method

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
TA01 Transfer of patent application right

Effective date of registration: 20220322

Address after: 430051 No. b1336, chuanggu startup area, taizihu cultural Digital Creative Industry Park, No. 18, Shenlong Avenue, Wuhan Economic and Technological Development Zone, Wuhan, Hubei Province

Applicant after: Yikatong (Hubei) Technology Co.,Ltd.

Address before: 430056 building B (qdxx-f7b), No.7 building, qiedixiexin science and Technology Innovation Park, South taizihu innovation Valley, Wuhan Economic and Technological Development Zone, Hubei Province

Applicant before: HUBEI ECARX TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant