Vehicle door control method and device, electronic equipment and storage medium
By introducing a counter control system consisting of an ignition switch unit, external buttons, and door pump solenoid valves into buses, the problems of high cost and inconvenient operation of door control have been solved, achieving low-cost, convenient external control and improved safety.
Patent Information
- Application Number
- CN202310593006.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-24
- Publication Date
- 2025-11-25
- Estimated Expiration
- 2043-05-24
AI Technical Summary
Existing bus door control systems are costly and inconvenient to control from outside the vehicle, especially remote control switches which are expensive and cumbersome to operate.
By installing an ignition switch unit, external door buttons, and a built-in door pump solenoid valve in the vehicle, the automatic control of the door status is achieved using a counter and controller. The door control mode is matched according to the cumulative number of times, eliminating the need for relays and simplifying the operation process.
It reduces the cost of door control, improves the convenience and safety of external control, simplifies the operation logic, and reduces the risk of accidental triggering.
Smart Images

Figure CN116677273B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of vehicle door control, and in particular to a vehicle door control method and device, an electronic device, a storage medium and a computer program product. BACKGROUND
[0002] In the control of vehicle doors, such as the control of bus doors, remote switch door devices are rarely used due to their high cost. Bus doors are usually controlled by wired door switch devices, and can only be opened or closed by the door control switch of the driver's center console or the emergency valve of the door. After the driver closes the door, the door can only be opened by a key or the emergency air release valve, and after the door is opened by the air release valve, the air release valve must be restored to close the door electrically, which is very inconvenient.
[0003] In order to facilitate the opening and closing of the door outside the vehicle, a door button is usually provided outside the vehicle, and an outside door opening scheme is realized by two relays, a door controller and a controller. Due to the use of multiple relays, high control costs are incurred when the system is used on a large scale. SUMMARY
[0004] Therefore, it is necessary to provide a vehicle door control method, device, electronic device, computer readable storage medium and computer program product capable of reducing the control cost of vehicle doors.
[0005] In a first aspect, the present application provides a vehicle door control method. The method comprises:
[0006] determining the ignition switch state of the vehicle;
[0007] if a vehicle door button signal outside the vehicle is received, controlling a counter to start counting, when the ignition switch state of the vehicle is not in the on gear;
[0008] obtaining the current cumulative number recorded by the counter;
[0009] determining a door control mode matched with the current cumulative number based on the current cumulative number, and controlling the door state of the door based on the door control mode. In one embodiment, the determination of the door control mode matched with the current cumulative number based on the current cumulative number, and the control of the door state of the door based on the door control mode, comprises:
[0010] if the current cumulative number is odd, controlling a first door control pin to output a door opening instruction to a door pump electromagnetic valve to drive the door opening control end of the door pump electromagnetic valve to open the door, so that the door state of the door is in an open state;
[0011] If the current cumulative number is even, the second door control pin is controlled to output a door closing instruction to the door pump electromagnetic valve to drive the door closing control end of the door pump electromagnetic valve to close the door, so that the door state of the door is in a closed state. In one embodiment, the method further comprises: if a vehicle exterior door button signal is received when the vehicle ignition switch state is in the on file, the door is controlled to maintain the current state.
[0012] In one embodiment, the method further comprises:
[0013] If an interior door control opening signal is received when the vehicle ignition switch state is in the on file, the first door control pin is controlled to output a door opening instruction to the door pump electromagnetic valve to drive the door opening control end of the door pump electromagnetic valve to open the door, so that the door state of the door is in an open state.
[0014] If an interior door control closing signal is received, the second door control pin is controlled to output a door closing instruction to the door pump electromagnetic valve to drive the door closing control end of the door pump electromagnetic valve to close the door, so that the door state of the door is in a closed state.
[0015] In one embodiment, the method further comprises:
[0016] When the vehicle exterior door button signal or the interior door control opening signal is received, the real-time vehicle speed of the vehicle is obtained.
[0017] If the real-time vehicle speed is greater than a first preset vehicle speed threshold, the door state of the door is controlled to be in a closed state.
[0018] In one embodiment, the method further comprises: when the door state of the door is in an open state, if it is determined that the real-time vehicle speed of the vehicle is greater than or equal to a second preset vehicle speed threshold, an alarm information is output.
[0019] In a second aspect, the application further provides a door control system of a vehicle. The door control system comprises:
[0020] an ignition switch unit, a vehicle exterior door button, a door pump with a door pump electromagnetic valve, and a controller connected with the ignition switch unit, the vehicle exterior door button, and the door pump electromagnetic valve, respectively; the controller comprises a counter.
[0021] The controller is configured to determine a state of an ignition switch of the vehicle according to the ignition switch unit, and when the state of the ignition switch of the vehicle is not in an on profile, if a vehicle exterior door button signal of the vehicle exterior door button is received, the controller controls the counter to start counting; acquires a current cumulative number recorded by the counter; determines a door control mode matched with the current cumulative number based on the current cumulative number, and drives the door pump electromagnetic valve to work based on the door control mode to control a door state of the vehicle door.
[0022] In a third aspect, the present application also provides an electronic device. The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the vehicle door control method when executing the computer program.
[0023] In a fourth aspect, the present application also provides a computer readable storage medium. The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the steps of the vehicle door control method.
[0024] In a fifth aspect, the present application also provides a computer program product. The computer program product includes a computer program, and the computer program is executed by a processor to implement the steps of the vehicle door control method.
[0025] The vehicle door control method, device, electronic device, storage medium and computer program product determine a state of an ignition switch of the vehicle, and when the state of the ignition switch of the vehicle is not in an on profile, if a vehicle exterior door button signal of the vehicle exterior door button is received, the counter is controlled to start counting; a current cumulative number recorded by the counter is acquired; a door control mode matched with the current cumulative number is determined based on the current cumulative number, and a door state of the vehicle door is controlled based on the door control mode. When the state of the ignition switch of the vehicle is in an off profile, the current cumulative number recorded by the counter is acquired, and the door state is controlled according to the current cumulative number, without installing a relay or other structures, thereby effectively reducing the cost of door control. BRIEF DESCRIPTION OF DRAWINGS
[0026] Figure 1 An application environment diagram of the vehicle door control method in an embodiment;
[0027] Figure 2 An application environment diagram of the vehicle door control method in another embodiment;
[0028] Figure 3 A flowchart of the vehicle door control method in an embodiment;
[0029] Figure 4 A flowchart of the vehicle door control method in another embodiment;
[0030] Figure 5 This is a structural block diagram of a vehicle door control device in one embodiment;
[0031] Figure 6 This is a diagram of the internal structure of an electronic device in one embodiment. Detailed Implementation
[0032] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0033] The vehicle door control method provided in this application embodiment can be applied to, for example, Figure 1 The vehicle door control system shown includes an ignition switch unit, exterior door buttons, a door pump with a built-in door pump solenoid valve, and a controller connected to the ignition switch unit, exterior door buttons, and door pump solenoid valve. The controller includes a counter. The ignition switch unit determines the operating status of the vehicle's electrical circuits and outputs an operating status signal to the controller, allowing the controller to determine the start / stop status of the vehicle's electrical circuits based on the signal. The exterior door buttons are buttons located outside the vehicle doors. When pressed, these buttons generate a signal to the controller. These buttons can be electrically self-resetting. The door pump solenoid valve receives door control signals from the controller, thereby controlling the opening and closing of the doors. The controller can be a mainboard, which can house components such as a CPU (Central Processing Unit) and an MCU (Microcontroller Unit).
[0034] In one implementation, such as Figure 2 As shown in the embodiments of this application, the vehicle door control method can also be applied to, for example... Figure 2 The vehicle door control system shown is as follows: Figure 2 The vehicle door control system shown includes a battery, ignition switch, exterior door buttons, controller, interior door control switch, door pump with built-in door pump solenoid valve, door indicator switch, and door lights. The controller includes pins 1, 2, 3, 4, 5, 6, 7, and 8.
[0035] Wherein, the outside door button is connected with the No.1 pin, after pressing the outside door button, 24V high effective signal is given to the controller No.1 pin, the controller is waked up under the condition of 24V battery power supply in the No.2 pin, and the built-in counter in the controller counts once, if the counter accumulates odd times, the controller No.6 pin outputs 24V high effective signal to the door pump electromagnetic valve in the door pump, the door is opened, at the same time, the door open indicator light switch is closed, 24V power supply is given to the door lighting lamp to make it light up. If the counter accumulates even times, the controller No.7 pin outputs 24V high effective signal to the door pump electromagnetic valve in the door pump, the door is opened, at the same time, the door open indicator light switch is closed, 24V power supply is given to the door lighting lamp to make it light up.
[0036] When the driver enters the cab and turns on the ignition switch to the ON (on) gear, at this time the controller No.2 pin has 24V battery power supply, the controller No.3 pin has ON gear power input, the controller is waked up to work. If the inside door control switch is to the close door gear, low effective signal is given to the controller No.5 pin, the controller No.7 pin outputs 24V high effective signal to the door pump electromagnetic valve in the door pump, the door is closed, at the same time, the door open indicator light switch is opened, the door lighting lamp is extinguished. If the inside door control switch is to the open door gear, low effective signal is given to the controller No.4 pin, the controller No.6 pin outputs 24V high effective signal to the door pump electromagnetic valve in the door pump, the door is opened, at the same time, the door open indicator light switch is closed, 24V power supply is given to the door lighting lamp to make it light up, 24V high effective signal is given to the controller No.8 pin, which is used for instrument lightening door open indicator light, reminding the driver that the current door is in the open state.
[0037] In one embodiment, the controller determines the ignition switch state of the vehicle; in the case that the ignition switch state of the vehicle is in the off gear, if the outside door button signal is received, the counter is controlled to start counting; the current accumulated times recorded by the counter are acquired; based on the current accumulated times, the door control mode matched with the current accumulated times is determined, and the door state of the door is controlled based on the door control mode.
[0038] In one embodiment, as shown in Figure 3 , a door control method of a vehicle is provided, which is taken as an example to illustrate the controller in Figure 1 , including the following steps:
[0039] Step 302, determining the ignition switch state of the vehicle.
[0040] The ignition switch state can correspond to an ignition switch gear of the vehicle, and the ignition switch gear of the vehicle can include an OFF (off) gear, an ACC (adaptive cruise control power supply) gear, an ON (on) gear, and a Start (start) gear. The controller can obtain a signal sent by an ignition switch unit of the vehicle to determine the ignition switch state.
[0041] In step 304, if the vehicle ignition switch state is not in the on gear, and the outside door button signal is received, the control counter starts counting.
[0042] The on gear can refer to the ON gear of the vehicle. When the vehicle ignition switch is not in the on gear, it means that the ignition switch of the vehicle is not turned on, that is, the key door is not turned to the ON gear. The outside door button signal can be a signal generated after the outside door button outside the door is triggered. The counter is a counter built in the controller. Each time the controller receives an outside door button signal, the counter counts once.
[0043] In step 306, the current cumulative number recorded by the counter is obtained.
[0044] Each time the controller receives an outside door button signal, the counter counts once. Accordingly, the current cumulative number can refer to the number of times counted by the counter.
[0045] In step 308, based on the current cumulative number, the door control mode matched with the current cumulative number is determined, and based on the door control mode, the door state of the door is controlled.
[0046] The door control mode can refer to a mode for controlling the current state of the door. The door control mode can include a mode for controlling the door to close and a mode for controlling the door to open. The door state of the vehicle corresponds to the door control mode. When the door closing mode is the door closing control mode, the door state is closed. When the door closing mode is the door opening control mode, the door state is open.
[0047] In the above vehicle door control method, the ignition switch state of the vehicle is determined. If the outside door button signal is received when the ignition switch state of the vehicle is not in the on gear, the counter starts counting. The current cumulative number recorded by the counter is obtained. Based on the current cumulative number, the door control mode matched with the current cumulative number is determined, and based on the door control mode, the door state of the door is controlled. When the ignition switch state of the vehicle is in the off gear, the current cumulative number recorded by the counter is obtained, so that the door state is controlled according to the current cumulative number. No relay or other structure is needed, which effectively reduces the cost of door control.
[0048] In one embodiment, based on the current cumulative number, a vehicle door control mode matching the current cumulative number is determined, and based on the vehicle door control mode, a vehicle door state of the vehicle door is controlled, including: if the current cumulative number is odd, a first vehicle door control pin is controlled to output a vehicle door opening instruction to a door pump electromagnetic valve to drive an opening control end of the door pump electromagnetic valve to open the vehicle door, so that the vehicle door state is an open state; if the current cumulative number is even, a second vehicle door control pin is controlled to output a vehicle door closing instruction to the door pump electromagnetic valve to drive a closing control end of the door pump electromagnetic valve to close the vehicle door, so that the vehicle door state is a closed state.
[0049] The controller includes a first vehicle door control pin and a second vehicle door control pin. The first vehicle door control pin is connected with the opening control end of the door pump electromagnetic valve and is used to control the vehicle door to open. The second vehicle door control pin is connected with the closing control end of the door pump electromagnetic valve and is used to control the vehicle door to close. The controller determines whether the current cumulative number is odd or even according to the obtained current cumulative number. If the current cumulative number is odd, such as 1, 3, etc., it indicates that the vehicle door can be opened at present. The first control pin of the controller outputs a vehicle door opening instruction to the door pump electromagnetic valve through the first vehicle door control pin to drive the opening control end of the door pump electromagnetic valve to open the vehicle door. If the current cumulative number is even, such as 2, 4, etc., it indicates that the vehicle door can be closed at present. The second control pin of the controller outputs a vehicle door closing instruction to the door pump electromagnetic valve through the second vehicle door control pin to drive the closing control end of the door pump electromagnetic valve to close the vehicle door.
[0050] In the embodiment, the controller determines whether the current cumulative number is odd or even, so that the single external door control button can be used to realize the external opening and closing operations of the vehicle door without installing a relay. The control logic is simple and easy to implement, and the cost is reduced.
[0051] In one embodiment, the vehicle door control method further includes: if the external vehicle door button signal is received when the ignition switch state of the vehicle is in the ON gear, the vehicle door is controlled to keep the current state.
[0052] The ignition switch state in the ON gear can mean that the ignition switch is in the ON gear, i.e., the key door is in the ON gear. When the key door is in the ON gear, if the controller receives the external vehicle door button signal, the controller will control the vehicle door to keep the current state, and the counter will not count. Since the ignition switch is in the ON gear, it is generally in the driving state. When the ignition switch is in the ON gear, if the controller receives the external vehicle door button signal, it may be caused by the external personnel accidentally touching the button. Therefore, the controller controls the vehicle door to keep the current state, and the counter does not count, so as to avoid the situation that the vehicle door is opened or closed due to the external personnel accidentally touching the button during the running of the vehicle.
[0053] In one embodiment, the vehicle door control method further comprises: when the vehicle ignition switch state is in the on gear, if an in-vehicle door control opening signal is received, controlling the first vehicle door control pin to output a vehicle door opening instruction to the door pump electromagnetic valve to drive the door opening control end of the door pump electromagnetic valve to open the vehicle door, so that the vehicle door state of the vehicle door is in the open state; if an in-vehicle door control closing signal is received, controlling the second vehicle door control pin to output a vehicle door closing instruction to the door pump electromagnetic valve to drive the door closing control end of the door pump electromagnetic valve to close the vehicle door, so that the vehicle door state of the vehicle door is in the closed state.
[0054] The in-vehicle door control opening signal can be a signal generated after triggering the in-vehicle door control switch. The in-vehicle door control switch can include a closing gear and an opening gear. The opening gear corresponds to the in-vehicle door control opening signal, and the closing gear corresponds to the in-vehicle door control closing signal.
[0055] Specifically, when the user operates the in-vehicle door control switch to the closing gear, a low valid signal is given to the controller, the first vehicle door control pin of the controller outputs a high valid signal to the door pump electromagnetic valve in the door pump, the vehicle door is closed, and at the same time, the door opening indicator light switch is turned off and the vehicle door illumination lamp is extinguished. When the user operates the in-vehicle door control switch to the opening gear, the first vehicle door control pin of the controller outputs a 24V high valid signal to the door pump electromagnetic valve in the door pump, the vehicle door is opened. At the same time, the door opening indicator light switch is closed, a 24V high valid signal is given to the vehicle door illumination lamp to make it light up, which is used to light up the door opening indicator light of the instrument to remind the user that the vehicle door is currently in the open state.
[0056] In this embodiment, the controller outputs corresponding vehicle door control instructions to the door pump electromagnetic valve when receiving the in-vehicle door control opening signal and the in-vehicle door control closing signal, so that when the vehicle is in the on gear and the in-vehicle door control signal is received, the vehicle door state of the vehicle can be controlled.
[0057] In one embodiment, the vehicle door control method further comprises: when the in-vehicle door control opening signal or the out-vehicle door button signal is received, acquiring the real-time vehicle speed of the vehicle; if the real-time vehicle speed is greater than a first preset vehicle speed threshold, controlling the vehicle door state of the vehicle door to be in the closed state.
[0058] The first preset vehicle speed threshold is a threshold set for judging whether the current vehicle speed of the vehicle meets the condition of opening the vehicle door. Specifically, when the controller receives the in-vehicle door control opening signal or the out-vehicle door button signal, i.e., receives the signal of opening the vehicle door, the real-time vehicle speed of the vehicle is acquired. If the real-time vehicle speed is greater than the first preset vehicle speed threshold, it indicates that the current vehicle speed is relatively high, and if the vehicle door is opened, there may be danger. Therefore, the controller controls the vehicle door state of the vehicle door to be in the closed state.
[0059] In the embodiment, the controller determines whether to open the door according to the current vehicle speed when receiving the signal of opening the door, thereby increasing the safety during driving.
[0060] In one embodiment, the door control method of the vehicle further comprises: when the door state of the door is the open state, if it is determined that the real-time vehicle speed of the vehicle is greater than or equal to the second preset vehicle speed threshold, an alarm information is output.
[0061] The second preset vehicle speed threshold is a threshold for determining whether to output the alarm signal. When the door is in the open state, if the controller determines that the real-time vehicle speed at this moment is greater than or equal to the second preset vehicle speed threshold, it indicates that the current vehicle speed is fast and the door is not closed, and the controller can perform visual and audible alarm to remind the user.
[0062] In one embodiment, as shown in FIG. 1, a flowchart of the door control method of the vehicle in one embodiment is shown. Figure 4
[0063] The execution subject of the door control method of the vehicle in the embodiment can be a controller as shown in FIG. 2. The controller determines whether the ignition switch is in the ON position, i.e., whether the voltage is 24V. If yes, the process related to the in-vehicle door control is performed, and if no, the process related to the out-vehicle door control is performed. Figure 2
[0064] During the execution of the out-vehicle door control process, the out-vehicle door button is pressed, a 24V high active signal is given to the No. 1 pin of the controller, the controller is woken up under the condition that there is a 24V power supply of the battery at the No. 2 pin of the controller, and the built-in counter of the controller counts once. If the cumulative number is odd, the No. 6 pin of the controller outputs a 24V high active signal to the door pump electromagnetic valve in the door pump, the door is opened, the door opening indicator lamp is turned on, and the 24V power supply is given to the door lighting lamp to make it light up. Secondly, if the cumulative number is even, the No. 7 pin of the controller outputs a 24V high active signal to the door pump electromagnetic valve in the door pump, the door is closed, the door opening indicator lamp is turned off, and the door lighting lamp is extinguished.
[0065] Further, in the process of executing the vehicle door control procedure, the controller 2 pin is powered by the 24V battery, the controller 3 pin is powered by the ON gear, the controller is woken up, the controller judges that the ON gear is valid, the 1 pin of the vehicle door control button is invalid, and the counter does not count, at this time, the vehicle door control button is pressed, the controller does not count, and the vehicle door remains in the current open state. At this time, if the vehicle door control switch is to the closing gear, a low valid signal is given to the controller 5 pin, a 24V high valid signal is output from the controller 7 pin to the door pump electromagnetic valve in the door pump, the vehicle door is closed, the door opening indicator light switch is turned off, and the vehicle door lighting lamp is extinguished. When the vehicle door control switch is to the opening gear, a low valid signal is given to the controller 4 pin, a 24V high valid signal is output from the controller 6 pin to the door pump electromagnetic valve in the door pump, the vehicle door is opened, the door opening indicator light switch is turned on, 24V power is given to the vehicle door lighting lamp to light it up, a 24V high valid signal is given to the controller 8 pin, which is used to light the door opening indicator light of the instrument to remind the user that the vehicle door is currently in the open state.
[0066] It should be understood that, although each step in the flowchart involved in each of the above-described embodiments is shown in sequence according to the direction of the arrow, these steps are not necessarily executed in the order indicated by the arrow. Unless otherwise specified herein, the execution of these steps is not strictly limited in sequence, and these steps can be executed in other orders. Moreover, at least part of the steps in the flowchart involved in each of the above-described embodiments can include multiple steps or stages, which are not necessarily executed at the same time, but can be executed at different times, and the execution sequence of these steps or stages is not necessarily sequential, but can be executed in rotation or alternation with at least part of other steps or stages.
[0067] Based on the same inventive concept, the embodiments of the present application also provide a vehicle door control device of a vehicle for implementing the vehicle door control method described above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme described in the above method, and therefore the specific limitations in one or more vehicle door control device embodiments provided below can refer to the limitations of the vehicle door control method described above, which will not be described here again.
[0068] In one embodiment, as shown in Figure 5 A vehicle door control device 500 is provided, comprising: a state determination module 502, a counting module 504, an accumulated count acquisition module 506, and a control module 508, wherein:
[0069] The state determination module 502 is configured to determine the state of the ignition switch of the vehicle.
[0070] The counting module 504 is configured to, if the vehicle ignition switch state is not in the on gear and an outside door button signal is received, control the counter to start counting.
[0071] The cumulative count obtaining module 506 is configured to obtain a current cumulative count recorded by the counter.
[0072] The control module 508 is configured to determine a door control mode matched with the current cumulative count based on the current cumulative count, and control a door state of the door based on the door control mode.
[0073] In one embodiment, the control module 508 is further configured to, if the current cumulative count is odd, control a first door control pin to output a door opening instruction to a door pump electromagnetic valve, so as to drive an opening control end of the door pump electromagnetic valve to open the door, and make the door state of the door be an open state; and if the current cumulative count is even, control a second door control pin to output a door closing instruction to the door pump electromagnetic valve, so as to drive a closing control end of the door pump electromagnetic valve to close the door, and make the door state of the door be a closed state.
[0074] In one embodiment, the control module 508 is further configured to, if the vehicle ignition switch state is in the on gear and an outside door button signal is received, control the door to keep a current state.
[0075] In one embodiment, the control module 508 is further configured to, if the vehicle ignition switch state is in the on gear and an inside door control opening signal is received, control the first door control pin to output the door opening instruction to the door pump electromagnetic valve, so as to drive the opening control end of the door pump electromagnetic valve to open the door, and make the door state of the door be the open state.
[0076] If an inside door control closing signal is received, control the second door control pin to output the door closing instruction to the door pump electromagnetic valve, so as to drive the closing control end of the door pump electromagnetic valve to close the door, and make the door state of the door be the closed state.
[0077] In one embodiment, the control module 508 is further configured to, when the outside door button signal or the inside door control opening signal is received, obtain a real-time vehicle speed of the vehicle; and if the real-time vehicle speed is greater than a first preset vehicle speed threshold, control the door state of the door to be the closed state.
[0078] In one embodiment, the control module 508 is further configured to, when the door state of the door is the open state, if it is determined that the real-time vehicle speed of the vehicle is greater than or equal to a second preset vehicle speed threshold, output an alarm information.
[0079] The modules in the door control device of the vehicle can be implemented by software, hardware, or a combination thereof. The modules can be embedded in or independent of a processor in the electronic device in hardware form, or stored in a memory in the electronic device in software form, so as to be invoked and executed by the processor.
[0080] In one embodiment, an electronic device, which can be a controller on a vehicle, has an internal structure as shown in Figure 6 The controller includes a processor, a memory, an input / output interface, and the like. The memory is connected to the processor, and the processor is connected to the input / output interface. The processor of the controller is configured to provide computing and control capabilities. The memory of the controller includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The input / output interface of the processor is configured to exchange information between the processor and other controllers. The computer program is executed by the processor to implement a door control method of a vehicle.
[0081] Those skilled in the art can understand that Figure 6 The structure shown in the above
[0082] In one embodiment, an electronic device includes a memory and a processor. The memory stores a computer program. The processor executes the computer program to implement the following steps: determining a state of an ignition switch of a vehicle;
[0083] If a vehicle door button signal outside the vehicle is received, the counter starts counting when the state of the ignition switch of the vehicle is not in the on gear.
[0084] Obtaining a current cumulative number recorded by the counter;
[0085] Based on the current cumulative number, determining a door control mode matched with the current cumulative number, and controlling a door state of the door based on the door control mode.
[0086] In one embodiment, a computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the following steps: determining a state of an ignition switch of a vehicle;
[0087] If a vehicle exterior door button signal is received when the vehicle ignition switch state is not in the on range, a control counter starts counting;
[0088] Obtaining a current cumulative number recorded by the counter;
[0089] Based on the current cumulative number, determining a door control mode matched with the current cumulative number, and controlling a door state of the door based on the door control mode.
[0090] In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the following steps:
[0091] Determining a state of an ignition switch of a vehicle;
[0092] If a vehicle exterior door button signal is received when the vehicle ignition switch state is not in the on range, a control counter starts counting;
[0093] Obtaining a current cumulative number recorded by the counter;
[0094] Based on the current cumulative number, determining a door control mode matched with the current cumulative number, and controlling a door state of the door based on the door control mode.
[0095] It should be noted that the user information (including but not limited to user equipment information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or authorized by all parties, and the collection, use and processing of related data need to comply with relevant national and regional laws, regulations and standards.
[0096] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer readable storage medium, and when the computer program is executed, the processes of the above-mentioned embodiments of the methods can be included. Any reference to memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (Read-Only Memory, ROM), magnetic tape, floppy disk, flash memory, optical storage, high-density embedded non-volatile memory, resistive memory (ReRAM), magnetoresistive random access memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric memory (Ferroelectric Random Access Memory, FRAM), phase change memory (Phase Change Memory, PCM), graphene memory, etc. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, etc. As an illustration but not limitation, RAM can be in various forms, such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The database involved in the embodiments provided in the present application can include at least one of a relational database and a non-relational database. The non-relational database can include a distributed database based on a block chain, etc., without being limited thereto. The processor involved in the embodiments provided in the present application can be a general-purpose processor, a central processing unit, a graphics processing unit, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., without being limited thereto.
[0097] Any combination of the technical features of the above embodiments can be made. In order to make the description simple, all possible combinations of the technical features in the above embodiments are not described, however, as long as the combination of the technical features does not exist contradictory, it should be considered as the scope of the present application.
[0098] The above embodiments only express several implementation manners of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be pointed out that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims
1. A method for controlling vehicle doors, characterized in that, The method includes: Determine the status of the vehicle's ignition switch; If the vehicle ignition switch is not in the ON position, and a signal is received from an external door button, the counter will start counting. Obtain the current cumulative count recorded by the counter; Based on the current cumulative count, determine the door control method that matches the current cumulative count, and control the door state based on the door control method; The step of determining a door control method matching the current cumulative count, and controlling the door state based on the door control method, includes: If the current cumulative number is odd, the first door control pin is controlled to output a door opening command to the door pump solenoid valve, so as to drive the door opening control terminal of the door pump solenoid valve to open the door, so that the door is in the open state. If the current cumulative count is even, the second door control pin will output a door closing command to the door pump solenoid valve to drive the door pump solenoid valve to close the door, so that the door is in a closed state.
2. The method according to claim 1, characterized in that, The method further includes: When the vehicle ignition switch is in the ON position, if a signal is received from the exterior door button, the door is controlled to maintain its current state.
3. The method according to claim 1, characterized in that, The method further includes: When the vehicle ignition switch is in the ON position, if an in-vehicle door control opening signal is received, the first door control pin is controlled to output a door opening command to the door pump solenoid valve, so as to drive the door pump solenoid valve to open the door, and the door is in the open state. If a door closing signal is received from inside the vehicle, the second door control pin is controlled to output a door closing command to the door pump solenoid valve, thereby driving the closing control terminal of the door pump solenoid valve to close the door, so that the door is in a closed state.
4. The method according to claim 1, characterized in that, The method further includes: When a signal is received from the external door button or the internal door control to open, the vehicle's real-time speed is obtained. If the real-time vehicle speed is greater than the first preset vehicle speed threshold, the door is controlled to be in a closed state.
5. The method according to claim 1, characterized in that, The method further includes: When the vehicle door is in the open state, if it is determined that the real-time vehicle speed is greater than or equal to the second preset speed threshold, an alarm message is output.
6. A vehicle door control system, characterized in that, The vehicle door control system includes an ignition switch unit, an exterior door button, a door pump with a built-in door pump solenoid valve; and a controller connected to the ignition switch unit, the exterior door button, and the door pump solenoid valve respectively; the controller includes a counter; The controller is used to determine the ignition switch status of the vehicle based on the ignition switch unit. If the vehicle ignition switch is not in the ON position, and an external door button signal is received from the external door button, the controller controls the counter to start counting. Obtain the current cumulative count recorded by the counter; Based on the current cumulative count, a door control method matching the current cumulative count is determined, and based on the door control method, the door pump solenoid valve is driven to work to control the door status of the door; The controller is further configured to, if the current cumulative count is odd, control the first door control pin to output a door opening command to the door pump solenoid valve, so as to drive the door opening control terminal of the door pump solenoid valve to open the door, so that the door state is open; if the current cumulative count is even, control the second door control pin to output a door closing command to the door pump solenoid valve, so as to drive the door closing control terminal of the door pump solenoid valve to close the door, so that the door state is closed.
7. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Circuit for opening and closing door outside public bus through single button and control method of circuit
CN115126377A
Control module for automatic lifting windows in motor vehicle, and control method
CN1959052A