Vehicle-mounted controller control method and device based on wired earphone, electronic equipment and storage medium

By detecting the wired headphone jack and voltage, the vehicle controller is controlled to enter different startup modes, solving the problem of disassembling the vehicle controller when it malfunctions and achieving differentiated control without hardware modifications.

CN121559943APending Publication Date: 2026-02-24SOFTSTONE RUILIAN (JIANGXI) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511773822.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-11-28
Publication Date
2026-02-24

AI Technical Summary

Technical Problem

In case of a malfunction, the vehicle controller requires disassembling the casing and reflashing the firmware, which is time-consuming and labor-intensive. There is a lack of methods for differentiated control without modifying the hardware.

Method used

By detecting whether headphones are plugged into the wired headphone jack and determining the voltage at the preset contacts on the headphones, the control signal generated by the headphone buttons is used to control the vehicle controller to enter different startup modes without disassembling the device.

Benefits of technology

It enables differentiated control of the vehicle controller during the boot phase, eliminating the hassle of disassembly and simplifying the maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121559943A_ABST
    Figure CN121559943A_ABST
Patent Text Reader

Abstract

The invention discloses a vehicle-mounted controller control method and device based on a wired earphone, electronic equipment and a storage medium, and the method comprises the steps: detecting whether an earphone is inserted into an earphone interface configured on a vehicle-mounted controller or not when the vehicle-mounted controller enters a bootstrap program stage; the earphone is a wired earphone, and a first wire harness is configured in the earphone; the first wire harness is used for transmitting a control signal, and the control signal is generated by controlling a key on the earphone; under the condition that the earphone is inserted, detecting a first voltage at a preset contact on the earphone, and judging whether the first voltage is smaller than a first preset voltage or not; when the first voltage is smaller than the first preset voltage, the vehicle-mounted controller is controlled to enter a first starting mode; and when the first voltage is not smaller than the first preset voltage, the vehicle-mounted controller is controlled to enter a second starting mode. According to the scheme, differentiated control on the vehicle-mounted controller at the Boot stage can be realized by means of the earphone, and hardware does not need to be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of vehicle technology, and in particular to a vehicle controller control method, device, electronic device, and storage medium based on wired headphones. Background Technology

[0002] Once finalized, vehicle controllers are typically encased in a metal housing. For safety reasons, flashing jumpers are generally not provided on the housing. If the device malfunctions and fails to start, the housing must be disassembled for reflashing, a time-consuming and laborious process. Therefore, there is an urgent need for a method that allows control of the vehicle controller even under special circumstances. Summary of the Invention

[0003] This invention provides a vehicle controller control method, device, electronic device, and storage medium based on wired headphones. It enables differentiated control of the vehicle controller during the boot phase using headphones without the need for hardware modifications, thus eliminating the hassle of disassembly.

[0004] In a first aspect, the present invention provides a vehicle controller control method based on wired headphones, comprising:

[0005] When the vehicle controller enters the boot program stage, it is detected whether an earphone is inserted into the headphone jack configured on the vehicle controller; the earphone is a wired earphone, and the earphone is configured with a first wire harness; the first wire harness is used to transmit control signals, which are generated by controlling the buttons on the earphone;

[0006] When an earphone is plugged in, a first voltage at a preset contact on the earphone is detected, and it is determined whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness.

[0007] When the first voltage is less than the first preset voltage, the vehicle controller is controlled to enter the first startup mode; the first startup mode is used to control the vehicle controller to enter the preset control mode before entering the application stage;

[0008] When the first voltage is not less than the first preset voltage, the vehicle controller is controlled to enter the second startup mode; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

[0009] Secondly, the present invention also provides a vehicle controller control device based on wired headphones, comprising:

[0010] The headphone detection module is used to detect whether a headphone is inserted into the headphone jack configured on the vehicle controller when the vehicle controller enters the boot program stage; the headphone is a wired headphone, and the headphone is configured with a first wire harness; the first wire harness is used to transmit control signals, which are generated by controlling the buttons on the headphone;

[0011] A voltage detection module is used to detect a first voltage at a preset contact on the earphone when the earphone is plugged in, and to determine whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness.

[0012] The first startup module is used to control the vehicle controller to enter a first startup mode when the first voltage is less than a first preset voltage; the first startup mode is used to control the vehicle controller to enter a preset control mode before entering the application stage.

[0013] The second startup module is used to control the vehicle controller to enter the second startup mode when the first voltage is not less than the first preset voltage; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

[0014] Thirdly, this invention also provides an electronic device, comprising:

[0015] One or more processors;

[0016] Storage device for storing one or more programs.

[0017] When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle controller control method based on wired headphones as provided in any embodiment of the present invention.

[0018] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the vehicle controller control method based on wired headphones provided in any embodiment of the present invention.

[0019] The technical solution of this invention involves detecting whether a wired headset is inserted into the headphone jack on the vehicle controller when the vehicle controller enters the boot program stage. The headset contains a first wiring harness for transmitting control signals, which are generated by controlling buttons on the headset. If a headset is inserted, a first voltage at a preset contact on the headset is detected, and it is determined whether the first voltage is less than a first preset voltage. The preset contact is connected to the first wiring harness. When the first voltage is less than the first preset voltage, the vehicle controller is controlled to enter a first startup mode. This first startup mode controls the vehicle controller to enter a preset control mode before entering the application program stage. When the first voltage is not less than the first preset voltage, the vehicle controller is controlled to enter a second startup mode. This second startup mode controls the vehicle controller to normally enter the application program stage after the boot program stage. Using this solution, the vehicle controller can be detected and controlled during the Boot stage (i.e., the boot program stage), specifically through a wired headset with a first wiring harness. The detection of the voltage at the preset contact on the headset is introduced during the Boot stage, thereby determining which startup mode the vehicle controller should enter based on the voltage detection result. This solution requires no hardware modifications, saving the trouble of disassembling the device, and allows for differentiated control of the vehicle controller during the boot phase using headphones.

[0020] The above description of the invention is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description

[0021] The above and other features, advantages, and aspects of the various embodiments of the present invention will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale.

[0022] Figure 1 This is a flowchart illustrating a vehicle controller control method based on wired headphones, provided in an embodiment of the present invention.

[0023] Figure 2 This is a structural effect diagram of an earphone inserted into an earphone jack according to an embodiment of the present invention;

[0024] Figure 3 This is a flowchart illustrating another vehicle controller control method based on wired headphones provided in an embodiment of the present invention.

[0025] Figure 4This is a timing diagram for controlling an in-vehicle controller based on a wired headset, provided as an embodiment of the present invention.

[0026] Figure 5 A schematic diagram of the structure of a vehicle controller control device based on wired headphones provided in an embodiment of the present invention;

[0027] Figure 6 This is a schematic diagram of the structure of an electronic device that implements a vehicle controller control method based on wired headphones, as provided in an embodiment of the present invention. Detailed Implementation

[0028] Embodiments of the present invention will now be described in more detail with reference to the accompanying drawings. While some embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the invention. It should be understood that the accompanying drawings and embodiments are for illustrative purposes only and are not intended to limit the scope of protection of the invention.

[0029] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0030] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0031] It should be noted that the concepts of "first" and "second" mentioned in this invention are only used to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0032] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0033] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0034] Figure 1This is a flowchart illustrating a vehicle controller control method based on a wired headset, provided in an embodiment of the present invention. This embodiment is applicable to situations involving the startup or control of a vehicle controller. The method can be executed by a vehicle controller control device based on a wired headset. This device can be implemented in software and / or hardware and is generally integrated into any electronic device with network communication capabilities, such as a mobile terminal, PC, or server. Figure 1 As shown, the vehicle controller control method based on wired headphones according to an embodiment of the present invention may include the following process:

[0035] S110. When the vehicle controller enters the boot program stage, it is detected whether an earphone is inserted into the headphone jack configured on the vehicle controller; the earphone is a wired earphone and is equipped with a first wiring harness; the first wiring harness is used to transmit control signals, which are generated by controlling the buttons on the earphone.

[0036] The bootloader stage refers to the initialization of hardware and related parameters, as well as application verification.

[0037] In this embodiment, the earphone used is a wired earphone with in-line control functionality. For example, the earphone may be equipped with physical buttons, which can be used to control different functions. Furthermore, the earphone also includes a first wiring harness for transmitting control signals, specifically generated by pressing the buttons on the earphone. For instance, the first wiring harness can be a custom-made harness compatible with the earphone's original wiring harness. When a physical button on the earphone is pressed, a corresponding control signal is generated, which can be transmitted via the first wiring harness in the form of different voltage values.

[0038] Specifically, after the vehicle controller is powered on, it enters the boot process, which involves loading the corresponding boot program. During the boot process, it checks whether headphones are plugged into the headphone jack on the vehicle controller.

[0039] S120. When the earphone is plugged in, detect the first voltage at the preset contact on the earphone and determine whether the first voltage is less than the first preset voltage; the preset contact is connected to the first wire harness.

[0040] In this context, a preset contact can be understood as a contact on the headphones that is pre-set to represent specific information. A preset contact can be a single contact selected from multiple contacts provided with the headphone jack. For example, taking TRRS (Tip-Ring-Ring-Sleeve) headphones as an example, this type of headphone contains the following four contacts: Contact 1: located at the tip, corresponding to the left channel (L); Contact 2: located at the first middle ring (Ring 1), corresponding to the right channel (R); Contact 3: located at the second middle ring (Ring 2), corresponding to the microphone (MIC) or control signal; Contact 4: located at the sleeve, corresponding to the ground wire (GNS). Therefore, contact 3 can be selected as the preset contact based on actual needs, and this contact 3 can be connected to the first wire in the headphone cable harness.

[0041] The first voltage is the voltage actually detected at the preset contact. Correspondingly, the first preset voltage can be understood as a pre-set reference voltage, which is used to determine whether a control signal has been generated on the earphone; it's essentially a threshold value for voltage judgment. For example, if no control signal is pressed, then the corresponding level is high; conversely, if no control signal is generated, the corresponding voltage is 0V.

[0042] Specifically, when headphones are plugged in, the system can continue to detect the first voltage at a preset contact on the headphones and determine whether the first voltage is less than a first preset voltage. For example, Figure 2 This is a structural effect diagram of an earphone inserted into an earphone jack according to an embodiment of the present invention. Figure 2 As shown, the custom wiring harness is the first wiring harness, and the earphone can be plugged into the headphone jack configured on the vehicle controller.

[0043] S130. When the first voltage is less than the first preset voltage, control the vehicle controller to enter the first startup mode; the first startup mode is used to control the vehicle controller to enter the preset control mode before entering the application stage.

[0044] The preset control mode can be understood as a special startup mode that is set in advance. The preset control mode can be preset based on actual needs. For example, the preset control mode may include at least one of the following: upgrade mode, diagnostic mode, waiting mode, and flashing mode.

[0045] Specifically, when the first voltage is less than the first preset voltage, it means that the headphones have been inserted and a control signal has been generated (e.g., the button on the headphones has been pressed). This causes the first voltage detected at the preset contact point to be less than the first preset voltage, which allows the vehicle controller to enter the first start-up mode.

[0046] It should be noted that, under normal circumstances, after completing the Boot phase (i.e., the bootloader phase), the vehicle controller will normally enter the application phase. However, the first startup mode in this embodiment is used to control the vehicle controller to enter a preset control mode before entering the application phase. That is to say, the vehicle controller is not allowed to directly enter the application phase, but instead enters another startup mode, namely the preset control mode.

[0047] As an optional but non-limiting implementation, after the vehicle controller enters the first startup mode, the method includes: displaying a first prompt message on the display screen associated with the vehicle controller; the first prompt message is used to indicate that the vehicle controller has entered the first startup mode.

[0048] The display screen can be either an LED screen or an LCD screen.

[0049] Specifically, after the vehicle controller enters the first startup mode, a first prompt message will be displayed on the display screen associated with the vehicle controller to indicate that the vehicle controller has entered the first startup mode, thereby facilitating subsequent interaction with the user.

[0050] S140. When the first voltage is not less than the first preset voltage, control the vehicle controller to enter the second startup mode; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

[0051] Specifically, when the first voltage is not less than the first preset voltage, it means that although the headphones have been plugged in, no button control may have been performed, and therefore no corresponding control signal has been generated. In this case, the vehicle controller can be controlled to enter the second startup mode. The second startup mode is used to control the vehicle controller to enter the application stage normally after the boot program stage, that is, to start up according to the normal startup process.

[0052] The technical solution of this invention involves detecting whether a wired headset is inserted into the headphone jack on the vehicle controller when the vehicle controller enters the boot program stage. The headset contains a first wiring harness for transmitting control signals, which are generated by controlling buttons on the headset. When a headset is inserted, a first voltage at a preset contact on the headset is detected, and it is determined whether the first voltage is less than a first preset voltage. The preset contact is connected to the first wiring harness. When the first voltage is less than the first preset voltage, the vehicle controller is controlled to enter a first startup mode. The first startup mode controls the vehicle controller to enter a preset control mode before entering the application program stage. When the first voltage is not less than the first preset voltage, the vehicle controller is controlled to enter a second startup mode. The second startup mode controls the vehicle controller to normally enter the application program stage after the boot program stage. This solution allows for detection and control of the vehicle controller during the Boot stage (i.e., the boot program stage), specifically achieved using a wired headset with a first wiring harness. The detection of the voltage at the preset contact on the headset is introduced during the Boot stage, thereby determining which startup mode the vehicle controller should enter based on the voltage detection result. This solution requires no hardware modifications, saving the trouble of disassembling the device, and allows for differentiated control of the vehicle controller during the boot phase using headphones.

[0053] Figure 3 This is a flowchart illustrating another vehicle controller control method based on wired headphones provided by an embodiment of the present invention. The technical solution of this embodiment further optimizes the process of controlling the vehicle controller to enter the first startup mode when the first voltage is less than the first preset voltage, based on the technical solutions of the above embodiments. This embodiment can be combined with various optional solutions in one or more of the above embodiments. Figure 3 As shown, the vehicle controller control method based on wired headphones according to an embodiment of the present invention may include the following process:

[0054] S310. When the vehicle controller enters the boot program stage, it is detected whether an earphone is inserted into the headphone jack configured on the vehicle controller; the earphone is a wired earphone and is equipped with a first wiring harness; the first wiring harness is used to transmit control signals, which are generated by controlling the buttons on the earphone.

[0055] S320. When an earphone is plugged in, detect the first voltage at a preset contact on the earphone and determine whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness.

[0056] As an optional but non-limiting implementation, a preset resistor is configured on the first wiring harness; correspondingly, detecting the first voltage at a preset contact on the earphone includes: detecting the first voltage at the preset contact on the earphone via an analog-to-digital converter.

[0057] An analog-to-digital converter (ADC) is an electronic component that converts continuously changing analog signals into discrete digital signals.

[0058] Specifically, the first wiring harness is equipped with a preset resistor, the value of which can be set based on the ADC sampling voltage. That is, one end of the first wiring harness is connected to a preset contact on the headphone jack, and the other end is connected to the preset resistor. This allows for voltage control via the preset resistor when the headphones are controlled by buttons, thus transmitting different control information. Correspondingly, detecting the first voltage at the preset contact on the headphones can be achieved through an analog-to-digital converter.

[0059] S330: When the first voltage is less than the first preset voltage, determine the target signal type based on the duration of the second voltage detected at the preset contact.

[0060] The second voltage can be understood as a further voltage received at a preset contact. The target signal type indicates the signal type of the control signal identified based on the currently detected voltage. The signal type is closely related to the duration of the second voltage and can be predefined and set according to actual needs.

[0061] Specifically, when the first voltage is less than the first preset voltage, the second voltage can continue to be detected from the preset contact, and the target signal type can be determined based on the duration of the detected second voltage at the preset contact.

[0062] Optionally, the target signal type is determined based on the duration of the detected second voltage at the preset contact point, including: determining the target signal type as a first signal type when the duration of the second voltage is greater than a time threshold; and determining the target signal type as a second signal type when the duration of the second voltage is not greater than the time threshold. The time threshold can be set differently based on actual needs. For example, the time threshold can be set to 1 second. When the duration of the detected second voltage at the preset contact point is greater than 1 second, it indicates that the button is being pressed for a long time, and the control signal at this time can be determined to be of the first signal type. Conversely, when the duration of the detected second voltage at the preset contact point is not greater than 1 second, it indicates that the button is being pressed for a short time, and the control signal at this time can be determined to be of the second signal type.

[0063] S340: Based on the target signal type, control the vehicle controller to enter the target control mode.

[0064] The target control mode can be understood as the mode that the vehicle controller needs to enter. This target control mode is one of the preset control modes.

[0065] Specifically, after determining the target signal type, the vehicle controller can be controlled to enter the target control mode based on the target signal type. For example, it can be pre-set which signal type corresponds to which control mode, so that the vehicle controller can be controlled to enter the target control mode after the target signal type is determined.

[0066] Optionally, based on the target signal type, the vehicle controller is controlled to enter the target control mode, including: determining the target control mode through a relational mapping table and the target signal type; the relational mapping table is used to indicate the mapping relationship between the signal type and the control mode; and controlling the vehicle controller to enter the target control mode.

[0067] Understandably, since there can be multiple preset control modes, and different control modes can be triggered by different signal types, there is a mapping relationship between signal types and control modes. This mapping relationship can be recorded using a relationship mapping table, which can be customized based on actual project requirements. For example, in the relationship mapping table, the first signal type might correspond to the diagnostic mode, while the second signal type might correspond to the flashing mode, and so on.

[0068] Specifically, after determining the target signal type, the corresponding control mode can be determined from the relationship mapping table by looking up a table. The obtained control mode is the target control mode, and then the vehicle controller can be controlled to enter the target control mode. For example, when the target signal type is the second signal type, the flashing mode of the target control mode can be determined through the relationship mapping table, and then the vehicle controller can be controlled to enter the flashing mode.

[0069] S350: When the first voltage is not less than the first preset voltage, control the vehicle controller to enter the second startup mode; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

[0070] The technical solution of this invention involves detecting whether a wired headset is inserted into the headphone jack on the vehicle controller when the vehicle controller enters the boot program stage. The headset contains a first wiring harness for transmitting control signals, which are generated by controlling buttons on the headset. If a headset is inserted, a first voltage at a preset contact on the headset is detected, and it is determined whether the first voltage is less than a first preset voltage. The preset contact is connected to the first wiring harness. When the first voltage is less than the first preset voltage, a target signal type is determined based on the duration of the detected second voltage at the preset contact. Based on the target signal type, the vehicle controller is controlled to enter a target control mode. When the first voltage is not less than the first preset voltage, the vehicle controller is controlled to enter a second startup mode. The second startup mode is used to control the vehicle controller to normally enter the application program stage after the boot program stage. This solution allows for detection and control of the vehicle controller during the Boot stage (i.e., the boot program stage), specifically achieved using a wired headset with a first wiring harness. The detection of the voltage at a preset contact on the headset is introduced during the Boot stage, thereby determining the startup mode to be entered based on the voltage detection result. This solution requires no hardware modifications, saving the trouble of disassembling the device, and allows for differentiated control of the vehicle controller during the boot phase using headphones.

[0071] Figure 4 This is a timing diagram illustrating the control of an in-vehicle controller based on wired headphones, provided as an embodiment of the present invention. Figure 4 As shown, the control method may include the following steps:

[0072] Step 1: When the vehicle controller is powered on, the CPU will load the boot program and start the boot phase.

[0073] Step 2: The bootloader will detect if headphones are plugged in. If headphones are plugged in, it will further detect the headphone control signals. For example, it will detect the voltage at contact 3 using an ADC. When the control signal is pressed, the voltage is 0V, and when it is not pressed, the voltage is high.

[0074] Step 3: After detecting low voltage, the system enters standby mode. At this time, the Boot system can control the LCD or LED to remind the user that the system has entered a special startup mode; and it will check the voltage level again to determine subsequent communication.

[0075] Step 4: Based on the detected level, trigger a special startup mode. For example, if the level detection determines it's a short press, then enter a corresponding preset control mode (e.g., flashing mode). Or, if the level detection determines it's a long press, then enter a corresponding preset control mode (e.g., diagnostic mode).

[0076] Step 5: Perform a specific operation and return after the operation is completed.

[0077] Using the solution in this embodiment, the vehicle controller can be detected and controlled during the Boot phase (i.e., the bootloader phase). Specifically, this is achieved using a wired headset equipped with a first wiring harness. During the Boot phase, the voltage at preset contacts on the headset is detected, and the boot mode of the vehicle controller is determined based on the voltage detection result. This solution requires no hardware modifications, eliminating the hassle of disassembly, and allows for differentiated control of the vehicle controller during the Boot phase using the headset.

[0078] Figure 5 This is a schematic diagram of a vehicle controller control device based on a wired headset, provided by an embodiment of the present invention. This embodiment is applicable to situations involving the activation or control of a vehicle controller. This wired headset-based vehicle controller control device can be implemented in software and / or hardware, and is generally integrated into any electronic device with network communication capabilities, such as a mobile terminal, PC, or server. Figure 5 As shown, the vehicle controller control device based on wired headphones according to an embodiment of the present invention may include a headphone detection module 510, a voltage detection module 520, a first start module 530, and a second start module 540. Wherein:

[0079] The headphone detection module 510 is used to detect whether a headphone is inserted into the headphone jack configured on the vehicle controller when the vehicle controller enters the boot program stage; the headphone is a wired headphone, and the headphone is configured with a first wire harness; the first wire harness is used to transmit control signals, which are generated by controlling the buttons on the headphone;

[0080] The voltage detection module 520 is used to detect a first voltage at a preset contact on the earphone when the earphone is inserted, and to determine whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness.

[0081] The first startup module 530 is used to control the vehicle controller to enter a first startup mode when the first voltage is less than the first preset voltage; the first startup mode is used to control the vehicle controller to enter a preset control mode before entering the application stage.

[0082] The second startup module 540 is used to control the vehicle controller to enter a second startup mode when the first voltage is not less than the first preset voltage; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

[0083] The technical solution of this invention involves a headphone detection module detecting whether a headphone is inserted into the headphone jack on the vehicle controller when the vehicle controller enters the boot program stage. The headphone is a wired headphone with a first wiring harness. This first wiring harness transmits control signals, which are generated by controlling buttons on the headphone. When a headphone is inserted, a voltage detection module detects a first voltage at a preset contact on the headphone and determines whether the first voltage is less than a first preset voltage. The preset contact is connected to the first wiring harness. When the first voltage is less than the first preset voltage, a first startup module controls the vehicle controller to enter a first startup mode. This first startup mode controls the vehicle controller to enter a preset control mode before entering the application program stage. When the first voltage is not less than the first preset voltage, a second startup module controls the vehicle controller to enter a second startup mode. This second startup mode controls the vehicle controller to normally enter the application program stage after the boot program stage. This solution allows for the detection and control of the vehicle controller during the Boot phase (i.e., the bootloader phase). Specifically, it utilizes a wired headset equipped with a first wiring harness. During the Boot phase, voltage detection is introduced at preset contacts on the headset, and the boot mode of the vehicle controller is determined based on the voltage detection results. This solution requires no hardware modifications, eliminating the hassle of disassembly, and allows for differentiated control of the vehicle controller during the Boot phase using the headset.

[0084] As an optional but non-limiting implementation, the first wiring harness is configured with a preset resistor; correspondingly, the voltage detection module 520 is specifically used to: detect the first voltage at the preset contact point on the earphone via an analog-to-digital converter.

[0085] As an optional but non-limiting implementation, the first startup module 530 includes a target signal type determination unit and a control unit. Wherein:

[0086] A target signal type determination unit is used to determine the target signal type based on the duration of the detected second voltage at the preset contact point;

[0087] The control unit is used to control the vehicle controller to enter the target control mode based on the target signal type.

[0088] As an optional but non-limiting implementation, the control unit includes a target control mode determination subunit and a control subunit. Wherein:

[0089] The target control mode determination subunit is used to determine the target control mode through a relational mapping table and the target signal type; the relational mapping table is used to indicate the mapping relationship between the signal type and the control mode.

[0090] The control subunit is used to control the vehicle controller to enter the target control mode.

[0091] As an optional but non-limiting implementation, the vehicle controller control device based on wired headphones further includes:

[0092] The prompting module is used to display a first prompt message on the display screen associated with the vehicle controller; the first prompt message is used to indicate that the vehicle controller has entered the first startup mode.

[0093] The vehicle controller control device based on wired headphones provided in this embodiment of the invention can be used to execute the vehicle controller control method based on wired headphones, and has the corresponding functional modules and beneficial effects for executing the vehicle controller control method based on wired headphones.

[0094] It is worth noting that the various units and modules included in the above-mentioned device are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of the present invention.

[0095] Figure 6 This is a schematic diagram of an electronic device that implements a vehicle controller control method based on wired headphones, as provided in an embodiment of the present invention. The following refers to... Figure 6 The diagram illustrates a structural schematic of an electronic device 610 suitable for implementing embodiments of the present invention. The terminal devices in these embodiments may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 6 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.

[0096] like Figure 6As shown, the electronic device 610 includes at least one processor 611 and a memory, such as a read-only memory (ROM) 612 and a random access memory (RAM) 613, communicatively connected to the at least one processor 611. The memory stores computer programs executable by the at least one processor. The processor 611 can perform various appropriate actions and processes based on the computer program stored in the ROM 612 or loaded from storage unit 618 into the RAM 613. The RAM 613 may also store various programs and data required for the operation of the electronic device 610. The processor 611, ROM 612, and RAM 613 are interconnected via a bus 614. An input / output (I / O) interface 615 is also connected to the bus 614.

[0097] Multiple components in electronic device 610 are connected to input / output (I / O) interface 615, including: input unit 616, such as keyboard, mouse, etc.; output unit 617, such as various types of monitors, speakers, etc.; storage unit 618, such as disk, optical disk, etc.; and communication unit 619, such as network card, modem, wireless transceiver, etc. Communication unit 619 allows electronic device 610 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0098] Processor 611 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 611 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 611 executes the in-vehicle controller control method based on wired headphones provided in any embodiment of the present invention.

[0099] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the wired headset-based vehicle controller control method shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication unit 619, or installed from storage unit 618, or installed from read-only memory (ROM) 612. When the computer program is executed by processor 611, it performs the functions defined in the wired headset-based vehicle controller control method of the embodiments of the present invention.

[0100] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.

[0101] The electronic device provided in this embodiment of the invention and the vehicle controller control method based on wired headphones provided in the above embodiment belong to the same inventive concept. Technical details not described in detail in this embodiment can be found in the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.

[0102] This invention provides a computer storage medium storing a computer program that, when executed by a processor, implements the vehicle controller control method based on wired headphones provided in the above embodiments.

[0103] It should be noted that the computer-readable medium described above in this invention can be a computer-readable signal medium, a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0104] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0105] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0106] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0107] The units described in the embodiments of the present invention can be implemented in software or in hardware. The names of the units are not, in some cases, intended to limit the specific unit.

[0108] The functions described above in this document can be performed at least in part by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), system-on-a-chip (SoCs), complex programmable logic devices (CPLDs), and so on.

[0109] In the context of this invention, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media can include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0110] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.

[0111] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the invention. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0112] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative examples of implementing the claims.

Claims

1. A vehicle controller control method based on wired headphones, characterized in that, The method includes: When the vehicle controller enters the boot program stage, it is detected whether an earphone is inserted into the headphone jack configured on the vehicle controller; the earphone is a wired earphone, and the earphone is configured with a first wire harness; the first wire harness is used to transmit control signals, which are generated by controlling the buttons on the earphone; When the earphone is plugged in, the first voltage at a preset contact on the earphone is detected, and it is determined whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness. When the first voltage is less than the first preset voltage, the vehicle controller is controlled to enter the first startup mode; the first startup mode is used to control the vehicle controller to enter the preset control mode before entering the application stage; When the first voltage is not less than the first preset voltage, the vehicle controller is controlled to enter the second startup mode; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

2. The method according to claim 1, characterized in that, The first wire harness is equipped with a preset resistor; Accordingly, detecting the first voltage at the preset contact point on the earphone includes: The first voltage at a preset contact on the earphone is detected by an analog-to-digital converter.

3. The method according to claim 1, characterized in that, The step of controlling the vehicle controller to enter the first startup mode when the first voltage is less than the first preset voltage includes: The target signal type is determined based on the duration of the second voltage detected at the preset contact point; Based on the target signal type, the vehicle controller is controlled to enter the target control mode.

4. The method according to claim 3, characterized in that, The step of controlling the vehicle controller to enter the target control mode based on the target signal type includes: The target control mode is determined by using a relationship mapping table and the target signal type; the relationship mapping table is used to indicate the mapping relationship between signal type and control mode. The vehicle controller is controlled to enter the target control mode.

5. The method according to claim 1, characterized in that, After controlling the vehicle controller to enter the first startup mode, the following steps are included: A first prompt message is displayed on the display screen associated with the vehicle controller; the first prompt message is used to indicate that the vehicle controller has entered the first startup mode.

6. A vehicle-mounted controller control device based on wired headphones, characterized in that, The device includes: The headphone detection module is used to detect whether a headphone is inserted into the headphone jack configured on the vehicle controller when the vehicle controller enters the boot program stage; the headphone is a wired headphone, and the headphone is configured with a first wire harness; the first wire harness is used to transmit control signals, which are generated by controlling the buttons on the headphone; A voltage detection module is used to detect a first voltage at a preset contact on the earphone when the earphone is plugged in, and to determine whether the first voltage is less than a first preset voltage; the preset contact is connected to the first wire harness. The first startup module is used to control the vehicle controller to enter a first startup mode when the first voltage is less than a first preset voltage; the first startup mode is used to control the vehicle controller to enter a preset control mode before entering the application stage. The second startup module is used to control the vehicle controller to enter the second startup mode when the first voltage is not less than the first preset voltage; the second startup mode is used to control the vehicle controller to normally enter the application stage after the boot program stage.

7. An electronic device, characterized in that, The electronic device includes: One or more processors; Storage device for storing one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the vehicle controller control method based on wired headphones as described in any one of claims 1-5.

8. A storage medium containing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the vehicle controller control method based on wired headphones as described in any one of claims 1-5.