Trunk control method and device, electronic equipment and storage medium
Through the method of detecting the position of an object and setting a preset duration threshold, the problem of prone to failure of traditional micro switches is solved, stable and reliable control of the trunk is achieved, and user experience and system life are improved.
Patent Information
- Application Number
- CN202510840293.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-23
- Publication Date
- 2025-08-26
AI Technical Summary
Traditional micro switches are susceptible to mechanical stress fatigue in trunk control, and are susceptible to environmental influences, affecting reliability.
The sensor detects the position of the object, generates an object approach signal, and sets a preset duration threshold to confirm the user's intention, generates an open signal to control the trunk to avoid accidental triggering.
It improves the stability and reliability of trunk opening control, reduces structural fatigue failure, and improves user experience and system life.
Smart Images

Figure CN120537477A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle technology, and in particular to a trunk control method, device, electronic device and storage medium. Background Art
[0002] In early car designs, the trunk usually needed to be opened manually with a mechanical key. Although this method was simple, it was somewhat inconvenient. As the vehicle's electrical system gradually improved, this traditional method was gradually replaced by an electronic control method. Currently, most vehicles use a micro switch to achieve electronic opening of the trunk. The micro switch generally contains a spring and a set of electrical contacts. When the user presses the switch, the internal contacts are pressed together to form a pathway, and current flows through, triggering a signal to be transmitted to the control system, which then controls the trunk opening.
[0003] However, since the micro switch needs to be pressed repeatedly to close and open the circuit, the springs, supports, button transmission structures and other components in the switch structure will be subjected to mechanical stress for a long time. When this stress acts repeatedly, the metal or plastic parts will experience fatigue effects, resulting in no rebound feeling or softening of the touch after the button is pressed. The switch action is no longer sensitive and may require multiple presses to respond. In extreme cases, the button becomes stuck or completely fails. In addition, the micro switch has problems such as poor contact and is easily affected by the environment, which has a great impact on the reliability of the micro switch. Summary of the Invention
[0004] The problem solved by the present invention is how to achieve stable and reliable trunk opening control.
[0005] To solve the above problems, the present invention provides a trunk control method, device, electronic device and storage medium.
[0006] In a first aspect, the present invention provides a trunk control method, comprising: Detecting the position of an object by a sensor, and generating an object proximity signal when the position of the object is within the sensing area of the sensor; When the duration of the object approaching signal is greater than or equal to a first preset duration threshold, generating an on signal; The trunk is controlled to open according to the opening signal.
[0007] Optionally, the sensor includes a transmitter and a receiver, and detecting the position of the object by the sensor includes: The transmitter transmits a signal wave, and the receiver receives a reflected wave of the signal wave, wherein the signal wave and the reflected wave have the same wave speed; The propagation time is determined based on the emission time of the signal wave and the reception time of the reflected wave, the distance between the object and the sensor is determined based on the propagation time and the wave speed of the signal wave, and the position of the object is determined based on the distance between the object and the sensor and the position of the sensor.
[0008] Optionally, before detecting the position of the object by a sensor, the method further includes: When the trunk is in a locked state, the transmitter and the receiver are controlled to be in a dormant state.
[0009] Optionally, when the object is located in a sensing area of the sensor, generating an object approach signal includes: determining a movement trend of the object based on the positions of the object detected multiple times; The object proximity signal is generated when the movement trend indicates that the object is moving toward the sensor.
[0010] Optionally, the trunk control method further includes: generating an object moving away signal when the movement trend indicates that the object moves away from the sensor; When the duration of the object being away from the signal is greater than or equal to a second preset duration threshold, generating a shutdown signal; The trunk is controlled to close according to the closing signal.
[0011] Optionally, the sensor further includes a camera, and generating a start signal includes: detecting gestures via the camera; When the duration of the object approach signal is greater than or equal to the first preset duration threshold and the gesture is a first preset gesture, the start signal is generated.
[0012] Optionally, the sensor further includes a camera, and generating a shutdown signal includes: detecting gestures via the camera; When the duration of the object moving away from the signal is greater than or equal to the second preset duration threshold and the gesture is a second preset gesture, the closing signal is generated.
[0013] In a second aspect, the present invention provides a trunk control device, comprising: The first module is configured to detect a position of an object using a sensor, and generate an object approach signal when the object is within a sensing area of the sensor; A second module is configured to generate an on signal when the duration of the object approaching signal is greater than or equal to a first preset duration threshold; The third module is used to control the opening of the trunk according to the opening signal.
[0014] In a third aspect, the present invention provides an electronic device comprising a memory and a processor; The memory is used to store computer programs; The processor is configured to implement the trunk control method as described in the first aspect when executing the computer program.
[0015] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the trunk control method as described in the first aspect is implemented.
[0016] The beneficial effects of the trunk control method of the present invention are: the position of the object is detected by the sensor, and when the position of the object is in the sensing area of the sensor, an object approach signal is generated. In order to avoid misidentification of the sensor, a first preset time threshold is set as a further judgment condition, which effectively avoids false triggering due to a short passing, an animal approaching, or an object shaking in the wind, and avoids the vehicle automatically opening the trunk under unexpected conditions. When the duration of the object approach signal is greater than or equal to the first preset time threshold, it indicates that the user needs to open the trunk. At this time, an opening signal is generated, and the trunk is then controlled to open according to the opening signal. Compared with traditional push-type switches, there is no need to bend down, press buttons, or look for buttons, which is more friendly to special people, and does not require frequent pressing and contactless operation, reducing functional failures caused by structural fatigue failure or changes in structural characteristics, and can improve system stability and service life. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 Schematic diagram of the flow of a trunk control method according to an embodiment of the present invention; Figure 2 Schematic diagram of the process of detecting the position of an object according to an embodiment of the present invention; Figure 3 Schematic diagram of the installation of the sensor of the embodiment of the present invention Figure 1 ; Figure 4 Schematic diagram of the installation of the sensor of the embodiment of the present invention Figure 2 ; Figure 5 Schematic diagram of the installation of the sensor of the embodiment of the present invention Figure 3 ; Figure 6 Schematic diagram of a process for generating an object approaching signal according to an embodiment of the present invention; Figure 7 This is a schematic diagram of a process for controlling the closing of a trunk according to an embodiment of the present invention; Figure 8This is a schematic diagram of a process for controlling the opening of a trunk through a camera according to an embodiment of the present invention; Figure 9 This is a schematic diagram of a process for controlling the closing of a trunk through a camera according to an embodiment of the present invention; Figure 10 This is a system architecture diagram of a trunk control device according to an embodiment of the present invention; Figure 11 2 is a system architecture diagram of an electronic device according to an embodiment of the present invention.
[0018] Description of reference numerals: 10-housing, 20-microprocessor, 30-transmitter, 40-receiver, 50-cover, 60-plane, 70-trunk lid decorative panel, 80-switch retaining spring. DETAILED DESCRIPTION
[0019] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.
[0020] 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. In addition, 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.
[0021] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0022] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0023] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0024] like Figure 1 As shown, an embodiment of the present invention provides a trunk control method, including: S100: Detecting the position of an object through a sensor, and generating an object approach signal when the position of the object is within the sensing area of the sensor.
[0025] Specifically, the position of the object is detected by the sensor, for example, the distance between the object and the sensor is measured by the sensor to determine the position of the object. When the position of the object is within the sensing area of the sensor, an object proximity signal is generated.
[0026] The sensing area refers to the spatial range in which the sensor can effectively sense the presence, movement, or distance changes of a target object. It is usually described by distance + angle + shape. For example, the sensing area of an ultrasonic sensor is usually conical (set toward the direction where a hand may appear), with a cone angle of 15° to 30° and a sensing range of 2cm to 4m.
[0027] Sensors include ultrasonic sensors and infrared sensors. Ultrasonic sensors, for example, emit high-frequency sound waves (>20kHz, typically around 40kHz). When the sound waves hit an object, they reflect. A receiver detects the reflected wave and calculates the object's distance based on the propagation time. Infrared sensors, for example, are divided into active infrared reflective sensors and passive infrared pyroelectric sensors (used for detecting human bodies). The principles of infrared reflective sensors are similar to those of ultrasonic sensors, while pyroelectric sensors detect the movement or presence of targets by sensing infrared thermal radiation emitted by objects such as the human body. They do not emit any signals but passively receive thermal radiation. They can typically only detect moving targets and cannot detect stationary people. They are also significantly affected by ambient temperature differences (a small temperature difference between the background and the human body reduces sensitivity). They are ineffective against non-heat source targets (e.g., movement of wood or cardboard cannot be detected). They can also be falsely detected by wind and heat interference (e.g., direct airflow from air conditioners or sunlight). Therefore, ultrasonic sensors or infrared reflective sensors are preferred.
[0028] S200: When the duration of the object approach signal is greater than or equal to a first preset duration threshold, generating a start signal.
[0029] Specifically, to avoid sensor misidentification, a first preset duration threshold is set as a further judgment condition. When the duration of the object approach signal is greater than or equal to the first preset duration threshold (for example, 3s), it indicates that the user needs to open the trunk, and an opening signal is generated at this time.
[0030] Among them, different prompt sounds can be set when the object approach signal and the open signal are generated.
[0031] S300: Control the trunk to open according to the opening signal.
[0032] Specifically, an opening signal is sent to a corresponding driving device to unlock the trunk lid lock. For example, after the control unit (such as the vehicle controller) receives the opening signal, it first controls the electric lock mechanism to unlock, such as driving the locking motor or electromagnetic device to release the lock, and the trunk lid changes from a "locked state" to a "liftable state". Then, the trunk is driven to lift through devices such as point struts. For example, after the unlocking is completed, the control unit continues to execute subsequent instructions, drives the lifting mechanism, activates the electric struts or hydraulic power assist system, and the trunk lid slowly and steadily opens upward to the set angle. During the lifting process, the limit switch or angle sensor can be used to achieve precise control; if an abnormality occurs (such as jamming or not locked firmly), an alarm prompt can be issued or the action can be stopped.
[0033] In this embodiment, the position of the object is detected by a sensor. When the position of the object is within the sensing area of the sensor, an object approach signal is generated. In order to avoid misidentification by the sensor, a first preset time threshold is set as a further judgment condition, which effectively avoids false triggering due to a brief passing, an animal approaching, or an object shaking in the wind, and avoids the vehicle automatically opening the trunk under unexpected conditions. When the duration of the object approach signal is greater than or equal to the first preset time threshold, it indicates that the user needs to open the trunk. At this time, an opening signal is generated, and the trunk opening is controlled according to the opening signal. Compared with traditional push-type switches, there is no need to bend over, press buttons, or look for buttons, which is more friendly to special people, and does not require frequent pressing and contactless operation, reducing functional failures caused by structural fatigue failure or changes in structural characteristics, and can improve system stability and service life.
[0034] Optionally, the sensor includes a transmitter and a receiver, and detecting the position of the object by the sensor includes: S110: transmitting a signal wave outward through the transmitter, and receiving a reflected wave of the signal wave through the receiver, wherein the signal wave and the reflected wave have the same wave speed.
[0035] Specifically, combined Figure 2 As shown, the transmitter sends a set of characteristic waveform signals in a certain direction. For example, an ultrasonic sensor transmits high-frequency sound waves. The transmitted signal is usually a pulse wave or a continuous wave, carrying a specific frequency, wavelength or code. When the signal wave encounters an object (i.e., the detection target) during propagation, it will be partially reflected back. The receiver is located in the same direction as the transmitter and is responsible for receiving the returned reflected wave signal and converting the received signal into an electrical signal for system processing.
[0036] Among them, combined Figure 3 The planes 60 where the hands are located at different distances are shown, and are defined as plane 1 and plane 2 from top to bottom. The area above plane 1 is a strong sensing area, and the sensor is in a high power consumption state at this time. The area between plane 1 and plane 2 is a weak sensing area, and the sensor is in an awake state at this time. The area below plane 2 is not a sensing area, and the sensor is in a low power consumption state at this time.
[0037] Among them, combined Figure 3 As shown, the sensor is connected to the vehicle body through the shell 10. The sensor includes a transmitter 30 and a receiver 40. The corresponding data of the transmitter 30 and the receiver 40 can be processed by the microprocessor 20. The transmitter 30 and the receiver 40 are shielded by the cover 50. Since the sensor needs to transmit or receive signals, the cover 50 can be selected as a transparent part or made of a material that does not affect signal transmission.
[0038] Among them, combined Figure 4 and Figure 5 As shown, the housing 10 can be connected to components (such as the trunk lid decorative plate 70 or the decorative cover) on the vehicle by screwing or snapping (in conjunction with the switch clip 80).
[0039] S120: Determine the propagation time according to the emission time of the signal wave and the reception time of the reflected wave, determine the distance between the object and the sensor according to the propagation time and the wave speed of the signal wave, and determine the position of the object according to the distance between the object and the sensor and the position of the sensor.
[0040] Specifically, combined Figure 2 As shown in the figure, the moment when the transmitter sends out the signal wave is the "transmission time". The moment when the signal wave hits the object in front and is reflected back and received by the receiver is the "reception time". Based on the difference between the transmission and reception times, the round-trip time of the signal (i.e., the propagation time) is calculated. Combined with the wave velocity of the signal wave, the one-way distance between the object and the sensor can be determined. Under the premise of knowing the spatial position of the sensor and the transmission direction, the position of the object can be further determined.
[0041] In this optional embodiment, object positioning is achieved based on the time-of-flight principle, and distance is measured directly based on the physical time difference, with high positioning accuracy and fast response speed.
[0042] Optionally, before detecting the position of the object by a sensor, the method further includes: When the trunk is in a locked state, the transmitter and the receiver are controlled to be in a dormant state.
[0043] Specifically, when the vehicle is started and driving, the trunk is automatically locked and cannot be opened to prevent accidental opening while driving and ensure driving safety. If the vehicle is not unlocked, the trunk will remain locked. For automatic transmission models, the trunk is prohibited from opening when it is not in P gear. In addition, when the trunk sensing area does not detect the presence of the key (for example, the key is not nearby), it cannot be unlocked and opened. In the above cases, the trunk is in a locked state, and the control transmitter and receiver are in a dormant state to prevent the trunk from being opened accidentally while driving, etc., and to reduce necessary energy consumption.
[0044] In this optional embodiment, by controlling the transmitter and receiver to be in a dormant state when the trunk is in a locked state, the trunk can be prevented from being accidentally opened while driving, etc., and the necessary energy consumption can be reduced.
[0045] Optionally, when the object is located in a sensing area of the sensor, generating an object approach signal includes: S130: Determine the movement trend of the object based on the positions of the object detected multiple times.
[0046] Specifically, combined Figure 6 As shown in the figure, the sensor emits signal waves at a certain period. According to the emission order of the signal waves, the position of the continuously changing object can be obtained. The movement trend of the object can be determined based on at least two positions. For example, during the first detection, the object is 100 cm away from the sensor, and during the second detection, the object is 80 cm away from the sensor, indicating that the object is getting closer and closer to the sensor.
[0047] S140: When the movement trend indicates that the object is moving toward the sensor, generate the object approach signal.
[0048] Specifically, combined Figure 6 As shown, when an object moves toward the sensor, an object proximity signal is generated, which serves as a trigger for subsequent actions (such as opening the trunk).
[0049] In this optional embodiment, the movement trend is determined based on the position of the object. When the object moves toward the sensor, an object approach signal is generated, which effectively avoids false triggering caused by stationary objects, occasional interference, passers-by, etc., and is more suitable for mobile target recognition.
[0050] Optionally, the trunk control method further includes: S400: When the movement trend indicates that the object moves away from the sensor, generate an object moving away signal.
[0051] Specifically, combined Figure 7As shown, the sensor emits signal waves at a certain period. The position of the continuously changing object can be obtained according to the emission order of the signal waves. The movement trend of the object can be determined based on at least two positions. For example, during the first detection, the object is 60 cm away from the sensor, and during the second detection, the object is 100 cm away from the sensor, indicating that the object is getting farther and farther away from the sensor. At this time, an object moving away signal is generated.
[0052] S500: When the duration of the object moving away from the signal is greater than or equal to a second preset duration threshold, a shutdown signal is generated.
[0053] Specifically, combined Figure 7 As shown, once it is confirmed that the object is moving away, an "object moving away signal" is generated, and the duration of the signal is timed. If the duration of the object moving away signal is greater than or equal to a second preset duration threshold (for example, 3s), it is confirmed that the user has indeed left, and there is no need to continue to keep the on state, and a closing signal is generated.
[0054] S600: Control the trunk to close according to the closing signal.
[0055] Specifically, combined Figure 7 As shown, the trunk is driven to perform an automatic closing action according to the closing signal, and the user does not need to manually close the trunk.
[0056] In this optional embodiment, by judging the continuous position information of the object and identifying its trend away from it, a shutdown signal is automatically generated after the trend continues for a certain period of time, thereby realizing automatic shutdown control of the system, which not only improves the intelligence level but also enhances the user experience and system security.
[0057] Optionally, the sensor further includes a camera, and generating a start signal includes: S210: Detecting a gesture through the camera.
[0058] Specifically, combined Figure 8 As shown, a gesture sensing module (such as a camera, etc.) is configured for the trunk, and gestures such as gesture trajectories, motion features, and dynamic changes are detected by the camera.
[0059] S220: When the duration of the object approach signal is greater than or equal to the first preset duration threshold, and the gesture is the first preset gesture, generate the start signal.
[0060] Specifically, combined Figure 8As shown, when the duration of the object approach signal is greater than or equal to the first preset duration threshold, and the gesture is the first preset gesture (for example, swiping with one hand, palm facing up, swiping quickly upward from near the waist), an opening signal is generated. Combined with the first preset duration threshold and the first preset gesture, it can avoid the trunk from being accidentally opened due to the object accidentally staying in the sensing area for more than the first preset duration threshold, which is more in line with the actual needs of users.
[0061] In this optional embodiment, through intelligent control technology based on gesture recognition, users can conveniently open the trunk in different scenarios, thereby improving the interactive experience, personalized customization capabilities and the intelligence level of the entire vehicle.
[0062] Optionally, the sensor further includes a camera, and generating a shutdown signal includes: S510: Detecting a gesture through the camera; Specifically, combined Figure 9 As shown, a gesture sensing module (such as a camera, etc.) is configured for the trunk, and gestures such as gesture trajectories, motion features, and dynamic changes are detected by the camera.
[0063] S520: When the duration of the object moving away from the signal is greater than or equal to the second preset duration threshold, and the gesture is the second preset gesture, generate the closing signal.
[0064] Specifically, combined Figure 9 As shown, when the duration of the object moving away from the signal is greater than or equal to the second preset duration threshold, and the gesture is the second preset gesture (for example, a single hand swipe down, palm facing down, swiping downward from the chest), a closing signal is generated. Combined with the second preset duration threshold and the second preset gesture, it can avoid the trunk from being accidentally closed due to the object accidentally moving away from the sensor for more than the second preset duration threshold, which is more in line with the actual needs of users.
[0065] Among them, other preset gestures include: (1) the user draws a circle with one hand, and the palm draws a clockwise or counterclockwise circle in the air to enter the trunk angle adjustment mode. At this time, the angle can be increased or decreased according to the user's further gestures (such as swiping up or down); (2) the user pushes the palm forward (pushing the door action), with the palm facing forward and pushing it toward the rear of the car, quickly opening the trunk to a preset medium angle (such as 70°); (3) the user's OK gesture (circle finger), with the index finger and thumb forming an O shape and the other fingers naturally straightened, can confirm the current angle / complete the current operation, as an action confirmation instruction to prevent misoperation; (4) other gestures and actions can be written into the system program in advance for users to select the corresponding gesture-action control function according to actual needs.
[0066] In this optional embodiment, through intelligent control technology based on gesture recognition, users can conveniently close the trunk in different scenarios, thereby improving the interactive experience, personalized customization capabilities and the intelligence level of the entire vehicle.
[0067] like Figure 10 As shown, an embodiment of the present invention provides a trunk control device 1000, comprising: The first module 1010 is configured to detect a position of an object using a sensor, and generate an object proximity signal when the object is within a sensing area of the sensor. The second module 1020 is configured to generate an on signal when the duration of the object approach signal is greater than or equal to a first preset duration threshold; The third module 1030 is configured to control the opening of the trunk according to the opening signal.
[0068] like Figure 11 As shown, an electronic device 1100 provided by an embodiment of the present invention includes a memory 1120 and a processor 1110; the memory 1120 is used to store computer programs; the processor 1110 is used to implement the trunk control method as described above when executing the computer program.
[0069] In other words, an electronic device 1100 includes a memory 1120 and a processor 1110 coupled to the memory 1120; the memory 1120 is configured to store a computer program; and the processor 1110 is configured to perform the following operations when executing the computer program: Detecting the position of an object by a sensor, and generating an object proximity signal when the position of the object is within the sensing area of the sensor; When the duration of the object approaching signal is greater than or equal to a first preset duration threshold, generating an on signal; The trunk is controlled to open according to the opening signal.
[0070] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the trunk control method described above is implemented.
[0071] In other words, a non-volatile computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following operations: Detecting the position of an object by a sensor, and generating an object proximity signal when the position of the object is within the sensing area of the sensor; When the duration of the object approaching signal is greater than or equal to a first preset duration threshold, generating an on signal; The trunk is controlled to open according to the opening signal.
[0072] An electronic device 1100 that can serve as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. The electronic device 1100 is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device 1100 can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0073] Electronic device 1100 includes a computing unit that can perform various appropriate actions and processes based on a computer program stored in a read-only memory (ROM) or loaded from a storage unit into a random access memory (RAM). The RAM can also store various programs and data required for device operation. The computing unit, ROM, and RAM are interconnected via a bus. An input / output (I / O) interface is also connected to the bus.
[0074] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). In this application, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network elements. Some or all of these units can be selected based on actual needs to achieve the objectives of the embodiments of the present invention. Furthermore, the functional units in the various embodiments of the present invention can be integrated into a single processing unit, each unit can exist physically separately, or two or more units can be integrated into a single unit. These integrated units can be implemented in either hardware or software functional units.
[0075] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.
Claims
1. A trunk control method, characterized in that: include: Detecting the position of an object by a sensor, and generating an object proximity signal when the position of the object is within the sensing area of the sensor; When the duration of the object approaching signal is greater than or equal to a first preset duration threshold, generating an on signal; The trunk is controlled to open according to the opening signal.
2. The trunk control method according to claim 1, characterized in that: The sensor includes a transmitter and a receiver, and detecting the position of the object by the sensor includes: The transmitter transmits a signal wave, and the receiver receives a reflected wave of the signal wave, wherein the signal wave and the reflected wave have the same wave speed; The propagation time is determined based on the emission time of the signal wave and the reception time of the reflected wave, the distance between the object and the sensor is determined based on the propagation time and the wave speed of the signal wave, and the position of the object is determined based on the distance between the object and the sensor and the position of the sensor.
3. The trunk control method according to claim 2, characterized in that: Before detecting the position of the object by the sensor, the method further includes: When the trunk is in a locked state, the transmitter and the receiver are controlled to be in a dormant state.
4. The trunk control method according to claim 1, characterized in that: When the object is located in the sensing area of the sensor, generating an object approach signal includes: determining a movement trend of the object based on the positions of the object detected multiple times; The object proximity signal is generated when the movement trend indicates that the object is moving toward the sensor.
5. The trunk control method according to claim 4, characterized in that: Also includes: generating an object moving away signal when the movement trend indicates that the object moves away from the sensor; When the duration of the object being away from the signal is greater than or equal to a second preset duration threshold, generating a shutdown signal; The trunk is controlled to close according to the closing signal.
6. The trunk control method according to claim 1, characterized in that: The sensor further includes a camera, and generating a start signal includes: detecting gestures via the camera; When the duration of the object approach signal is greater than or equal to the first preset duration threshold and the gesture is a first preset gesture, the start signal is generated.
7. The trunk control method according to claim 5, characterized in that: The sensor further includes a camera, and generating a shutdown signal includes: detecting gestures via the camera; When the duration of the object moving away from the signal is greater than or equal to the second preset duration threshold and the gesture is a second preset gesture, the closing signal is generated.
8. A trunk control device, characterized in that: include: The first module is configured to detect a position of an object using a sensor, and generate an object approach signal when the object is within a sensing area of the sensor; A second module is configured to generate an on signal when the duration of the object approaching signal is greater than or equal to a first preset duration threshold; The third module is used to control the opening of the trunk according to the opening signal.
9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to implement the trunk control method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the trunk control method according to any one of claims 1 to 7 is implemented.