A control method, device and controller
By acquiring and analyzing the collected signals to determine the target software program, the problem of high hardware development costs of vehicle controllers is solved, and the shared hardware development of functions similar to controllers is realized, reducing costs.
Patent Information
- Application Number
- CN202211103150.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-09
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2042-09-09
AI Technical Summary
In the prior art, the controller on the vehicle needs to develop corresponding hardware for each controller with similar functions, resulting in higher hardware development costs.
By acquiring the target acquisition signal and based on the correspondence between the acquisition signal and the software program, the target software program corresponding to the target acquisition signal is determined, and the software program is then run.
Reduces the hardware development cost of controllers and uses shared hardware development to suit controllers with similar functions.
Smart Images

Figure CN115685802B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicles, and in particular to a control method, device and controller. Background Art
[0002] There are many controllers with similar functions in the vehicle, for example, controllers corresponding to each seat, controllers corresponding to each door, and so on.
[0003] Currently, corresponding hardware can be developed for each controller, which results in high hardware development costs for the controller. Therefore, a solution is urgently needed to solve the above problems. Summary of the invention
[0004] In order to solve or partially solve the above technical problems, the embodiments of the present application provide a control method, a device and a controller.
[0005] In a first aspect, an embodiment of the present application provides a control method, which is applied to a controller, and the method includes:
[0006] Acquire target acquisition signal;
[0007] Determining a target software program corresponding to the target acquisition signal based on a correspondence relationship between an acquisition signal and a software program, wherein the correspondence relationship includes a correspondence relationship between the target acquisition signal and the target software program;
[0008] The target software program is run.
[0009] Optionally, the acquiring the target acquisition signal includes:
[0010] A voltage signal corresponding to at least one acquisition point is collected.
[0011] Optionally, the at least one collection point includes at least one first collection point, the first collection point is a first pin of the controller, and the first collection point is connected to a first power supply through a first pull-up resistor.
[0012] Optionally, the at least one collection point includes at least one second collection point, wherein the first end of the second pull-up resistor is connected to the second power supply, the second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel, and the second collection point is the second end of the second pull-up resistor.
[0013] Optionally, the running of the target software program includes:
[0014] running the target software program pre-stored in the controller; or,
[0015] Run the target software program downloaded from the server.
[0016] In a second aspect, an embodiment of the present application provides a control device, applied to a controller, the device comprising:
[0017] An acquisition unit, used for acquiring a target acquisition signal;
[0018] a determining unit, configured to determine a target software program corresponding to the target acquisition signal based on a correspondence relationship between the acquisition signal and the software program, wherein the correspondence relationship includes a correspondence relationship between the target acquisition signal and the target software program;
[0019] The running unit is used to run the target software program.
[0020] Optionally, the acquisition unit is used to:
[0021] A voltage signal corresponding to at least one acquisition point is collected.
[0022] Optionally, the at least one collection point includes at least one first collection point, the first collection point is a first pin of the controller, and the first collection point is connected to a first power supply through a first pull-up resistor.
[0023] Optionally, the at least one collection point includes at least one second collection point, wherein the first end of the second pull-up resistor is connected to the second power supply, the second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel, and the second collection point is the second end of the second pull-up resistor.
[0024] Optionally, the operating unit is used to:
[0025] running the target software program pre-stored in the controller; or,
[0026] Run the target software program downloaded from the server.
[0027] In a third aspect, an embodiment of the present application provides a controller, the controller comprising a control unit and a peripheral circuit;
[0028] The control unit is used to obtain a target acquisition signal corresponding to the peripheral circuit, and based on a correspondence between a control signal acquisition signal and a software program, determine a target software program corresponding to the target control signal acquisition signal, and run the target software program, wherein the correspondence includes a correspondence between the target control signal acquisition signal and the target software program;
[0029] The peripheral circuit includes a first part and / or a second part,
[0030] The first part includes: a first pull-up resistor and a first power supply, and the first pin of the controller is connected to the first power supply through the first pull-up resistor;
[0031] The second part includes: a second pull-up resistor, a second power supply, a first resistor and a switch, wherein a first end of the second pull-up resistor is connected to the second power supply, and a second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel.
[0032] Optionally, the target acquisition signal includes: a voltage signal corresponding to at least one acquisition point; the at least one acquisition point includes: a first acquisition point and / or a second acquisition point; the first acquisition point is the first pin, and the second acquisition point is the second end of the second pull-up resistor.
[0033] In a fourth aspect, an embodiment of the present application provides a controller, comprising: a processor, a memory, and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute any one of the methods described in the first aspect above.
[0034] In a fifth aspect, an embodiment of the present application provides a vehicle, comprising: a controller for executing any of the methods described in the first aspect above.
[0035] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium. When the instructions are executed on a terminal device, the terminal device executes any of the methods described in the first aspect above.
[0036] Compared with the prior art, the embodiments of the present application have the following advantages:
[0037] The embodiment of the present application provides a control method, which can be applied to a controller. In one example, the controller can obtain a target acquisition signal, and based on the correspondence between the target acquisition signal and the software program, determine the target software program corresponding to the target acquisition signal, and the aforementioned correspondence includes the correspondence between the target acquisition signal and the target software program. After determining the target software program, the target software program can be run. Using the solution of the embodiment of the present application, for a controller with similar functions, a hardware can be developed, and based on the acquired target acquisition signal, the software program required to be executed by the controller can be determined, thereby reducing the hardware development cost of the controller. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 A flow chart of a control method provided in an embodiment of the present application;
[0040] Figure 2 A schematic diagram of a peripheral circuit of a controller provided in an embodiment of the present application;
[0041] Figure 3 A schematic diagram of the structure of a control device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0042] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0043] The inventor of the present application has found through research that there are many controllers with similar functions on a vehicle. Currently, corresponding hardware can be developed for each controller, which results in a high hardware development cost for the controller.
[0044] Furthermore, each controller looks similar, which can easily lead to errors when installing or stocking the controllers.
[0045] In order to solve the above problems, the embodiments of the present application provide a control method, a device and a controller.
[0046] Various non-limiting implementations of the present application are described in detail below in conjunction with the accompanying drawings.
[0047] Exemplary Methods
[0048] See also Figure 1 , which is a flow chart of a control method provided in an embodiment of the present application. In this embodiment, the method can be applied to a controller. The controller in the embodiment of the present application can be a controller on a vehicle, and the controller can be, for example, a microcontroller unit (MCU).
[0049] In an example, the method may include the following steps: S101 - S103 .
[0050] S101: Acquire target acquisition signal.
[0051] In an example, the target acquisition signal may be an acquisition signal sent by other controllers to the controller.
[0052] In another example, the target acquisition signal may be an acquisition signal acquired by the controller. For example, the controller may acquire an acquisition signal corresponding to at least one acquisition point to obtain the target acquisition signal. The acquisition signal corresponding to the at least one acquisition point may include a voltage signal. For example, the acquisition signal corresponding to the at least one acquisition point may include an acquisition signal corresponding to at least one first acquisition point and an acquisition signal corresponding to at least one second acquisition point, wherein the acquisition signal corresponding to the first acquisition point may be the voltage of the first acquisition point, and similarly, the acquisition signal corresponding to the second acquisition point may be the voltage corresponding to the second acquisition point.
[0053] In one example, the first collection point may be a first pin of the controller, and the collection point may be connected to a first power source through a first pull-up resistor. In this case, when the first pin is grounded, the voltage of the first collection point is 0, and when the first pin is suspended, the voltage of the first collection point is the voltage of the first power source.
[0054] In one example, the second collection point may be the second end of a second pull-up resistor. The first end of the second pull-up resistor is connected to a second power supply, and the second end of the second pull-up resistor is grounded via a first resistor and a switch connected in parallel. In this case, when the switch is closed, the voltage of the second collection point is 0, and when the switch is open, the voltage value of the second collection point is the divided voltage of the first resistor.
[0055] In one example, the first power source and the second power source may be the same power source. Of course, the first power source and the second power source may also be different power sources, which is not specifically limited in the embodiment of the present application.
[0056] The embodiment of the present application does not specifically limit the voltage of the first power supply and the voltage of the second power supply, and the voltage of the first power supply and the voltage of the second power supply can be determined according to actual conditions.
[0057] The embodiment of the present application does not specifically limit the resistance value of the first pull-up resistor, the resistance value of the second pull-up resistor, and the resistance value of the first resistor.
[0058] Regarding the first collection point and the second collection point, now combined Figure 2 Give an example. Figure 2 A schematic diagram of a controller peripheral circuit provided in an embodiment of the present application.
[0059] like Figure 2 As shown, the peripheral circuit of the controller includes: a first pin 210, the first pin is connected to a first power source V through a first pull-up resistor R1 上拉 The peripheral circuit of the controller also includes: 上拉 The second pull-up resistor R2 is connected to the ground through the first resistor R3 and the switch K1 in parallel.
[0060] The first collection point may be the first pin 210 , and the second collection point may be the second end 220 of the second pull-up resistor R2 .
[0061] In one example, the at least one acquisition point may include two first acquisition points, and the signals acquired by the two first acquisition points may be mutually verified, thereby preventing an erroneous signal acquired by a first acquisition point from being used to determine the target software program due to a circuit failure.
[0062] Similarly, in one example, the at least one acquisition point may include two second acquisition points, and the signals acquired by the two second acquisition points may be verified with each other, thereby preventing an erroneous signal acquired by a second acquisition point from being used to determine the target software program due to a circuit failure.
[0063] S102: Determine a target software program corresponding to the target acquisition signal based on a correspondence relationship between an acquisition signal and a software program, wherein the correspondence relationship includes a correspondence relationship between the target acquisition signal and the target software program.
[0064] In one example, the controller may pre-store a correspondence between an acquisition signal and a software program. After obtaining the target acquisition signal, the target software program corresponding to the target acquisition signal may be determined based on the correspondence and the target acquisition signal. The correspondence between the acquisition signal and the software program mentioned here may be a correspondence between the acquisition signal and the identifier of the software program. Accordingly, the "determining the target software program corresponding to the target acquisition signal" mentioned in S102 may be determining the identifier of the target software program.
[0065] Assumptions Figure 2 The resistance values of the first pull-up resistor, the second pull-up resistor and the first resistor are all 500 ohms, and the voltage of the power supply V is 5 volts. The corresponding relationship may be the corresponding relationship shown in Table 1, for example.
[0066] Table 1
[0067]
[0068] Regarding Table 1, it should be noted that:
[0069] The voltage corresponding to the first acquisition point is 0, indicating that the first pin is grounded, and the voltage corresponding to the second acquisition point is 0, indicating that the switch K1 is closed. Assuming that software program 1 is the software program corresponding to controlling the main driving window, when installing the controller, the first pin can be grounded and the switch K1 can be closed.
[0070] The voltage corresponding to the first acquisition point is 0, indicating that the first pin is grounded, and the voltage corresponding to the second acquisition point is 2.5, indicating that the switch K1 is disconnected. Assuming that software program 2 is the software program corresponding to controlling the co-driver's window, when installing the controller, the first pin can be grounded and the switch K1 can be disconnected.
[0071] The voltage corresponding to the first acquisition point is 5, indicating that the first pin is suspended, and the voltage corresponding to the second acquisition point is 0, indicating that the switch K1 is closed. Assuming that software program 3 is the software program corresponding to controlling the left rear window, when installing the controller, the first pin can be suspended and the switch K1 can be closed.
[0072] The voltage corresponding to the first acquisition point is 5, indicating that the first pin is suspended, and the voltage corresponding to the second acquisition point is 2.5, indicating that the switch K1 is disconnected. Assuming that software program 4 is the software program corresponding to the rear right window, when installing the controller, the first pin can be suspended and the switch K1 can be disconnected.
[0073] S103: Run the target software program.
[0074] After determining the target software program, the target software program can be run. In one example, a plurality of software programs may be pre-stored in the controller. After determining the target software program, the target software program stored in the controller may be read and run. Reading the target software program stored locally can improve the efficiency of obtaining the target software program. In another example, after the controller determines the identifier of the target software program based on the corresponding relationship, the target software program may be obtained from the server based on the identifier of the target software program, and further run the target software program. In this case, during the development stage of the controller, there is no need to write multiple software programs into the controller in advance, which improves the development efficiency of the controller.
[0075] From the above description, it can be seen that by utilizing the solution of the embodiments of the present application, for controllers with similar functions, a hardware can be developed. After the controller is installed, the software program that needs to be executed by the controller can be determined based on the collected target acquisition signal, thereby reducing the hardware development cost of the controller.
[0076] Exemplary Devices
[0077] Based on the method provided in the above embodiment, the embodiment of the present application further provides a device, which is described below in conjunction with the accompanying drawings.
[0078] See also Figure 3 , which is a schematic diagram of the structure of a control device provided in an embodiment of the present application. The device 300 can be applied to a controller, and the device 300 can specifically include: an acquisition unit 301, a determination unit 302, and an operation unit 303.
[0079] An acquisition unit 301 is used to acquire a target acquisition signal;
[0080] A determination unit 302, configured to determine a target software program corresponding to the target acquisition signal based on a correspondence relationship between the acquisition signal and the software program, wherein the correspondence relationship includes a correspondence relationship between the target acquisition signal and the target software program;
[0081] The running unit 303 is used to run the target software program.
[0082] Optionally, the acquiring unit 301 is used to:
[0083] A voltage signal corresponding to at least one acquisition point is collected.
[0084] Optionally, the at least one collection point includes at least one first collection point, the first collection point is a first pin of the controller, and the first collection point is connected to a first power supply through a first pull-up resistor.
[0085] Optionally, the at least one collection point includes at least one second collection point, wherein the first end of the second pull-up resistor is connected to the second power supply, the second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel, and the second collection point is the second end of the second pull-up resistor.
[0086] Optionally, the operation unit 303 is used to:
[0087] running the target software program pre-stored in the controller; or,
[0088] Run the target software program downloaded from the server.
[0089] The embodiment of the present application further provides a controller, the controller comprising a control unit and a peripheral circuit;
[0090] The control unit is used to obtain a target acquisition signal corresponding to the peripheral circuit, and based on a correspondence between a control signal acquisition signal and a software program, determine a target software program corresponding to the target control signal acquisition signal, and run the target software program, wherein the correspondence includes a correspondence between the target control signal acquisition signal and the target software program;
[0091] The peripheral circuit includes a first part and / or a second part,
[0092] The first part includes: a first pull-up resistor and a first power supply, and the first pin of the controller is connected to the first power supply through the first pull-up resistor;
[0093] The second part includes: a second pull-up resistor, a second power supply, a first resistor and a switch, wherein a first end of the second pull-up resistor is connected to the second power supply, and a second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel.
[0094] Optionally, the target acquisition signal includes: a voltage signal corresponding to at least one acquisition point; the at least one acquisition point includes: a first acquisition point and / or a second acquisition point; the first acquisition point is the first pin, and the second acquisition point is the second end of the second pull-up resistor.
[0095] In one example, the control unit may be, for example, an MCU.
[0096] Regarding the peripheral circuit, please refer to the relevant description part above and no detailed description is given here.
[0097] Regarding the steps executed by the control unit, reference may be made to the description of the control method executed by the controller in the above method embodiment, and no repeated description will be made here.
[0098] An embodiment of the present application also provides a controller, which includes: a processor, a memory, and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute the method described in any one of the above method embodiments.
[0099] An embodiment of the present application provides a vehicle, comprising: a controller for executing the method described in any one of the above method embodiments.
[0100] An embodiment of the present application provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a terminal device, the terminal device executes the method described in any one of the above method embodiments.
[0101] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0102] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
[0103] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. A control method, characterized in that: A controller applied to a vehicle, the method comprising: Acquire target acquisition signal; Determining a target software program corresponding to the target acquisition signal based on a correspondence between the acquisition signal and the software program, wherein the correspondence includes a correspondence between the target acquisition signal and the target software program, and the target software program is used to control a seat or a door on a vehicle; Running the target software program; The step of acquiring the target acquisition signal comprises: Collecting a voltage signal corresponding to at least one collection point; The at least one collection point includes at least one first collection point and at least one second collection point, the first collection point is the first pin of the controller, the first collection point is connected to the first power supply through a first pull-up resistor; the first end of the second pull-up resistor is connected to the second power supply, the second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel, and the second collection point is the second end of the second pull-up resistor.
2. The method according to claim 1, characterized in that The running of the target software program comprises: running the target software program pre-stored in the controller; or, Run the target software program downloaded from the server.
3. A control device, characterized in that: A controller applied to a vehicle, the device comprising: An acquisition unit, used for acquiring a target acquisition signal; a determination unit, configured to determine a target software program corresponding to the target acquisition signal based on a correspondence relationship between the acquisition signal and the software program, wherein the correspondence relationship includes a correspondence relationship between the target acquisition signal and the target software program, and the target software program is used to control a seat or a door on a vehicle; An operating unit, used for operating the target software program; The acquisition unit is specifically used to: acquire a voltage signal corresponding to at least one acquisition point; The at least one collection point includes at least one first collection point and at least one second collection point, the first collection point is the first pin of the controller, the first collection point is connected to the first power supply through a first pull-up resistor; the first end of the second pull-up resistor is connected to the second power supply, the second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel, and the second collection point is the second end of the second pull-up resistor.
4. A controller, characterized in that: The controller is located on the vehicle, and the controller includes a control unit and a peripheral circuit; The control unit is used to obtain a target acquisition signal corresponding to the peripheral circuit, determine a target software program corresponding to the target control signal acquisition signal based on a correspondence between the control signal acquisition signal and the software program, and run the target software program, wherein the correspondence includes a correspondence between the target control signal acquisition signal and the target software program, and the target software program is used to control a seat or a door on a vehicle; The peripheral circuit includes a first part and a second part, The first part includes: a first pull-up resistor and a first power supply, and the first pin of the controller is connected to the first power supply through the first pull-up resistor; The second part includes: a second pull-up resistor, a second power supply, a first resistor and a switch, wherein a first end of the second pull-up resistor is connected to the second power supply, and a second end of the second pull-up resistor is grounded through the first resistor and the switch in parallel; The target acquisition signal includes: a voltage signal corresponding to at least one acquisition point; the at least one acquisition point includes: a first acquisition point and a second acquisition point; the first acquisition point is the first pin, and the second acquisition point is the second end of the second pull-up resistor.
5. A controller, characterized in that: The controller is located on the vehicle, and the controller includes: a processor, a memory, and a system bus; the processor and the memory are connected via the system bus; the memory is used to store one or more programs, and the one or more programs include instructions, which, when executed by the processor, enable the processor to execute the method described in any one of claims 1 to 2.
6. A vehicle, characterized in that: The vehicle comprises: A controller for executing the method according to any one of claims 1 to 2.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions, and when the instructions are executed on a terminal device, the terminal device executes the method according to any one of claims 1 to 2.
Citation Information
Patent Citations
Power window switch
CN102359320A
Control system and method of car window
CN107989511A
