Vehicle-mounted power amplifier system based on Bluetooth chip

Through the car amplifier system based on Bluetooth chip, the Bluetooth chip is used to realize MCU and DSP functions, which solves the problems of complex circuits and difficult upgrades in the existing technology and realizes circuit simplification and easy upgrade.

CN120692503AActive Publication Date: 2025-09-23GUANGZHOU JURONG ELECTRONICS TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510850943.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-24
Publication Date
2025-09-23
Estimated Expiration
2045-06-24

AI Technical Summary

Technical Problem

The existing car amplifier system has a complex circuit, high cost and difficult chip maintenance and upgrade due to the combination of MCU chip, DSP chip and Bluetooth chip.

Method used

A Bluetooth chip is used to replace the MCU and DSP functions. Through the key function module and the tuning function implementation module, the average value of the key voltage is continuously collected and calculated through the ADC pin of the Bluetooth chip to determine the target key state. The target tuning data of the target tuning data is calculated through the DMA channel based on the Bluetooth chip. The DMA channel of the Bluetooth chip is calculated through the DMA channel based on the Bluetooth chip. The DMA channel of the Bluetooth chip is calculated. Based on the DMA function of the Bluetooth chip, the target DMA function module is identified to realize the over-the-air upgrade of the Bluetooth chip.

Benefits of technology

The chip peripheral circuit of the car amplifier is reduced, the number of chips is reduced, the Bluetooth chip function is perfectly replaced by the MCU chip and DSP chip function, and the upgrade process is simplified.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120692503A_ABST
    Figure CN120692503A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted power amplifier system based on a Bluetooth chip, and the system comprises a key function module which is used for continuously collecting key voltages based on an ADC pin of the Bluetooth chip, calculating a first voltage average value of the key voltages, and determining a target key state corresponding to the first voltage average value; the tuning function module is used for calculating a second voltage average value of the voltage values continuously acquired by the ADC pin based on a DMA channel of the Bluetooth chip, determining target tuning data of the second voltage average value, and copying the target tuning data to a DSP interface function; and the upgrading function module is used for performing air upgrading based on the Bluetooth chip. The MCU and DSP functions are realized through the Bluetooth chip, so that the vehicle-mounted power amplifier does not need an MCU chip and a DSP chip, peripheral circuits of the chips are reduced, and the upgrading difficulty is greatly reduced; meanwhile, the problem that the number of pins of the Bluetooth chip is not enough to replace the MCU function and the DSP function is solved through the key function module and the tone tuning function module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of vehicle-mounted equipment, and in particular to a vehicle-mounted power amplifier system based on a Bluetooth chip. Background Art

[0002] An in-vehicle amplifier is a power amplifier installed in a vehicle, used to amplify the sound from a microphone or audio player and effectively transmit it within the vehicle. Existing in-vehicle amplifiers consist of an MCU chip, a DSP chip, a Bluetooth chip, and an op amp chip. The Bluetooth chip allows for external music playback and Bluetooth speech, while the DSP chip adjusts the tone. The MCU chip schedules and distributes the various chips using buttons on the amplifier's panel. However, each chip has a large number of peripheral circuits, resulting in complex and costly circuits. Furthermore, upgrading and maintaining these multiple chips is difficult, requiring the insertion of multiple dedicated upgrade interfaces for program updates. Summary of the Invention

[0003] The present application provides a car amplifier system based on a Bluetooth chip to solve the technical problem of difficulty in maintaining and upgrading the chip of the car amplifier.

[0004] In order to solve the above technical problems, in the first aspect, the present application provides a car amplifier system based on a Bluetooth chip, comprising:

[0005] a key function module, configured to continuously collect key voltages based on the ADC pin of the Bluetooth chip, calculate a first voltage average of the key voltages, and determine a target key state corresponding to the first voltage average, wherein different keys correspond to different key voltage ranges;

[0006] A tuning function module is configured to calculate, based on the DMA channel of the Bluetooth chip, a second voltage average value of the voltage values ​​continuously collected by the ADC pin, determine target tuning data corresponding to the second voltage average value, and copy the target tuning data to a DSP interface function to implement a tuning function;

[0007] The upgrade function module is used to perform over-the-air upgrade based on the Bluetooth chip.

[0008] In some embodiments, the key function module is specifically used to:

[0009] Continuously collecting button voltage based on the ADC pin of the Bluetooth chip;

[0010] Calculating a first voltage average value of the button voltage based on a DMA function of the Bluetooth chip;

[0011] Based on a target button voltage determination range, a target button state corresponding to the first voltage average value is identified, where the target button voltage determination range includes correspondences between button voltage determination ranges corresponding to multiple buttons and button states.

[0012] In some embodiments, before determining the target button voltage range and identifying the target button state corresponding to the first voltage average value based on the target button voltage, the method further includes:

[0013] The current ambient temperature collected by the temperature sensor is received based on the Bluetooth chip;

[0014] According to a preset adjustment strategy, based on the current ambient temperature, the key voltage judgment ranges of the various keys are adjusted to obtain the target key voltage judgment range.

[0015] In some embodiments, the system further includes a power adjustment module configured to:

[0016] Based on a preset correspondence between the ambient temperature and the output power of the vehicle amplifier, the output power of the vehicle amplifier corresponding to the current ambient temperature is adjusted.

[0017] In some embodiments, the tuning function module is specifically configured to:

[0018] Activate the DMA function of the Bluetooth chip and configure the DMA channel to automatically obtain the voltage values ​​continuously collected by the ADC pin;

[0019] Based on the DMA channel, performing discrete analysis and average calculation on consecutive preset voltage values ​​to obtain the second voltage average value;

[0020] determining target tuning data corresponding to the second voltage average value based on a preset correspondence between voltage values ​​and tuning data;

[0021] The target tuning data is copied to the DSP interface function to implement the tuning function.

[0022] In some embodiments, the upgrade function module is specifically used to:

[0023] When the Bluetooth chip is powered on, the official boot program of the Bluetooth chip is loaded, and based on the official boot program, whether a first upgrade file is available is detected, where the first upgrade file is a USB flash drive upgrade file or a debug upgrade file;

[0024] If there is no first upgrade file, jump to the preset boot program, and based on the preset boot program, detect whether there is a second upgrade file in the preset upgrade buffer, where the second upgrade file is an over-the-air upgrade file;

[0025] If the preset upgrade buffer has the second upgrade file, the machine code of the second upgrade file is overwritten into the flash space for executing the machine code, thereby realizing over-the-air upgrade.

[0026] In some embodiments, detecting whether the preset upgrade buffer has a second upgrade file includes:

[0027] detecting whether a target flag of the preset upgrade buffer is a first preset value, and if the target flag is the first preset value, determining that the preset upgrade buffer has the second upgrade file;

[0028] Furthermore, after overwriting the machine code of the second upgrade file into the flash space for executing the machine code, the method further includes:

[0029] The target flag of the preset upgrade buffer is reset to a second preset value.

[0030] In some embodiments, after detecting whether the preset upgrade buffer has the second upgrade file, the method further includes:

[0031] If the second upgrade file does not exist, jump to the first line of execution machine code in the application of the Bluetooth chip and read the interrupt function of the Bluetooth peripheral;

[0032] When the interrupt function has preset data content, the application based on the Bluetooth chip performs a protocol handshake with the Bluetooth peripheral;

[0033] When the protocol handshake succeeds, obtaining the second upgrade file, copying the second upgrade file to the preset upgrade buffer, and verifying the second upgrade file in the preset upgrade buffer;

[0034] When the second upgrade file is verified successfully, the Bluetooth chip is restarted and the process returns to the step of loading the official boot program of the Bluetooth chip.

[0035] In some embodiments, obtaining the second upgrade file includes:

[0036] Sending code acquisition requests to the Bluetooth peripheral device in batches, and receiving application execution codes returned by the Bluetooth peripheral device in response to the code acquisition requests in sequence, to obtain the second upgrade file.

[0037] In some embodiments, before restarting the Bluetooth chip, the method further includes:

[0038] The target flag of the preset upgrade buffer is changed to a first preset value.

[0039] Compared with the existing technology, this application has the following beneficial effects:

[0040] By realizing the functions of MCU chip and DSP chip through Bluetooth chip, the car amplifier does not need MCU chip and DSP chip, reducing the peripheral circuit of chip, and can realize over-the-air upgrade of Bluetooth chip function, MCU chip function and DSP chip function based on Bluetooth chip, greatly reducing the difficulty of upgrade; at the same time, the key function module and tuning function module are used to solve the problem that the number of IO pins of Bluetooth chip is insufficient to replace the function pins of MCU chip and DSP chip, so that Bluetooth chip can perfectly replace the MCU chip function and DSP chip function in the car amplifier. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 This is a structural block diagram of a car amplifier system based on a Bluetooth chip according to an embodiment of the present application;

[0042] Figure 2 This is a circuit connection diagram of a Bluetooth chip shown in an embodiment of the present application;

[0043] Figure 3 This is a circuit connection diagram of the ADC pins shown in an embodiment of the present application;

[0044] Figure 4 This is a schematic diagram of the upgrade process of the upgrade function module shown in an embodiment of the present application. DETAILED DESCRIPTION

[0045] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of this application.

[0046] As described in the background technology, traditional car amplifiers require an MCU chip, a DSP chip, and a Bluetooth chip. When multiple chips need to be upgraded, each needs to have a USB upgrade interface, which makes subsequent upgrades and maintenance extremely troublesome. To this end, this application uses a Bluetooth chip to replace the MCU chip and DSP chip functions, eliminating the MCU chip and DSP chip in the car amplifier and saving peripheral circuits.

[0047] However, Bluetooth chips have limited IO pins, which are insufficient to replace the functions of MCU and DSP chips. For example, the Mountain View BP1048 or BP1548 have 48 pins in their packages, most of which are occupied by conventional functions (for example, 36 IO pins are required for basic functions such as power supply and grounding, crystal oscillator, USB, SD card, and debug interface), leaving only 4 unoccupied IO pins. Of the 4 unoccupied IO pins, 2 (CAN_TX, CAN_RX) are required for CAN communication in car amplifiers. Car amplifiers also have 5 to 12 buttons, 3 to 5 volume adjustment knobs (volume adjustment, treble adjustment, bass adjustment, and reverberation adjustment), and a digital tube or LCD screen. As a result, the Bluetooth chip itself cannot carry the functions of the MCU and DSP chips in car amplifiers.

[0048] To this end, the embodiment of the present application provides a car amplifier system based on a Bluetooth chip, which realizes the functions of the MCU chip and the DSP chip through the Bluetooth chip, so that the car amplifier does not need the MCU chip and the DSP chip, reduces the chip peripheral circuit, and can realize the over-the-air upgrade of the Bluetooth chip function, the MCU chip function and the DSP chip function based on the Bluetooth chip, greatly reducing the difficulty of upgrading; at the same time, the key function module and the tuning function module are used to solve the problem that the number of IO pins of the Bluetooth chip is insufficient to replace the MCU chip function pins and the DSP chip function pins, so that the Bluetooth chip can perfectly replace the MCU chip function and the DSP chip function in the car amplifier.

[0049] Please refer to Figure 1 , Figure 1 This is a structural block diagram of a car amplifier system based on a Bluetooth chip provided in an embodiment of the present application. The car amplifier system based on a Bluetooth chip in an embodiment of the present application can be applied to a car amplifier, which is provided with a Bluetooth chip and an operational amplifier chip, and optionally also includes buttons, a display unit, a microphone, and a speaker. Figure 1 As shown, the Bluetooth chip-based car amplifier system of this embodiment includes:

[0050] A key function module 11 is configured to continuously collect key voltages based on the ADC pin of the Bluetooth chip, calculate a first voltage average of the key voltages, and determine a target key state corresponding to the first voltage average, wherein different keys correspond to different key voltage ranges;

[0051] A tuning function module 12 is configured to calculate, based on the DMA channel of the Bluetooth chip, a second voltage average value of the voltage values ​​continuously collected by the ADC pin, determine target tuning data corresponding to the second voltage average value, and copy the target tuning data to a DSP interface function to implement a tuning function;

[0052] The upgrade function module 13 is used to perform over-the-air upgrade based on the Bluetooth chip.

[0053] In this embodiment, for the key function module, one ADC pin of the Bluetooth chip is used to detect multiple key states simultaneously, solving the problem that the Bluetooth chip pins are insufficient to realize 5 to 12 key functions. Figure 2 and Figure 3 As shown in the figure, since the voltage of each button is low and there are differences (such as 2.6V, 2.2V, 1.8V, 1.4V, 1.0V, 0.6V), multiple buttons use the same ADC pin to identify the button voltage, so as to identify the currently triggered target button based on the button voltage. At the same time, due to the external power supply fluctuations and pulse interference in the vehicle equipment environment, the following problems are encountered: Figure 3 The detection circuit uses multiple filter stabilizing capacitors to filter out clutter and reduce signal interference, and the ADC pin collects multiple key voltages for numerical averaging to obtain a more accurate key input status.

[0054] The tuning module uses the Bluetooth chip's DMA channel as a child thread to handle DSP tuning action responses. For example, volume, bass, treble, and reverberation adjustments can be handled independently in the DMA background, bypassing the Bluetooth chip's thread, thus implementing the DSP tuning function.

[0055] In traditional car amplifier solutions, multiple chips (MCU, DSP, and Bluetooth) are required to complete the amplifier system. Upgrading requires a dedicated programmer plugged into a programming interface, making the upgrade difficult and cumbersome. This embodiment replaces the MCU and DSP chip functions with a Bluetooth chip, requiring only the Bluetooth chip to be upgraded. The Bluetooth chip can then be connected to a user terminal (such as a mobile phone) via Bluetooth, enabling remote upgrades through user terminal operations, significantly reducing the upgrade complexity.

[0056] In some embodiments, the key function module 11 is specifically used to:

[0057] Continuously collecting button voltage based on the ADC pin of the Bluetooth chip;

[0058] Calculating a first voltage average value of the button voltage based on a DMA function of the Bluetooth chip;

[0059] Based on a target button voltage determination range, a target button state corresponding to the first voltage average value is identified, where the target button voltage determination range includes correspondences between button voltage determination ranges corresponding to multiple buttons and button states.

[0060] In this embodiment, because multiple acquisitions of the button voltage by the ADC pin would consume significant MCU computing resources, and the Bluetooth chip itself is a standard MCU chip, it is difficult to perform such extensive computations in the main thread. Therefore, this embodiment uses the Bluetooth chip's DMA (Direct Memory Access) function to automatically monitor the ADC status multiple times in the background, without requiring the chip thread to participate. After monitoring the ADC status a preset number of times (e.g., 100 times), the average of the voltages acquired by the ADC is automatically calculated, significantly saving the Bluetooth chip's computing resources.

[0061] In some embodiments, before determining the target button voltage range and identifying the target button state corresponding to the first voltage average value based on the target button voltage, the method further includes:

[0062] The current ambient temperature collected by the temperature sensor is received based on the Bluetooth chip;

[0063] According to a preset adjustment strategy, based on the current ambient temperature, the key voltage judgment ranges of the various keys are adjusted to obtain the target key voltage judgment range.

[0064] In this embodiment, the temperature sensor can be a thermistor resistor with a relatively balanced cost and functionality. The key voltage determination range is adjusted based on the current ambient temperature to more accurately determine the status of multiple keys using the same ADC pin, thereby avoiding false positives.

[0065] In some embodiments, the system further includes a power adjustment module configured to:

[0066] Based on a preset correspondence between the ambient temperature and the output power of the vehicle amplifier, the output power of the vehicle amplifier corresponding to the current ambient temperature is adjusted.

[0067] In this embodiment, in desert areas or southern regions, the temperature of onboard equipment inside vehicles can easily reach as high as 80°C during the summer midday sun, causing traditional onboard amplifiers to burn out. Therefore, this embodiment dynamically controls the output power of the onboard amplifier based on ambient temperature changes, achieving maximum output at room temperature while preventing burnout in high-temperature environments.

[0068] For example, the temperature data of the car amplifier under different ambient temperatures were tested in the laboratory. The test method was: the temperature was kept constant in the high and low temperature box in the laboratory for 2 hours, and after the power was turned on for 1 hour, the surface temperature of the chip was tested using a contact temperature probe. The test results are shown in Table 1. It is understandable that different prototypes have different heat dissipation effects, and there will be temperature differences in the actual measurement.

[0069] Table 1 Heating temperature data of car amplifier at different ambient temperatures

[0070]

[0071] Alternatively, since the chip is easily damaged if the overheat protection is triggered too many times, which greatly increases the probability of frequent malfunctions and repairs of the car amplifier, the output can be set to 100% below the chip overheat protection level. For example, when the ambient temperature is 65°C and the output power is 100%, the chip will trigger overheat protection, so instead of using 100%, the output power can be set to 80%.

[0072] In some embodiments, the tuning function module 12 is specifically configured to:

[0073] Activate the DMA function of the Bluetooth chip and configure the DMA channel to automatically obtain the voltage values ​​continuously collected by the ADC pin;

[0074] Based on the DMA channel, performing discrete analysis and average calculation on consecutive preset voltage values ​​to obtain the second voltage average value;

[0075] determining target tuning data corresponding to the second voltage average value based on a preset correspondence between voltage values ​​and tuning data;

[0076] The target tuning data is copied to the DSP interface function to implement the tuning function.

[0077] In this embodiment, the application app of the car amplifier is initialized and configured after it is run, and the DMA function is enabled. The DMA is configured to automatically collect the voltage value of the ADC pin. After collecting the voltage value a preset number of times (such as 20 times), the voltage value is analyzed for discreteness, that is, the maximum and minimum voltage values ​​are eliminated, and then the remaining voltage values ​​are averaged to obtain a more accurate ADC voltage value. After the DMA obtains the accurate ADC voltage value, it automatically converts it into the tuning data such as volume value, bass value, treble value or reverberation value required by the chip, and then copies the tuning data to the DSP interface function to trigger it to take effect, realizing the real-time tuning function of the DSP function.

[0078] The voltage value collected by the ADC is related to the reference voltage. For example, if the ADC reference voltage is 3.3V and the ADC is set to 12-bit precision, the voltage value range collected is 2 12 =4096. When the ADC samples 0V voltage, the ADC value is 0. When the ADC samples 1.65V voltage, the ADC value is 2048. When the ADC samples 3.3V voltage, the ADC value is 4096. The details are shown in Table 2:

[0079] Table 2 Correspondence between ADC value and reference voltage

[0080]

[0081]

[0082] It can be seen that the reference voltage and the ADC value are in a nearly linear relationship. Above 3V, the gain coefficient α can be used to fine-tune the ADC value to obtain a more accurate voltage value.

[0083] In some embodiments, the upgrade function module 13 is specifically configured to:

[0084] When the Bluetooth chip is powered on, the official boot program of the Bluetooth chip is loaded, and based on the official boot program, whether a first upgrade file is available is detected, where the first upgrade file is a USB flash drive upgrade file or a debug upgrade file;

[0085] If there is no first upgrade file, jump to the preset boot program, and based on the preset boot program, detect whether there is a second upgrade file in the preset upgrade buffer, where the second upgrade file is an over-the-air upgrade file;

[0086] If the preset upgrade buffer has the second upgrade file, the machine code of the second upgrade file is overwritten into the flash space for executing the machine code, thereby realizing over-the-air upgrade.

[0087] In this embodiment, if Figure 4 As shown, the official bootloader for Bluetooth chips is the bootloader, which can only be upgraded via a USB flash drive or a dedicated debug interface. The available flash memory in the Bluetooth chip is divided into three program areas: user boot (i.e., the default bootloader), regular applications (i.e., the Bluetooth chip's applications), and a buffer for upgrades (i.e., the default upgrade buffer). When a second upgrade file is detected in the default upgrade buffer, it is overwritten with the application's flash memory (i.e., the flash memory used to execute machine code), effectively upgrading the original application.

[0088] In some embodiments, detecting whether the preset upgrade buffer has a second upgrade file includes:

[0089] detecting whether a target flag of the preset upgrade buffer is a first preset value, and if the target flag is the first preset value, determining that the preset upgrade buffer has the second upgrade file;

[0090] Furthermore, after overwriting the machine code of the second upgrade file into the flash space for executing the machine code, the method further includes:

[0091] The target flag of the preset upgrade buffer is reset to a second preset value.

[0092] In this embodiment, the first preset value and the second preset value are different values. For example, the first preset value may be 1, and the second preset value may be 0. When the target flag bit of the preset upgrade buffer is 1, it indicates that a new upgrade package (i.e., the second upgrade file) is present in the preset upgrade buffer. After the machine code is overwritten, the target flag bit is reset to 0 to prevent the Bluetooth chip from being overwritten again the next time it is restarted.

[0093] In some embodiments, after detecting whether the preset upgrade buffer has the second upgrade file, the method further includes:

[0094] If the second upgrade file does not exist, jump to the first line of execution machine code in the application of the Bluetooth chip and read the interrupt function of the Bluetooth peripheral;

[0095] When the interrupt function has preset data content, the application based on the Bluetooth chip performs a protocol handshake with the Bluetooth peripheral;

[0096] When the protocol handshake succeeds, obtaining the second upgrade file, copying the second upgrade file to the preset upgrade buffer, and verifying the second upgrade file in the preset upgrade buffer;

[0097] When the second upgrade file is verified successfully, the Bluetooth chip is restarted and the process returns to the step of loading the official boot program of the Bluetooth chip.

[0098] In this embodiment, the boot program will jump to the first line of the application to execute the machine code, which is equivalent to handing over the control of the chip to the application. After the Bluetooth chip application is run, it is divided into multiple threads. The main thread is responsible for conventional operations such as buttons, knobs, and adjusting the output amplifier power, and the secondary thread is responsible for continuously reading the interrupt function of the Bluetooth peripheral. When the interrupt function of the data interaction of the Bluetooth peripheral or networked device receives preset data content (for example, 0xa5 0x5a0x55 0x00 0xbb 0xcc 0xaa data stream), it is determined that the external device wants to upgrade the Bluetooth chip over the air via Bluetooth or a networked device. At this time, the application of the Bluetooth chip performs a protocol handshake with the external device (informing the Bluetooth chip of the app version number to be upgraded, size (number of bytes) and CRC check code, etc.). After copying the second upgrade file and verifying that it is correct, restart the Bluetooth chip and return to the first step to form a perfect closed loop.

[0099] In some embodiments, obtaining the second upgrade file includes:

[0100] Sending code acquisition requests to the Bluetooth peripheral device in batches, and receiving application execution codes returned by the Bluetooth peripheral device in response to the code acquisition requests in sequence, to obtain the second upgrade file.

[0101] In this embodiment, after the protocol handshake between the Bluetooth chip application and the external device, the application execution code to be upgraded will be requested in batches (1024 bytes (1KB) of data will be requested at a time, divided into N times according to the size of the app to be upgraded), and then copied to the upgrade buffer.

[0102] In some embodiments, before restarting the Bluetooth chip, the method further includes:

[0103] The target flag of the preset upgrade buffer is changed to a first preset value.

[0104] In this embodiment, the second upgrade file is copied to the preset upgrade buffer. In order to enable the Bluetooth chip to detect the over-the-air upgrade when it is subsequently restarted, the target flag bit of the preset upgrade buffer is changed to 1.

[0105] In several embodiments provided in the present application, it is understood that each box in the flow chart or block diagram can represent a part of a module, program segment or code, and the part of the module, program segment or code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which depends on the functions involved.

[0106] The specific embodiments described above further illustrate the objectives, technical solutions, and beneficial effects of this application. It should be understood that the above descriptions are merely specific embodiments of this application and are not intended to limit the scope of protection of this application. In particular, it should be noted that any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this application by those skilled in the art should be included within the scope of protection of this application.

Claims

1. A car amplifier system based on Bluetooth chip, characterized in that: include: a key function module, configured to continuously collect key voltages based on the ADC pin of the Bluetooth chip, calculate a first voltage average of the key voltages, and determine a target key state corresponding to the first voltage average, wherein different keys correspond to different key voltage ranges; A tuning function module is configured to calculate, based on the DMA channel of the Bluetooth chip, a second voltage average value of the voltage values ​​continuously collected by the ADC pin, determine target tuning data corresponding to the second voltage average value, and copy the target tuning data to a DSP interface function to implement a tuning function; The upgrade function module is used to perform over-the-air upgrade based on the Bluetooth chip.

2. The car amplifier system based on Bluetooth chip according to claim 1, characterized in that: The key function module is specifically used to: Continuously collecting button voltage based on the ADC pin of the Bluetooth chip; Calculating a first voltage average value of the button voltage based on a DMA function of the Bluetooth chip; Based on a target button voltage determination range, a target button state corresponding to the first voltage average value is identified, where the target button voltage determination range includes correspondences between button voltage determination ranges corresponding to multiple buttons and button states.

3. The Bluetooth chip-based car amplifier system according to claim 2, characterized in that: Before determining the target key state corresponding to the first voltage average value based on the target key voltage determination range, the method further includes: The current ambient temperature collected by the temperature sensor is received based on the Bluetooth chip; According to a preset adjustment strategy, based on the current ambient temperature, the key voltage judgment ranges of the various keys are adjusted to obtain the target key voltage judgment range.

4. The car-mounted power amplifier system based on a Bluetooth chip according to claim 1, characterized in that: Also includes a power conditioning module for: Based on the preset correspondence between the ambient temperature and the output power of the vehicle amplifier, the output power of the vehicle amplifier corresponding to the current ambient temperature is adjusted.

5. The car amplifier system based on Bluetooth chip according to claim 1, characterized in that: The tuning function module is specifically used to: Activate the DMA function of the Bluetooth chip and configure the DMA channel to automatically obtain the voltage values ​​continuously collected by the ADC pin; Based on the DMA channel, performing discrete analysis and average calculation on consecutive preset voltage values ​​to obtain the second voltage average value; determining target tuning data corresponding to the second voltage average value based on a preset correspondence between voltage values ​​and tuning data; The target tuning data is copied to the DSP interface function to implement the tuning function.

6. The Bluetooth chip-based car amplifier system according to claim 1, characterized in that: The upgrade function module is specifically used to: When the Bluetooth chip is powered on, the official boot program of the Bluetooth chip is loaded, and based on the official boot program, whether a first upgrade file is available is detected, where the first upgrade file is a USB flash drive upgrade file or a debug upgrade file; If there is no first upgrade file, jump to the preset boot program, and based on the preset boot program, detect whether there is a second upgrade file in the preset upgrade buffer, where the second upgrade file is an over-the-air upgrade file; If the preset upgrade buffer has the second upgrade file, the machine code of the second upgrade file is overwritten into the flash space for executing the machine code, thereby realizing over-the-air upgrade.

7. The car-mounted power amplifier system based on a Bluetooth chip as claimed in claim 6, characterized in that: The detecting whether the preset upgrade buffer has the second upgrade file includes: detecting whether a target flag of the preset upgrade buffer is a first preset value, and if the target flag is the first preset value, determining that the preset upgrade buffer has the second upgrade file; Furthermore, after overwriting the machine code of the second upgrade file into the flash space for executing the machine code, the method further includes: The target flag of the preset upgrade buffer is reset to a second preset value.

8. The Bluetooth chip-based vehicle amplifier system according to claim 6, characterized in that: After detecting whether the preset upgrade buffer has the second upgrade file, the method further includes: If the second upgrade file does not exist, jump to the first line of execution machine code in the application of the Bluetooth chip and read the interrupt function of the Bluetooth peripheral; When the interrupt function has preset data content, the application based on the Bluetooth chip performs a protocol handshake with the Bluetooth peripheral; When the protocol handshake succeeds, obtaining the second upgrade file, copying the second upgrade file to the preset upgrade buffer, and verifying the second upgrade file in the preset upgrade buffer; When the second upgrade file is verified successfully, the Bluetooth chip is restarted and the process returns to the step of loading the official boot program of the Bluetooth chip.

9. The car-mounted power amplifier system based on a Bluetooth chip as claimed in claim 8, characterized in that: The obtaining of the second upgrade file includes: Sending code acquisition requests to the Bluetooth peripheral device in batches, and receiving application execution codes returned by the Bluetooth peripheral device in response to the code acquisition requests in sequence, to obtain the second upgrade file.

10. The car-mounted power amplifier system based on a Bluetooth chip according to claim 8, characterized in that: Before restarting the Bluetooth chip, the method further includes: The target flag of the preset upgrade buffer is changed to a first preset value.

Citation Information

Patent Citations

  • Car machine, intelligent mobile terminal, and corresponding connection control method and system

    CN106027808A

  • Rotary key, control method thereof and wearable equipment

    CN112565966A

  • Audio Bluetooth control circuit based on voice control

    CN119402845A

  • Automobile central control system

    CN208164935U

  • Onboard device upgrade method, device, system and computer storage medium

    WO2018041061A1