Vehicle computer control method, device and vehicle computer
By setting an induction device inside the vehicle to monitor the air pressure value, and determining whether the pressing operation occurs in the designated area of the vehicle housing, the distraction problem caused by the user's need to touch the screen for vehicle control is solved, and non-contact vehicle control is realized, improving user experience and safety.
Patent Information
- Application Number
- CN202410730985.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2025-03-14
- Estimated Expiration
- 2044-06-06
AI Technical Summary
In the scenario where the car computer cancels the physical buttons, the user needs to touch the screen to control the car computer, which causes the user to be distracted and increases the driving risk.
By setting an induction device inside the vehicle machine, monitoring the air pressure value, determining whether the pressing operation occurs in the designated area of the vehicle housing, and controlling the vehicle machine to execute corresponding instructions according to this.
The contactless car control method is realized, allowing users to control the car by pressing the car housing area without directly touching the screen, which improves the convenience of the user experience and reduces the increased risk of distraction during driving.
Smart Images

Figure CN118560405B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle computers, and in particular to a vehicle computer control method, device and vehicle computer. Background Art
[0002] With the development of science and technology, cars are becoming more and more intelligent. As an important part of cars, car computers are becoming more and more versatile. Furthermore, the operation of car computers is becoming more and more like a smart tablet. In this way, some of the original physical buttons are cancelled and the touch control of the car computer is realized on the touch screen of the car computer.
[0003] However, the touch control operation method usually requires the user to accurately touch the corresponding screen position to achieve precise vehicle control. Therefore, when the user touches the vehicle, he needs to divert some of his attention to the vehicle screen, which increases the danger of driving to a certain extent. Summary of the invention
[0004] The present application provides a vehicle computer control method, device and vehicle computer to solve the technical problem that in the scenario where the physical buttons of the vehicle computer are cancelled, the user needs to touch the vehicle computer screen to implement any vehicle computer control operation, causing the user to be distracted by clicking on the vehicle computer screen, thereby increasing the risk of vehicle driving.
[0005] In a first aspect, the present application provides a vehicle control method, the method comprising:
[0006] The air pressure value inside the vehicle computer is monitored by a sensing device arranged inside the vehicle computer;
[0007] Determining whether a pressing operation occurs in a designated area on the vehicle computer according to the change of the air pressure value, wherein the designated area is located on a housing of the vehicle computer;
[0008] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
[0009] In a possible implementation manner, determining whether a pressing operation occurs in a designated area on the vehicle computer according to the change in the air pressure value includes:
[0010] Obtaining the current air pressure value inside the vehicle computer monitored;
[0011] Determining whether the air pressure inside the vehicle computer changes according to the current air pressure value inside the vehicle computer;
[0012] When it is determined that the air pressure inside the vehicle computer changes, a sequence of air pressure values inside the vehicle computer monitored is obtained, wherein the sequence of air pressure values includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1;
[0013] It is determined whether a pressing operation occurs in a designated area on the vehicle computer according to the air pressure value sequence.
[0014] In a possible implementation manner, determining whether the air pressure inside the vehicle computer changes according to the current air pressure value inside the vehicle computer includes:
[0015] Comparing the current air pressure value inside the vehicle computer with the set standard air pressure value inside the vehicle computer;
[0016] When comparing the current air pressure value inside the vehicle computer and the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has changed;
[0017] When it is compared that the current air pressure value inside the vehicle computer is the same as the standard air pressure value inside the vehicle computer, it is determined that the air pressure inside the vehicle computer has not changed.
[0018] In a possible implementation manner, determining whether a pressing operation occurs in a designated area on the vehicle computer according to the air pressure value sequence includes:
[0019] Determining a change trend of the air pressure inside the vehicle computer within the set time interval according to the air pressure value sequence;
[0020] In a case where it is determined that the change trend matches the target air pressure change trend associated with the designated area on the vehicle computer, determining that a pressing operation occurs in the designated area on the vehicle computer;
[0021] When it is determined that the change trend does not match the target air pressure change trend associated with the designated area on the vehicle computer, it is determined that no pressing operation occurs in the designated area on the vehicle computer.
[0022] In a possible implementation manner, determining the change trend of the air pressure inside the vehicle computer within the set time interval according to the air pressure value sequence includes:
[0023] Comparing the Nth air pressure value in the air pressure value sequence with the internal standard air pressure value of the vehicle computer to obtain a first comparison result;
[0024] Determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and compare the absolute value of each of the first difference values with a set first difference threshold value to obtain a second comparison result;
[0025] Determine an average value of the N air pressure values in the air pressure value sequence, determine a second difference between the average value and a standard air pressure value inside the vehicle computer, and compare an absolute value of the second difference with a set second difference threshold to obtain a third comparison result;
[0026] According to the first comparison result, the second comparison result, and the third comparison result, a change trend of the air pressure inside the vehicle computer within the set time interval is determined.
[0027] In a possible implementation, the method further includes:
[0028] Whenever the air pressure value inside the vehicle computer is monitored by the sensing device, the value of the preset global variable is updated to the currently monitored air pressure value;
[0029] The obtaining of the monitored current air pressure value inside the vehicle computer includes:
[0030] Get the value of the global variable;
[0031] The value of the global variable is determined as the current air pressure value inside the vehicle computer.
[0032] In a possible implementation, the method further includes:
[0033] Obtain the value of the global variable at each set time interval, and write the obtained value of the global variable into a set queue, wherein, when the set queue is full, the first value in the set queue is discarded, and then the obtained value of the global variable is written into the set queue;
[0034] The step of acquiring the monitored sequence of air pressure values inside the vehicle computer includes:
[0035] Get the value in the setting queue;
[0036] The values obtained from the setting queue are used to form a sequence of air pressure values inside the vehicle computer.
[0037] In a possible implementation, the designated area is located on a border of the vehicle computer; and in response to determining that a pressing operation occurs in the designated area on the vehicle computer, controlling the vehicle computer to execute a corresponding vehicle computer control instruction includes:
[0038] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction to control the vehicle computer to be silent.
[0039] In a second aspect, the present application provides a vehicle control device, the device comprising:
[0040] An air pressure monitoring module, used to monitor the air pressure value inside the vehicle computer through a sensing device arranged inside the vehicle computer;
[0041] A pressing detection module, used to determine whether a pressing operation occurs in a designated area on the vehicle computer according to the change of the air pressure value, wherein the designated area is located on the housing of the vehicle computer;
[0042] The instruction execution module is used to control the vehicle computer to execute a corresponding vehicle computer control instruction in response to determining that a pressing operation occurs in a designated area on the vehicle computer.
[0043] In a possible implementation, the pressure detection module includes:
[0044] A current air pressure value acquisition unit, used to acquire the monitored current air pressure value inside the vehicle computer;
[0045] An air pressure change detection unit, used to determine whether the air pressure inside the vehicle computer has changed according to the current air pressure value inside the vehicle computer;
[0046] An air pressure value sequence acquisition unit, configured to acquire a monitored air pressure value sequence inside the vehicle computer when it is determined that the air pressure inside the vehicle computer has changed, wherein the air pressure value sequence includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1;
[0047] The detection unit is used to determine whether a pressing operation occurs in a designated area on the vehicle computer according to the air pressure value sequence.
[0048] In a possible implementation manner, the air pressure change detection unit is specifically used to:
[0049] Comparing the current air pressure value inside the vehicle computer with the set standard air pressure value inside the vehicle computer;
[0050] When comparing the current air pressure value inside the vehicle computer and the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has changed;
[0051] When it is compared that the current air pressure value inside the vehicle computer is the same as the standard air pressure value inside the vehicle computer, it is determined that the air pressure inside the vehicle computer has not changed.
[0052] In a possible implementation, the detection unit includes:
[0053] A change trend determination subunit, used to determine the change trend of the air pressure inside the vehicle computer within the set time interval according to the air pressure value sequence;
[0054] a trend matching subunit, configured to determine that a pressing operation occurs in the designated area on the vehicle computer when it is determined that the change trend matches a target air pressure change trend associated with the designated area on the vehicle computer;
[0055] When it is determined that the change trend does not match the target air pressure change trend associated with the designated area on the vehicle computer, it is determined that no pressing operation occurs in the designated area on the vehicle computer.
[0056] In a possible implementation manner, the change trend determination subunit includes:
[0057] A first comparison subunit, used for comparing the Nth air pressure value in the air pressure value sequence with the internal standard air pressure value of the vehicle computer to obtain a first comparison result;
[0058] a second comparison subunit, configured to determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and to compare the absolute value of each of the first difference values with a set first difference threshold value to obtain a second comparison result;
[0059] a third comparison subunit, configured to determine an average value of the N air pressure values in the air pressure value sequence, determine a second difference between the average value and a standard air pressure value inside the vehicle computer, and compare an absolute value of the second difference with a set second difference threshold to obtain a third comparison result;
[0060] The trend determination subunit is used to determine the change trend of the air pressure inside the vehicle computer within the set time interval according to the first comparison result, the second comparison result, and the third comparison result.
[0061] In a possible implementation, the device further includes:
[0062] A global variable management module, used for updating the value of a preset global variable to the currently monitored air pressure value whenever the air pressure value inside the vehicle computer is monitored by the sensing device;
[0063] The current air pressure value obtaining unit is specifically used for:
[0064] Get the value of the global variable;
[0065] The value of the global variable is determined as the current air pressure value inside the vehicle computer.
[0066] In a possible implementation, the device further includes:
[0067] A queue management module, configured to obtain the value of the global variable at each set time interval, and write the obtained value of the global variable into a set queue, wherein, when the set queue is full, the first value in the set queue is discarded, and then the obtained value of the global variable is written into the set queue;
[0068] The air pressure value sequence acquisition unit is specifically used for:
[0069] Get the value in the setting queue;
[0070] The values obtained from the setting queue are used to form a sequence of air pressure values inside the vehicle computer.
[0071] In a possible implementation manner, the designated area is located on the border of the vehicle computer; and the instruction execution module is specifically used to:
[0072] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction to control the vehicle computer to be silent.
[0073] In a third aspect, the present application provides a vehicle computer, comprising: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; at least one memory connected to the at least one bus, wherein the processor is configured to:
[0074] The air pressure value inside the vehicle computer is monitored by a sensing device arranged inside the vehicle computer;
[0075] Determining whether a pressing operation occurs in a designated area on the vehicle computer according to the change of the air pressure value, wherein the designated area is located on a housing of the vehicle computer;
[0076] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
[0077] In a fourth aspect, the present application further provides a computer storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the vehicle control method described in any one of the above items of the present application.
[0078] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application monitors the air pressure value inside the vehicle computer through the sensing device set inside the vehicle computer, determines whether a pressing operation occurs in the designated area on the vehicle computer shell according to the change of the air pressure value inside the vehicle computer, and controls the vehicle computer to execute the corresponding vehicle computer control instruction when it is determined that the pressing operation occurs in the designated area on the vehicle computer, thereby realizing a non-contact vehicle computer control method, so that the user can control the vehicle computer to execute the corresponding vehicle computer control instruction by pressing the designated area on the vehicle computer without directly touching the screen. This not only improves the convenience of user experience, but more importantly, because the pressing operation on the designated area can be performed under relatively loose conditions, the user does not need to divert too much attention to the vehicle computer control during driving, thereby effectively avoiding the situation where the user is distracted during driving and increases the danger of vehicle driving. BRIEF DESCRIPTION OF THE DRAWINGS
[0079] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0080] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0081] One or more embodiments are exemplarily described by pictures in the corresponding drawings, and these exemplified descriptions do not constitute limitations on the embodiments. Elements with the same reference numerals in the drawings represent similar elements, and unless otherwise stated, the figures in the drawings do not constitute proportional limitations.
[0082] Figure 1 A flow chart of an embodiment of a vehicle control method provided in an embodiment of the present application;
[0083] Figure 2 A flowchart of an embodiment of the present application for determining whether a pressing operation occurs in a designated area on a vehicle computer according to a change in the air pressure value inside the vehicle computer;
[0084] Figure 3 A schematic diagram of the process of monitoring and storing the air pressure value inside the vehicle computer;
[0085] Figure 4 A schematic diagram of a process for determining whether a pressing operation occurs on a designated area on a vehicle computer according to a change in the air pressure value inside the vehicle computer;
[0086] Figure 5A block diagram of an embodiment of a vehicle control device provided in an embodiment of the present application;
[0087] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0088] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0089] The disclosure below provides many different embodiments or examples to realize the different structures of the present application. In order to simplify the disclosure of the present application, the parts and settings of specific examples are described below. Of course, they are only examples, and the purpose is not to limit the present application. In addition, the present application can repeat reference numbers and / or letters in different examples. This repetition is for the purpose of simplification and clarity, and does not itself indicate the relationship between the various embodiments and / or settings discussed.
[0090] In order to solve the technical problem in the prior art that, in the scenario where the physical buttons of the vehicle computer are cancelled, the user needs to touch the vehicle computer screen to implement any vehicle computer control operation, which causes the user to be distracted from clicking the vehicle computer screen, thereby increasing the risk of vehicle driving, the present application provides a vehicle computer control method, device and vehicle computer, which can improve the convenience of user experience and effectively avoid the situation where the user is distracted from the vehicle computer control during driving, thereby increasing the risk of vehicle driving.
[0091] Figure 1 A flow chart of an embodiment of a vehicle control method provided in an embodiment of the present application.
[0092] In one embodiment, the method is applied to a vehicle computer. Figure 1 As shown, the following steps are included:
[0093] Step 101: Monitor the air pressure value inside the vehicle computer through a sensing device arranged inside the vehicle computer.
[0094] The above-mentioned sensing device is, for example, an air pressure sensor, which is arranged inside the vehicle computer and is used to monitor the air pressure value inside the vehicle computer.
[0095] As an optional implementation method, use SensorManager (sensor management component) to register the air pressure sensor to the event handler sensorEventListener, so that the air pressure sensor can monitor the air pressure value inside the vehicle.
[0096] In one embodiment, the air pressure sensor is controlled to monitor the air pressure value inside the vehicle in real time. In practical applications, real-time monitoring can be achieved by continuously and periodically collecting data at a very short time interval.
[0097] As an optional implementation method, in sensorEventListener, use the onCreate() method to monitor and record the standard air pressure value inside the car when the pressure sensor is initialized, use sensorEvent.values[0] to record the monitored air pressure value inside the car, and use the onSensorChanged method to respond to changes in the air pressure value inside the car.
[0098] Step 102: Determine whether a pressing operation occurs in a designated area on the vehicle computer according to the change in the air pressure value, wherein the designated area is located on the housing of the vehicle computer.
[0099] First of all, it should be explained that in the prior art, the screen of the car computer is usually a touch screen. The essence of the touch screen is a sensor, which consists of a touch detection component and a touch screen controller. The touch detection component is installed in front of the screen to detect the user's touch position, and send it to the touch screen controller after receiving the touch operation; the main function of the touch screen controller is to receive touch information from the touch point detection device, and convert it into touch point coordinates and send it to the CPU, and at the same time it can receive commands sent by the CPU and execute them. It can be seen that when the screen area of the car computer is pressed, although it will also cause the air pressure inside the car computer to change, the control principle of controlling the car computer by pressing the screen of the car computer is obviously different from the control principle of controlling the car computer by detecting the change of the air pressure inside the car computer, and it is also irrelevant. Therefore, the technical solution provided in the embodiment of the present application is intended to detect the user's pressing operation on the pressable area outside the screen area on the car computer. Based on this, the above-mentioned designated area is located on the outer shell of the car computer.
[0100] Furthermore, when a pressing operation occurs in the designated area of the vehicle computer, the air pressure inside the vehicle computer will change due to the change in the space inside the vehicle computer, and the air pressure value inside the vehicle computer will show a certain change trend. Therefore, in step 102, it is determined whether a pressing operation occurs in the designated area of the vehicle computer according to the change in the air pressure value inside the vehicle computer. As for how to determine whether a pressing operation occurs in the designated area of the vehicle computer according to the monitored change in the air pressure value inside the vehicle computer, it will be described in detail below. Figure 2The process shown is explained in detail and will not be described in detail here.
[0101] Step 103: When it is determined that a pressing operation occurs in the designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
[0102] In one embodiment, the corresponding vehicle control instruction refers to a vehicle control instruction associated with a designated area. Usually, one designated area is associated with one vehicle control instruction, so that a specific vehicle control operation can be achieved by pressing the designated area.
[0103] Furthermore, it can be seen from the above description that in some embodiments, a plurality of pressable areas, that is, a plurality of designated areas, may be provided on the vehicle computer, and each designated area has an associated vehicle computer control instruction, which can be implemented in the software through a configuration file or hard coding.
[0104] The technical solution provided by the embodiment of the present application monitors the air pressure value inside the vehicle computer by means of a sensing device arranged inside the vehicle computer, determines whether a pressing operation occurs in a designated area on the vehicle computer housing according to the change of the air pressure value inside the vehicle computer, and controls the vehicle computer to execute the corresponding vehicle computer control instruction when it is determined that a pressing operation occurs in the designated area on the vehicle computer, thereby realizing a non-contact vehicle computer control method, enabling the user to control the vehicle computer to execute the corresponding vehicle computer control instruction by pressing the designated area on the vehicle computer without directly touching the screen. This not only improves the convenience of the user experience, but more importantly, since the pressing operation on the designated area can be performed under relatively loose conditions, the user does not need to divert too much attention to the vehicle computer control during driving, thereby effectively avoiding the situation where the user is distracted during driving and increases the danger of driving the vehicle.
[0105] Figure 2 A flowchart of an embodiment of the present application for determining whether a pressing operation occurs in a specified area on a vehicle computer according to a change in the air pressure value inside the vehicle computer. Figure 2 The process shown in Figure 1 The basis of the process shown, including the following steps:
[0106] Step 201: Obtain the current air pressure value inside the vehicle computer.
[0107] Step 202: Determine whether the air pressure inside the vehicle computer has changed according to the current air pressure value inside the vehicle computer.
[0108] For ease of understanding, step 201 and step 202 are described in a unified manner as follows:
[0109] Whether the current air pressure value inside the vehicle computer has changed refers to whether the current air pressure value inside the vehicle computer has changed compared to the set standard air pressure value inside the vehicle computer, wherein the standard air pressure value inside the vehicle computer refers to the air pressure value of the vehicle computer without any pressing operation. Based on this, the specific implementation of determining whether the air pressure inside the vehicle computer has changed according to the current air pressure value inside the vehicle computer includes: comparing the current air pressure value inside the vehicle computer with the set standard air pressure value inside the vehicle computer, and when the current air pressure value inside the vehicle computer is different from the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has changed; when the current air pressure value inside the vehicle computer is the same as the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has not changed.
[0110] Here, those skilled in the art can understand that each time the air pressure value inside the vehicle computer is monitored, it means that the current air pressure value inside the vehicle computer is monitored, so the current air pressure value inside the vehicle computer is obtained, and whether the air pressure inside the vehicle computer has changed is determined according to the current air pressure value inside the vehicle computer. In this way, it is possible to monitor whether the air pressure inside the vehicle computer has changed in real time.
[0111] Step 203: when it is determined that the air pressure inside the vehicle computer has changed, a sequence of air pressure values inside the vehicle computer monitored is obtained, where the air pressure value sequence includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1.
[0112] Step 204: Determine whether a pressing operation occurs in a designated area on the vehicle computer according to the air pressure value sequence.
[0113] For ease of understanding, step 203 and step 204 are described in a unified manner as follows:
[0114] It can be seen from the description of the above steps 201 and 202 that each time the current air pressure value inside the vehicle computer is monitored by the air pressure sensor, the current air pressure value inside the vehicle computer is compared with the standard air pressure value inside the vehicle computer to determine whether the air pressure value inside the vehicle computer has changed. When the air pressure value inside the vehicle computer has changed, it means that the vehicle computer has been pressed. In other words, when it is determined that the air pressure inside the vehicle computer has changed, it can be determined that the vehicle computer has been pressed.
[0115] Further, through Figure 1It can be learned from the relevant description in the process shown that: when a pressing operation occurs in a designated area on the vehicle computer, the air pressure value inside the vehicle computer will show a certain trend of change. Therefore, when it is determined that the air pressure inside the vehicle computer has changed, that is, when it is determined that a pressing operation has occurred on the vehicle computer, the sequence of air pressure values monitored within the set time interval is obtained, so as to determine the changing trend of the air pressure inside the vehicle computer within the set time interval according to the air pressure value sequence, and then judge whether a pressing operation has occurred in the designated area on the vehicle computer by the changing trend. Among them, the set time interval uses the current time as the end time and the set duration (for example, 1 second) as the interval duration. The sequence of air pressure values monitored within the set time interval includes N air pressure values, where N is a natural number greater than 1, for example, N is 4. Among them, N can be the total number S of air pressure values monitored within the set time interval, or it can be less than S, and the embodiments of the present application do not limit this.
[0116] The specific implementation of judging whether a pressing operation occurs in a designated area on the vehicle computer according to a changing trend of the air pressure inside the vehicle computer within a set time interval includes: determining that a pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend matches a target air pressure changing trend associated with the designated area on the vehicle computer; and determining that no pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend does not match a target air pressure changing trend associated with the designated area on the vehicle computer.
[0117] In addition, in one embodiment, a plurality of pressable areas, that is, a plurality of designated areas, may be provided on the vehicle computer, and each designated area has a change trend associated therewith, which is the change trend of the air pressure inside the vehicle computer when a pressing operation occurs on the designated area. Generally, the change trends associated with different designated areas are different. For example, when the designated area is located on the vehicle computer frame, when the designated area is pressed, the air pressure inside the vehicle computer will show a slightly downward change trend; when the designated area is located on the front wall or the rear wall of the vehicle computer, when the designated area is pressed, the air pressure inside the vehicle computer will show a steep upward change trend. Based on this, it is also possible to determine on which designated area the pressing operation occurs according to the change trend of the air pressure inside the vehicle computer, and then control the vehicle computer to execute the vehicle computer control instruction associated with the designated area where the pressing operation occurs. Through this embodiment, the diversity of vehicle computer control achieved by pressing the vehicle computer can be further enriched to better meet user needs.
[0118] Figure 2The process shown in the figure obtains the current air pressure value monitored inside the vehicle computer, and determines whether the air pressure inside the vehicle computer has changed based on the current air pressure value inside the vehicle computer, so as to monitor in real time whether a pressing operation has occurred on the vehicle computer; thereafter, when it is determined that the air pressure inside the vehicle computer has changed, by obtaining the sequence of air pressure values monitored inside the vehicle computer, it is possible to determine whether a pressing operation has occurred in a designated area on the vehicle computer based on the air pressure value sequence.
[0119] pass Figure 1 and Figure 2 It can be seen from the embodiment shown that the technical solution provided by the embodiment of the present application has two core processes, namely, monitoring and storing the air pressure value inside the vehicle computer, and determining whether a pressing operation occurs on a designated area on the vehicle computer according to the change of the air pressure value inside the vehicle computer. The following is an explanation of the two core processes in combination with practical applications:
[0120] First, if Figure 3 As shown, in the process of monitoring and storing the air pressure value inside the vehicle computer, first use SensorManage to register the air pressure sensor pressureSensor to the event processor sensorEventListener, so that the air pressure sensor can monitor the air pressure value inside the vehicle computer.
[0121] In sensorEventListener, use the onCreate() method to monitor and record the standard air pressure value normalPressure inside the vehicle when the air pressure sensor is initialized. Use the onSensorChanged method to respond to changes in the air pressure value inside the vehicle, and use sensorEvent.values[0] to record the monitored air pressure value inside the vehicle.
[0122] Get sensorEvent.values[0] and store it in the global variable pressuer. That is, every time the air pressure value inside the vehicle is monitored by the sensor device, the value of the preset global variable is updated to the currently monitored air pressure value. Through this processing, the global variable can always record the current air pressure value monitored inside the vehicle.
[0123] Use the scheduleAtFixedRate() method in ScheduledExecutorService to create a scheduled task. For example, push the global variable pressure into the queue ArrayBlockingQueue every 250 milliseconds. <float>Optionally, the size of the queue is 4, so that the air pressure change within one second can be recorded through the queue. If the queue is not full, the air pressure value is added. If the queue is full, the first element of the queue is discarded and the current air pressure value is added. In other words, the value of the global variable is obtained at every set time interval (for example, 250ms), and the obtained value of the global variable is written into the set queue. When the set queue is full, the first value in the set queue is discarded, and then the obtained value of the global variable is written into the set queue.
[0124] Secondly, if Figure 4 As shown, the designated area is located on the border of the vehicle computer, and when it is determined that a pressing operation occurs in the designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction, including: when it is determined that a pressing operation occurs in the designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction to control the vehicle computer to be silent. In this application scenario, a flow chart is provided to determine whether a pressing operation occurs in the designated area on the vehicle computer according to a change in the air pressure value inside the vehicle computer.
[0125] Figure 4 In the process shown, the value of the global variable is obtained, and the value of the global variable is determined as the current air pressure value inside the vehicle computer. Then, it is determined whether the air pressure inside the vehicle computer has changed according to the current air pressure value monitored inside the vehicle computer. When it is determined that the air pressure inside the vehicle computer has changed, the monitored air pressure value sequence inside the vehicle computer is obtained, specifically including obtaining the values in the above-mentioned set queue, and the values obtained from the set queue form the air pressure value sequence inside the vehicle computer. Then, the change trend of the air pressure inside the vehicle computer within the set time interval is determined according to the air pressure value sequence, and then it is determined whether a pressing operation occurs on the designated area of the vehicle computer according to the change trend. Among them, in the application scenario where the above-mentioned designated area is located at the border of the vehicle computer, the specific implementation of determining the changing trend of the air pressure inside the vehicle computer within a set time interval according to the air pressure value sequence includes: comparing the Nth air pressure value in the air pressure value sequence with the standard air pressure value inside the vehicle computer to obtain a first comparison result; determining the first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and comparing the absolute value of each first difference with the set first difference threshold to obtain a second comparison result; determining the average value of the N air pressure values in the air pressure value sequence, determining the second difference between the average value and the standard air pressure value inside the vehicle computer, and comparing the absolute value of the second difference with the set second difference threshold to obtain a third comparison result; determining the changing trend of the air pressure inside the vehicle computer within the set time interval based on the first comparison result, the second comparison result, and the third comparison result.
[0126] Specifically, Figure 4 As shown, the Nth air pressure value in the air pressure value sequence is the current air pressure value inside the vehicle computer, and the first comparison result is used to indicate whether the current air pressure value inside the vehicle computer is smaller than the standard air pressure value inside the vehicle computer by more than 0.15. If the current air pressure value is smaller than the standard air pressure value inside the vehicle computer by more than 0.15, it can be preliminarily determined that a pressing operation on the vehicle computer frame is currently occurring.
[0127] Furthermore, the second comparison result is used to indicate whether the absolute value of the first difference between the air pressure value and the standard air pressure value inside the vehicle is greater than or equal to a first difference threshold, such as 0.1. If the absolute value of the first difference between each air pressure value in the air pressure value sequence and the standard air pressure value inside the vehicle is greater than or equal to 0.1, the set time interval can be determined, such as the air pressure values in the previous second are all within the standard air pressure range.
[0128] The third comparison result is used to indicate whether the absolute value of the second difference between the average value of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer is less than or equal to a set second difference threshold, such as 0.1. When the absolute value of the second difference between the average value of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer is less than or equal to the set second difference threshold, it can be determined that the N air pressure values in the air pressure value sequence are substantially the same, that is, it can be determined that the air pressure inside the vehicle computer is relatively stable within the set time interval.
[0129] From the above description, it can be seen that if the changing trend of the air pressure inside the car computer is: the air pressure value in the previous second is relatively stable and basically within the standard air pressure range, and there is a slight decrease at the current moment, it can be determined that a pressing operation has occurred on the border of the car computer.
[0130] Finally, when it is determined that a pressing operation occurs on the border of the car computer, the Vibrator object is obtained through getSystemService, and then the Vibrator.vibrate method is called to enable muting, thereby realizing one-click muting of the car computer.
[0131] Finally, it is to be noted that, in actual applications, the above-mentioned vehicle control instructions can also be navigation control instructions, air conditioning adjustment control instructions, audio playback control instructions, etc. This depends on the user's function setting of the pressable area on the vehicle, and the embodiments of the present application do not limit this.
[0132] Figure 4 The process shown in the figure realizes a non-contact one-button mute control method for the car computer, which enables the user to control the mute of the car computer by pressing the border of the car computer without directly touching the screen. This not only improves the convenience of the user experience, but more importantly, because the pressing operation on the designated area can be performed under relatively loose conditions, the user does not need to divert too much attention to the car computer control during driving, which can effectively avoid the situation where the user is distracted during driving and increase the danger of driving the vehicle.
[0133] Figure 5 This is a block diagram of an embodiment of a vehicle control device provided in an embodiment of the present application. Figure 5 As shown, the device comprises:
[0134] An air pressure monitoring module 51 is used to monitor the air pressure value inside the vehicle computer through a sensing device arranged inside the vehicle computer;
[0135] A pressing detection module 52, used to determine whether a pressing operation occurs in a designated area on the vehicle computer according to the change of the air pressure value, wherein the designated area is located on the housing of the vehicle computer;
[0136] The instruction execution module 53 is used to control the vehicle computer to execute a corresponding vehicle computer control instruction when it is determined that a pressing operation occurs in a designated area on the vehicle computer.
[0137] In a possible implementation, the pressure detection module 52 includes:
[0138] A current air pressure value acquisition unit, used to acquire the monitored current air pressure value inside the vehicle computer;
[0139] An air pressure change detection unit, used to determine whether the air pressure inside the vehicle computer has changed according to the current air pressure value inside the vehicle computer;
[0140] An air pressure value sequence acquisition unit, configured to acquire a monitored air pressure value sequence inside the vehicle computer when it is determined that the air pressure inside the vehicle computer has changed, wherein the air pressure value sequence includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1;
[0141] The detection unit is used to determine whether a pressing operation occurs in a designated area on the vehicle computer according to the air pressure value sequence.
[0142] In a possible implementation manner, the air pressure change detection unit is specifically used to:
[0143] Comparing the current air pressure value inside the vehicle computer with the set standard air pressure value inside the vehicle computer;
[0144] When comparing the current air pressure value inside the vehicle computer and the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has changed;
[0145] When it is compared that the current air pressure value inside the vehicle computer is the same as the standard air pressure value inside the vehicle computer, it is determined that the air pressure inside the vehicle computer has not changed.
[0146] In a possible implementation, the detection unit includes:
[0147] A change trend determination subunit, used to determine the change trend of the air pressure inside the vehicle computer within the set time interval according to the air pressure value sequence;
[0148] a trend matching subunit, configured to determine that a pressing operation occurs in the designated area on the vehicle computer when it is determined that the change trend matches a target air pressure change trend associated with the designated area on the vehicle computer;
[0149] When it is determined that the change trend does not match the target air pressure change trend associated with the designated area on the vehicle computer, it is determined that no pressing operation occurs in the designated area on the vehicle computer.
[0150] In a possible implementation manner, the change trend determination subunit includes:
[0151] A first comparison subunit, used for comparing the Nth air pressure value in the air pressure value sequence with the internal standard air pressure value of the vehicle computer to obtain a first comparison result;
[0152] a second comparison subunit, configured to determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and to compare the absolute value of each of the first difference values with a set first difference threshold value to obtain a second comparison result;
[0153] a third comparison subunit, configured to determine an average value of the N air pressure values in the air pressure value sequence, determine a second difference between the average value and a standard air pressure value inside the vehicle computer, and compare an absolute value of the second difference with a set second difference threshold to obtain a third comparison result;
[0154] The trend determination subunit is used to determine the change trend of the air pressure inside the vehicle computer within the set time interval according to the first comparison result, the second comparison result, and the third comparison result.
[0155] In a possible implementation, the device further includes:
[0156] A global variable management module, used for updating the value of a preset global variable to the currently monitored air pressure value whenever the air pressure value inside the vehicle computer is monitored by the sensing device;
[0157] The current air pressure value obtaining unit is specifically used for:
[0158] Get the value of the global variable;
[0159] The value of the global variable is determined as the current air pressure value inside the vehicle computer.
[0160] In a possible implementation, the device further includes:
[0161] A queue management module, configured to obtain the value of the global variable at each set time interval, and write the obtained value of the global variable into a set queue, wherein, when the set queue is full, the first value in the set queue is discarded, and then the obtained value of the global variable is written into the set queue;
[0162] The air pressure value sequence acquisition unit is specifically used for:
[0163] Get the value in the setting queue;
[0164] The values obtained from the setting queue are used to form a sequence of air pressure values inside the vehicle computer.
[0165] In a possible implementation manner, the designated area is located on the border of the vehicle computer; the instruction execution module 53 is specifically used to:
[0166] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction to control the vehicle computer to be silent.
[0167] like Figure 6 As shown, an embodiment of the present application provides a vehicle computer, including a processor 111, a communication interface 112, a memory 113 and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 communicate with each other through the communication bus 114.
[0168] Memory 113, used for storing computer programs;
[0169] In one embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the vehicle control method provided by any of the above method embodiments, including:
[0170] The air pressure value inside the vehicle computer is monitored by a sensing device arranged inside the vehicle computer;
[0171] Determining whether a pressing operation occurs in a designated area on the vehicle computer according to the change of the air pressure value, wherein the designated area is located on a housing of the vehicle computer;
[0172] In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
[0173] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the vehicle control method provided in any of the aforementioned method embodiments are implemented.
[0174] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0175] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0176] It should be understood that the terms used herein are only for the purpose of describing specific example embodiments and are not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms "one", "an" and "said" as used herein may also be meant to include plural forms. The terms "include", "comprise", "contain", and "have" are inclusive and therefore specify the existence of stated features, steps, operations, elements and / or parts, but do not exclude the existence or addition of one or more other features, steps, operations, elements, parts, and / or combinations thereof. The method steps, processes, and operations described herein are not interpreted as necessarily requiring them to be performed in the specific order described or illustrated, unless the execution order is clearly indicated. It should also be understood that additional or alternative steps may be used.
[0177] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest range consistent with the principles and novel features applied for herein.< / float>
Claims
1. A vehicle control method, characterized in that: The method comprises: The air pressure value inside the vehicle computer is monitored by a sensing device arranged inside the vehicle computer; When it is determined that the air pressure inside the vehicle computer changes, a sequence of air pressure values inside the vehicle computer monitored is obtained, wherein the sequence of air pressure values includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1; Compare the Nth air pressure value in the air pressure value sequence with the standard air pressure value inside the vehicle computer to obtain a first comparison result; determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and compare the absolute value of each first difference with a set first difference threshold to obtain a second comparison result; determine an average value of the N air pressure values in the air pressure value sequence, determine a second difference between the average value and the standard air pressure value inside the vehicle computer, and compare the absolute value of the second difference with a set second difference threshold to obtain a third comparison result; determine a change trend of the air pressure inside the vehicle computer within the set time interval according to the first comparison result, the second comparison result, and the third comparison result; determine a pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend matches the target air pressure changing trend associated with the designated area on the vehicle computer; determine that no pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend does not match the target air pressure changing trend associated with the designated area on the vehicle computer, wherein the designated area is located on the housing of the vehicle computer; In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
2. The method according to claim 1, characterized in that Determine whether the air pressure inside the vehicle unit changes by: Obtaining the current air pressure value inside the vehicle computer monitored; Determine whether the air pressure inside the vehicle computer has changed according to the current air pressure value inside the vehicle computer.
3. The method according to claim 2, characterized in that The determining whether the air pressure inside the vehicle computer changes according to the current air pressure value inside the vehicle computer includes: Comparing the current air pressure value inside the vehicle computer with the set standard air pressure value inside the vehicle computer; When comparing the current air pressure value inside the vehicle computer and the standard air pressure value inside the vehicle computer, determining that the air pressure inside the vehicle computer has changed; When it is compared that the current air pressure value inside the vehicle computer is the same as the standard air pressure value inside the vehicle computer, it is determined that the air pressure inside the vehicle computer has not changed.
4. The method according to claim 2, characterized in that: The method further comprises: Whenever the air pressure value inside the vehicle computer is monitored by the sensing device, the value of the preset global variable is updated to the currently monitored air pressure value; The obtaining of the monitored current air pressure value inside the vehicle computer includes: Get the value of the global variable; The value of the global variable is determined as the current air pressure value inside the vehicle computer.
5. The method according to claim 4, characterized in that The method further comprises: Obtain the value of the global variable at each set time interval, and write the obtained value of the global variable into a set queue, wherein, when the set queue is full, the first value in the set queue is discarded, and then the obtained value of the global variable is written into the set queue; The step of acquiring the monitored sequence of air pressure values inside the vehicle computer includes: Get the value in the setting queue; The values obtained from the setting queue are used to form a sequence of air pressure values inside the vehicle computer.
6. The method according to any one of claims 1 to 5, characterized in that: The designated area is located on the border of the vehicle computer; In response to determining that a pressing operation occurs in a designated area on the vehicle computer, controlling the vehicle computer to execute a corresponding vehicle computer control instruction includes: In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction to control the vehicle computer to be silent.
7. A vehicle control device, characterized in that: The device comprises: An air pressure monitoring module, used to monitor the air pressure value inside the vehicle computer through a sensing device arranged inside the vehicle computer; The pressure detection module is used to obtain a sequence of monitored air pressure values inside the vehicle computer when it is determined that the air pressure inside the vehicle computer has changed, wherein the air pressure value sequence includes N air pressure values monitored within a set time interval, and N is a natural number greater than 1; compare the Nth air pressure value in the air pressure value sequence with the standard air pressure value inside the vehicle computer to obtain a first comparison result; determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and compare the absolute value of each of the first difference values with a set first difference threshold value to obtain a second comparison result; determine an average value of the N air pressure values in the air pressure value sequence, and determine the difference between the average value and the standard air pressure value inside the vehicle computer. a second difference between the pressure values, and comparing the absolute value of the second difference with a set second difference threshold to obtain a third comparison result; determining a change trend of the air pressure inside the vehicle computer within the set time interval according to the first comparison result, the second comparison result, and the third comparison result; determining that a pressing operation occurs in the designated area on the vehicle computer when it is determined that the change trend matches a target air pressure change trend associated with the designated area on the vehicle computer; and determining that no pressing operation occurs in the designated area on the vehicle computer when it is determined that the change trend does not match a target air pressure change trend associated with the designated area on the vehicle computer, wherein the designated area is located on a housing of the vehicle computer; The instruction execution module is used to control the vehicle computer to execute a corresponding vehicle computer control instruction in response to determining that a pressing operation occurs in a designated area on the vehicle computer.
8. A vehicle computer, characterized in that: include: at least one communication interface; at least one bus connected to the at least one communication interface; at least one processor connected to the at least one bus; at least one memory connected to the at least one bus, wherein the processor is configured to: The air pressure value inside the vehicle computer is monitored by a sensing device arranged inside the vehicle computer; When it is determined that the air pressure inside the vehicle computer changes, a sequence of air pressure values inside the vehicle computer monitored is obtained, wherein the sequence of air pressure values includes N air pressure values monitored within a set time interval, where N is a natural number greater than 1; Compare the Nth air pressure value in the air pressure value sequence with the standard air pressure value inside the vehicle computer to obtain a first comparison result; determine a first difference between each of the N air pressure values in the air pressure value sequence and the standard air pressure value inside the vehicle computer, and compare the absolute value of each first difference with a set first difference threshold to obtain a second comparison result; determine an average value of the N air pressure values in the air pressure value sequence, determine a second difference between the average value and the standard air pressure value inside the vehicle computer, and compare the absolute value of the second difference with a set second difference threshold to obtain a third comparison result; determine a change trend of the air pressure inside the vehicle computer within the set time interval according to the first comparison result, the second comparison result, and the third comparison result; determine a pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend matches the target air pressure changing trend associated with the designated area on the vehicle computer; determine that no pressing operation occurs in the designated area on the vehicle computer when it is determined that the changing trend does not match the target air pressure changing trend associated with the designated area on the vehicle computer, wherein the designated area is located on the housing of the vehicle computer; In response to determining that a pressing operation occurs in a designated area on the vehicle computer, the vehicle computer is controlled to execute a corresponding vehicle computer control instruction.
Citation Information
Patent Citations
Pressing operation recognition method and mobile terminal
CN107092391A
Vehicle machine interaction input system and method
CN113103970A