Disclosure of Invention
In view of the above, the present invention provides an automobile door lock opening and closing method, which solves the problems that the automobile door lock opening and closing manner is single and the vehicle use information and the door lock information cannot be recorded and queried in the use of the automobile provided by the prior art, realizes keyless management of the vehicle owner and improves the vehicle use safety of the vehicle owner.
In order to achieve the purpose, the invention provides the following technical scheme:
the invention aims to provide a method for setting a member of an automobile door lock, which comprises the following steps:
the mobile phone sends a door lock member setting request module, which is used for sending automobile door lock member information in a wireless communication mode, wherein the command comprises door lock member serial number, member name, random data, encrypted key, setting command and other related information, and the password is transmitted in a dynamic encrypted key mode to ensure that data transmission is not repeated every time.
The in-vehicle ECU sends a request response module, which is used for decrypting the mobile phone door lock member setting request information through the random data sent by the mobile phone, temporarily storing the member and the password when the information conforms to the setting, and sending the information such as the random data; if the information does not accord with the setting, the access failure times are updated, the key setting error indication is responded, the locking member is set to operate after the number of times of the setting is exceeded, and the locking is released in a delayed mode.
And the mobile phone sending door lock member setting confirmation module is used for checking the dynamic response information sent by the ECU in the vehicle. If the random data is received correctly, combining the received random data with the member password in the mobile phone to form a new confirmation key, and sending the new confirmation key to the ECU in the vehicle; if a password error is received, giving an error indication; and if the receiving is overtime, the mobile phone sends a door lock member setting request again.
The in-vehicle ECU executes the confirmation module, is used for the in-vehicle ECU to carry out the check processing on the door lock member setting confirmation information sent by the mobile phone through the sent random data and the door lock member setting request information temporarily stored in the vehicle; and if the information is consistent, completing the updating of the door lock member according to the operation command and sending execution confirmation information, if the information is not consistent, updating the access failure times, and if the access failure times are not consistent, locking and clearing the information sent by the mobile phone sending door lock member setting request module.
Further, the mobile phone door lock member sending setting request module encrypts a door lock member set password and random data in an encryption mode agreed by both parties on the basis of normal wireless communication connection between the mobile phone and the in-vehicle ECU, sends the door lock member set password and the random data in a member serial number, member name, random data, dynamic key, operation command and data verification mode, and judges whether the door lock member set password and the random data are successfully sent according to the in-vehicle ECU feedback information.
Further, after the in-vehicle ECU sends the request response module and is successfully connected and communicated with the mobile phone, the received mobile phone information frame is counted and accumulated, the counter is automatically cleared every time correct information is received, if the number of times of counting is exceeded, the connection is locked, the connection data is not responded, and the connection locking is released after the set time delay.
Further, the in-vehicle ECU sends the request response module, after successfully receiving the member serial number, the member name, the random data, the dynamic key, the setting command and other related information sent by the mobile phone, the in-vehicle ECU decrypts through the random data, and if the received data does not meet the agreement, the in-vehicle ECU does not respond.
Further, after successfully receiving the member serial number, the member name, the random data, the dynamic key, the setting command and other related information sent by the mobile phone, the in-vehicle ECU sending request response module decrypts through the random data, if the received data conforms to the convention, the decrypted member information is temporarily stored, the mobile phone connection information frame counting accumulation is cleared, and the in-vehicle ECU sending request response module sends the random data to perform response confirmation.
Further, the mobile phone sending door lock member setting confirmation module combines the random data sent by the in-vehicle ECU sending request response module with the mobile phone member password to generate key information after successfully receiving the random data, and sends the door lock member setting confirmation information to the in-vehicle ECU.
Further, after the in-vehicle ECU execution confirmation module successfully receives the door lock member confirmation information sent by the mobile phone, the in-vehicle ECU execution confirmation module decrypts the random data temporarily stored in the request response information sent by the in-vehicle ECU, completes door lock member setting if the member name and the password are consistent with the last mobile phone door lock member setting request module information, and sends an execution result.
Further, after the in-vehicle ECU execution confirmation module successfully receives the door lock member confirmation information sent by the mobile phone, the random data temporarily stored in the request response information sent by the in-vehicle ECU is used for decryption, if the member name and the password are not consistent with the last door lock member setting request module information sent by the mobile phone, a password error count is accumulated, the password error count is smaller than the set password error and a password error indication is sent, and otherwise, the response is not carried out.
The invention has the beneficial effects that: the invention provides a method for setting members of an automobile door lock, which is characterized in that a wireless communication mode is adopted, and a mobile phone sends the setting information of the members of the door lock to an ECU (electronic control unit) in an automobile in an encrypted information mode; after receiving the information, the ECU in the vehicle decrypts the information according to the random data, the member information and the password information in the received information and sends dynamic response information; if the mobile phone sends the door lock member setting confirmation, a new key is generated again according to random data sent by the ECU in the vehicle to generate door lock member setting confirmation information and the door lock member setting confirmation information is sent; and the in-vehicle ECU decrypts the random data sent by the latest in-vehicle ECU sending request response module according to the received new key, completes the key confirmation of the door lock member, and sends the in-vehicle ECU door lock member setting execution confirmation information to the mobile phone for data updating. Aiming at the increasingly popular smart phone system and the lifting point of the mobile phone for carrying articles, the invention provides a method for setting automobile door lock members by utilizing the wireless communication function of the mobile phone and combining a safe dynamic encryption method, can realize the keyless unlocking and locking of an automobile door lock and the mobile phone processing of automobile condition data, can track the automobile use condition in time, improves the automobile use safety, and has strong popularization and application values.
Additional advantages, objects, and features of the invention will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the invention. The objectives and other advantages of the invention may be realized and attained by the means of the instrumentalities and combinations particularly pointed out hereinafter.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention in a schematic way, and the features in the following embodiments and examples may be combined with each other without conflict.
Wherein the showings are for the purpose of illustrating the invention only and not for the purpose of limiting the same, and in which there is shown by way of illustration only and not in the drawings in which there is no intention to limit the invention thereto; to better illustrate the embodiments of the present invention, some parts of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The same or similar reference numerals in the drawings of the embodiments of the present invention correspond to the same or similar components; in the description of the present invention, it should be understood that if there is an orientation or positional relationship indicated by terms such as "upper", "lower", "left", "right", "front", "rear", etc., based on the orientation or positional relationship shown in the drawings, it is only for convenience of description and simplification of description, but it is not an indication or suggestion that the referred device or element must have a specific orientation, be constructed in a specific orientation, and be operated, and therefore, the terms describing the positional relationship in the drawings are only used for illustrative purposes, and are not to be construed as limiting the present invention, and the specific meaning of the terms may be understood by those skilled in the art according to specific situations.
Fig. 1 shows a structure of a method for setting an automobile door lock member according to an embodiment of the present invention. For convenience of explanation, only portions relevant to the present invention are shown.
The method for setting the automobile door lock member comprises the following steps:
the mobile phone sends a door lock membersetting request module 11, which is used for initiating door lock member setting request information, wherein the information comprises member serial number, member name, random data, key, setting command and other information, and the key is formed by combining and encrypting the random data and member password;
and the in-vehicle ECU sends arequest response module 12, which is used for decrypting the information sent by theresponse 11 module, if the member information accords with the setting, the dynamic random data required by the module corresponding to the new key is given 13, otherwise, the wrong indication of the password request information is given and sent.
And the mobile phone sending door lock membersetting confirmation module 13 is connected with the in-vehicle ECU sendingrequest response module 12, generates door lock member setting confirmation information according to the random data provided by themodule 12 and the in-vehicle member password combination, and sends the door lock member setting confirmation information to the in-vehicle ECU.
And the in-vehicle ECUexecution confirmation module 14 is connected with the mobile phone sending door lock membersetting confirmation module 13 and is used for analyzing the key information of themodule 13, judging whether the member key information in the mobile phone is consistent with the member information temporarily stored in the in-vehicle ECU, responding to the request and sending confirmation information if the member key information in the mobile phone is consistent with the member information temporarily stored in the in-vehicle ECU, sending information corresponding to the lock opening and closingrequest response module 12 by the in-vehicle ECU if the member key information in the mobile phone is inconsistent with the member information temporarily stored in the in-vehicle ECU.
In the embodiment of the invention, the mobilephone information module 11 for sending the automobile lock opening and closing information acquires data, random data cannot be the same when the information is sent for multiple times, the random data is used for being combined and encrypted with member information and password information in the mobile phone to form key information, and the lock opening and closing information comprising the random data, the key, a lock opening and closing command and the like is sent.
In the embodiment of the present invention, after the in-vehicle ECU sends the unlocking and lockingrequest response module 12 to acquire the unlocking and locking information sent by themodule 11, if the random data received this time is the same as the random data requested last time, no response is made.
In the embodiment of the invention, after the in-vehicle ECU sending unlocking and lockingrequest response module 12 obtains the unlocking and locking information sent by the mobile phone sending automobile unlocking andlocking information module 11, if the random data received this time is not the same as the random data requested last time, the received information is decrypted to obtain the member and password information in the information, whether the same member and password information exists in the ECU is compared, if the member agrees with the password, the in-vehicle ECU unlocking and locking request response information containing the password error indication is sent, and if the member agrees with the password, the two do not agree with each other, the response is not carried out.
In the embodiment of the invention, after the in-vehicle ECU sending unlocking and lockingrequest response module 12 acquires the unlocking and locking information sent by the mobile phone sending automobile unlocking andlocking information module 11, if the random data received this time is not the same as the random data requested last time, the received information is decrypted to acquire the member and password information in the information, whether the same member and password information exist in the ECU is compared, if yes, the in-vehicle ECU sending unlocking and locking request response information containing the random data is sent, and the password request error count is updated.
In the embodiment of the present invention, after the mobile phone unlocking and locking confirmationinformation sending module 13 obtains the response information sent by the in-vehicle ECU unlocking and lockingrequest response module 12, the response information is combined with the member information and the password information in the mobile phone according to the random data in the response information, and a new unlocking and locking confirmation information key is formed again and sent.
In the embodiment of the present invention, after the in-vehicle ECUexecution confirmation module 14 obtains the confirmation information sent by the mobile phone lock unlocking confirmationinformation sending module 13, according to the random data sent by the ECU lock unlockingrequest response module 12, the key in the mobile phone lock unlocking confirmationinformation sending module 13 is decrypted to obtain the member information and the password information, if the member information does not match the password information determined by the in-vehicle ECU lock unlockingrequest response module 12, the information corresponding to the lock unlockingrequest response module 12 is sent, and the password confirmation error count is updated, and if the number of times exceeds the set number, the response is not performed.
In the embodiment of the present invention, after the in-vehicle ECUexecution confirmation module 14 obtains the confirmation information sent by the mobile phone lock unlocking and locking confirmationinformation sending module 13, according to the random data sent by the ECU lock unlocking and lockingrequest response module 12, the key in the mobile phone lock unlocking and locking confirmationinformation sending module 13 is decrypted to obtain the member information and the password information, if the member in the vehicle determined by the in-vehicle ECU lock unlocking and lockingrequest response module 12 matches the password information, the password confirmation error count is clear, the unlocking or locking control of the automobile door lock is completed according to the confirmation information sent by the mobile phone lock unlocking and locking confirmationinformation sending module 13, and meanwhile, the execution confirmation information that the unlocking and locking is successful is sent.
The application of the principles of the present invention will be further described with reference to the accompanying drawings and specific embodiments.
The invention relates to an automobile door lock control method based on a wireless communication technology, which can realize the key function of an automobile door lock through wireless communication modes such as a mobile phone and the like to complete the opening and closing control of the automobile door lock, and adopts a mode of twice dynamic password confirmation to improve the reliability of a key and realize the opening and closing control of the keyless automobile door lock.
Fig. 1 illustrates a workflow of an automobile door lock opening and closing method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a process of sending an automobile unlocking and locking information module by a mobile phone according to an embodiment of the present invention;
FIG. 3 is a flowchart of an operation of an in-vehicle ECU sending a lock opening/closing request response module according to an embodiment of the present invention;
fig. 4 is a flowchart illustrating a working process of the module for sending an unlocking/locking confirmation message by a mobile phone according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating the operation of an in-vehicle ECU execution confirmation module according to an embodiment of the present invention;
the automobile door lock opening and closing method based on the wireless communication technology comprises an automobile unlocking and lockinginformation sending module 11 of a mobile phone, an automobile interior ECU (electronic control unit) sending unlocking and lockingrequest response module 12, an unlocking and locking confirmationinformation sending module 13 of the mobile phone and an automobile interior ECUexecution confirmation module 14;
the mobile phoneinformation sending module 11 for sending the automobile lock opening and closing information sends related information including random data, a key, a lock opening and closing command and the like which need to be changed every time, wherein the key is automatically generated according to the combination of the random data, member information and password information and is not transmitted through an open code;
an in-vehicle ECU (electronic control unit) sending unlocking and lockingrequest response module 12 decrypts the received information of the mobile phone sending automobile unlocking andlocking information module 11, compares the decrypted member information with all member information stored in the ECU, compares password information after finding the same member information, sends password error indication information when the passwords are different, updates password request error count, and does not respond after the error count exceeds the set number;
an in-vehicle ECU (electronic control unit) sending unlocking and lockingrequest response module 12 decrypts the received information of the mobile phone sending automobile unlocking andlocking information module 11, compares the decrypted member information with all member information stored in the ECU, compares password information after finding the same member information, sends unlocking and locking request response information with random data if the passwords are the same, and clears password request error counts;
the mobile phone locking and unlocking confirmationinformation sending module 13 analyzes the information sent by the locking and unlockingrequest response module 12 sent by the in-vehicle ECU, obtains random data, and generates new locking and unlocking confirmation information according to the random data, the in-mobile phone member information and the password information;
after the in-vehicle ECUexecution confirmation module 14 receives the key sent by the unlocking and locking confirmationinformation sending module 13 of the mobile phone, the key in the unlocking and locking confirmationinformation sending module 13 of the mobile phone is decrypted according to the random data sent by the unlocking and lockingrequest response module 12 sent by the ECU, member information and password information are obtained, if the member in the vehicle determined by the unlocking and lockingrequest response module 12 sent by the in-vehicle ECU does not conform to the password information, the information corresponding to the unlocking and lockingrequest response module 12 is sent, the password confirmation error count is updated, and all operations of the member are locked when the number of times exceeds the set number.
After the in-vehicle ECUexecution confirmation module 14 receives the key sent by the unlocking and locking confirmationinformation sending module 13 of the mobile phone, the key in the unlocking and locking confirmationinformation sending module 13 of the mobile phone is decrypted according to the random data sent by the unlocking and lockingrequest response module 12 sent by the ECU, member information and password information are obtained, if the member in the vehicle determined by the unlocking and lockingrequest response module 12 sent by the in-vehicle ECU is consistent with the password information, the wrong counting of password confirmation is clear, the unlocking or locking control of the automobile door lock is completed according to the confirmation information sent by the unlocking and locking confirmationinformation sending module 13 of the mobile phone, and meanwhile, the successful unlocking and locking execution confirmation information is sent.
According to the automobile door lock opening and closing method provided by the embodiment of the invention, the mobile phone sending automobile opening and closinglock information module 11 dynamically encrypts member information and password information through random data and sends an opening and closing lock request; the in-vehicle ECU sends an unlocking and lockingrequest response module 12 to decrypt the received key according to the received random data to obtain member information and password information, and the member information stored in the ECU are compared and confirmed to complete the preliminary key determination and improve the random data for the password confirmation; the mobile phone lock sending and unlockingconfirmation information module 13 extracts random data through the received information of the in-vehicle ECU lock sending and unlockingrequest response module 12, and the random data is combined with the in-mobile phone member and the password again to generate a new key for sending; the in-vehicle ECUexecution confirmation module 14 decrypts the key sent by the received mobile phone unlocking and locking confirmationinformation sending module 13 by using the random data reserved by the in-vehicle ECU sending unlocking and lockingrequest response module 12 to confirm the consistency of the member key, thereby completing the keyless unlocking and locking functions of the automobile door lock.
The invention relates to an automobile door lock opening and closing method, which adopts a twice dynamic password confirmation method, firstly utilizes random data of a mobile phone and a key to establish a request, then utilizes the random data in an ECU, and has a method for generating the key by utilizing the random data of the mobile phone to realize the keyless opening and closing function of the automobile door lock.
Finally, the above embodiments are only intended to illustrate the technical solutions of the present invention and not to limit the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it will be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions, and all of them should be covered by the claims of the present invention.