Vehicle cup holder control method and device, electronic equipment and storage medium
The vehicle cup holder detects the bottle's pressing operation, clamps and rotates the bottle to open the bottle cap, solving the problem of the driver being unable to operate with one hand while driving, and realizes safe and convenient bottle cap opening.
Patent Information
- Application Number
- CN202410977119.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-07-19
AI Technical Summary
The driver is unable to open the bottle cap with one hand while driving the car, resulting in an unsafe situation where both hands are off the steering wheel.
The vehicle cup holder detects the bottle's pressing operation, clamps the bottle and drives it to rotate to open the bottle cap. The clamping unit and the rotation unit work together to achieve one-handed operation.
The driver can open the bottle cap with one hand without affecting driving safety, which improves the convenience during driving.
Smart Images

Figure CN118894032B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive technology, and more specifically, to a control method, device, electronic device, and storage medium for a vehicle cup holder. Background Art
[0002] With the rapid development of science and technology, cars are used more and more frequently in people's daily travel. People have put forward higher requirements for cars, requiring them to provide not only a comfortable riding environment, but also some convenient conditions needed for life. In order to facilitate the use of drivers and passengers, vehicle cup holders are usually provided between the seats of the vehicle.
[0003] Currently, most car cup holders are used to hold cups or bottles. When a driver wants to drink water while driving, they cannot open the bottle cap with one hand. Therefore, how to use the car cup holder to assist the driver in opening the bottle cap has become an urgent problem to be solved. Summary of the Invention
[0004] In view of this, embodiments of the present application provide a method, device, electronic device, and storage medium for controlling a vehicle cup holder to improve the above-mentioned problem.
[0005] According to a first aspect of an embodiment of the present application, a method for controlling a vehicle cup holder is provided, the method comprising: upon determining that a bottle is placed in the vehicle cup holder, detecting a pressing operation on the bottle via the vehicle cup holder; if a first pressing operation on the bottle is detected, controlling the vehicle cup holder to clamp the bottle; while the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to rotate the bottle in a first preset direction; and if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, controlling the vehicle cup holder to stop rotating.
[0006] According to a second aspect of an embodiment of the present application, a control device for a vehicle cup holder is provided, comprising a vehicle cup holder, wherein the vehicle cup holder comprises a pressure detection unit, a clamping unit, and a rotation unit, the device further comprising: a first detection module for detecting a pressing operation on the bottle by means of the pressure detection unit when determining that a bottle is placed in the vehicle cup holder; a clamping module for controlling the clamping unit to clamp the bottle if a first pressing operation on the bottle is detected; a first rotation module for controlling the rotating unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; and a first control module for controlling the rotating unit to stop rotating if determining that the rotation angle of the rotating unit in the first preset direction reaches a preset angle.
[0007] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a processor; and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the control method of the vehicle cup holder as described above is implemented.
[0008] According to a fourth aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor, the control method of the vehicle cup holder as described above is implemented.
[0009] In the solution of the present application, when it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected based on the vehicle cup holder. When the first pressing operation on the bottle is detected, the vehicle cup holder is controlled to clamp the bottle. When the cup is clamped, the vehicle cup holder is controlled to drive the bottle to rotate in a first preset direction. When it is determined that the rotation angle of the bottle driven by the vehicle cup holder in the first preset direction reaches a preset angle, it is determined that the bottle body and the bottle cap are currently separated, and the vehicle cup holder is controlled to stop rotating, thereby ensuring that the driver can open the bottle cap with a single hand.
[0010] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The accompanying drawings are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and those skilled in the art can derive other drawings based on these drawings without inventive effort.
[0012] Figure 1 It is a schematic diagram of a scenario shown according to an embodiment of the present application.
[0013] Figure 2 1 is a flow chart of a method for controlling a vehicle cup holder according to an embodiment of the present application.
[0014] Figure 3 4 is a flow chart of a method for controlling a vehicle cup holder according to another embodiment of the present application.
[0015] Figure 4 FIG. 4 is a flow chart of a method for controlling a vehicle cup holder according to another embodiment of the present application.
[0016] Figure 5 It is a flowchart illustrating the specific steps of step 330 according to an embodiment of the present application.
[0017] Figure 6 4 is a flow chart of a method for controlling a vehicle cup holder according to another embodiment of the present application.
[0018] Figure 7 4 is a flow chart of a method for controlling a vehicle cup holder according to yet another embodiment of the present application.
[0019] Figure 8 4 is a block diagram of a control device for a vehicle cup holder according to an embodiment of the present application.
[0020] Figure 9 It is a hardware structure diagram of an electronic device according to an embodiment of the present application.
[0021] The above-mentioned drawings have shown clear embodiments of the present invention, which will be described in more detail later. These drawings and textual descriptions are not intended to limit the scope of the present invention in any way, but to illustrate the concept of the present invention to computer technicians in this field through specific embodiments. DETAILED DESCRIPTION
[0022] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the concepts of the example embodiments to those skilled in the art.
[0023] It should be noted that the terms "first", "second", etc. in the description and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0024] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner.In the following description, many specific details are provided so as to provide a full understanding of the embodiments of the present application. However, it will be appreciated by those skilled in the art that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, devices, steps etc. can be adopted. In other cases, known methods, devices, implementations or operations are not shown or described in detail to avoid blurring the various aspects of the application.
[0025] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices. The flowcharts shown in the accompanying drawings are merely illustrative and do not necessarily include all content and operations / steps, nor do they necessarily need to be executed in the order described. For example, some operations / steps may be further decomposed, while others may be combined or partially combined, so the actual execution order may vary depending on the actual situation.
[0026] Figure 1 is a schematic diagram of a scenario according to an embodiment of the present application, such as Figure 1 As shown, this scenario schematic includes a vehicle cup holder, wherein the vehicle cup holder includes a pressure detection unit 10, a clamping unit 20, and a rotating unit 30. When it is determined that a bottle is placed in the vehicle cup holder, the pressure detection unit 10 detects a pressing operation on the bottle. When the pressure detection unit 10 detects a first pressing operation on the bottle, the clamping unit 20 is controlled to clamp the bottle. Then, when the clamping unit S20 clamps the bottle, the rotating unit 30 is controlled to rotate the bottle in a first preset direction. When it is determined that the rotation angle of the bottle in the first preset direction caused by the rotating unit 30 reaches a preset angle, the rotating unit 30 is controlled to stop rotating, thereby ensuring that the driver can smoothly unscrew the bottle cap with the help of the vehicle cup holder.
[0027] See also Figure 2 , Figure 2 The control method of the vehicle cup holder provided by an embodiment of the present application is shown. In a specific embodiment, the control method of the vehicle cup holder can be applied to Figure 8 The control device 600 of the vehicle cup holder and the electronic device 700 equipped with the control device 600 of the vehicle cup holder are shown. Figure 9 ). The specific process of this embodiment will be described below. Of course, it can be understood that the method can be executed by a cloud server with computing processing capabilities. Figure 2 The process shown in FIG. 1 is described in detail. The control method of the vehicle cup holder may specifically include the following steps:
[0028] Step 110 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0029] As a method, when a driver wants to drink water while driving alone, they can only open the bottle cap with both hands, but this will cause their hands to leave the steering wheel. To enable the user to open the bottle cap with one hand, the vehicle cup holder can be used. Optionally, if it is determined that a bottle is placed in the vehicle cup holder, if the driver presses down on the bottle, it is determined that the driver currently wants to use the vehicle cup holder to assist the driver in opening the bottle cap. Therefore, the vehicle cup holder can detect the pressing operation on the bottle.
[0030] Optionally, a press detection unit may be provided at the bottom of the vehicle cup holder, so that a press operation on the bottle can be detected by the press detection unit, so that the vehicle cup holder can assist the driver in opening the bottle cap when a press operation on the bottle is detected.
[0031] Step 120 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0032] As a method to avoid misjudging a pressing operation on the bottle due to the weight of the bottle itself, a pressure detection unit disposed at the bottom of the vehicle cup holder can be used to detect whether the pressure value of the pressing operation on the bottle is greater than or equal to a pressure threshold to determine whether the first pressing operation on the bottle has been detected. If the pressure value of the pressing operation on the bottle is determined to be greater than or equal to the pressure threshold, the first pressing operation on the bottle is detected. The pressure threshold can be set based on actual needs and is not specifically limited herein.
[0033] Optionally, after detecting the first pressing action on the bottle, to facilitate single-handed opening of the bottle cap by the driver, a clamping unit in the vehicle's cup holder can be controlled to clamp the bottle, allowing the driver to open the bottle cap with one hand. The clamping unit in the vehicle's cup holder can be an air bag that inflates to clamp the bottle, increasing the clamping area and preventing the bottle from shaking in the cup holder. Alternatively, the clamping unit can be a fixed clip located at different locations in the vehicle's cup holder. The clip can be arc-shaped to better fit the bottle and ensure a secure grip.
[0034] Step 130 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0035] As a method, after determining that the vehicle cup holder has clamped the bottle, in order to assist the driver in smoothly opening the bottle cap, the rotating unit in the vehicle cup holder can be controlled to drive the bottle to rotate together, so that the driver can fix the bottle cap by pinching it, and the bottle body and the bottle cap will separate as the vehicle cup holder rotates.
[0036] Optionally, since most beverages currently separate the bottle cap from the bottle body by rotating the bottle cap clockwise, the first preset direction may be clockwise. Optionally, the first preset direction may be a user-defined direction, which may be set via an electronic device (such as a smartphone, smart wearable device, or tablet computer) connected to the vehicle, or via a direction setting button on the vehicle cup holder.
[0037] Step 140 : If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, control the vehicle cup holder to stop rotating.
[0038] As one method, when the vehicle cup holder drives the bottle to rotate in a first preset direction to a certain angle, it can be determined that the bottle cap is separated from the bottle body. At this time, the rotation unit in the vehicle cup holder is controlled to stop rotation, and the clamping unit of the vehicle cup holder is controlled to release the bottle, allowing the driver to remove the bottle from the vehicle cup holder. The preset angle can be 720 degrees, that is, the angle at which the rotation unit drives the bottle body to rotate two circles, or other angles can be set according to actual needs and are not specifically limited here.
[0039] In an embodiment of the present application, when it is determined that a bottle is placed in a vehicle cup holder, a pressing operation on the bottle is detected based on the vehicle cup holder. When the first pressing operation on the bottle is detected, the vehicle cup holder is controlled to clamp the bottle. When the cup is clamped, the vehicle cup holder is controlled to drive the bottle to rotate in a first preset direction. When it is determined that the rotation angle of the bottle driven by the vehicle cup holder in the first preset direction reaches a preset angle, it is determined that the bottle body and the bottle cap are currently separated, and the vehicle cup holder is controlled to stop rotating. This ensures that the driver can open the bottle cap with a single hand.
[0040] See also Figure 3 , Figure 3 The control method of the vehicle cup holder provided by an embodiment of the present application is shown below. Figure 3 The process shown in FIG. 1 is described in detail. The control method of the vehicle cup holder may specifically include the following steps:
[0041] Step 210 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0042] Step 220 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0043] Step 230 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0044] Step 240 : If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating.
[0045] The specific descriptions of steps 210 to 240 may refer to step 110 and steps 130 to 140 and will not be repeated here.
[0046] In step 250 , when the bottle is taken out of the vehicle cup holder and then put back into the vehicle cup holder, a pressing operation on the bottle is detected by the vehicle cup holder.
[0047] As one approach, a pressure sensor at the bottom of the vehicle cup holder can be used to detect whether the bottle has been removed from the vehicle cup holder and whether the bottle has been placed back in after being removed. Alternatively, when the pressure sensor at the bottom of the vehicle cup holder detects no pressure, it can be determined that the bottle has been removed from the vehicle cup holder. When the pressure sensor at the bottom of the vehicle cup holder detects pressure again, it can be determined that the bottle has been removed from the vehicle cup holder and then placed back in.
[0048] Optionally, a press detection unit may be provided at the bottom of the vehicle cup holder, so that a press operation on the bottle can be detected by the press detection unit, so that the vehicle cup holder can assist the driver in tightening the bottle cap when a press operation on the bottle is detected.
[0049] Step 260 : If a second pressing operation on the bottle is detected, controlling the vehicle cup holder to drive the bottle to rotate in a second preset direction, wherein the first preset direction and the second preset direction are opposite directions.
[0050] As a method for preventing the liquid in the bottle from spilling due to the movement of the vehicle when the beverage in the bottle is returned to the vehicle cup holder, the vehicle cup holder can be used to assist the driver in tightening the bottle cap. Therefore, a pressure detection unit at the bottom of the vehicle cup holder detects whether the pressure acting on the vehicle cup holder is greater than a pressure threshold. When it is determined that the pressure value of the pressing operation on the bottle is greater than or equal to the pressure threshold, it is determined that a second pressing operation on the bottle has been detected.
[0051] Optionally, when it is determined that a second pressing operation is detected on the bottle, it is determined that the driver currently wants to tighten the bottle cap with the assistance of the vehicle cup holder. Therefore, the rotating unit of the vehicle cup holder can be controlled to drive the bottle to rotate in a second preset direction. Since the driver pinches the bottle cap to fix it, the bottle body rotates with the rotating unit, and the bottle cap can be tightened with the help of the vehicle cup holder.
[0052] Optionally, before controlling the vehicle cup holder to drive the bottle to rotate, the bottle may be clamped by controlling a clamping unit of the vehicle cup holder, thereby preventing the bottle from shaking in the vehicle cup holder and causing the bottle cap to be unable to be tightened.
[0053] Step 270 : If it is determined that the rotation angle of the vehicle cup holder in the second preset direction reaches the preset angle, control the vehicle cup holder to stop rotating.
[0054] As a method, when the vehicle cup holder rotates the bottle in a second predetermined direction to a certain angle, the bottle cap and bottle body are confirmed to be tightened. At this point, the rotation unit in the vehicle cup holder is controlled to stop rotating, thereby returning the bottle to its pre-unscrewed position in the vehicle cup holder. The predetermined angle can be 720°, which is the angle at which the rotation unit rotates the bottle body in the opposite direction twice. Other angles are also possible and can be set according to actual needs. This is not specifically limited here.
[0055] In this embodiment, after determining that a bottle placed in the vehicle cup holder has been taken out and then placed back, the vehicle cup holder detects a pressing operation on the bottle. After detecting a second pressing operation on the bottle, the vehicle cup holder is controlled to drive the bottle to rotate in a second preset direction opposite to the first preset direction. When it is determined that the rotation angle in the second preset direction reaches a preset angle, the vehicle cup holder is controlled to stop rotating. In this way, the driver can tighten the bottle cap with the assistance of the vehicle cup holder.
[0056] See also Figure 4 , Figure 4 The control method of the vehicle cup holder provided by an embodiment of the present application is shown below. Figure 4 The process shown in FIG. 1 is described in detail. The control method of the vehicle cup holder may specifically include the following steps:
[0057] Step 310 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0058] Step 320 : If a first pressing operation on the bottle is detected, control the vehicle cup holder to clamp the bottle.
[0059] Step 330, in the case that the vehicle cup holder clamps the bottle, the vehicle cup holder drives the bottle to rotate in a first preset direction.
[0060] Step 340, if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches the preset angle, the pressing operation on the bottle is detected by the vehicle cup holder.
[0061] As a way, when the rotation angle of the bottle driven by the rotation unit of the vehicle cup holder in the first preset direction reaches the preset angle, it can be determined that the bottle cap and the bottle body of the bottle have been separated at this time. In order to ensure that the opened bottle does not spill liquid, the clamping unit of the vehicle cup holder does not immediately release the clamping force of the bottle, and needs to be pressed by the driver on the bottle body to release the clamping force of the bottle, and then the pressing operation on the bottle is detected by the pressure detection unit at the bottom of the vehicle cup holder.
[0062] Step 350, if the third pressing operation on the bottle is detected, the vehicle cup holder is controlled to stop rotating, and the vehicle cup holder is controlled to release the clamping force of the bottle.
[0063] As a way, if the pressure detection unit at the bottom of the vehicle cup holder detects that the pressure value acting on the bottle is greater than the pressure threshold value, it can be determined that the third pressing operation on the bottle is detected, and at this time it can be determined that the driver currently needs to take the bottle out of the vehicle cup holder. Therefore, the rotation control unit of the vehicle cup holder can be controlled to stop rotating first, and after stopping rotating, the clamping unit of the vehicle cup holder is controlled to release the clamping force of the bottle, so as to ensure that the driver can smoothly take the bottle out of the vehicle cup holder.
[0064] Step 360, if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches the preset angle, the vehicle cup holder is controlled to stop rotating.
[0065] The specific step descriptions of steps 310-330-360 can be referred to steps 110-140, which will not be described here.
[0066] In some embodiments, as shown in Figure 5 Step 330 includes:
[0067] Step 331, detecting the structure of the bottle.
[0068] As a way, the image of the vehicle cup holder can be obtained by the indoor camera arranged on the vehicle, and the structure of the bottle in the vehicle cup holder is detected by recognizing the image of the vehicle cup holder. The structure of the bottle can be a structure including a bottle body and a bottle cap, or a structure including only a bottle body.
[0069] Step 332 : If the structure includes a bottle body and a bottle cap, then when the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in the first preset direction.
[0070] As one approach, when it is determined that the bottle structure includes a bottle body and a bottle cap, it can be determined that the driver needs to use the vehicle cup holder to open the bottle cap, thereby allowing the driver to smoothly drink the liquid (water or beverage, etc.) in the bottle, thereby resolving the problem of the driver having difficulty drinking water while driving. Therefore, when it is determined that the bottle structure includes a bottle body and a bottle cap, the bottle is clamped by controlling the clamping unit of the vehicle cup holder. While the bottle is clamped, the rotation unit of the vehicle cup holder is controlled to rotate the bottle.
[0071] Step 333 : If the structure only includes the bottle body, control the vehicle cup holder to clamp the bottle.
[0072] As one approach, when it is determined that the structure of the bottle includes a bottle body, it can be determined that the driver does not need the assistance of the vehicle cup holder to open the bottle cap. Furthermore, it is only necessary that the vehicle cup holder can ensure that the bottle does not shake in the vehicle cup holder. Therefore, the bottle can be clamped by controlling the clamping unit of the vehicle cup holder.
[0073] In this embodiment, when the vehicle cup holder drives the bottle to rotate in the first preset direction to a preset angle, the vehicle cup holder detects a pressing operation on the bottle. When a third pressing operation on the bottle is detected, the vehicle cup holder is controlled to stop rotating and release the clamping force of the bottle, thereby allowing the driver to smoothly remove the bottle from the vehicle cup holder.
[0074] See also Figure 6 , Figure 6 The control method of the vehicle cup holder provided by an embodiment of the present application is shown below. Figure 6 The process shown in FIG. 1 is described in detail. The control method of the vehicle cup holder may specifically include the following steps:
[0075] Step 410 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0076] In step 420 , if a first pressing operation on the bottle is detected, the vehicle cup holder is controlled to clamp the bottle.
[0077] Step 430 : Acquire a driver image when the vehicle cup holder clamps the bottle.
[0078] As a method, when the rotating unit in the vehicle cup holder drives the bottle to rotate, different drivers have different experiences with the rotation speed of the rotating unit. Therefore, the rotating unit can be controlled to rotate at different rotation speeds according to different drivers, and then the driver's image can be obtained through the vehicle's indoor camera.
[0079] Step 440: Identify the driver based on the driver image to determine the driver's identity.
[0080] As one method, the driver's identity can be identified by obtaining the driver's identity identifier, thereby determining the driver's identity through the identity identifier, and thus determining the rotation speed set for the driver. Optionally, the driver's image can be identified using a trained facial recognition neural network.
[0081] Step 450 : Determine a target rotation speed corresponding to the identity identifier, and control the vehicle cup holder to drive the bottle to rotate in the first preset direction at the target rotation speed.
[0082] As a method, corresponding rotation speeds can be pre-set for different drivers. Different drivers have different corresponding identity identifiers. After determining the identity identifier corresponding to the driver image, the identified identity identifier can be compared with the pre-stored driver identity identifiers to determine the driver corresponding to the identity identifier, and then the target rotation speed corresponding to the driver can be determined. Finally, the rotation unit of the vehicle cup holder can be controlled to drive the bottle to rotate at the target rotation speed in the first preset direction.
[0083] In some embodiments, step 450 includes: if the identity identifier indicates that the driver is a certified driver, determining a first rotational speed as the target rotational speed; or if the identity identifier indicates that the driver is an uncertified driver, determining a second rotational speed as the target rotational speed, wherein the second rotational speed is a default rotational speed and the first rotational speed is different from the second rotational speed.
[0084] As a method, the car owner and the car owner's family can be authenticated in advance, and the rotation speed corresponding to their respective preferences can be set, so that the authenticated user and the corresponding rotation speed can be associated and stored. In this way, when it is determined based on the identity identifier that the current driver is not an authenticated driver, the first rotation speed corresponding to the authenticated driver can be directly obtained, so that the first rotation speed is determined as the target rotation speed, so that the bottle can be driven to rotate in the first preset direction through the first rotation speed.
[0085] Optionally, if the current driver is determined to be an uncertified driver based on the identity identification, in order to ensure that the uncertified driver can also open the bottle cap with the assistance of the vehicle cup holder, the default rotation speed (set second rotation speed) set by the vehicle before leaving the factory can be determined as the target rotation speed, so that the bottle can be driven to rotate in the first preset direction by the default rotation speed.
[0086] Step 460 : If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, control the vehicle cup holder to stop rotating.
[0087] The specific step descriptions of step 410 to step 420 and step 460 can refer to step 110 to step 120 and step 140, which will not be repeated here.
[0088] In this embodiment, the driver's identity is determined by recognizing the acquired driver image, and the target rotation speed of the vehicle cup holder is determined based on the identity. The rotation of the vehicle cup holder is controlled by the target rotation speed, thereby improving the user experience.
[0089] See also Figure 7 , Figure 7 The control method of the vehicle cup holder provided by an embodiment of the present application is shown below. Figure 7 The process shown in FIG. 1 is described in detail. The control method of the vehicle cup holder may specifically include the following steps:
[0090] Step 510 : When it is determined that a bottle is placed in the vehicle cup holder, a pressing operation on the bottle is detected through the vehicle cup holder.
[0091] Step 520: If a first pressing operation on the bottle is detected, obtain label information corresponding to the bottle.
[0092] As one approach, since bottles made of different materials require different clamping forces, for example, glass and plastic bottles, excessive clamping force can damage the bottle, while insufficient clamping force can cause the bottle to wobble in the vehicle's cup holder, preventing the cap from opening smoothly. Therefore, before clamping the bottle, the bottle's material can be determined based on the label information, thereby determining the appropriate clamping force. Alternatively, the vehicle's interior camera can capture images of the bottle, and the bottle's label information can be retrieved from the captured images.
[0093] Step 530: Determine the target material of the bottle according to the label information, and determine the target clamping force of the bottle according to the target material.
[0094] As a method, the material of the container used to hold the liquid is usually indicated in the bottle label information, so that the target material of the bottle can be read from the obtained bottle label information, where the target material can be plastic, glass, aluminum products, stainless steel, etc.
[0095] Optionally, the clamping force can be tested in advance for different materials to determine the clamping force corresponding to bottles of different materials. After the target material is determined, the target clamping force of the corresponding bottle can be directly determined according to the target material.
[0096] Step 540 : Control the vehicle cup holder to clamp the bottle according to the target clamping force.
[0097] As a method, after determining the target clamping force of the bottle, the clamping unit of the vehicle cup holder can be controlled to clamp the bottle with the target clamping force, thereby avoiding over-clamping or failure to clamp the bottle, and ensuring that the driver can smoothly unscrew the bottle cap with the assistance of the vehicle cup holder.
[0098] Step 550 : When the vehicle cup holder clamps the bottle, control the vehicle cup holder to drive the bottle to rotate in a first preset direction.
[0099] Step 560 : If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, control the vehicle cup holder to stop rotating.
[0100] The specific step descriptions of step 510 and step 550 - step 560 can refer to step 110 and step 130 - step 140, which will not be repeated here.
[0101] In this embodiment, the target material of the bottle is determined based on the obtained bottle label information, so that the clamping force of the bottle can be determined based on the target material. Furthermore, the vehicle cup holder can be controlled to clamp the bottle based on the clamping force, thereby avoiding over-clamping or failure to clamp the bottle, and ensuring that the driver can smoothly unscrew the bottle cap with the help of the vehicle cup holder.
[0102] Figure 8 is a block diagram of a control device for a vehicle cup holder according to an embodiment of the present application, including a vehicle cup holder, wherein the vehicle cup holder includes a pressure detection unit, a clamping unit, and a rotating unit. Figure 8 As shown, the control device 600 for the vehicle cup holder includes: a first detection module 610 , a clamping module 620 , a first rotation module 630 and a first control module 640 .
[0103] The first detection module 610 is used to detect a pressing operation on the bottle through the pressure detection unit when it is determined that a bottle is placed in the vehicle cup holder; the clamping module 620 is used to control the clamping unit to clamp the bottle if a first pressing operation on the bottle is detected; the first rotation module 630 is used to control the rotation unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; and the first control module 640 is used to control the rotation unit to stop rotating if it is determined that the rotation angle of the rotation unit in the first preset direction reaches a preset angle.
[0104] In some embodiments, the control device 600 of the vehicle cup holder further includes: a second detection module, configured to detect, through the pressure detection unit, a pressing operation applied to the bottle when the bottle is taken out of the vehicle cup holder and then placed back; a second rotation module, configured to control the rotation unit to rotate the bottle in a second preset direction if a second pressing operation applied to the bottle is detected, wherein the first preset direction and the second preset direction are opposite directions; and a second control module, configured to control the rotation unit to stop rotating if it is determined that the rotation angle of the rotation unit in the second preset direction reaches the preset angle.
[0105] In some embodiments, the first control module 640 includes: a first detection submodule, which is used to detect the pressing operation applied to the bottle through the pressure detection unit if it is determined that the rotation angle of the rotating unit in the first preset direction reaches the preset angle; and a first control submodule, which is used to control the rotating unit to stop rotating and control the clamping unit to release the force of clamping the bottle if a third pressing operation applied to the bottle is detected.
[0106] In some embodiments, the first rotation module 630 includes: a second detection submodule for detecting the structure of the bottle; a second control submodule for controlling the rotation unit to drive the bottle to rotate in the first preset direction when the clamping unit clamps the bottle if the structure includes a bottle body and a bottle cap; or a third control submodule for controlling the clamping unit to clamp the bottle if the structure only includes a bottle body.
[0107] In some embodiments, the first rotation module 630 further includes: an image acquisition submodule for acquiring a driver image; an identity identification determination submodule for identifying the driver based on the driver image and determining the driver's identity; a rotation submodule for determining a target rotation speed corresponding to the identity, and controlling the rotation unit to drive the bottle to rotate in the first preset direction at the target rotation speed.
[0108] In some embodiments, the rotation submodule includes: a first target rotation speed determination unit, used to determine a first rotation speed as the target rotation speed if the identity identifier indicates that the driver is a certified driver; or a second target rotation speed determination unit, used to determine a second rotation speed as the target rotation speed if the identity identifier indicates that the driver is an uncertified driver, wherein the second rotation speed is a default rotation speed, and the first rotation speed is different from the second rotation speed.
[0109] In some embodiments, the clamping module 620 includes: a label information acquisition submodule, used to obtain the label information corresponding to the bottle; a target clamping force determination submodule, used to determine the target material of the bottle based on the label information, and determine the target clamping force of the bottle based on the target material; a clamping submodule, used to control the clamping unit to clamp the bottle according to the target clamping force.
[0110] According to one aspect of the embodiments of the present application, an electronic device is also provided, such as Figure 9 As shown, the vehicle 700 includes a processor 710 and one or more memories 720 . The one or more memories 720 are used to store program instructions executed by the processor 710 . When the processor 710 executes the program instructions, the above-mentioned vehicle cup holder control method is implemented.
[0111] Furthermore, the processor 710 may include one or more processing cores. The processor 710 runs or executes instructions, programs, code sets or instruction sets stored in the memory 720, and calls data stored in the memory 720. Optionally, the processor 710 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 710 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing display content; and the modem is used to handle wireless communications. It is understandable that the above-mentioned modem may not be integrated into the processor and may be implemented separately through a communication chip.
[0112] According to one aspect of the present application, a computer-readable storage medium is provided. The computer-readable storage medium may be included in the electronic device described in the above embodiments, or may exist independently without being incorporated into the electronic device. The computer-readable storage medium carries computer-readable instructions. When the computer-readable storage instructions are executed by a processor, the method of any of the above embodiments is implemented.
[0113] It should be noted that the computer readable medium shown in the embodiments of the present application can be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination of the above. More specific examples of the computer readable storage medium can include, but are not limited to, an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (Compact Disc Read-Only Memory, CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device or apparatus. In the present application, the computer readable signal medium can include a data signal carried in a baseband or as a part of a carrier wave, which carries computer readable program code. Such a propagated data signal can take various forms, including but not limited to an electromagnetic signal, an optical signal or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium other than the computer readable storage medium, which can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or apparatus. The program code contained on the computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wired or the like, or any suitable combination thereof.
[0114] The units described in the embodiments of the present application can be implemented in software or hardware, and the described units can also be arranged in a processor. In some cases, the names of the units do not constitute a limitation on the units themselves.
[0115] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. Among them, each box in the flowchart or block diagram can represent a module, program segment, or part of the code, and the above-mentioned module, program segment, or part of the code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0116] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of this application and include common knowledge or customary techniques in the art that are not disclosed herein.
[0117] It should be understood that the present application is not limited to the exact structures 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.
Claims
1. A method for controlling a vehicle cup holder, characterized in that: The method comprises: When it is determined that a bottle is placed in the vehicle cup holder, detecting a pressing operation on the bottle through the vehicle cup holder; If a first pressing operation acting on the bottle is detected by a pressure detection unit of the vehicle cup holder, controlling the vehicle cup holder to clamp the bottle; When the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction; If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, controlling the vehicle cup holder to stop rotating; If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, controlling the vehicle cup holder to stop rotating includes: If it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches the preset angle, the pressing operation applied to the bottle is detected by a pressure detection unit of the vehicle cup holder; if a third pressing operation applied to the bottle is detected, the vehicle cup holder is controlled to stop rotating, and the force with which the vehicle cup holder clamps the bottle is controlled to be released.
2. The method according to claim 1, characterized in that After controlling the vehicle cup holder to stop rotating if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle, the method includes: When the bottle is taken out of the vehicle cup holder and then put back into the vehicle cup holder, detecting a pressing operation on the bottle through the vehicle cup holder; If a second pressing operation on the bottle is detected, controlling the vehicle cup holder to drive the bottle to rotate in a second preset direction, wherein the first preset direction and the second preset direction are two opposite directions; If it is determined that the rotation angle of the vehicle cup holder in the second preset direction reaches the preset angle, the vehicle cup holder is controlled to stop rotating.
3. The method according to claim 1, characterized in that When the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction includes: detecting the structure of the bottle; If the structure includes a bottle body and a bottle cap, when the vehicle cup holder clamps the bottle, controlling the vehicle cup holder to drive the bottle to rotate in the first preset direction; or If the structure only includes the bottle body, the vehicle cup holder is controlled to clamp the bottle.
4. The method according to claim 1, wherein The controlling the vehicle cup holder to drive the bottle to rotate in a first preset direction includes: Acquire driver image; Identify the driver based on the driver image to determine the driver's identity; A target rotation speed corresponding to the identity identifier is determined, and the vehicle cup holder is controlled to drive the bottle to rotate at the target rotation speed in the first preset direction.
5. The method according to claim 4, characterized in that The determining of the target rotation speed corresponding to the identity identifier includes: If the identity identifier indicates that the driver is an authenticated driver, determining a first rotational speed as the target rotational speed; or If the identity identifier indicates that the driver is an uncertified driver, a second rotational speed is determined as the target rotational speed, wherein the second rotational speed is a default rotational speed and the first rotational speed is different from the second rotational speed.
6. The method according to any one of claims 1 to 5, characterized in that The controlling the vehicle cup holder to clamp the bottle comprises: Obtain label information corresponding to the bottle; determining a target material of the bottle according to the label information, and determining a target clamping force of the bottle according to the target material; The vehicle cup holder is controlled to clamp the bottle according to the target clamping force.
7. A control device for a vehicle cup holder, characterized in that: A vehicle cup holder is provided, wherein the vehicle cup holder includes a pressure detection unit, a clamping unit, and a rotating unit. The device further includes: a first detection module, configured to detect a pressing operation on the bottle through the pressure detection unit when determining that a bottle is placed in the cup holder of the vehicle; a clamping module, configured to control the clamping unit to clamp the bottle if a first pressing operation acting on the bottle is detected by a pressure detection unit of the vehicle cup holder; a first rotating module, configured to control the rotating unit to drive the bottle to rotate in a first preset direction when the clamping unit clamps the bottle; a first control module, configured to detect a pressing operation on the bottle via a pressure detection unit of the vehicle cup holder if it is determined that the rotation angle of the vehicle cup holder in the first preset direction reaches a preset angle; and control the vehicle cup holder to stop rotating and control the vehicle cup holder to release the force with which it clamps the bottle if a third pressing operation on the bottle is detected.
8. An electronic device, characterized in that: The electronic device comprises: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method according to any one of claims 1 to 6 is implemented.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores program code, which can be called by a processor to execute the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Bottle opening and closing device used in motor vehicle
CN107720659A
Motor vehicle with a device for opening and closing a rotary lock
DE102019006899A1
KR20210051198A