CN112124247B - Vehicle lock control method and device and computer readable storage medium - Google Patents

Vehicle lock control method and device and computer readable storage medium Download PDF

Info

Publication number
CN112124247B
CN112124247B CN202010984942.3A CN202010984942A CN112124247B CN 112124247 B CN112124247 B CN 112124247B CN 202010984942 A CN202010984942 A CN 202010984942A CN 112124247 B CN112124247 B CN 112124247B
Authority
CN
China
Prior art keywords
key
lock control
account
identifier
vehicle
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
CN202010984942.3A
Other languages
Chinese (zh)
Other versions
CN112124247A (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.)
Shanghai Junzheng Network Technology Co Ltd
Original Assignee
Shanghai Junzheng Network Technology Co Ltd
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 Shanghai Junzheng Network Technology Co Ltd filed Critical Shanghai Junzheng Network Technology Co Ltd
Priority to CN202010984942.3A priority Critical patent/CN112124247B/en
Publication of CN112124247A publication Critical patent/CN112124247A/en
Application granted granted Critical
Publication of CN112124247B publication Critical patent/CN112124247B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/20Means to switch the anti-theft system on or off
    • B60R25/2018Central base unlocks or authorises unlocking
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/20Means to switch the anti-theft system on or off
    • B60R25/24Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user
    • B60R25/241Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user whereby access privileges are related to the identifiers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R25/00Fittings or systems for preventing or indicating unauthorised use or theft of vehicles
    • B60R25/20Means to switch the anti-theft system on or off
    • B60R25/24Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user
    • B60R25/245Means to switch the anti-theft system on or off using electronic identifiers containing a code not memorised by the user where the antenna reception area plays a role
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R2325/00Indexing scheme relating to vehicle anti-theft devices
    • B60R2325/10Communication protocols, communication systems of vehicle anti-theft devices
    • B60R2325/106Internet
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R2325/00Indexing scheme relating to vehicle anti-theft devices
    • B60R2325/10Communication protocols, communication systems of vehicle anti-theft devices
    • B60R2325/108Encryption
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R2325/00Indexing scheme relating to vehicle anti-theft devices
    • B60R2325/30Vehicles applying the vehicle anti-theft devices
    • B60R2325/306Motorcycles

Abstract

The invention discloses a vehicle lock control method, a vehicle lock control device and a computer readable storage medium, relates to the technical field of intelligent electric vehicles, and solves the technical problem of poor function stability of the intelligent electric vehicle in a network environment or a non-network environment. The vehicle lock control method comprises the following steps: receiving a first key sent by a terminal device in a non-network communication mode, wherein the first key comprises a first identifier and a first car lock control instruction, a key sequence obtained in a network communication mode is stored in the terminal device, and the first key is a key arranged at a first position in the key sequence; and determining the unique account and the account type of the unique account according to the first identifier, and executing the lock control operation under the condition that the allowed operation corresponding to the account type comprises the lock control operation indicated by the first lock control instruction.

Description

Vehicle lock control method and device and computer readable storage medium
Technical Field
The invention relates to the technical field of intelligent electric vehicles, in particular to a vehicle lock control method and device and a computer readable storage medium.
Background
With the development of the internet of things technology, the intelligent electric vehicle starts to enter the visual field of people.
Generally, in the process of using the intelligent electric vehicle by a user, an operator can issue the network locking and unlocking authority of the intelligent electric vehicle to the user in an account authorization mode. Therefore, the user can control the on-off lock state of the intelligent electric vehicle through the mobile phone in the mobile phone networking state.
However, the above method cannot ensure the success rate of locking and unlocking of the user in a poor network environment or a no-network environment, so that the functional stability of the intelligent electric vehicle is poor.
Accordingly, those skilled in the art have made an effort to develop a vehicle lock control method, apparatus, and computer-readable storage medium capable of improving functional stability of an intelligent electric vehicle in a poor network environment or a no-network environment.
Disclosure of Invention
In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is to improve the functional stability of the intelligent electric vehicle.
In order to achieve the purpose, the invention adopts the following technical scheme:
in a first aspect, the present invention provides a vehicle lock control method applied to an intelligent electric vehicle, including: receiving a first key sent by a terminal device in a non-network communication mode, wherein the first key comprises a first identifier and a first car lock control instruction, a key sequence obtained in a network communication mode is stored in the terminal device, and the first key is a key arranged at a first position in the key sequence; and determining the unique account and the account type of the unique account according to the first identifier, and executing the lock control operation under the condition that the allowed operation corresponding to the account type comprises the lock control operation indicated by the first lock control instruction.
In a preferred embodiment of the present invention, the account category includes a main account and a sub-account, and in a case that the permitted operation corresponding to the account category includes a lock control operation indicated by the first lock control instruction, the executing the lock control operation includes: under the condition that the first identification corresponds to the main account, executing the lock control operation according to the first lock control instruction, wherein the lock control operation comprises unlocking operation and locking operation; and under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, executing the unlocking operation according to the first lock control instruction.
In a preferred embodiment of the present invention, in a case that the first identifier corresponds to a sub-account, after the unlocking operation is executed according to the first lock control instruction, the method further includes: receiving a second key sent by the terminal equipment, wherein the second key comprises a second identifier and a second lock control instruction; and if the account corresponding to the second identifier is the same as the account corresponding to the first identifier, executing a locking operation according to the second lock control instruction.
In a preferred embodiment of the present invention, the method further comprises: and sending response information without operation permission to the terminal equipment under the condition that the first identifier corresponds to the sub-account and the first lock control instruction indicates a lock closing operation, or under the condition that the account corresponding to the second identifier is different from the account corresponding to the first identifier.
The vehicle lock control method provided by the invention has the following technical effects: on one hand, the intelligent electric vehicle can receive a pre-stored first secret key sent by the terminal device in a wireless communication mode, and execute the lock control operation according to the first secret key, so that a user can control the lock even under poor network environment or wireless environment, and the functional stability of the intelligent electric vehicle is improved; on the other hand, the intelligent electric vehicle can determine the unique account according to the first identifier, so that the validity of a key sequence prestored in other terminal equipment cannot be influenced by the use of the first key, and the problem of multi-user vehicle using conflict can be avoided; on the other hand, the intelligent electric vehicle can determine the account type of the unique account, so that the intelligent electric vehicle can determine the operation authority of the unique account on the intelligent electric vehicle according to the account type, and the use authority of a user on the intelligent electric vehicle is controlled.
In a second aspect, the present invention provides a vehicle lock control method, applied to a terminal device, including: receiving a first input of a user; and responding to the first input, and sending a first secret key to the intelligent electric vehicle in a wireless communication mode, wherein the first secret key is used for instructing the intelligent electric vehicle to execute the lock control operation.
The vehicle lock control method provided by the invention has the following technical effects: the user can trigger the terminal equipment to send the first key for controlling the intelligent electric vehicle to execute the vehicle lock control operation in a wireless communication mode through the first input. Therefore, even if the network environment is poor or the network-free environment exists, the user can control the vehicle lock, and the functional stability of the intelligent electric vehicle can be improved.
In a third aspect, the present invention provides a vehicle lock control device, including: a communication unit and a processing unit; the communication unit is used for receiving a first key sent by a terminal device in a non-network communication mode, wherein the first key comprises a first identifier and a first car lock control instruction, a key sequence obtained in a network communication mode is stored in the terminal device, and the first key is a key arranged at a first position in the key sequence; the processing unit is used for determining a unique account and an account type of the unique account according to the first identifier, and executing the lock control operation under the condition that the allowed operation corresponding to the account type includes the lock control operation indicated by the first lock control instruction.
In a preferred embodiment of the present invention, the account types include a main account and a sub-account, and the processing unit is specifically configured to: under the condition that the first identification corresponds to the main account, executing the lock control operation according to the first lock control instruction, wherein the lock control operation comprises unlocking operation and locking operation; and under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, executing the unlocking operation according to the first lock control instruction.
In a preferred embodiment of the present invention, the first identifier corresponds to a sub-account; the communication unit is further used for receiving a second key sent by the terminal device after the processing unit executes unlocking operation according to the first lock control instruction, wherein the second key comprises a second identifier and a second lock control instruction; the processing unit is further configured to execute a lock closing operation according to the second lock control instruction if the account corresponding to the second identifier is the same as the account corresponding to the first identifier.
In a preferred embodiment of the present invention, the communication unit is further configured to send response information without operation permission to the terminal device when the first identifier corresponds to a sub-account and the first lock control instruction indicates a lock closing operation, or when an account corresponding to the second identifier is different from an account corresponding to the first identifier.
In a fourth aspect, the present invention provides a vehicle lock control device, including: a receiving unit and a communication unit; the receiving unit is used for receiving a first input of a user; the communication unit is used for responding to the first input and sending a first secret key to the intelligent electric vehicle in a wireless communication mode, wherein the first secret key is used for instructing the intelligent electric vehicle to execute the lock control operation.
In a fifth aspect, the present invention provides an intelligent electric vehicle comprising a memory and a processor. The memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus. When the intelligent electric vehicle runs, the processor executes the computer execution instructions stored in the memory, so that the intelligent electric vehicle executes the vehicle lock control method provided by the first aspect.
In a sixth aspect, the present invention provides a terminal device comprising a memory and a processor. The memory is used for storing computer execution instructions, and the processor is connected with the memory through a bus. When the terminal device is operated, the processor executes the computer execution instructions stored in the memory, so that the terminal device executes the vehicle lock control method provided by the second aspect.
In a seventh aspect, a computer-readable storage medium is provided, where the computer-readable storage medium includes computer-executable instructions, and when the computer-executable instructions are executed on a computer, the computer is caused to execute the vehicle lock control method provided in the first aspect or the vehicle lock control method provided in the second aspect.
In an eighth aspect, a computer program product is provided, which includes computer instructions, when the computer instructions are run on a computer, the computer executes the vehicle lock control method provided in the first aspect and the various possible implementations thereof, or the vehicle lock control method provided in the second aspect and the various possible implementations thereof.
It should be noted that all or part of the computer instructions may be stored on the computer readable storage medium. The computer-readable storage medium may be packaged with the processor of the executive lock control device, or may be packaged separately from the processor of the executive lock control device, which is not limited in this embodiment of the present invention.
For the description of the third, fifth, seventh and eighth aspects of the present invention, reference may be made to the detailed description of the first aspect; in addition, for the beneficial effects described in the third aspect, the fifth aspect, the seventh aspect and the eighth aspect, reference may be made to the beneficial effect analysis of the first aspect, and details are not repeated here.
For the description of the fourth, sixth, seventh and eighth aspects of the present invention, reference may be made to the detailed description of the second aspect; in addition, for the beneficial effects described in the fourth aspect, the sixth aspect, the seventh aspect and the eighth aspect, reference may be made to the beneficial effect analysis of the second aspect, and details are not repeated here.
The conception, the specific structure and the technical effects of the present invention will be further described with reference to the accompanying drawings to fully understand the objects, the features and the effects of the present invention.
Drawings
Fig. 1 is a schematic structural diagram of a communication system according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a lock control method according to an embodiment of the present invention;
fig. 3 is a second schematic flow chart of a lock control method according to an embodiment of the present invention;
FIG. 4 is a structural diagram of a vehicle lock control device according to an embodiment of the present invention;
fig. 5 is a second schematic structural diagram of a vehicle lock control device according to an embodiment of the present invention.
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 is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of embodiments of the present invention is not limited to performing functions in the order illustrated or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
For the convenience of clearly describing the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first", "second", and the like are used for distinguishing the same items or similar items with basically the same functions and actions, and those skilled in the art can understand that the words "first", "second", and the like are not limited in number or execution order.
Some exemplary embodiments of the invention have been described for illustrative purposes, and it is to be understood that the invention may be practiced otherwise than as specifically described.
Generally, in order to control a lock of an intelligent electric vehicle, when a network environment is good, a terminal device may establish connection with an antenna box in the intelligent electric vehicle through a server, that is, the terminal device may send a lock control instruction to the server first, and the server then forwards the lock control instruction to the antenna box, so that the antenna box may control an on-off state of the lock according to the lock control instruction.
However, since the information interaction between the terminal device and the server depends on the coverage of the network environment, if the terminal device is in a wireless environment or the network environment where the terminal device is located is poor, the terminal device cannot perform information transmission with the server. One solution is that the terminal device may obtain the key sequence from the server and store the key sequence locally when the network environment is good. When the terminal device is in a wireless environment or the network environment where the terminal device is located is poor, the terminal device can establish connection with an antenna box in the intelligent electric vehicle in a wireless communication mode, and send a key in a pre-stored key sequence to the antenna box, so that the intelligent electric vehicle can control the on-off state of the vehicle lock according to the key.
The above solution can improve the functional stability of the intelligent electric vehicle, but if a plurality of terminal devices request the key sequence from the server, the server will sequentially send the key sequence to the plurality of terminal devices to form a multi-user key sequence, and since the use of the key arranged at the back in the multi-user key sequence will cause the failure of the key arranged at the front, the method has the problem of multi-user vehicle-using conflict. In order to solve the problem, the secret key sent by the terminal device to the antenna box can be a secret key containing a user identifier, and the antenna box can determine a secret key sequence of a unique user according to the user identifier, so that the problem of mutual influence among the user secret keys is avoided, and the problem of multi-user vehicle using conflict is solved.
Specifically, the embodiment of the present invention provides a vehicle lock control method, which may be applied to the communication system 10 shown in fig. 1. The communication system 10 may include at least: the intelligent electric vehicle 11, the terminal equipment 12 and the server 13. The intelligent electric vehicle 11 includes an antenna box for implementing communication connection, the antenna box can implement network connection and also implement wireless connection, and under the condition that the network environment is good, the terminal device 12 can connect to the server 13 through the network and obtain the key sequence from the server 13. Then, the terminal device 12 may establish a connection with the antenna box of the smart electric vehicle 11 through a wireless connection, and send a key cached locally to the antenna box of the smart electric vehicle 11 through a wireless communication manner, and after receiving the key, the antenna box of the smart electric vehicle 11 may determine the unique account according to the key, and control the on-off state of the vehicle lock.
Optionally, the intelligent electric vehicle may be any one of the following: shared bicycles, shared electric bicycles, shared moped, and the like.
Optionally, the wireless communication mode may be bluetooth communication, wireless local area network communication, or any other possible wireless communication mode, which is not limited in the embodiment of the present invention.
It should be noted that, in order to improve the functional stability and the response speed of the intelligent electric vehicle, in the embodiment of the present invention, if a user wants to control a lock of the intelligent electric vehicle, the user may trigger the terminal device to send a lock control command. Specifically, the terminal device may send the lock control command in the following two ways. Mode 1: the terminal equipment can directly send the lock control instruction to the antenna box in a network-free communication mode; mode 2: the terminal equipment can send the lock control command to the server through network connection, and then the server sends the lock control command to the antenna box. The two modes can be triggered by a user at the same time, namely after the user triggers the terminal equipment to send the vehicle lock control command, the terminal equipment can send the vehicle lock control command through the 2 modes at the same time, and after the antenna box receives the vehicle lock control command sent by one mode, the vehicle lock control command sent by the other mode carries out packet loss processing.
The above mode 1 is explained in detail below by taking the wireless communication mode as an example of bluetooth communication in conjunction with the embodiments and the accompanying drawings.
As shown in fig. 2, an embodiment of the present invention provides a lock control method. The method may be applied to the communication system 10 described above, and the lock control method may include S201 to S203 described below.
S201, receiving a first input of a user by the terminal equipment.
Optionally, when the user wants to control the lock of the intelligent electric vehicle, the user may trigger the terminal device to send the bluetooth connection request, and the antenna box of the intelligent electric vehicle may acquire the bluetooth connection request through periodic scanning, and establish the bluetooth connection with the terminal device according to the bluetooth connection request. The antenna box adopts a periodic scanning mode, so that the smoothness of connection between the terminal equipment and the antenna box within a preset time is realized, and the problem of failure in locking and unlocking caused by environmental factors is reduced.
Optionally, the scanning period of the antenna box may be a preset variable scanning period, for example, the scanning period may be set to 15s first, and if after a preset time, the antenna box cannot establish a bluetooth connection with the terminal device all the time, the scanning period may be updated to 5 s.
Optionally, since the bluetooth signal is affected by many factors such as the transmitting device, the receiving device, the obstacle, the weather, the distance, and the antenna angle, the bluetooth signal transmitted by the antenna box can be enhanced by increasing the bluetooth power of the antenna box (i.e., increasing the output power of the bluetooth chip of the antenna box and modifying the absolute value of the output power of the bluetooth chip of the antenna box).
It should be noted that, the antenna box includes a bluetooth chip and a network chip, and the bluetooth chip and the network chip can be set to exist independently from each other, so that, when the network chip is restarted due to a network environment difference, the bluetooth chip can still transmit and receive bluetooth signals. Thereby further weakening the influence of the network on the signal transmission.
Under the condition that terminal equipment and antenna box accomplish bluetooth and be connected, the user can carry out first input to terminal equipment, and is specific, the user can carry out first input to the controlling part that can the service of switch lock in the terminal equipment. For example, click on "unlock" in an application installed in the terminal device.
S202, the terminal device responds to the first input and sends a first key to the intelligent electric vehicle through Bluetooth.
Correspondingly, the intelligent electric vehicle can receive the first key sent by the terminal device through Bluetooth.
The first key may include a first identifier and a first car lock control instruction, the terminal device may store a key sequence obtained through a network communication method, and the first key may be a key arranged at a first bit in the key sequence.
It should be noted that the key sequence may include a plurality of keys arranged in sequence according to a preset rule, where the preset rule may be a time sequence for the server to generate the keys, or may also be a sequence for the terminal device to receive the keys, and each time the terminal device sends a lock control instruction, the terminal device may consume one key, and the keys may be used by the terminal device in sequence according to the arrangement sequence.
The terminal device may obtain a key sequence including the first key from the server while in the networked state before the terminal device transmits the first input. Specifically, when the terminal device sends an account registration request to the server, the server may send a key sequence to the terminal device, and the terminal device may receive the key sequence and cache the key sequence locally. The key sequence comprises a key identifier and a plurality of key instructions, wherein one key identifier corresponds to one registered account, and each key instruction carries the key identifier. It should be noted that, in the embodiment of the present invention, the key identifier may be the first identifier, and the plurality of key instructions may include the first lock control instruction. Through the key identification, the problem that when a plurality of persons use the vehicle, the keys arranged behind are used to cause the keys arranged in front to be overdue can be avoided.
Optionally, when the terminal device switches from the network disconnection state to the network connection state, or when the terminal device requests to unlock or unlock the lock for the first time, the terminal device may obtain a new key instruction from the server, where a key identifier of the new key instruction may be the same as a key identifier of a key sequence obtained when the terminal device registers the account. The key identification can be permanently bound with the account registered by the terminal device until the account is logged off.
Illustratively, the length of the key sequence may be less than or equal to 52 bytes and is sent to the terminal device in 4 packets, or, to ensure the stability of the key transmission in the bluetooth channel, the length of the key sequence may be less than or equal to 13 bytes and is sent to the terminal device by 1 data packet. The length of the key sequence and the number of the data packets may be determined according to actual use conditions, which is not limited in the embodiment of the present invention.
Optionally, the terminal device may cache a preset number of keys. For example, to prevent the user from having insufficient keys after one failed attempt, the original setting may be that the server issues 9 keys to the terminal device, and if the server detects that the number is insufficient to support the functional stability of the user, the number of the acquired keys may be adjusted up to 20.
S203, the intelligent electric vehicle determines the unique account and the account type of the unique account according to the first identification, and executes the vehicle lock control operation under the condition that the allowed operation corresponding to the account type comprises the vehicle lock control operation indicated by the first vehicle lock control instruction.
The intelligent electric vehicle can analyze the first key to obtain a first identifier, and determine the unique account according to the first identifier. Therefore, the use of the key corresponding to the unique account does not affect the validity of the keys corresponding to other accounts.
Illustratively, the key sequence assigned to the terminal device 1 by the server is the key 11, the key 12 and the key 13, and the key sequence assigned to the terminal device 2 is the key 21, the key 22 and the key 23. If a terminal device sends the key 12 to the smart electric vehicle, the smart electric vehicle may determine that the terminal device sending the key is the terminal device 1 according to the key 12.
Optionally, the account category of the terminal device may include a main account and a sub-account. For the main account, no matter the lock of the intelligent electric vehicle is in an unlocking state or a locking state, the main account has the control right of the lock, namely the main account can control the lock state at any time, and the key instruction sent by the sub account is invalid during the period of controlling the lock by the main account; for the sub-account, if the lock is in the lock closing state, which indicates that the intelligent electric vehicle is not used by people at the moment, the sub-account can control unlocking of the lock, and if the lock is in the lock opening state, which indicates that the intelligent electric vehicle is being used or controlled by other accounts, the sub-account cannot control locking of the lock at the moment, namely, the key instruction sent by the sub-account is invalid.
The intelligent electric vehicle can determine the account type of the unique account, namely determine whether the account of the terminal device belongs to the main account or the sub-account, and then, the intelligent electric vehicle can execute the vehicle lock control operation under the condition that the allowed operation corresponding to the account type comprises the vehicle lock control operation indicated by the first vehicle lock control instruction. Specifically, under the condition that the first identifier corresponds to the primary account, the intelligent electric vehicle can execute a lock control operation according to the first lock control instruction, and the lock control operation can include an unlocking operation and a locking operation. Under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, the intelligent electric vehicle can execute the unlocking operation according to the first lock control instruction, and if the first lock control instruction indicates a locking operation, the intelligent electric vehicle can send response information without operation permission to the terminal device.
The sub-account may be used by a user who rents a vehicle, and the main account may be used by an operator, for example, the operator may use the main account to investigate and retrieve a vehicle.
The vehicle lock control method provided by the invention has the following technical effects: on one hand, the intelligent electric vehicle can receive a pre-stored first secret key sent by the terminal device in a wireless communication mode, and execute the lock control operation according to the first secret key, so that a user can control the lock even under poor network environment or wireless environment, and the functional stability of the intelligent electric vehicle is improved; on the other hand, the intelligent electric vehicle can determine the unique account according to the first identifier, so that the validity of a key sequence prestored in other terminal equipment cannot be influenced by the use of the first key, and the problem of multi-user vehicle using conflict can be avoided; on the other hand, the intelligent electric vehicle can determine the account type of the unique account, so that the intelligent electric vehicle can determine the operation authority of the unique account on the intelligent electric vehicle according to the account type, and the use authority of a user on the intelligent electric vehicle is controlled.
Optionally, after the terminal device enables the intelligent electric vehicle to perform the unlocking operation through the first key, if the user wants to enable the intelligent electric vehicle to perform the locking operation, the second key may be continuously sent to the antenna box of the intelligent electric vehicle through the bluetooth, and the intelligent electric vehicle may perform the locking operation according to the second lock control instruction in the second key under the condition that the account corresponding to the second identifier in the second key is the same as the account corresponding to the first identifier.
For example, in combination with fig. 2, as shown in fig. 3, in the case that the first identifier corresponds to the sub-account, after S203, the lock control method provided in the embodiment of the present invention may further include S204 and S205 described below.
S204, the intelligent electric vehicle receives the second key sent by the terminal device through the Bluetooth.
The second key may include a second identifier and a second lock control instruction, the second identifier may be used to indicate an account sending the second key, and the second lock control instruction may be used to indicate the intelligent electric vehicle to perform a lock closing operation.
It should be noted that, after the step S203 is executed, the key sequence may be updated to a new key sequence, and the new key sequence does not include the first key. The second key may be the key arranged at the first bit in the new key sequence.
Illustratively, the original key sequence includes a key a, a key B, and a key C arranged in sequence. The first key may be key a in the original key sequence. After performing S203, the new key sequence may include key B and key C arranged in sequence, and the second key may be key B in the new key sequence.
And S205, if the account corresponding to the second identifier is the same as the account corresponding to the first identifier, executing a locking operation according to the second lock control instruction.
After the intelligent electric vehicle receives the second key sent by the terminal device through the Bluetooth, whether the account corresponding to the second identifier is the same as the account corresponding to the first identifier or not can be judged, if the account corresponding to the second identifier is the same as the account corresponding to the first identifier, the account for controlling the intelligent electric vehicle to unlock and the account for sending the second key are the same account, and therefore the intelligent electric vehicle can execute locking operation according to the second lock control instruction.
Optionally, when the account corresponding to the second identifier is different from the account corresponding to the first identifier, the account controlling unlocking of the intelligent electric vehicle and the account sending the second key are different accounts, and if the account sending the second key is a sub-account, the intelligent electric vehicle may send response information without operation permission to the terminal device.
The vehicle lock control method provided by the invention has the following technical effects: the intelligent electric vehicle can receive the second key sent by the terminal device through the Bluetooth, and execute the locking operation according to the second lock control instruction under the condition that the account corresponding to the second identifier is the same as the account corresponding to the first identifier, so that the intelligent electric vehicle can control the vehicle lock to execute operations with different authorities according to account numbers with different account types.
It should be noted that, in the embodiment of the present invention, the vehicle lock control device may be divided into the functional modules according to the method example, for example, each functional module may be divided according to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. Optionally, the division of the modules in the embodiment of the present invention is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
As shown in fig. 4, an embodiment of the present invention provides a vehicle lock control device 400. The apparatus 400 may include: a communication unit 401 and a processing unit 402. The communication unit 401 may be configured to receive a first key sent by a terminal device in a wireless communication manner, where the first key includes a first identifier and a first lock control instruction, and the terminal device stores a key sequence obtained in a network communication manner, and the first key is a key arranged at a first bit in the key sequence. The processing unit 402 may be configured to determine a unique account and an account type of the unique account according to the first identifier, and execute the lock control operation when the allowed operation corresponding to the account type includes the lock control operation indicated by the first lock control instruction.
Optionally, the account category includes a main account and a sub-account, and the processing unit 402 may be specifically configured to: under the condition that the first identification corresponds to the main account, executing the lock control operation according to the first lock control instruction, wherein the lock control operation comprises unlocking operation and locking operation; and under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, executing the unlocking operation according to the first lock control instruction.
Optionally, the first identifier corresponds to a sub-account; the communication unit 401 may be further configured to receive a second key sent by the terminal device through bluetooth after the processing unit 402 performs the unlocking operation according to the first lock control instruction, where the second key includes a second identifier and a second lock control instruction. The processing unit 402 may be further configured to execute a lock closing operation according to the second lock control instruction if the account corresponding to the second identifier is the same as the account corresponding to the first identifier.
Optionally, the communication unit 401 may be further configured to send response information without operation permission to the terminal device when the first identifier corresponds to the sub-account and the first lock control instruction indicates a lock closing operation, or when the account corresponding to the second identifier is different from the account corresponding to the first identifier.
On one hand, because the intelligent electric vehicle can receive a pre-stored first secret key sent by the terminal device in a wireless communication mode and execute the vehicle lock control operation according to the first secret key, a user can control the vehicle lock even under the poor network environment or the wireless environment, and the functional stability of the intelligent electric vehicle is improved; on the other hand, the intelligent electric vehicle can determine the unique account according to the first identifier, so that the validity of a key sequence prestored in other terminal equipment cannot be influenced by the use of the first key, and the problem of multi-user vehicle using conflict can be avoided; on the other hand, the intelligent electric vehicle can determine the account type of the unique account, so that the intelligent electric vehicle can determine the operation authority of the unique account on the intelligent electric vehicle according to the account type, and the use authority of a user on the intelligent electric vehicle is controlled.
As shown in fig. 5, the present invention provides a vehicle lock control device 500, and the device 500 may include: a receiving unit 501 and a communication unit 502. The receiving unit 501 may be configured to receive a first input from a user. The communication unit 502 may be configured to send, in response to the first input, a first key to the smart electric vehicle through the wireless communication manner, where the first key is used to instruct the smart electric vehicle to perform a lock control operation.
Optionally, the communication unit 502 may be further configured to acquire a key sequence including the first key through a network communication manner.
The embodiment of the invention provides a vehicle lock control device, which is characterized in that a user can send a first secret key for controlling an intelligent electric vehicle to execute vehicle lock control operation in a wireless communication mode through a first input trigger terminal device. Therefore, even if the network environment is poor or the network-free environment exists, the user can control the vehicle lock, and the functional stability of the intelligent electric vehicle can be improved.
Embodiments of the present invention also provide a computer-readable storage medium, which includes computer-executable instructions. When the computer executes the instructions to run on the computer, the computer is caused to execute the steps executed by the lock control device in the lock control method provided by the above embodiment.
The embodiment of the present invention further provides a computer program product, where the computer program product may be directly loaded into the memory and contains software codes, and after the computer program product is loaded and executed by the computer, the method for controlling a vehicle lock provided in the above embodiment can be implemented, and the steps executed by the vehicle lock control device are executed.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for causing a terminal to execute the methods according to the embodiments of the present invention.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (11)

1. A vehicle lock control method is applied to an intelligent electric vehicle and comprises the following steps:
receiving a first key sent by a terminal device in a non-network communication mode, wherein the first key comprises a first identifier and a first car lock control instruction, a key sequence obtained in a network communication mode is stored in the terminal device, the key sequence comprises a key identifier and a plurality of key instructions, one key identifier corresponds to one registered account, each key instruction carries the key identifier, and the first key is a key arranged at a first position in the key sequence;
and determining a unique account and the account type of the unique account according to the first identification, and executing the lock control operation under the condition that the allowed operation corresponding to the account type comprises the lock control operation indicated by the first lock control instruction.
2. The vehicle lock control method according to claim 1, wherein the account category includes a main account and a sub-account, and the executing of the vehicle lock control operation when the allowed operation corresponding to the account category includes the vehicle lock control operation indicated by the first vehicle lock control instruction includes:
under the condition that the first identification corresponds to the main account, executing the vehicle lock control operation according to the first vehicle lock control instruction, wherein the vehicle lock control operation comprises unlocking operation and locking operation;
and under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, executing the unlocking operation according to the first lock control instruction.
3. The vehicle lock control method according to claim 2, wherein in a case where the first identifier corresponds to a sub-account, after the unlocking operation is performed according to the first vehicle lock control instruction, the method further includes:
receiving a second key sent by the terminal equipment, wherein the second key comprises a second identifier and a second lock control instruction;
and if the account corresponding to the second identifier is the same as the account corresponding to the first identifier, executing a locking operation according to the second lock control instruction.
4. The vehicle lock control method according to claim 3, characterized by further comprising:
and sending response information without operation permission to the terminal equipment under the condition that the first identifier corresponds to a sub-account and the first lock control instruction indicates a lock closing operation, or under the condition that the account corresponding to the second identifier is different from the account corresponding to the first identifier.
5. A vehicle lock control method is applied to terminal equipment and comprises the following steps:
under the condition of being in a networking state, a key sequence is obtained from a server in a network communication mode, the key sequence comprises a key identifier and a plurality of key instructions, one key identifier corresponds to one registered account, and each key instruction carries the key identifier;
receiving a first input of a user;
and responding to the first input, and sending a first secret key to the intelligent electric vehicle in a wireless communication mode, wherein the first secret key is used for indicating the intelligent electric vehicle to execute the lock control operation, and the first secret key is a secret key arranged at a first position in the secret key sequence.
6. A vehicle lock control device, comprising: a communication unit and a processing unit;
the communication unit is used for receiving a first key sent by a terminal device in a non-network communication mode, the first key comprises a first identifier and a first car lock control instruction, a key sequence obtained in a network communication mode is stored in the terminal device, the key sequence comprises a key identifier and a plurality of key instructions, one key identifier corresponds to one registered account, each key instruction carries the key identifier, and the first key is a key arranged at a first position in the key sequence;
the processing unit is configured to determine a unique account and an account category of the unique account according to the first identifier, and execute the lock control operation when an allowed operation corresponding to the account category includes a lock control operation indicated by the first lock control instruction.
7. The vehicle lock control device according to claim 6, wherein the account categories include a primary account and a secondary account, and the processing unit is specifically configured to:
under the condition that the first identification corresponds to the main account, executing the vehicle lock control operation according to the first vehicle lock control instruction, wherein the vehicle lock control operation comprises unlocking operation and locking operation;
and under the condition that the first identifier corresponds to the sub-account, if the first lock control instruction indicates an unlocking operation, executing the unlocking operation according to the first lock control instruction.
8. The vehicle lock control device of claim 7, wherein the first identifier corresponds to a sub-account;
the communication unit is further configured to receive a second key sent by the terminal device after the processing unit executes an unlocking operation according to the first lock control instruction, where the second key includes a second identifier and a second lock control instruction;
the processing unit is further configured to execute a lock closing operation according to the second lock control instruction if the account corresponding to the second identifier is the same as the account corresponding to the first identifier.
9. The vehicle lock control device according to claim 8, wherein the communication unit is further configured to send response information without operation authority to the terminal device if the first identifier corresponds to a sub-account and the first lock control instruction indicates a lock closing operation, or if an account corresponding to the second identifier is different from an account corresponding to the first identifier.
10. A vehicle lock control device, comprising: a receiving unit and a communication unit;
the communication unit is used for acquiring a key sequence from a server in a network communication mode under the condition of a networking state, wherein the key sequence comprises a key identifier and a plurality of key instructions, one key identifier corresponds to one registered account, and each key instruction carries the key identifier;
the receiving unit is used for receiving a first input of a user;
the communication unit is further configured to send a first key to the intelligent electric vehicle in a wireless communication manner in response to the first input, where the first key is used to instruct the intelligent electric vehicle to perform a lock control operation, and the first key is a key arranged at a first position in the key sequence.
11. A computer readable storage medium having stored thereon computer instructions for implementing the vehicle lock control method according to any one of claims 1-4 when the computer instructions are run in a processor of the intelligent electric vehicle, or implementing the vehicle lock control method according to claim 5 when the computer instructions are run on the terminal device.
CN202010984942.3A 2020-09-18 2020-09-18 Vehicle lock control method and device and computer readable storage medium Active CN112124247B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010984942.3A CN112124247B (en) 2020-09-18 2020-09-18 Vehicle lock control method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010984942.3A CN112124247B (en) 2020-09-18 2020-09-18 Vehicle lock control method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112124247A CN112124247A (en) 2020-12-25
CN112124247B true CN112124247B (en) 2022-04-22

Family

ID=73842829

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010984942.3A Active CN112124247B (en) 2020-09-18 2020-09-18 Vehicle lock control method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112124247B (en)

Family Cites Families (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9365188B1 (en) * 2011-04-22 2016-06-14 Angel A. Penilla Methods and systems for using cloud services to assign e-keys to access vehicles
CN105015489B (en) * 2015-07-14 2018-04-13 杭州万好万家新能源科技有限公司 A kind of Vehicular intelligent control system based on digital key
CN107093228B (en) * 2016-02-17 2020-09-01 腾讯科技(深圳)有限公司 Authorization method, device and system applied to electronic lock
CN106023351A (en) * 2016-04-28 2016-10-12 樊明延 Electronic lock device, and intelligent management and monitoring system and method based on Internet
CN107492174B (en) * 2017-08-24 2018-07-27 东峡大通(北京)管理咨询有限公司 Enabled code introduction method, client and the shared vehicle server of shared vehicle
CN107578503B (en) * 2017-08-24 2018-11-09 东峡大通(北京)管理咨询有限公司 Method for unlocking, unlocking terminal and the smart lock of shared vehicle
CN109035501A (en) * 2018-07-03 2018-12-18 广东工业大学 A kind of intelligent door lock and intelligent door lock system
CN109063435A (en) * 2018-07-24 2018-12-21 浙江吉利汽车研究院有限公司 Vehicle functions permission unlocking method and device
CN109636118A (en) * 2018-11-15 2019-04-16 北京摩拜科技有限公司 Dispatching method, device, server and the system of electric vehicle using motor
CN109685946A (en) * 2018-11-29 2019-04-26 深圳供电局有限公司 Open method, device, equipment and the storage medium of lockset
CN111275852A (en) * 2018-12-04 2020-06-12 李舒云 Lock terminal management method, system, shared object and storage medium
CN110070654B (en) * 2019-04-29 2022-01-11 深圳前海微众银行股份有限公司 Electronic lock unlocking method, system, terminal, electronic lock and computer storage medium
CN110782564A (en) * 2019-11-06 2020-02-11 北京牛电信息技术有限责任公司 Unlocking method, device and system and storage medium
CN111325917B (en) * 2020-02-27 2022-04-22 上海钧正网络科技有限公司 Using method and device of sharing equipment, storage medium and equipment

Also Published As

Publication number Publication date
CN112124247A (en) 2020-12-25

Similar Documents

Publication Publication Date Title
US20180293827A1 (en) Methods and devices for managing access to a vehicle
US11951943B2 (en) Vehicle control system, vehicle control method in vehicle control system, portable device, control method for portable device, in-vehicle controller, and control method for in-vehicle controller
CN105118127B (en) A kind of guest system and control method thereof
CN104157029A (en) Access control system, mobile terminal based control method thereof and mobile terminal
CN105551120A (en) Building intercommunication method, near field communication (NFC) unlocking device and building intercommunication system
CN105491080A (en) Vehicle control method and system based on mobile terminal
CN106559566A (en) A kind of intelligent control method and system of automobile value-added service
CN109649330B (en) Vehicle sharing system
CN109872440B (en) Mobile face recognition intelligent lock control system and method
CN106210047A (en) A kind of vehicle information management method, system and car networked system
CN103310518A (en) Method and system for opening vehicle door
US11345313B2 (en) System for controlling operations of a vehicle using mobile devices and related methods thereof
JP4797867B2 (en) Message management device for vehicle control system and vehicle control system
CN108734812A (en) Remote unlocking method, apparatus based on ZigBee and system
CN112261612A (en) Vehicle control method and device
CN112124247B (en) Vehicle lock control method and device and computer readable storage medium
CN105976476A (en) System and method for remotely controlling intelligent lock
CN104640112A (en) Authentication method, device and system
CN107800715B (en) portal authentication method and access equipment
CN114926923A (en) Lock control method and device and computer storage medium
CN114286420A (en) Gateway locking method, device, server and medium based on PON technology
CN112654012A (en) Vehicle control solution under network-free condition
CN112435376B (en) Intelligent lock and dual-mode wireless communication method and system thereof
CN111206810A (en) Vehicle parking system and method
CN115278592B (en) Vehicle offline self-checking system and method for detecting Bluetooth key function

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
GR01 Patent grant
GR01 Patent grant