Summary of the invention
To solve the above-mentioned problems, the present invention provides a kind of remote bluetooth keys to assist unlocking method, a kind of long-range indigo plant
Clavis spoon assists unlocking method, is applied in a kind of remote bluetooth key auxiliary system for unlocking, a kind of remote bluetooth key
Assist system for unlocking, comprising: mobile phone, car networking backstage and automobile to be unlocked;It is equipped in the mobile phone for unlocking automobile
Mobile phone A pp;Vehicle-mounted T-Box and vehicle-mounted BCM are installed in the automobile, Internet of Things network interface card is installed, and every in the vehicle-mounted T-Box
A vehicle-mounted Internet of Things network interface card has unique Internet of Things card number;Login account and Internet of Things nic card are stored in the car networking backstage
Number one to one relation pair, for positioning corresponding automobile to be unlocked by login account;
Fixed secret key is stored in the vehicle-mounted T-Box and the vehicle-mounted BCM;It is also equipped in the vehicle-mounted T-Box
Bluetooth module;
A kind of remote bluetooth key assists unlocking method, specifically comprises the following steps:
S101: the mobile phone A pp, which sends remote de-locking, instructs to the car networking backstage;The remote de-locking instructs
Log in the login account when mobile phone A pp;
S102: it is closed one by one according to the login account in remote de-locking instruction from described on the car networking backstage
It is centering acquisition and the associated Internet of Things card number of the login account, and then is sent out to the vehicle-mounted T-Box of corresponding automobile to be unlocked
Remote de-locking is sent to instruct, to wake up the CAN communication network of automobile to be unlocked;
Whether S103: the vehicle-mounted T-Box be in by the vehicle power supply of automobile to be unlocked described in CAN communication network inquiry
State to be opened? if so, arriving step S104;Wherein, state to be opened is that automobile is in OFF mode or long-range ON mode,
Power supply is in close state when OFF mode;
S104: the vehicle-mounted T-Box sends remote request unlock certification instruction to described wait unlock by CAN communication network
After the vehicle-mounted BCM of automobile, the vehicle-mounted BCM receive the remote request unlock certification instruction, initiated to the vehicle-mounted T-Box
Certification;Does the vehicle-mounted BCM judge that certification passes through? if so, arriving step S105;
S105: the vehicle-mounted T-Box bluetooth module carried by its own and the hand for sending the remote de-locking instruction
The bluetooth that machine carries is matched;If successful matching, the vehicle-mounted T-Box transmission successful matching signal to the vehicle-mounted BCM, and
To step S106;Otherwise, pairing failure signal is sent to the vehicle-mounted BCM, and arrives step S107;
S106: the vehicle-mounted BCM enters remote keyless start-up mode, and arrives step S107;
S107: the vehicle-mounted BCM enters long-range ON mode;And arrive step S108;
S108: remote de-locking EP (end of program).
Further, wherein further comprised the steps of: in step S103 otherwise, the vehicle-mounted T-Box feeds back the first false command
From the background to the car networking, and step S108 is arrived;The car networking backstage receives the first mistake of the vehicle-mounted T-Box feedback
After instruction, the first error message of transmission to the mobile phone A pp, and first error message is shown by mobile phone, to remind use
Family;First error message are as follows: electric source modes are incorrect, remote de-locking failure.
Further, wherein in step S104 further include: otherwise, the vehicle-mounted T-Box feeds back the second false command to institute
Car networking backstage is stated, and arrives step S108;The car networking backstage receives the second false command of the vehicle-mounted T-Box feedback
Afterwards, the second error message is sent to the mobile phone A pp, and second error message is shown by mobile phone, to remind user;Institute
State the second error message are as follows: remote authentication is unsuccessful, remote de-locking failure.
Further, in step S104, the vehicle-mounted T-Box sends remote request unlock certification by CAN communication network
It instructs after receiving the remote request unlock certification instruction to the vehicle-mounted BCM of the automobile to be unlocked, the vehicle-mounted BCM, to
The vehicle-mounted T-Box initiates certification;It specifically includes:
S201: the vehicle-mounted BCM is randomly generated random code, and the random code is sent to the vehicle-mounted T-Box, with to
The vehicle-mounted T-Box initiates certification;
S202: the vehicle-mounted BCM is calculated according to the unique identifying information of the random code and place vehicle using AES encryption
Method generates the first check code;
S203: the vehicle-mounted T-Box according to the unique identifying information of the random code and place vehicle, using AES encryption
Algorithm generates the second check code, and second check code is sent to the vehicle-mounted BCM;
Does S204: the vehicle-mounted BCM judge whether first check code and second check code consistent? if so, recognizing
Card passes through, and arrives step S206;Otherwise, step S205 is arrived;
S205: do you judge that n is greater than 2? if so, authentification failure, and arrive step S206;Otherwise, n is updated to n+1, and
Feedback step S201;Wherein, n is certification number, and the initial value of n is 0;
S206: authentication procedure terminates.
Further, in step S201, the random code includes two random data, respectively the first random data and the
Two random data, the first random data length are 8 bytes, and the second random data length is 3 bytes;Step S202 and
In step S203, the unique identifying information includes: shake hands identification code, the fixed secret key and key of shaking hands;The vehicle-mounted BCM
According to the random code, the method that check code is generated using AES encryption algorithm are as follows:
First using first random code as Byte0~Byte7 byte data, the identification code of shaking hands of place vehicle
As Byte8 byte data, second random code is as Byte9~Byte11 byte data, the fixation of place vehicle
Secret key forms the encrypted data of Byte0~Byte15 totally 16 bytes as Byte12~Byte15 byte data;
Then by key of shaking hands described in the encrypted data and 16 bytes of place vehicle, 32 bytes are collectively constituted
Algorithm secret key;
Data encryption is carried out to the algorithm secret key finally by aes algorithm, the encryption data of 16 bytes is calculated, into
And take the data of the least-significant byte byte of the encryption data as check code;
Wherein, it is prestored respectively when the identification code of shaking hands, the fixed secret key and the key of shaking hands are automobile factory
Data in vehicle-mounted BCM and vehicle-mounted T-Box, and the identification code of shaking hands of each vehicle, the fixed secret key and described hold
Hand key is unique.
Further, in step S106, the remote keyless start-up mode specifically: default when being powered on wait unlock automobile
Key is legal, i.e., into no key start-up mode, automobile no-key to be unlocked is allowed to start;Triggering simultaneously falls to count without key starting
When X minutes;X is preset value, and is greater than 0.
Further, in step S107, the long-range ON mode specifically: releasing vehicle body is antitheft and controls car door unlock,
Open car door;Car door is fed back simultaneously and unlocks pass signal to the vehicle-mounted T-BOX, and triggers long-range ON mode countdown Y minutes;
Y is preset value, and 0 < Y < X;
If being directly entered long-range ON mode, and without remote keyless start-up mode, then car door can be only opened, not
The automobile to be unlocked can be started without key.
Further, after the vehicle-mounted T-Box receives the unlock pass signal, transmission, which unlocks, successfully to be instructed to described
Car networking backstage, the car networking backstage retransmit unlock successful information to the mobile phone A pp, are unlocked successfully by mobile phone display
Information, to remind user.
Further, the unlock successful information, first error message or described are received in the mobile phone A pp
Before second error message, the mobile phone A pp can not send remote de-locking again and instruct to the car networking backstage.
Further, at the end of long-range ON mode countdown timing in Y minutes, the vehicle-mounted BCM detection is described wait unlock
All vehicle door status of automobile, to have detected whether that car door is in the open state or is previously opened in timing in Y minutes? if
It is that then at the end of no key starts timing in countdown X minutes, removing key is legal, authentication authorization and accounting failure, but do not change vehicle and work as
Preceding operating status;Otherwise, the vehicle-mounted BCM controls that the automobile to be unlocked enters anti-theft state and to remove key legal, that is, matches
To failure;The car door includes: two front doors, two back doors and trunk door.
It is following excellent that technical solution provided by the invention has the benefit that technical solution proposed by the present invention has
Point:
1) when user only needs remote de-locking car door, can far field locked door using mobile phone terminal APP solution, but vehicle can not be normal
Starting;
2) it when user is not used key and normally starts vehicle, needs Bluetooth of mobile phone near field and verifies to use mobile phone when passing through
End APP solution, which enters car after locking door, can normally start vehicle, improve the safety remotely started.
Specific embodiment
For a clearer understanding of the technical characteristics, objects and effects of the present invention, now control attached drawing is described in detail
A specific embodiment of the invention.
The embodiment provides a kind of remote bluetooth keys to assist unlocking method, wants applied to a kind of remote bluetooth
It is in auxiliary system for unlocking;It is characterized by: a kind of remote bluetooth key assists system for unlocking, comprising: mobile phone, car networking
Backstage and automobile to be unlocked;Mobile phone A pp for unlocking automobile is installed in the mobile phone;Vehicle-mounted T- is installed in the automobile
Internet of Things network interface card is installed, and each vehicle-mounted Internet of Things network interface card has unique Internet of Things in Box and vehicle-mounted BCM, the vehicle-mounted T-Box
Card number;The one to one relation pair of login account Yu Internet of Things network interface card card number is stored in the car networking backstage, for by logging in account
Number corresponding automobile to be unlocked of positioning;
Fixed secret key is stored in the vehicle-mounted T-Box and the vehicle-mounted BCM;It is also equipped in the vehicle-mounted T-Box
Bluetooth module;
Referring to FIG. 1, Fig. 1 is a kind of flow chart of remote bluetooth key auxiliary unlocking method in the embodiment of the present invention;Institute
A kind of remote bluetooth key auxiliary unlocking method is stated, is specifically comprised the following steps:
S101: the mobile phone A pp, which sends remote de-locking, instructs to the car networking backstage;The remote de-locking instructs
Log in the login account when mobile phone A pp;
S102: it is closed one by one according to the login account in remote de-locking instruction from described on the car networking backstage
It is centering acquisition and the associated Internet of Things card number of the login account, and then is sent out to the vehicle-mounted T-Box of corresponding automobile to be unlocked
Remote de-locking is sent to instruct, to wake up the CAN communication network of automobile to be unlocked;
Whether S103: the vehicle-mounted T-Box be in by the vehicle power supply of automobile to be unlocked described in CAN communication network inquiry
State to be opened? if so, arriving step S104;Otherwise, after vehicle-mounted T-Box feedback first false command to the car networking
Platform, and arrive step S108;Wherein, state to be opened is that automobile is in OFF mode or long-range ON mode, power supply when OFF mode
It is in close state;
S104: the vehicle-mounted T-Box sends remote request unlock certification instruction to described wait unlock by CAN communication network
After the vehicle-mounted BCM of automobile, the vehicle-mounted BCM receive the remote request unlock certification instruction, initiated to the vehicle-mounted T-Box
Certification;Does the vehicle-mounted BCM judge that certification passes through? if so, arriving step S105;Otherwise, the vehicle-mounted T-Box feedback second
False command arrives step S108 to car networking backstage;
S105: the vehicle-mounted T-Box bluetooth module carried by its own and the hand for sending the remote de-locking instruction
The bluetooth that machine carries is matched;If successful matching, the vehicle-mounted T-Box transmission successful matching signal to the vehicle-mounted BCM, and
To step S106;Otherwise, pairing failure signal is sent to the vehicle-mounted BCM, and arrives step S107;
S106: the vehicle-mounted BCM enters remote keyless start-up mode, and arrives step S107;
S107: the vehicle-mounted BCM enters long-range ON mode;And arrive step S108;
S108: remote de-locking EP (end of program).
In step S103, after the car networking backstage receives the first false command of the vehicle-mounted T-Box feedback, send
First error message shows first error message by mobile phone to the mobile phone A pp, to remind user;Described first
Error message are as follows: electric source modes are incorrect, remote de-locking failure.
In step S104, after the car networking backstage receives the second false command of the vehicle-mounted T-Box feedback, send
Second error message shows second error message by mobile phone to the mobile phone A pp, to remind user;Described second
Error message are as follows: remote authentication is unsuccessful, remote de-locking failure.
Referring to Fig. 2, Fig. 2 is the identifying procedure figure of vehicle-mounted BCM in the embodiment of the present invention;It is described vehicle-mounted in step S104
T-Box sends vehicle-mounted BCM of the remote request unlock certification instruction to the automobile to be unlocked, the vehicle by CAN communication network
After load BCM receives the remote request unlock certification instruction, initiate to authenticate to the vehicle-mounted T-Box;It specifically includes:
S201: the vehicle-mounted BCM is randomly generated random code, and the random code is sent to the vehicle-mounted T-Box, with to
The vehicle-mounted T-Box initiates certification;
S202: the vehicle-mounted BCM is calculated according to the unique identifying information of the random code and place vehicle using AES encryption
Method generates the first check code;
S203: the vehicle-mounted T-Box according to the unique identifying information of the random code and place vehicle, using AES encryption
Algorithm generates the second check code, and second check code is sent to the vehicle-mounted BCM;
Does S204: the vehicle-mounted BCM judge whether first check code and second check code consistent? if so, recognizing
Card passes through, and arrives step S206;Otherwise, step S205 is arrived;
S205: do you judge that n is greater than 2? if so, authentification failure, and arrive step S206;Otherwise, n is updated to n+1, and
Feedback step S201;Wherein, n is certification number, and the initial value of n is 0;
S206: authentication procedure terminates.
As shown in figure 3, Fig. 3 is encryption flow figure in the embodiment of the present invention;In step S201, the random code includes two
Random data, respectively the first random data and the second random data, the first random data length are 8 bytes, described the
Two random data length are 3 bytes;In step S202 and step S203, the unique identifying information includes: shake hands identification code, institute
State fixed secret key and key of shaking hands;The vehicle-mounted BCM generates the side of check code using AES encryption algorithm according to the random code
Method are as follows:
First using first random code as Byte0~Byte7 byte data, the identification code of shaking hands of place vehicle
As Byte8 byte data, second random code is as Byte9~Byte11 byte data, the fixation of place vehicle
Secret key forms the encrypted data of Byte0~Byte15 totally 16 bytes as Byte12~Byte15 byte data;
Then by key of shaking hands described in the encrypted data and 16 bytes of place vehicle, 32 bytes are collectively constituted
Algorithm secret key;
Data encryption is carried out to the algorithm secret key finally by aes algorithm, the encryption data of 16 bytes is calculated, into
And take the data of the least-significant byte byte of the encryption data as check code;
Wherein, it is prestored respectively when the identification code of shaking hands, the fixed secret key and the key of shaking hands are automobile factory
Data in vehicle-mounted BCM and vehicle-mounted T-Box, and the identification code of shaking hands of each vehicle, the fixed secret key and described hold
Hand key is unique.
In step S106, the remote keyless start-up mode specifically: it is legal to default key when unlocking automobile and powering on,
I.e. into no key start-up mode, automobile no-key to be unlocked is allowed to start;Triggering starts countdown X minutes without key simultaneously;X
For preset value, and it is greater than 0.
In step S107, the long-range ON mode specifically: releasing vehicle body is antitheft and controls car door unlock, opens car door;
Car door is fed back simultaneously and unlocks pass signal to the vehicle-mounted T-BOX, and triggers long-range ON mode countdown Y minutes;Y is default
Value, and 0 < Y < X;
If being directly entered long-range ON mode, and without remote keyless start-up mode, then car door can be only opened, not
The automobile to be unlocked can be started without key.
After the vehicle-mounted T-Box receives the unlock pass signal, transmission, which unlocks, successfully to be instructed to the car networking
From the background, car networking backstage retransmits unlock successful information to the mobile phone A pp, shows unlock successful information by mobile phone,
To remind user.
The unlock successful information, first error message or second mistake are received in the mobile phone A pp
Before information, the mobile phone A pp can not send remote de-locking again and instruct to the car networking backstage.
At the end of long-range ON mode countdown timing in Y minutes, the vehicle-mounted BCM detects all of the automobile to be unlocked
Vehicle door status, to have detected whether that car door is in the open state or is previously opened in timing in Y minutes? if so, in no key
At the end of spoon starting timing in countdown X minutes, removing key is legal, authentication authorization and accounting failure, but does not change vehicle current operating conditions;
Otherwise, the vehicle-mounted BCM controls the automobile to be unlocked and enters anti-theft state and legal, i.e. pairing failure of removing key;It is described
Car door includes: two front doors, two back doors and trunk door.
For example: if X is set as 10 minutes, and Y is set as 3 minutes, and automobile enters no key start-up mode and remote
Journey ON mode;Can vehicle-mounted BCM detect whether which door is previously opened in this 3 minutes then at the end of timing in 3 minutes? such as
Fruit has, then at the end of countdown in 10 minutes, it is legal to remove key, authentication authorization and accounting failure, the not revival of unlock instruction before,
That is car door cannot be opened again from the outside, and automobile cannot be started without key again when car door is shut again, but
Regardless of automobile is currently at what state (automobile may travel), the current state of vehicle is not changed;If it is not,
Automobile is entered into anti-theft state immediately, and it is legal to remove key, i.e., can not be again turned on car door.
The present invention is applicable in scene citing:
Example 1: car owner stays in high-storey, and automobile is parked in downstairs, if at this time there is courier to send express delivery, car owner can pass through
Mobile phone controls vehicle and enters long-range ON mode, but farther out due to car owner's mobile phone and automobile distance, so the bluetooth discovery of automobile
Less than the bluetooth of mobile phone, cause Bluetooth pairing unsuccessful, vehicle does not enter no key start-up mode, so this when is fast
The person of passing has Y minutes that express delivery is put into vehicle, then shuts car door, the trouble for avoiding car owner from going downstairs.And courier cannot nothing
Key starts vehicle, and this reduces the hidden danger that automobile is driven away.
Example 2: car owner forgets band car key, but with mobile phone, can pass through the App of mobile phone this when and send solution
Lock instruction, and mobile phone and automobile are closer, and the bluetooth of automobile may search for the bluetooth of mobile phone, and successful matching, in turn
Automobile can enter long-range ON mode and without key start-up mode, and vehicle can enter vehicle and the vehicle that can drive away without key.
The beneficial effects of the present invention are: technical solution proposed by the invention has following advantages:
1) when user only needs remote de-locking car door, can far field locked door using mobile phone terminal APP solution, but vehicle can not be normal
Starting;
2) it when user is not used key and normally starts vehicle, needs Bluetooth of mobile phone near field and verifies to use mobile phone when passing through
End APP solution, which enters car after locking door, can normally start vehicle, improve the safety remotely started.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.