CN115086469B - Vehicle control method and mobile terminal - Google Patents

Vehicle control method and mobile terminal Download PDF

Info

Publication number
CN115086469B
CN115086469B CN202210647658.6A CN202210647658A CN115086469B CN 115086469 B CN115086469 B CN 115086469B CN 202210647658 A CN202210647658 A CN 202210647658A CN 115086469 B CN115086469 B CN 115086469B
Authority
CN
China
Prior art keywords
mobile terminal
target vehicle
motion sensor
communication connection
sensor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210647658.6A
Other languages
Chinese (zh)
Other versions
CN115086469A (en
Inventor
梁锐军
吴子毅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhaoqing Xiaopeng New Energy Investment Co ltd Guangzhou Branch
Original Assignee
Zhaoqing Xiaopeng New Energy Investment Co ltd Guangzhou Branch
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhaoqing Xiaopeng New Energy Investment Co ltd Guangzhou Branch filed Critical Zhaoqing Xiaopeng New Energy Investment Co ltd Guangzhou Branch
Priority to CN202210647658.6A priority Critical patent/CN115086469B/en
Publication of CN115086469A publication Critical patent/CN115086469A/en
Application granted granted Critical
Publication of CN115086469B publication Critical patent/CN115086469B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/72415User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories for remote control of appliances
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C9/00Individual registration on entry or exit
    • G07C9/00174Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys
    • G07C9/00896Electronically operated locks; Circuits therefor; Nonmechanical keys therefor, e.g. passive or active electrical keys or other data carriers without mechanical keys specially adapted for particular uses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72406User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by software upgrading or downloading
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/72409User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality by interfacing with external accessories
    • H04M1/724098Interfacing with an on-board device of a vehicle
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
    • H04M1/72454User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)
  • Lock And Its Accessories (AREA)

Abstract

The application relates to a vehicle control method and a mobile terminal. The method comprises the following steps: registering an application program for vehicle control installed on the mobile terminal in advance with a motion sensor of the mobile terminal; detecting the communication connection state of the mobile terminal and a target vehicle in response to the monitoring of callback event information sent by the motion sensor; restoring the communication connection between the mobile terminal and the target vehicle after judging that the communication connection between the mobile terminal and the target vehicle is disconnected; and controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle. According to the scheme, the stability of communication connection with the vehicle can be ensured, and the reliability of the unlocking function is kept.

Description

Vehicle control method and mobile terminal
Technical Field
The application relates to the technical field of automobiles, in particular to a vehicle control method and a mobile terminal.
Background
In recent years, some automobiles in the market have a function of 'non-inductive unlocking', and an automobile owner only needs to carry a mobile phone, and can directly unlock the automobile and open a door after approaching the automobile; after a certain distance from the car, the car door can be automatically locked.
In the related art, functions such as "unobserved unlocking" are convenient for a user to control a vehicle, and the key of realizing the functions is that the process of a mobile phone application program is always started.
However, the current mobile phone system often has some limiting measures for the application program, which can cause the application program to be suspended by the system and enter a dormant and non-working state, so that the application program cannot control the mobile phone to maintain communication connection with the vehicle, and further the implementation of the unlocking function is affected.
Disclosure of Invention
In order to solve or partially solve the problems in the related art, the present application provides a vehicle control method and a mobile terminal, which can ensure the stability of communication connection with a vehicle and maintain the reliability of the unlocking function.
A first aspect of the present application provides a vehicle control method, including: registering an application program for vehicle control installed on the mobile terminal in advance with a motion sensor of the mobile terminal; detecting the communication connection state of the mobile terminal and a target vehicle in response to the monitoring of callback event information sent by the motion sensor; the motion sensor is registered in an operating system of the mobile terminal in advance; restoring the communication connection between the mobile terminal and the target vehicle after judging that the communication connection between the mobile terminal and the target vehicle is disconnected; and controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle. According to the method, the stability of communication connection between the mobile terminal and the vehicle can be ensured, the reliability of the unlocking function is kept, and the convenience of controlling the vehicle is improved.
Before the application program for controlling the vehicle installed on the mobile terminal is registered with the motion sensor of the mobile terminal in advance, the method further comprises: acquiring a sensor manager in the mobile terminal; and acquiring the motion sensor of the mobile terminal through the sensor manager. In this way, it is ensured that the motion sensor of the mobile terminal can be successfully registered.
The obtaining, by the sensor manager, the motion sensor of the mobile terminal includes: and calling a default sensor setting device through the sensor manager to acquire the motion sensor of the mobile terminal. And the motion sensor of the mobile terminal is conveniently acquired by calling a default sensor setting device.
And before detecting the communication connection state of the mobile terminal and the target vehicle, the method further comprises the following steps of: and after the mobile terminal establishes communication connection with the target vehicle, and under the condition that the mobile terminal is not awakened, enabling a motion sensor registered in the mobile terminal. In this way, the motion sensor can be prevented from being started when not needed, and the power consumption is reduced.
The response to the monitoring of callback event information sent by the motion sensor, the detection of the communication connection state of the mobile terminal and the target vehicle comprises the following steps: and detecting the communication connection state of the mobile terminal and the target vehicle through a sensor event interface in the mobile terminal in response to the condition that the motion sensor sends callback event information. Monitoring is carried out through the sensor event interface in the mobile terminal, so that monitoring reliability can be ensured.
The vehicle control method further includes: after the target vehicle is controlled to perform a deblocking operation, a motion sensor registered in the mobile terminal is turned off to reduce power consumption.
The vehicle control method further includes: after the mobile terminal establishes communication connection with the target vehicle, and under the condition that the mobile terminal is awakened or under the condition that the mobile terminal is closed with a non-sensing unlocking function, a motion sensor registered in the mobile terminal is closed, so that power consumption is reduced.
A second aspect of the present application provides a mobile terminal, including: a registration module for registering in advance an application program for vehicle control installed on the mobile terminal with a motion sensor of the mobile terminal; the detection module is used for detecting the communication connection state of the mobile terminal and the target vehicle in response to the condition that the motion sensor sends callback event information; the recovery module is used for recovering the communication connection between the mobile terminal and the target vehicle after judging that the communication connection between the mobile terminal and the target vehicle is disconnected; and the control module is used for controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle. The mobile terminal can ensure the stability of communication connection between the mobile terminal and a vehicle, maintain the reliability of unlocking and locking functions, and improve the convenience of controlling the vehicle.
A third aspect of the present application provides a mobile terminal, including:
a processor; and
a memory having executable code stored thereon which, when executed by the processor, causes the processor to perform the method as described above.
A fourth aspect of the present application provides a computer readable storage medium having stored thereon executable code which, when executed by a processor of a mobile terminal, causes the processor to perform the method as described above.
The technical scheme that this application provided can include following beneficial effect:
according to the technical scheme, the motion sensor of the mobile terminal is registered by the application program which is arranged on the mobile terminal and used for controlling the vehicle in advance, callback event information is sent by the motion sensor in response to monitoring, the communication connection state of the mobile terminal and the target vehicle is detected, after the communication connection disconnection of the mobile terminal and the target vehicle is judged, the communication connection of the mobile terminal and the target vehicle is restored, and the target vehicle is controlled to execute unlocking operation according to the distance between the mobile terminal and the target vehicle. It will be appreciated that in the event that the user moves (e.g., walks) with the mobile terminal, the motion sensor may be triggered to issue callback event information. Therefore, when the user carries the mobile terminal to walk or leave the vehicle, the stability of communication connection between the mobile terminal and the vehicle can be ensured, the reliability of the unlocking function is kept, and the convenience of controlling the vehicle is improved.
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 application.
Drawings
The foregoing and other objects, features and advantages of the application will be apparent from the following more particular descriptions of exemplary embodiments of the application as illustrated in the accompanying drawings wherein like reference numbers generally represent like parts throughout the exemplary embodiments of the application.
FIG. 1 is a flow chart diagram of a vehicle control method shown in the present application;
FIG. 2 is another flow chart diagram of the vehicle control method shown in the present application;
fig. 3 is a schematic structural diagram of the mobile terminal shown in the present application;
fig. 4 is another structural schematic diagram of the mobile terminal shown in the present application;
fig. 5 is another structural schematic diagram of the mobile terminal shown in the present application.
Detailed Description
Embodiments of the present application will be described in more detail below with reference to the accompanying drawings. While embodiments of the present application are shown in the drawings, it should be understood that the present application may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The terminology used in the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items.
It should be understood that although the terms "first," "second," "third," etc. may be used herein to describe various information, these information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, a first message may also be referred to as a second message, and similarly, a second message may also be referred to as a first message, without departing from the scope of the present application. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present application, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
In the related art, some limiting measures for application programs of a mobile phone system can cause the application programs to be suspended by the system and enter a dormant non-working state, so that the application programs cannot control the mobile phone to be in communication connection with a vehicle, and further the implementation of a unlocking function is affected.
In view of the above, the present application provides a vehicle control method capable of ensuring stability of communication connection with a vehicle and maintaining reliability of a unlocking function.
The technical scheme of the present application is described in detail below with reference to the accompanying drawings.
Fig. 1 is a flow chart diagram of a vehicle control method shown in the present application. The method of the embodiment of fig. 1 may be applied to a mobile terminal, which may refer to a mobile communication device, such as a smart phone, a tablet computer, a smart bracelet, etc.
Referring to fig. 1, the method includes:
step S101, registering an application program for controlling the vehicle installed on the mobile terminal in advance with a motion sensor of the mobile terminal.
In this step, the motion sensor is registered in advance with an application in the operating system of the mobile terminal. Wherein the application is for vehicle control, the application is installed on a mobile terminal (e.g., a smart phone).
The motion sensor may be a motion sensor built in the mobile terminal, for example, may be a motion sensor provided by an operating system in a smart phone, where the operating system may be an Android (Android) platform. The motion sensor may be a hardware or software based motion sensor, such as gravity, linear acceleration, rotation vectors, effective motion, pedometer and pedometer sensors, etc., may be hardware based or software based, such as accelerometer sensors and gyroscope sensors, etc., based.
And step S102, detecting the communication connection state of the mobile terminal and the target vehicle in response to the fact that the motion sensor sends callback event information.
It should be noted that, when the motion sensor is moved, the motion sensor will be triggered, and the motion sensor will send callback event information.
Step S103, after judging that the communication connection between the mobile terminal and the target vehicle is disconnected, the communication connection between the mobile terminal and the target vehicle is restored.
It will be understood that by detecting the communication connection state of the mobile terminal with the target vehicle in step S102, it may be determined whether the communication connection of the mobile terminal with the target vehicle is disconnected, and after it is determined that the communication connection of the mobile terminal with the target vehicle is disconnected, the communication connection of the mobile terminal with the target vehicle may be re-established.
In one embodiment, a Bluetooth connection or Wi-Fi connection of the mobile terminal with the target vehicle may be restored.
And step S104, controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle.
In this step, the target vehicle may be controlled to perform an unlocking or locking operation according to a difference in distance of the mobile terminal from the target vehicle.
According to the method, an application program installed on the mobile terminal and used for controlling the vehicle is registered with a motion sensor of the mobile terminal in advance, callback event information is sent by the motion sensor in response to monitoring, the communication connection state of the mobile terminal and the target vehicle is detected, after the fact that the communication connection between the mobile terminal and the target vehicle is disconnected is judged, the communication connection between the mobile terminal and the target vehicle is restored, and the target vehicle is controlled to execute unlocking operation according to the distance between the mobile terminal and the target vehicle. It will be appreciated that in the event that the user moves (e.g., walks) with the mobile terminal, the motion sensor may be triggered to issue callback event information. Therefore, when the user carries the mobile terminal to walk or leave the vehicle, the stability of communication connection between the mobile terminal and the vehicle can be ensured, the reliability of the unlocking function is kept, and the convenience of controlling the vehicle is improved.
Fig. 2 is another flow chart of the vehicle control method of the present application. Fig. 2 illustrates the solution of the present application in more detail with respect to fig. 1. The method of the embodiment of fig. 2 may be applied to a mobile terminal.
Referring to fig. 2, the method includes:
step S201, a sensor manager in the mobile terminal is acquired.
In an embodiment, the mobile terminal is a smart phone for example.
In this step, a sensor manager provided by the operating system (e.g., android platform) of the smartphone may be obtained. The sensor manager may refer to an API (Application Programming Interface ) provided by an operating system of the smart phone, and the sensor manager may refer to a sensor manager. SensorManager is a manager class of sensors of the Android platform, which is an abstract class. The sensor manager can create an instance of a sensor service through this class, access a sensor list, register or unregister sensor events, listen for, acquire athletic information, etc.
Acquiring a sensor manager in a mobile terminal may refer to acquiring a sensor manager object, which may be obtained through getSystemService in one embodiment. Further, in one embodiment, the method may be implemented by executing the following program code:
mSensorManager=(SensorManager)getSystemService(Context.SENSOR_SERVICE)。
step S202, a motion sensor of the mobile terminal is acquired through a sensor manager.
In this step, the default sensor setter may be invoked by the sensor manager to acquire the motion sensor of the mobile terminal. Wherein the default sensor setter may refer to getDefaultSensor.
In one embodiment, the motion sensor may be obtained through an obtained sensor manager, i.e., a sensor manager. The acquiring the motion Sensor may refer to acquiring an API of a corresponding Sensor provided by an operating system of the smart phone. Sensor is used to create a particular Sensor instance, and the method provided by this class can determine the function of a Sensor.
Acquiring a motion Sensor may refer to acquiring a motion Sensor object Sensor by calling getDefaultSensor using the acquired mSensorManager, and further, in one embodiment, may be implemented by executing the following program code:
mSensor=mSensorManager.getDefaultSensor(Sensor.TYPE_MOTION_DETECT)。
the parameters therein determine which sensor to acquire, which embodiment is used to acquire a MOTION sensor, namely sensor. Type _ MOTION _ DETECT as described above.
Step S203, registering an application program for vehicle control installed on the mobile terminal with a motion sensor of the mobile terminal.
In this step, the motion sensor is registered in advance with an application in the operating system of the mobile terminal. Wherein the application is for vehicle control, the application is installed on a mobile terminal (e.g., a smart phone). The motion sensor of the mobile terminal is registered, i.e. the motion sensor is registered.
Registering a motion Sensor may refer to registering a Sensor object, for example, by setting different parameters. In one embodiment, this may be implemented by executing the following program code:
/*
* First parameter: instance object of SensorEventListener interface
* The second parameter: sensor instance requiring registration
* Third parameter: sensor acquisition sensor event value frequency
Sensor manager_delay_normal=3: update interval corresponding to 200000 microseconds
*/
mSensorManager.registerListener(this,mSensor,SensorManager.SENSOR_DELAY_NORMAL)。
Step S204, after the communication connection between the mobile terminal and the target vehicle is established, and under the condition that the mobile terminal is not awakened, a motion sensor registered in the mobile terminal is started.
Wherein, the mobile terminal establishes a communication connection with the target vehicle may refer to that the mobile terminal establishes a wireless communication connection with the target vehicle, such as a bluetooth connection, a Wi-Fi connection, and the like.
It should be noted that, the method provided in the present application may be executed after the user clicks the "no sense unlock" function enabling switch in the application program for controlling the vehicle in the mobile terminal. An Application program for controlling a vehicle is an APP (Application) installed in a mobile terminal.
Further, in the case where the mobile terminal does not establish a communication connection with the target vehicle, a communication connection request to the target vehicle may be initiated to establish a communication connection of the mobile terminal with the target vehicle, and then a motion sensor in the mobile terminal is activated.
It will be appreciated that after the mobile terminal has established a communication connection with the target vehicle, an operating system in the mobile terminal (e.g., a smart phone) may be self-initiated to perform some application limiting measures, such as limiting the behavior of the application program for controlling the vehicle. The act of restricting the operation of the application may include restricting the application to open a bluetooth communication connection, etc., which may easily cause a disconnection of the communication connection between the mobile terminal and the target vehicle. In addition, if the communication connection between the mobile terminal and the target vehicle is broken, the application cannot actively cause the mobile terminal to reestablish the communication connection with the target vehicle. The method and the device ensure the stability of communication connection between the mobile terminal and the target vehicle by starting the motion sensor in the mobile terminal and a plurality of subsequent steps.
It should be noted that, when the mobile terminal is not awakened, the mobile terminal does not perform some application restriction measures to disconnect the communication connection with the target vehicle. Wherein, the mobile terminal being awakened may mean that the screen of the mobile terminal is lighted, i.e. the mobile terminal is in a bright screen state. In other words, the mobile terminal not being awakened may mean that the screen of the mobile terminal is not lit, i.e., the mobile terminal is in a screen-off state.
In one embodiment, after the mobile terminal establishes a communication connection with the target vehicle, and in the event that the mobile terminal wakes up, the motion sensor registered in the mobile terminal may be turned off. It can be appreciated that after the mobile terminal establishes a communication connection with the target vehicle, and in the case that the mobile terminal is awakened, the mobile terminal does not perform some application restriction measures to disconnect the communication connection with the target vehicle, that is, an application program in the mobile terminal can effectively control the mobile phone to maintain the communication connection with the vehicle, and the implementation of the "unobscured unlocking" function is not affected.
Step S205, detecting the communication connection state of the mobile terminal and the target vehicle in response to the condition that the motion sensor sends callback event information.
In one embodiment, the communication connection state of the mobile terminal and the target vehicle can be detected through a sensor event interface in the mobile terminal in response to monitoring that the motion sensor sends callback event information.
After the motion sensor is registered, the motion sensor may be monitored, and in this embodiment, the motion sensor is monitored through a corresponding sensor event interface. The corresponding sensor event interface may refer to an API provided by an operating system of the smart phone and corresponding sensor event. A sensor event can create a sensor event object through this class, providing event information for a sensor, including the following: native sensor data, the type of event that triggered the sensor, precise data, and the time at which the event occurred.
The motion sensor is triggered when it is moved, and the motion sensor sends callback event information. At this time, callback event information sent by the motion sensor can be obtained through the sensor event.
The motion sensor may be, for example, when the user carries the mobile terminal and walks, so that the motion sensor in the mobile terminal acts.
Step S206 or step S208 is correspondingly performed according to the detected different results regarding the communication connection state of the mobile terminal with the target vehicle.
Step S206, after judging that the communication connection between the mobile terminal and the target vehicle is disconnected, restoring the communication connection between the mobile terminal and the target vehicle.
In one embodiment, if it is determined that the communication connection between the mobile terminal and the target vehicle is disconnected, the communication connection between the mobile terminal and the target vehicle may be restored by overwriting onSensorChanged. Wherein the wireless communication connection of the mobile terminal with the target vehicle may be restored. The wireless communication connection may include bluetooth connection, wi-Fi connection, NFC (Near Field Communication ) connection, etc. In this embodiment, the bluetooth connection of the mobile terminal with the target vehicle may be restored. Further, in one embodiment, the method may be implemented by executing the following program code:
public final void onSensorChanged(SensorEvent event){
realTryConnectBle();
}。
step S207, controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle.
In one embodiment, after the mobile terminal resumes the communication connection with the target vehicle, the target vehicle may be controlled to execute the unlocking or locking operation according to a preset instruction in an application program in the mobile terminal according to a difference in a distance between the mobile terminal and the target vehicle.
For example, after the mobile terminal and the target vehicle are in communication connection, if the distance between the mobile terminal and the target vehicle is within a preset distance value (for example, 2 meters), the target vehicle is controlled to execute unlocking operation according to a corresponding preset instruction in an application program in the mobile terminal; and if the distance between the mobile terminal and the target vehicle is outside the preset distance value, controlling the target vehicle to execute locking operation according to a corresponding preset instruction in an application program in the mobile terminal. That is, the function of 'non-sense unlocking' of the target vehicle is realized, and the user can automatically unlock the vehicle by carrying the mobile terminal close to the target vehicle; after the user leaves the mobile terminal, the target vehicle is automatically locked.
The application in the mobile terminal may be an application for controlling the target vehicle. The preset command may be a command for controlling the target vehicle corresponding to a distance between the mobile terminal and the target vehicle. For example, the distance between the mobile terminal and the target vehicle is within a preset distance value (e.g., 2 meters), and the corresponding preset instruction may be to unlock the target vehicle; the distance between the mobile terminal and the target vehicle is outside the preset distance value, and the corresponding preset instruction can be to lock the target vehicle.
In another embodiment, the window opening or closing of the target vehicle may be controlled according to a preset instruction in an application program in the mobile terminal according to a difference of a distance between the mobile terminal and the target vehicle. For example, if the distance between the mobile terminal and the target vehicle is within a preset distance value (for example, 2 meters), the target vehicle is controlled to execute window opening according to a corresponding preset instruction in an application program in the mobile terminal; and if the distance between the mobile terminal and the target vehicle is outside the preset distance value, controlling the target vehicle to execute window closing according to a corresponding preset instruction in an application program in the mobile terminal.
In yet another embodiment, the target vehicle may be controlled to perform turning on or off of the lamp according to a preset command in an application program in the mobile terminal according to a difference in distance between the mobile terminal and the target vehicle. For example, if the distance between the mobile terminal and the target vehicle is within a preset distance value (for example, 2 meters), the target vehicle is controlled to execute the starting of the lamp according to a corresponding preset instruction in an application program in the mobile terminal; and if the distance between the mobile terminal and the target vehicle is outside the preset distance value, controlling the target vehicle to execute the closing of the vehicle lamp according to the corresponding preset instruction in the application program in the mobile terminal.
And step S208, after judging that the communication connection between the mobile terminal and the target vehicle is normal, controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle.
Regarding how to control the target vehicle to perform the unlocking operation according to the distance of the mobile terminal from the target vehicle in this step, reference is made to the relevant description in step S207.
Step S209, after the control target vehicle performs the unlocking operation, the motion sensor registered in the mobile terminal is turned off.
And closing the motion sensor registered in the mobile terminal, namely closing the motion sensor, so as to realize the cancellation of the motion sensor.
Further, in one embodiment, when the mobile terminal is turned off, the motion sensor registered in the mobile terminal may be turned off. In one of the application scenarios, the user may close the motion sensor registered in the mobile terminal by clicking a close switch of an "unobserved unlock" function in an application program in the mobile terminal for controlling the vehicle.
Wherein the motion sensor is turned off, i.e. the motion sensor is logged off. Turning off the motion sensor may reduce power consumption. In one embodiment, this may be implemented by executing the following program code:
mSensorManager.unregisterListener(this)。
according to the embodiment, the method can ensure the stability of communication connection between the mobile terminal and the vehicle, maintain the reliability of the unlocking function and improve the convenience of controlling the vehicle.
In contrast, in the related art, when the user uses the non-inductive unlocking function, the application program for controlling the target vehicle is suspended by the system due to the limitation measure of the system of the mobile terminal to the application program, and enters the sleep non-working state, so that the application program cannot start bluetooth communication in the background to maintain the communication connection with the target vehicle. In the case of a disconnection of the communication connection, the application is not able to perform communication connection detection and communication reconnection. Thus, implementation of the non-inductive unblocking function is affected, for example, delay or even failure of the non-inductive unblocking of the target vehicle may occur.
It can be found that the implementation of the non-inductive unblocking function is implemented in the case of a movement by the user. According to the vehicle control method, whether the user is in the motion condition is detected by the motion sensor in the mobile terminal, so that the communication connection between the mobile terminal and the target vehicle can be always kept under the required occasion, and the realization of the 'noninductive unlocking and locking' function is further guaranteed.
It should be further noted that the motion sensor belongs to a function provided by an operating system (for example, an Android platform) in the mobile terminal, and the operation of the motion sensor is not limited by the operating system in the mobile terminal. In addition, the motion sensor is started without applying special authority to the system platform in the mobile terminal, and after the motion sensor detects the motion, namely the motion sensor is moved, the motion sensor is triggered, so that callback event information is sent.
Corresponding to the embodiment of the application function implementation method, the application also provides the mobile terminal and the corresponding embodiment.
Fig. 3 is a schematic structural diagram of the mobile terminal shown in the present application.
Referring to fig. 3, a mobile terminal 30 includes: registration module 310, detection module 320, recovery module 330, and control module 340.
A registration module 310 for registering an application program for vehicle control installed on the mobile terminal in advance with a motion sensor of the mobile terminal.
And the detection module 320 is configured to detect a communication connection state between the mobile terminal and the target vehicle in response to monitoring that the motion sensor sends callback event information.
And the recovery module 330 is configured to recover the communication connection between the mobile terminal and the target vehicle after determining that the communication connection between the mobile terminal and the target vehicle is disconnected.
And the control module 340 is configured to control the target vehicle to perform unlocking operation according to the distance between the mobile terminal and the target vehicle.
As can be seen from this embodiment, the mobile terminal 30 provided in the present application can ensure the stability of the communication connection between the mobile terminal and the vehicle, maintain the reliability of the unlocking function, and improve the convenience of controlling the vehicle.
Fig. 4 is another structural schematic diagram of the mobile terminal shown in the present application;
referring to fig. 4, a mobile terminal 30 includes: acquisition module 350, registration module 310, enablement module 360, detection module 320, recovery module 330, and control module 340.
The functions of the registration module 310, the detection module 320, the recovery module 330, and the control module 340 may be described in fig. 3, and will not be described herein.
An acquisition module 350 for acquiring a sensor manager in the mobile terminal; and acquiring a motion sensor of the mobile terminal through the sensor manager.
And the enabling module 360 is configured to enable the motion sensor registered in the mobile terminal after the mobile terminal establishes a communication connection with the target vehicle and when the mobile terminal is not awakened.
The specific manner in which the respective modules perform the operations in the mobile terminal in the above embodiments has been described in detail in the embodiments related to the method, and will not be explained in detail here.
Fig. 5 is a schematic structural diagram of the mobile terminal shown in the present application.
Referring to fig. 5, the mobile terminal 500 includes a memory 510 and a processor 520.
The processor 520 may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Memory 510 may include various types of storage units, such as system memory, read Only Memory (ROM), and persistent storage. Where the ROM may store static data or instructions that are required by the processor 520 or other modules of the computer. The persistent storage may be a readable and writable storage. The persistent storage may be a non-volatile memory device that does not lose stored instructions and data even after the computer is powered down. In some embodiments, the persistent storage device employs a mass storage device (e.g., magnetic or optical disk, flash memory) as the persistent storage device. In other embodiments, the persistent storage may be a removable storage device (e.g., diskette, optical drive). The system memory may be a read-write memory device or a volatile read-write memory device, such as dynamic random access memory. The system memory may store instructions and data that are required by some or all of the processors at runtime. Furthermore, memory 510 may include any combination of computer-readable storage media, including various types of semiconductor memory chips (e.g., DRAM, SRAM, SDRAM, flash memory, programmable read-only memory), magnetic disks, and/or optical disks may also be employed. In some embodiments, memory 510 may include a readable and/or writable removable storage device, such as a Compact Disc (CD), a digital versatile disc read only (e.g., DVD-ROM, dual layer DVD-ROM), a blu-ray read only disc, an ultra-dense disc, a flash memory card (e.g., SD card, min SD card, micro-SD card, etc.), a magnetic floppy disk, and the like. The computer readable storage medium does not contain a carrier wave or an instantaneous electronic signal transmitted by wireless or wired transmission.
The memory 510 has stored thereon executable code that, when processed by the processor 520, causes the processor 520 to perform some or all of the methods described above.
Furthermore, the method according to the present application may also be implemented as a computer program or computer program product comprising computer program code instructions for performing part or all of the steps of the above-described method of the present application.
Alternatively, the present application may also be embodied as a computer-readable storage medium (or non-transitory machine-readable storage medium or machine-readable storage medium) having stored thereon executable code (or a computer program or computer instruction code) which, when executed by a processor of a mobile terminal (or server, etc.), causes the processor to perform part or all of the steps of the above-described method according to the present application.
The embodiments of the present application have been described above, the foregoing description is exemplary, not exhaustive, and not limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the various embodiments described. The terminology used herein was chosen in order to best explain the principles of the embodiments, the practical application, or the improvement of technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (9)

1. A vehicle control method characterized by comprising:
registering an application program for vehicle control installed on the mobile terminal in advance with a motion sensor of the mobile terminal;
after the mobile terminal establishes communication connection with a target vehicle, and under the condition that the mobile terminal is not awakened, starting a motion sensor registered in the mobile terminal;
detecting the communication connection state of the mobile terminal and a target vehicle in response to the monitoring of callback event information sent by the motion sensor; the motion sensor is triggered under the condition of being moved, and sends out callback event information;
restoring the communication connection between the mobile terminal and the target vehicle after judging that the communication connection between the mobile terminal and the target vehicle is disconnected;
and controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle.
2. The method of claim 1, wherein prior to registering the application program for vehicle control installed on the mobile terminal with the motion sensor of the mobile terminal, further comprising:
acquiring a sensor manager in the mobile terminal;
and acquiring the motion sensor of the mobile terminal through the sensor manager.
3. The method of claim 2, wherein the acquiring, by the sensor manager, the motion sensor of the mobile terminal comprises:
and calling a default sensor setting device through the sensor manager to acquire the motion sensor of the mobile terminal.
4. The method of claim 1, wherein detecting the communication connection status of the mobile terminal with the target vehicle in response to the monitoring of callback event information from the motion sensor comprises:
and detecting the communication connection state of the mobile terminal and the target vehicle through a sensor event interface in the mobile terminal in response to the condition that the motion sensor sends callback event information.
5. The method according to claim 1, wherein the method further comprises:
and after the target vehicle is controlled to execute unlocking operation, closing a motion sensor registered in the mobile terminal.
6. The method according to claim 1, wherein the method further comprises:
and after the mobile terminal establishes communication connection with the target vehicle, and under the condition that the mobile terminal is awakened or under the condition that the mobile terminal closes a non-sensing unlocking function, closing a motion sensor registered in the mobile terminal.
7. A mobile terminal, comprising:
a registration module for registering in advance an application program for vehicle control installed on the mobile terminal with a motion sensor of the mobile terminal;
the starting module is used for starting the motion sensor registered in the mobile terminal after the mobile terminal is in communication connection with the target vehicle and under the condition that the mobile terminal is not awakened;
the detection module is used for detecting the communication connection state of the mobile terminal and the target vehicle in response to the condition that the motion sensor sends callback event information; the motion sensor is triggered under the condition of being moved, and sends out callback event information;
the recovery module is used for recovering the communication connection between the mobile terminal and the target vehicle after judging that the communication connection between the mobile terminal and the target vehicle is disconnected;
and the control module is used for controlling the target vehicle to execute unlocking operation according to the distance between the mobile terminal and the target vehicle.
8. A mobile terminal, comprising:
a processor; and
a memory having executable code stored thereon, which when executed by the processor, causes the processor to perform the method of any of claims 1-6.
9. A computer readable storage medium having stored thereon executable code which when executed by a processor of a mobile terminal causes the processor to perform the method of any of claims 1-6.
CN202210647658.6A 2022-06-09 2022-06-09 Vehicle control method and mobile terminal Active CN115086469B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210647658.6A CN115086469B (en) 2022-06-09 2022-06-09 Vehicle control method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210647658.6A CN115086469B (en) 2022-06-09 2022-06-09 Vehicle control method and mobile terminal

Publications (2)

Publication Number Publication Date
CN115086469A CN115086469A (en) 2022-09-20
CN115086469B true CN115086469B (en) 2023-12-29

Family

ID=83250884

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210647658.6A Active CN115086469B (en) 2022-06-09 2022-06-09 Vehicle control method and mobile terminal

Country Status (1)

Country Link
CN (1) CN115086469B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115696531B (en) * 2022-12-29 2023-03-21 小米汽车科技有限公司 Control method, system and device of digital key equipment and digital key equipment

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857264A (en) * 2011-06-28 2013-01-02 株式会社电装 Short-range communication system, in-vehicle apparatus, and portable communication terminal
CN103856897A (en) * 2012-12-07 2014-06-11 观致汽车有限公司 Method, device and system for remotely managing vehicle
CN109484351A (en) * 2018-11-16 2019-03-19 北京车和家信息技术有限公司 Control method for vehicle, device, vehicle and computer readable storage medium
CN110062353A (en) * 2019-03-14 2019-07-26 西安艾润物联网技术服务有限责任公司 Communication connecting method and relevant device
CN112073490A (en) * 2020-08-31 2020-12-11 安徽中科美络信息技术有限公司 Driving event monitoring method and system based on Internet of things technology
CN112172739A (en) * 2020-10-16 2021-01-05 南通路远科技信息有限公司 Unlocking method of automobile lock system
CN112562135A (en) * 2020-12-07 2021-03-26 中国第一汽车股份有限公司 Vehicle control method and device, vehicle and storage medium
CN112866331A (en) * 2020-12-15 2021-05-28 云度新能源汽车股份有限公司 Real-time vehicle remote control method on mobile terminal equipment
CN213354409U (en) * 2020-08-25 2021-06-04 浙江威格镁汽车科技有限公司 Remote intelligent vehicle locking reminding system
CN113043996A (en) * 2021-04-26 2021-06-29 歌尔股份有限公司 Unlocking method of automobile, intelligent terminal and computer readable storage medium
WO2022057802A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Vehicle control method, mobile terminal, vehicle-mounted device and network device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857264A (en) * 2011-06-28 2013-01-02 株式会社电装 Short-range communication system, in-vehicle apparatus, and portable communication terminal
CN103856897A (en) * 2012-12-07 2014-06-11 观致汽车有限公司 Method, device and system for remotely managing vehicle
CN109484351A (en) * 2018-11-16 2019-03-19 北京车和家信息技术有限公司 Control method for vehicle, device, vehicle and computer readable storage medium
CN110062353A (en) * 2019-03-14 2019-07-26 西安艾润物联网技术服务有限责任公司 Communication connecting method and relevant device
CN213354409U (en) * 2020-08-25 2021-06-04 浙江威格镁汽车科技有限公司 Remote intelligent vehicle locking reminding system
CN112073490A (en) * 2020-08-31 2020-12-11 安徽中科美络信息技术有限公司 Driving event monitoring method and system based on Internet of things technology
WO2022057802A1 (en) * 2020-09-17 2022-03-24 华为技术有限公司 Vehicle control method, mobile terminal, vehicle-mounted device and network device
CN112172739A (en) * 2020-10-16 2021-01-05 南通路远科技信息有限公司 Unlocking method of automobile lock system
CN112562135A (en) * 2020-12-07 2021-03-26 中国第一汽车股份有限公司 Vehicle control method and device, vehicle and storage medium
CN112866331A (en) * 2020-12-15 2021-05-28 云度新能源汽车股份有限公司 Real-time vehicle remote control method on mobile terminal equipment
CN113043996A (en) * 2021-04-26 2021-06-29 歌尔股份有限公司 Unlocking method of automobile, intelligent terminal and computer readable storage medium

Also Published As

Publication number Publication date
CN115086469A (en) 2022-09-20

Similar Documents

Publication Publication Date Title
US9954829B2 (en) Method and apparatus for detecting and dealing with a lost electronics device
TWI553554B (en) Adaptive sensing for early booting of devices
US20190196730A1 (en) Partial area self refresh mode
US9226150B2 (en) Tracking device status with respect to other devices and zones of a virtual geo-fence
JP6336931B2 (en) Vehicle anti-theft device
CN115086469B (en) Vehicle control method and mobile terminal
US20100273452A1 (en) Apparatus and Methods For Locating Tracking and/or Recovering a Wireless Communication Device
CN111787507B (en) Vehicle control method and device, vehicle, system and storage medium
EP2735969B1 (en) Electronic assembly including a deactivation module
WO2016032861A1 (en) System and method for improved security for a processor in a portable computing device (pcd)
KR20150100476A (en) Secruity method for preventing theft and electronic device thereof
TW201638827A (en) Method and apparatus for providing a security mechanism on a mobile device
CN106484075B (en) Method and device for adjusting application program wake-up time
US20230385067A1 (en) System and method for limiting maximum run time for an application
KR101573330B1 (en) Method and apparatus for booting apparatus for reproducing video images
CN112446983A (en) Intelligent door lock control method and device
CN113060095A (en) Vehicle locking state detection method and device and electronic equipment
CN110073684B (en) Method for controlling a telematics control unit
CN112997132A (en) Application freezing method and device and electronic equipment
KR102408842B1 (en) Method for preventing leaving portable electronic device in vehicle, portable electronic device, and vehicle thereof
CN115206004B (en) Vehicle-mounted device connection control method, storage medium, and vehicle-mounted device
CN112203217B (en) Power consumption control method and device and computer readable storage medium
KR20170103215A (en) Method for scanning smart key and Apparatus thereof
CN115206004A (en) Vehicle-mounted device connection control method, storage medium, and vehicle-mounted device
CN117222048A (en) Application processing method and device, automobile and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20231130

Address after: Room 708, Room 406, No.1 Yichuang Street, Huangpu District (Zhongxin Guangzhou Knowledge City), Guangzhou City, Guangdong Province, 510000

Applicant after: Zhaoqing Xiaopeng New Energy Investment Co.,Ltd. Guangzhou Branch

Address before: 510000 No.8 Songgang street, Cencun, Tianhe District, Guangzhou City, Guangdong Province

Applicant before: GUANGZHOU XIAOPENG MOTORS TECHNOLOGY Co.,Ltd.

GR01 Patent grant
GR01 Patent grant