Summary of the invention
In view of this, the embodiment of the present invention provides a kind of control method for vehicle, detecting device and equipment, realizes the automatic control of vehicle-state.
On the one hand, the embodiment of the present invention provides a kind of control method for vehicle, and described method comprises:
Detecting device detects the equipment in effective range for wireless communication;
Foundation is connected with described equipment, and carries out radio communication;
Obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between equipment;
According to described distance, control the state of vehicle.
Further, set in advance one or more distance thresholds, and correspondence arranges two or more sets vehicle-states, the relation according to described distance with distance threshold, controls vehicle and enters different states.
Further, obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between equipment, comprising:
According to the received signal strength of the transmit signal strength of described detecting device and described equipment, calculate the distance between described detecting device and described equipment; Or
Obtain described equipment and calculate the distance between described detecting device and described equipment according to the received signal strength of the transmit signal strength of described detecting device and described equipment.
Further, also comprise system initialization process, comprising the step to device authorization in advance, wherein: described detecting device connects with described equipment in advance, described equipment is produced to authorization message, and when preserving described authorization message, the copy of described authorization message is sent to described equipment;
After described detecting device and described equipment connect, described detecting device obtains the copy of authorization message from described equipment, and the copy of the described authorization message authorization message pre-stored with described detecting device mated, as the match is successful,, according to described distance, control the state of vehicle.
Further, also comprise the step of initialization White List in advance in described system initialization process, wherein, described detecting device obtains the identity information of described equipment, and this identity information is added to White List;
Described detecting device detects after the equipment in effective range for wireless communication, obtains the identity information of this equipment, and checks with the identity information in described White List, and when finding corresponding identity information from White List, foundation is connected with described equipment.
Further, described detecting device is arranged in mobile terminal, and the equipment in described effective range for wireless communication is vehicle; Or
Described detecting device is arranged in the main frame of vehicle, and the equipment in described effective range for wireless communication is mobile terminal.
On the other hand, it is a kind of for realizing the detecting device of control method for vehicle provided by the invention that the embodiment of the present invention provides, and described device comprises: wireless communication module, control processing module,
Described wireless communication module, for detection of the equipment in effective range for wireless communication, connects, and carries out radio communication;
Described control processing module connects described wireless communication module, for controlling wireless communication module, set up and being connected of described equipment, carry out radio communication, and obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between described equipment, according to described distance, output vehicle-state control signal.
Further, described detecting device also comprises that described memory module connects described control processing module for storing the memory module of White List, and described White List is for storing the identity information of described equipment.
Further, described detecting device also comprises load module and output module, described load module is connected with described control processing module respectively with described output module, described load module is for carrying out the initialization setting of system and setting and the modification of system parameter, and described output module is used for showing configuration information and parameter information.
On the other hand, it is a kind of for realizing the equipment of control method for vehicle provided by the invention that the embodiment of the present invention provides, described equipment comprises wireless communication unit, and described wireless communication unit is arranged in described equipment, for connecting and carry out radio communication with described detecting device.
Further, main control unit and memory cell are set in described equipment, described main control unit is connected with described memory cell, described wireless communication unit respectively; Described memory cell is for the identity information of storage equipment and/or the copy of authorization message; Described main control unit sends identity information by described wireless communication unit to described detecting device, searches White List, to check identity for detection of device; Or to described detecting device, send the copy of authorization message, for detection of device, described equipment is carried out to authentication.
Further, in described equipment, be provided with metrics calculation unit, described metrics calculation unit is connected with described main control unit, be used for according to the received signal strength of the transmit signal strength of described detecting device and described equipment, distance between calculating and described detecting device, and to described detecting device, send described distance by described wireless communication unit.
In the control method for vehicle that the embodiment of the present invention provides, detecting device and equipment, when equipment is in effective range for wireless communication, detecting device can automatically detect and establish a communications link with it, again according to the distance between equipment and detecting device, automatically control vehicle-state, whole process need not manual control.With respect to prior art, degree of automation of the present invention is higher, for people's use provides a great convenience.
The specific embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.Be understandable that, specific embodiment described herein is only for explaining the present invention, but not limitation of the invention.It also should be noted that, for convenience of description, in accompanying drawing, only show part related to the present invention but not full content.
Embodiment 1
The diagram of circuit of a kind of control method for vehicle that Fig. 1 provides for first embodiment of the invention, the control method for vehicle that the embodiment of the present invention provides can carry out by mobile terminal the automatic control of prosthetic intervention to the state of the vehicle such as automobile, trac., motor bike, railway carriage, ship (general designation " vehicle " herein).
The flow process of the specific embodiment of the control method for vehicle of the present invention shown in Fig. 1 is:
Step 101, detecting device detect the equipment within the scope of efficient communication.
In a kind of concrete enforcement, described equipment is at least to have the mobile terminal of radio communication function, and this mobile terminal can be smart mobile phone, intelligent watch, laptop computer, intelligent necklace, automobile remote-control key etc.Described detecting device is to have equally the device in vehicle that is arranged at of radio communication function, as, can be arranged in the main frame of vehicle.
In another kind of specific embodiment, described equipment is at least having the vehicle of radio communication function, and described detecting device is for having equally the device in mobile terminal that is arranged at of radio communication function.
Step 102, detecting device foundation are connected with described equipment, and carry out radio communication.
Described communication can be by low-power consumption Bluetooth technology, WLAN (Wireless Local Area Network, WLAN) technology, WWAN (Wireless Wide Area Network, wireless wide area network) technology etc. communicates with described equipment, at this, is not specifically limited.Described effective range for wireless communication can set in advance on detecting device, also can according to circumstances in use modify.
Step 103, obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between equipment.
In this step, after described detecting device and described equipment are set up radio communication and is connected, described detecting device can obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between equipment.
Obtain and described equipment between the mode of distance can, for according to the received signal strength of the transmit signal strength of described detecting device and described equipment, in described detecting device, calculate the distance between described equipment and described detecting device.Also can obtain described equipment that described equipment calculates according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between described detecting device for described detecting device.Now described equipment calculates the distance between described equipment and described detecting device according to the received signal strength of the described detecting device transmit signal strength in wireless communication procedure and described equipment, and described distance is sent to described detecting device.
In this step, can be by RSSI (Received Signal Strength Indication, received signal strength indicator) loss transmitting between strong and received signal strength as calculation of parameter, then according to described loss, calculate the distance between described equipment and described detecting device, also can calculate the distance between described equipment and described detecting device by path loss (path loss or path attenuation), the method for calculating described distance is not specifically limited at this.
Step 104, according to described distance, control the state of described vehicle.
In this step, the distance calculating according to above-mentioned steps, controls the state of described vehicle.
The state of described vehicle can comprise untie or lock described vehicle Door Lock, turn down or turn up described vehicle vehicle window, opened close described vehicle boot, start or close a/c system of described vehicle etc.During concrete enforcement, can design according to different vehicle-state demands for control, thereby also can allow user that satisfying personalized requirement is in use set voluntarily.
In the present embodiment, can set in advance one or more distance thresholds, and correspondence arranges two or more sets vehicle-states, when described distance is less than or equal to described distance threshold, controlling vehicle is one group of state; When distance is greater than this distance threshold, controlling vehicle is another group state.
The control method for vehicle that the embodiment of the present invention provides, when equipment is in effective range for wireless communication, detecting device can automatically detect and establish a communications link with it, then according to the distance between equipment and detecting device, automatically control vehicle-state, whole process need not manual control.With respect to prior art, degree of automation of the present invention is higher, for people's use provides a great convenience.
Above-described embodiment can also comprise system initialization process.In described initialization procedure, can comprise the step to device authorization in advance, wherein: described detecting device connects with described equipment in advance, this equipment is produced to authorization message, and when preserving described authorization message, the copy of described authorization message is sent to this equipment.Thereby also can corresponding increase to described equipment, carry out the step of authentication in described
step 103, it is the copy that described detecting device obtains the authorization message of described equipment transmission, and the authorization message pre-stored with it mated, if the match is successful, can control vehicle-state according to distance, thereby guarantee the safety of associative operation between described detecting device and described equipment.
Embodiment 2
Fig. 2~Fig. 4 provides the more excellent embodiment of a kind of control method for vehicle of the present invention.
Step 1, system initialization process were carried out in advance initialization for described detecting device and equipment before using.
In described initialization procedure, can comprise the step to device authorization in advance, as shown in Figure 2, its idiographic flow is:
Step 201, detect the equipment in effective range for wireless communication.
Whether
step 202, judgement there is designated equipment in described effective range for wireless communication, if so, and
execution step 203; Otherwise return to step 201.
Step 203, select described equipment to connect.
Step 204, generation authorization message, and preserve described authorization message.
In the present embodiment, for guaranteeing safety and privacy, it is all unique can making the authorization message between described detecting device and every described equipment, and these authorization messages can not be forged.Described authorization message can be produced by rivest, shamir, adelmans such as RSA Algorithm, Digital Signature Algorithms, at this, to producing the algorithm of described authorization message, is not specifically limited.
The encryption connection of
step 205, foundation and described equipment.
For guaranteeing safety and the privacy of communication, between described detecting device and described equipment, set up encryption connection, to connecting the data of two-way transmission, be encrypted.
Step 206, by described encryption connection, send the copy of described authorization message to described equipment.
As a kind of more excellent embodiment, can also adopt the method for White List, described White List is for storing the identity information of described equipment.Therefore in initialization procedure, can increase the step of initialization White List, for obtain in advance the identity information of described equipment at described detecting device, and this identity information is added to White List, thereby complete the process of qualified equipment being added to White List, to reduce quantity and the number of times of the equipment that needs authentication.
Fig. 3 is for adopting the diagram of circuit of the initialization procedure after White List:
Step 301, detect the equipment in effective range for wireless communication.
Whether
step 302, judgement there is designated equipment in described effective range for wireless communication, if so, and
execution step 303; Otherwise return to step 301.
Step 303, selection designated equipment connect.
During practical application, because the mode that can receive advertising message by listening broadcast is directly obtained the required identity information of White List, therefore can omit step 303.As a kind of preferably embodiment, in the present embodiment, adopt
step 303 to connect, can be so that initialized parameter be set, and confirmation equipment can connect with detecting device.
Step 304, facility information is added into White List.
Detecting device obtains the identity information of designated equipment, and its identity information is added to White List.Described identity information can be the ID of described equipment, identification number etc. independently, and implementation does not limit at this.Every equipment identity information on described detecting device is all unique, and described identity information can be used for the described equipment of unique identification.
In this step, can increase the step of confirming identity information, to the identity information after confirming is added to White List.
Step 305, generation authorization message, and preserve described authorization message.
The encryption connection of
step 306, foundation and described equipment.
Step 307, by described encryption connection, send the copy of described authorization message to described equipment.
Step 2, vehicle control process.
Fig. 4 is the diagram of circuit of the control method for vehicle after the system initialization process based on Fig. 3, and details are as follows for described flow process:
Step 401, detecting device detect the equipment in effective range for wireless communication.
Step 402, judge in described effective range for wireless communication whether have equipment, if so,
execution step 403; Otherwise return to step 401.
Step 403, judge whether described equipment is present in White List, if so,
execution step 404; If not, return to step 401.
In the present embodiment, described detecting device detects after the equipment within the scope of efficient communication, will carry out authentication to described equipment, obtains the identity information of equipment, and with described White List in pre-stored identity information check.If find identical identity information from White List, show that the authentication of described equipment is passed through, can perform step 404.Otherwise return to step 401.
The present embodiment is by adding the equipment of appointment in White List to, and during the equipment in effective range for wireless communication being detected, first in White List, search and check the identity information that described equipment is corresponding, to determine whether to carry out wireless connections, thereby the equipment that need to connect detecting device screens, reduced number of devices and the number of times that need to connect authentication, the energy resource consumption while having saved detecting device and devices communicating, has accelerated the speed of valid function.
In the present embodiment, the identity information of described equipment can send by the mode of broadcast, as in low-power consumption Bluetooth communication mode, adopt broadcast channel to send in the mode of advertising broadcast, described detecting device is in information described in broadcast channel monitoring reception, or can obtain by other equivalent modes, at this, be not specifically limited.
Step 404, set up encryption connection with described equipment, and carry out radio communication.
Step 405, control the copy that described equipment transmits authorization message.
Step 406, judge whether the copy of described authorization message mates with the corresponding authorization message in described detecting device, if so,
execution step 407; If not, return to step 401.
In described step 405,406, after setting up encryption connection, described detecting device can be controlled described equipment and to described detecting device, transmit the copy of authorization message.Described detecting device gets after the copy of described authorization message, the authorization message that the copy of described authorization message is pre-stored with described detecting device is mated, if the match is successful, perform
step 407 operation, thereby guaranteed the safety of associative operation between described detecting device and described equipment.
Step 407, obtain the received signal strength of described equipment.
Step 408, obtain the detecting device that obtains according to the received signal strength of the transmit signal strength of described detecting device and described equipment and the distance between equipment.
Step 409, judge whether described distance reaches default distance threshold, if so,
execution step 410, if not,
execution step 407.
Step 410, triggering vehicle-state.
In described step 409,410, as a kind of optimal way, can set in advance a distance threshold, when described distance is less than or equal to this distance threshold, controlling vehicle is one group of state; When distance is greater than this distance threshold, controlling vehicle is another group state.As described in the state of vehicle can be to open or opening vehicle door lock, turn down or turn up vehicle window etc.During concrete enforcement, the user who carries mobile terminal can be gradually when the vehicle, and realize without manually-operatedly automatically opening car door, turn down the vehicles such as vehicle window and control, and after leaving vehicle, realization latches automatically without manually-operated car door, and vehicle window the vehicle such as is automatically closed and controlled.
As another kind of optimal way, also can set in advance two or more distance thresholds, corresponding two or more sets different vehicle-states, and when described distance reaches a certain distance threshold, the state of corresponding change vehicle.For example, two distance thresholds are set, the first default distance threshold vehicle door lock distance threshold is 2 meters, second distance threshold value car window switch threshold value is 5 meters, when user carries mobile terminal (as smart mobile phone) near vehicle, when the distance between described mobile terminal and described vehicle is less than or equal to 2 meters, can control the car door release of described vehicle, when the distance between described mobile terminal and described vehicle is greater than 2 meters, vehicle door lock; When the distance of the distance vehicle with between described mobile terminal and described vehicle is greater than 5 meters of second distance threshold values, can control described vehicle and close vehicle window, when the distance between described mobile terminal and described vehicle is less than 5 meters of second distance threshold values, vehicle window is opened.
In this step, the vehicle-state that described distance threshold is corresponding can set in advance in system initialization process, also can be by user's later stage modify.In the process of described equipment change and described detecting device distance, described distance can be obtained and be compared with setpoint distance threshold value repeatedly.In addition, when described mobile terminal is positioned at compartment, because the distance between described mobile terminal and described vehicle remains unchanged, so the state of described vehicle also can remain unchanged.
In this step, described vehicle can calculate or obtain after the described distance from mobile terminal, the state according to this apart from control vehicle; Also can receive the change that the vehicle-state control command of sending according to described distance from described mobile terminal triggers vehicle-state.
In the present embodiment, several or several groups of different states can be set simultaneously, the distance threshold that described different state is corresponding can have one to a plurality of, at this, is not specifically limited.
In addition, in the present embodiment, obtain the copy of authorization message of described equipment described equipment is carried out to the step of authentication, do not limit with the sequencing obtaining with the step of the distance of described equipment, can first to described equipment, carry out authentication, then obtain the distance with described equipment, also can first obtain the distance with described equipment, then described equipment is carried out to authentication, at this, be not specifically limited.
In the control method for vehicle that the embodiment of the present invention provides, first detecting device is set up radio communication with the equipment in effective range for wireless communication and is connected, then by this connection, described equipment is carried out to authentication, and according to the distance that gets in wireless communication procedure, control the state of vehicle, thereby realized the automatic control of vehicle-state.
Embodiment 3
The present embodiment provides a kind of detecting device of realizing a kind of control method for vehicle that the various embodiments described above provide.Described detecting device can be arranged in vehicle, also can be arranged in mobile terminal.
As shown in Figure 5, described detecting device comprises:
wireless communication module 51 and
control processing module 52.
Described
wireless communication module 51 is for detection of the equipment in effective range for wireless communication, and carries out radio communication with described equipment and be connected;
Described
control processing module 52 connects described
wireless communication module 51, and by described
wireless communication module 51, obtain the distance between equipment that obtain according to the received signal strength of the transmit signal strength of described detecting device and described equipment and described, according to described distance, output vehicle-state control signal.
Described detecting device can be arranged in vehicle main frame, and now, described control processing module is directly to described vehicle main frame output vehicle-state control signal, thus the control of realization to vehicle-state.
Described detecting device also can be arranged in mobile terminal, now, described control processing module is sent to vehicle-state control signal the vehicle equally with radio communication function by described wireless communication module, make vehicle can change according to this vehicle-state control signal the state of vehicle.
Described detecting device can also comprise
load module 53 and
output module 54, described
load module 53 is connected with described
control processing module 52 respectively with described
output module 54, initialization setting and system parameter that user can realize system by described load module change, while being included in system initialization, confirm that equipment identity information adds White List, arrange and revise the active distance of radio communication, arrange and revise distance threshold, arrange and revise vehicle-state that distance threshold is corresponding etc.Described output module is used for showing configuration information and parameter information.
Described detecting device can also comprise
memory module 55, described
memory module 55 is connected with described
control processing module 52, authorization message for storage equipment, described
control processing module 52 is carried out authentication by 51 pairs of described equipment of described wireless communication module, controlling
processing module 52 receives after the copy from the authorization message of equipment by described
wireless communication module 51, the authorization message that the copy of described authorization message is pre-stored with described detecting device is mated, after the match is successful, can carry out the step of vehicle-state control.
Described
memory module 55 also, for storing White List, is stored the identity information of described equipment in described White List.Described control processing module receives the identity information from described equipment by described wireless communication module, and in White List, searches and check the identity information that described equipment is corresponding, to determine whether carry out radio communication connection.
Embodiment 4
A kind of equipment of realizing a kind of control method for vehicle of the present invention that Fig. 6 provides for fourth embodiment of the invention, when described detecting device is arranged in vehicle, described equipment is a kind of mobile terminal, and when described detecting device is arranged in mobile terminal, described equipment is vehicle.
In described equipment, be provided with and can connect with described detecting device, carry out the
wireless communication unit 61 of radio communication.
Main control unit 62 and
memory cell 63 can also be set in described equipment, and described
main control unit 62 is connected with described
memory cell 63, described
wireless communication unit 61 respectively; Described
memory cell 63 is for the identity information of storage equipment and the copy of authorization message.Described
main control unit 62, according to the instruction of described detecting device, can send identity information to described detecting device by described
wireless communication unit 61, searches White List, to check identity for detection of device; Also can to described detecting device, send the copy of authorization message, for detection of device, described equipment be carried out to authentication.
When described equipment is vehicle, described
main control unit 62 can or can be connected with vehicle main frame for the main frame in vehicle, to export vehicle-state control signal to vehicle main frame.
In described equipment, also can be provided with
metrics calculation unit 64, described
metrics calculation unit 64 is connected with described
main control unit 62, be used for according to the received signal strength of the transmit signal strength of described detecting device and described equipment, distance between calculating and described detecting device, and to described detecting device, send described distance by described wireless communication unit.
In addition, described equipment also can be provided with load module and output module, and load module can change for realizing the initialization setting of system and system parameter, also or for hull closures radio communication function, thereby stops the execution of this method.Output module can be for showing configuration information and parameter information.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention can realize with general computer device, they can concentrate on single computer device, or be distributed on the network that a plurality of computer devices form, alternatively, they can realize with the executable program code of computer installation, thereby they can be stored in memory storage and be carried out by computer device, or they are made into respectively to each integrated circuit modules, or become single integrated circuit module to realize a plurality of module makings in them.For example, described detecting device can adopt the combination of the electronic devices and components such as Bluetooth communication module, micro controller system, button, read-out and memory module to realize.Like this, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, to those skilled in the art, the present invention can have various changes and variation.All any modifications of doing, be equal to replacement, improvement etc., within protection scope of the present invention all should be included within spirit of the present invention and principle.