Vehicle-to-key communication method, electronic device, and vehicle
By sending a matching request to the vehicle key, obtaining the response and sleep time, and determining the controller waiting time based on the key response order, the system resolves the functional failure caused by changes in key parameters and improves the user experience of the keyless entry and start system.
Patent Information
- Application Number
- CN202310618217.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-29
- Publication Date
- 2025-10-24
- Estimated Expiration
- 2043-05-29
AI Technical Summary
In existing keyless entry and start systems, changes in key parameters can cause a mismatch between the controller's waiting time and the key's response time, leading to functional failure.
By sending matching requests to each key in the vehicle, receiving the response time and sleep time from the keys, and determining the controller waiting time according to the preset key reply order, the real-time performance and accuracy of the response time and sleep time are ensured.
This solves the problem of functional failure caused by changes in key parameters and improves the user experience of the keyless entry and start system.
Smart Images

Figure CN116612563B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of keyless entry and start technology, and particularly relates to a communication method of a vehicle and a key, an electronic device and a vehicle. BACKGROUND
[0002] Keyless entry and start system has become a standard configuration of passenger cars. Generally, a car is equipped with multiple smart keys, and when the vehicle searches for the key, i.e., sends a signal to the key, multiple keys need to reply to the information in time, and at the same time, the vehicle needs to wait accordingly before searching for the key in the next round.
[0003] At present, the response time of the key needs to be measured by manual sampling, and then the waiting time of the controller is determined according to the response time of the key and is fixed in the controller. However, this way may cause the keyless entry and start system to fail. SUMMARY
[0004] Therefore, the present application aims to provide a communication method of a vehicle and a key, an electronic device and a vehicle to solve the problem of the keyless entry and start system failure caused by the prior art.
[0005] To achieve the above purpose, the present application provides a communication method of a vehicle and a key, applied to a controller of a keyless entry and start system of a vehicle, and the method comprises the following steps.
[0006] Sending a matching request to each key of the vehicle respectively, and receiving the response time of each key fed back based on the matching request;
[0007] Receiving the sleep time of each key fed back, wherein the sleep time is fed back by the key when reaching the first reply time, and the first reply time is determined according to the response time and a preset key reply sequence;
[0008] Determining the waiting time of the controller based on the sleep time of each key and the time of receiving each sleep time.
[0009] Optionally, the receiving the sleep time of each key fed back comprises:
[0010] In response to the triggering operation of the user, generating a function interaction request based on the preset key reply sequence and the response time of each key, sending the function interaction request to each key respectively, so that each key determines the first reply time based on the key reply sequence and the response time of all keys, and feeds back the sleep time to the controller when reaching the first reply time.
[0011] Optionally, after the determining the waiting time of the controller based on the sleep time of each key and the time of receiving each sleep time, the method further comprises:
[0012] In response to a new trigger operation of the user, a new function interaction request is generated based on the key reply sequence and the response time of each key, and the new function interaction request is sent to each key respectively, so that each key determines a new first reply time based on the key reply sequence and the response time of all keys, and feeds back a new sleep time to the controller when the new first reply time is reached;
[0013] A new controller waiting time is determined based on the new sleep time of each key and the time when each sleep time is received;
[0014] The maximum value between the controller waiting time and the new controller waiting time is determined as the final controller waiting time.
[0015] Optionally, the determination of the controller waiting time based on the sleep time of each key and the time when each sleep time is received comprises:
[0016] For each key, the sum of the sleep time and the time when the sleep time is received is determined as a key working cycle;
[0017] The controller waiting time is determined based on the key working cycle of each key.
[0018] Optionally, the determination of the controller waiting time based on the key working cycle of each key comprises:
[0019] The maximum cycle in the key working cycle of each key is determined as the controller waiting time; or,
[0020] The maximum cycle in the key working cycles is determined, and the sum of the maximum cycle and a preset error time is determined as the controller waiting time.
[0021] Optionally, after the determination of the controller waiting time based on the sleep time of each key and the time when each sleep time is received, the method further comprises:
[0022] A verification signal is sent to each key respectively, so that each key determines a second reply time based on the key reply sequence in the verification signal, and feeds back a response signal when the second reply time is reached;
[0023] It is judged whether the response signals fed back by all keys are received within the controller waiting time, if yes, it is judged whether the controller waiting time meets a safe response condition based on the time when each response signal is received, if no, a matching request is sent to each key of the vehicle respectively to update the controller waiting time.
[0024] Optionally, the determining whether the controller waiting time satisfies the safe response condition based on the time of receiving each response signal comprises:
[0025] determining a maximum time among the time of receiving each response signal;
[0026] if a difference between the maximum time and the controller waiting time is greater than a preset value, determining that the controller waiting time satisfies the safe response condition.
[0027] Optionally, the method further comprises:
[0028] if all the response signals of the key feedback are not received within the controller waiting time, and the trigger operation is detected, regenerating the function interaction request based on the key reply sequence and the response time of each key, and sending to each key to update the controller waiting time.
[0029] For the same purpose, the application further provides a communication method between a vehicle and a key, applied to a key of a vehicle, the method comprising:
[0030] in response to receiving a matching request sent by a controller of a keyless entry and start system of a vehicle, determining a response time, and sending the response time to the controller;
[0031] determining a first reply time based on the response time and a preset key reply sequence, and feeding back a sleep time to the controller when the first reply time is reached, so that the controller determines a controller waiting time based on the sleep time of each key and the time of receiving each sleep time.
[0032] Optionally, the determining a first reply time based on the response time and a preset key reply sequence, and feeding back a sleep time to the controller when the first reply time is reached, comprises:
[0033] in response to a function interaction request sent by the controller, determining a first reply time based on the key reply sequence in the function interaction request and the response time of all the keys;
[0034] determining a sleep time, and sending the sleep time to the controller when the first reply time is reached.
[0035] Optionally, the method further comprises:
[0036] In response to receiving the verification signal sent by the controller, a second reply time is determined based on the key reply sequence in the verification signal, and a response signal is sent to the controller when the second reply time is reached, so that the controller determines whether the response signals of all key feedbacks are received within the controller waiting time, and if so, determines whether the controller waiting time meets the safe response condition based on the time of receiving each response signal.
[0037] For the same purpose, the application further provides a vehicle and key communication device, comprising:
[0038] A first matching module is configured to send a matching request to each key of the vehicle respectively, and receive a response time fed back by each key based on the matching request;
[0039] An interaction module is configured to receive the dormancy time fed back by each key, wherein the dormancy time is fed back by the key when a first reply time is reached, and the first reply time is determined according to the response time and a preset key reply sequence;
[0040] A calculation module is configured to determine a controller waiting time based on the dormancy time of each key and the time of receiving each dormancy time.
[0041] For the same purpose, the application further provides a vehicle and key communication device, comprising:
[0042] A second matching module is configured to determine a response time in response to receiving a matching request sent by a controller of a keyless entry and start system of the vehicle, and send the response time to the controller;
[0043] A feedback module is configured to determine a first reply time based on the response time and a preset key reply sequence, and feed back a dormancy time to the controller when the first reply time is reached, so that the controller determines a controller waiting time based on the dormancy time of each key and the time of receiving each dormancy time.
[0044] For the same purpose, the application further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle and key communication method provided by any of the embodiments of the application.
[0045] For the same purpose, the application further provides a non-transitory computer readable storage medium, which stores computer instructions for causing a computer to execute the vehicle and key communication method provided by any of the embodiments of the application.
[0046] For the same purpose, the application further provides a vehicle comprising the electronic device provided by the embodiments of the application.
[0047] As can be seen from the above, the vehicle and key communication method provided by the application sends a matching request to each key of the vehicle respectively, receives the response time of each key based on the matching request, and then each key determines the first reply time of the sleep time that needs to be fed back according to the preset key reply order and the response time of all keys. The controller receives the sleep time fed back by the key when the first reply time is reached, and then determines the interval time of the repeated sending of the function interaction request of the controller according to the sleep time of each key and the time of receiving each sleep time, thereby realizing the determination of the waiting time of the controller. The method sequentially acquires the response time of each key and the sleep time of each key through communication with each key, thereby ensuring the real-time and accuracy of the acquired response time and sleep time of each key. Further, the waiting time of the controller is determined in combination with the real-time acquired sleep time of each key and the time of receiving each sleep time, thereby ensuring the accuracy of the interval time of the repeated sending of the function interaction request of the controller, and further solving the problem of the failure of the keyless entry and starting system function, and improving the user experience of the keyless entry and starting system of the vehicle. BRIEF DESCRIPTION OF DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the application or the related art, the following will briefly introduce the drawings needed to be used in the embodiments or the related art description. Obviously, the drawings in the following description are only embodiments of the application, and for those skilled in the art, other drawings can also be obtained without creative labor.
[0049] Figure 1 A flowchart of a vehicle and key communication method provided by an embodiment of the application;
[0050] Figure 2 A flowchart of another vehicle and key communication method provided by an embodiment of the application;
[0051] Figure 3 A structural diagram of a vehicle and key communication device provided by an embodiment of the application;
[0052] Figure 4 A structural diagram of another vehicle and key communication device provided by an embodiment of the application;
[0053] Figure 5 A structural diagram of an electronic device provided by an embodiment of the application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below with reference to the embodiments and the accompanying drawings.
[0055] It should be noted that, unless otherwise defined, the technical terms or scientific terms used in the embodiments of the present application should be understood as the common meanings understood by those with ordinary skills in the art to which the present application belongs. The terms "first", "second" and similar terms used in the embodiments of the present application do not represent any order, number or importance, but are only used to distinguish different components. The terms "include" or "contain" and similar terms mean that the elements or objects before the terms encompass the elements or objects listed after the terms and their equivalents, without excluding other elements or objects. The terms "connect" or "connected" and similar terms are not limited to physical or mechanical connections, but can include electrical connections, whether direct or indirect. The terms "upper", "lower", "left", "right" and the like are only used to represent relative positional relationships, and when the absolute positions of the described objects are changed, the relative positional relationships can also be changed accordingly.
[0056] Before the communication method between the vehicle and the key provided by the embodiments of the present application is described in detail, the technical problems solved by the method are described. In the prior art, the response time of the key needs to be measured by manual sampling, and the waiting time of the controller is determined according to the response time of the key, which is fixed in the controller. However, the controller and the key usually belong to batch-independent products, and the developers are different. If the key developer adjusts the parameters of the key, the key parameters will be adjusted, the controller will not get the information, and then the function will be disabled. Therefore, in order to solve the above technical problems, the embodiments provide a communication method between a vehicle and a key, which can obtain the response time and the sleep time of each key in real time, and then determine the waiting time of the controller, thereby ensuring the accuracy of the waiting time of the controller, solving the problem of function failure caused by the mismatch between the waiting time of the controller stored in the vehicle and the response time and sleep time of the key.
[0057] Figure 1 A flowchart of a communication method between a vehicle and a key provided by the embodiments of the present application. The communication method between the vehicle and the key is applied to the controller of the keyless entry and start system of the vehicle, and can be executed by the communication device between the vehicle and the key. The device can be integrated in the controller of the keyless entry and start system. Referring to Figure 1 The communication method between the vehicle and the key provided by the embodiments of the present application includes the following steps:
[0058] S110, respectively sending a matching request to each key of the vehicle, and receiving the response time of each key based on the feedback of the matching request.
[0059] The matching request can be a request for matching between the controller of the keyless entry and start system and the keys of the vehicle. In this embodiment, the matching request can include the vehicle frame number, and the matching request can be sent in the form of a low-frequency signal. Specifically, the controller of the keyless entry and start system can send the matching request to each key of the vehicle through a low-frequency antenna, respectively.
[0060] Further, each key of the vehicle can return its response time to the controller of the keyless entry and start system through a high-frequency signal after receiving the matching request. The response time can be the time required for the key to return the low-frequency signal after receiving the low-frequency signal sent by the controller. Specifically, the key can have the ability to measure the response time, that is, the response time fed back by the key can be the time measured after receiving the low-frequency signal to return the low-frequency signal.
[0061] In this embodiment, when feeding back its own response time, each key can also feed back its own key identification and the last recorded sleep time to the controller, and then the controller records the key identification, the last sleep time and the response time of each key.
[0062] S120, receiving the sleep time fed back by each key, wherein the sleep time is fed back by the key when reaching the first return time, and the first return time is determined according to the response time and the preset key return order.
[0063] The key return order can be the order of all keys returning the function interaction request; the first return time can be the time when the key needs to feed back the sleep time; and the sleep time can be the time required for the key to end sleep after entering sleep.
[0064] For example, the key can determine the keys that need to be returned before itself according to the key return order, and then determine the first return time according to the response time of the keys that need to be returned before itself and the response time of itself.
[0065] For example, the key return order is key 1-key 2-key 3, the response time of key 1 is 1ms, the response time of key 2 is 1.2ms, and the response time of key 3 is 1.5ms. Then the first return time of key 1 is 1ms, the first return time of key 2 is 1ms+1.2ms=2.2ms, and the first return time of key 3 is 1ms+1.2ms+1.5ms=3.7ms.
[0066] In an example, the receiving the sleep time of each key comprises: in response to a trigger operation of a user, generating a function interaction request based on a preset key reply sequence and a response time of each key, and sending the function interaction request to each key respectively, so that each key determines a first reply time based on the key reply sequence and the response time of all keys, and feeds back the sleep time to the controller when the first reply time is reached.
[0067] The trigger operation can be an operation for triggering the execution of the keyless entry and start function, such as an operation for triggering the opening of a vehicle door, an operation for triggering the starting of a vehicle, etc. Specifically, after the controller completes the matching with each key, when a trigger operation of a user is detected, it is determined that there is a demand to execute the keyless entry and start function, and then the controller generates a function interaction request and sends it to each key.
[0068] In the embodiment, the function interaction request can include a preset key reply sequence and a response time of all keys; the function interaction request can be sent in the form of a low-frequency signal. The function interaction request can also include the most recent sleep time of all keys.
[0069] Specifically, when each key receives the function interaction request sent by the controller, it can determine a first reply time according to the key reply sequence and the response time of all keys in the function interaction request. The first reply time can be the time from when the key receives the function interaction request to when the key replies to the function interaction request.
[0070] Further, each key can reply to the function interaction request when the first reply time is reached. Specifically, each key feeds back its sleep time to the controller. The sleep time can be the time from when the key enters sleep to when the key ends sleep; all keys need to enter sleep after feeding back the function interaction request.
[0071] In the above embodiment, in response to a trigger operation of a user, a function interaction request is generated based on a preset key reply sequence and a response time of each key, and the function interaction request is sent to each key respectively, so that each key determines a first reply time for its own sleep time according to the key reply sequence and the response time of all keys in the function interaction request, and the controller accurately acquires the sleep time, which facilitates the calculation of the waiting time of the controller based on the received sleep time and the time when the sleep time is received, and ensures the accuracy of the waiting time of the controller.
[0072] In this embodiment, the key can have the capability of measuring the sleep time, that is, the sleep time fed back by the key can be the time of the end of sleep measured by the key since entering sleep, and the sleep time fed back by the key each time can be the latest measured sleep time. It should be noted that the key cannot reply to the function interaction request sent by the controller in the process of entering sleep, and the key needs to reply to the function interaction request sent by the controller after the end of sleep, that is, after entering the working state.
[0073] In S130, the controller waiting time is determined based on the sleep time of each key and the time of receiving each sleep time, where the controller waiting time is the interval time of repeatedly sending the function interaction request.
[0074] The controller waiting time can be understood as the delay waiting time of the controller from sending a function interaction request to sending the function interaction request again. Specifically, after sending the function interaction request, the controller can calculate the controller waiting time according to the sleep time of each key received and the time of receiving each sleep time, so as to send the next function interaction request according to the controller waiting time in the subsequent repeated sending of the function interaction request, and ensure that each key completes the reply and sleep within the controller waiting time.
[0075] In this embodiment, the purpose of calculating the controller waiting time is that the controller needs to repeatedly send the function interaction request when the keyless entry and start functions are not successfully executed, and each key needs to enter sleep after replying to the function interaction request and can reply to the next function interaction request after the sleep is completed. Therefore, in order to ensure that all key feedback signals can be received when the next function interaction request is sent, the controller waiting time needs to be calculated, and the next function interaction request is sent again at least after the interval of the controller waiting time after sending the function interaction request, so that each key completes the reply to the function interaction request and its own sleep within the controller waiting time.
[0076] Specifically, the controller waiting time can be determined so that the sum of the sleep time of each key and the time of receiving each sleep time does not exceed the controller waiting time. The time of receiving the sleep time can be the time from sending the function interaction request to receiving the sleep time.
[0077] In an example, the controller waiting time is determined based on the sleep time of each key and the time of receiving each sleep time, and determining the controller waiting time includes: for each key, determining the sum of the sleep time and the time of receiving the sleep time as the key working period; and determining the controller waiting time based on the key working period of each key.
[0078] Specifically, when receiving the sleep time feedback by the key, it indicates that the key will enter sleep at this time, and the time of receiving the sleep time can reflect the working time of the key, thus, for each key, the sum of the time of receiving the sleep time feedback by the key and the sleep time can be determined as the key working period.
[0079] Further, the controller waiting time can be determined according to the maximum period in the key working periods of all the keys. Optionally, determining the controller waiting time based on the key working periods of the keys comprises: determining the maximum period in the key working periods of the keys as the controller waiting time; or determining the maximum period in the key working periods, and determining the sum of the maximum period and a preset error time as the controller waiting time.
[0080] That is, the maximum period in the key working periods of all the keys can be directly determined as the controller waiting time; or considering that a certain error time can be reserved, the sum of the maximum period and a preset error time is determined as the controller waiting time.
[0081] For example, continuing the above example, the time of receiving the sleep time of the key 1 by the controller is 1ms, the time of receiving the sleep time of the key 2 by the controller is 2.2ms, the time of receiving the sleep time of the key 3 by the controller is 3.7ms, and the sleep times of the key 1, the key 2 and the key 3 received by the controller are 0.5ms, 0.5ms and 0.5ms respectively, then the key working period of the key 1 is 1.5ms, the key working period of the key 2 is 2.7ms, and the key working period of the key 3 is 4.2ms; at this time, 4.2ms can be taken as the controller waiting time, and within the controller waiting time, all the keys can complete the reply to the sleep time and complete sleep; or according to the preset error time 0.8ms, 5ms is taken as the controller waiting time to further ensure that all the keys can complete the reply and sleep within the controller waiting time.
[0082] In the above manner, the determination of the key working period is realized, and then the controller waiting time can be determined according to the key working periods of all the keys, the accuracy of the controller waiting time is ensured, and the preset error time can also be considered to further ensure that the controller can receive the signals feedback by all the keys when sending the next function interaction request, avoiding the failure of the keyless entry and start function. In addition, the controller waiting time can be determined according to the key working periods of all the keys, which can avoid that the controller waiting time is too long, and then can avoid that the user has to wait for a long time for the function execution due to the too long controller waiting time.
[0083] In addition to the above embodiments, the maximum time can be determined among all the time of receiving the sleep time, and then the maximum time is added to all the sleep time to obtain the controller waiting time; or all the sleep time and all the time of receiving the sleep time are added to obtain the controller waiting time. The controller waiting time determined by the above method can ensure that all the keys can complete the reply and sleep.
[0084] To further improve the accuracy of the controller waiting time, in a specific embodiment, after determining the controller waiting time based on the sleep time of each key and the time of receiving each sleep time, the following steps are further included:
[0085] Step 1, in response to a new trigger operation of a user, a new function interaction request is generated based on the key reply sequence and the response time of each key, and the new function interaction request is sent to each key respectively, so that each key determines a new first reply time based on the key reply sequence and the response time of all the keys, and feeds back a new sleep time to the controller when the new first reply time is reached;
[0086] Step 2, a new controller waiting time is determined based on the new sleep time of each key and the time of receiving each sleep time;
[0087] Step 3, the maximum value between the controller waiting time and the new controller waiting time is determined as the final controller waiting time.
[0088] That is, when the next new trigger operation is detected, it is determined that there is a demand to perform the keyless entry and start function, and then the controller generates a new function interaction request and sends it to each key, so that each key calculates a new first reply time according to the key reply sequence in the function interaction request and the response time of all the keys, and feeds back a new sleep time when the new first reply time is reached.
[0089] Further, the controller can calculate a new controller waiting time according to the new sleep time of all the keys and the time of receiving the sleep time, compare the controller waiting time with the new controller waiting time, and take the maximum value as the final controller waiting time.
[0090] In the above embodiments, a new controller waiting time is calculated through a new trigger operation, and the maximum value between the two calculated controller waiting times is determined as the final controller waiting time, so that the controller waiting time is determined in the process of performing the keyless entry and start function twice, which further ensures the accuracy of the controller waiting time, ensures that all the keys can complete the reply and sleep within the controller waiting time, and avoids the problem that the controller waiting time is too long, causing the user to wait for a long time for the function to be executed.
[0091] In one embodiment, after determining the controller waiting time based on the sleep time of each key and the time of receiving the sleep time, the method further comprises: sending a verification signal to each key to make each key determine a second response time based on the key reply sequence in the verification signal and feed back a response signal when the second response time is reached; determining whether the response signals from all keys are received within the controller waiting time, and if so, determining whether the controller waiting time meets the safe response condition based on the time of receiving each response signal, and if not, sending a matching request to each key of the vehicle respectively to update the controller waiting time.
[0092] Specifically, after determining the final controller waiting time, the controller can verify the controller waiting time. In this embodiment, the controller can send a verification signal to each key, where the verification signal can be a low-frequency signal, and the verification signal includes the key reply sequence. Further, each key can determine a second response time according to the key reply sequence and the response time of all keys after receiving the verification signal, where the second response time is the time from receiving the verification signal to replying the verification signal.
[0093] Further, the key feeds back a response signal to the controller when the second response time is reached, and the controller starts timing after sending the verification signal and calculates the time of receiving the response signal from each key. The controller determines whether the response signals from all keys are received within the controller waiting time, and if so, further determines whether the controller waiting time meets the safe response condition according to the time of receiving the response signal from each key. The safe response condition can be that all keys can complete the response within the controller waiting time.
[0094] In one example, determining whether the controller waiting time meets the safe response condition based on the time of receiving each response signal comprises: determining the maximum time among the time of receiving each response signal; and determining that the controller waiting time meets the safe response condition if the difference between the maximum time and the controller waiting time is greater than a preset value.
[0095] The maximum time can be the time at which the controller receives the response time of the last key, and the preset value can be the minimum required time difference between the maximum time of the time at which each response signal is received and the controller waiting time. Specifically, the time at which the controller receives the response time of the last key can be compared with the controller waiting time. If the difference between the two is greater than the preset value, it indicates that all keys can complete the response within the controller waiting time, and the controller waiting time meets the safe response condition. If the difference between the two does not exceed the preset value, it indicates that there can be a key that cannot complete the response within the controller waiting time, and the controller waiting time does not meet the safe response condition.
[0096] In the above embodiment, by comparing the controller waiting time with the maximum time of the time at which each response signal is received, it is possible to verify whether the controller waiting time meets the safe response condition, to ensure that all keys can complete the response within the controller waiting time, and to avoid the failure of the keyless entry and start function.
[0097] Further, if it is determined that the controller waiting time meets the safe response condition, it indicates that the controller waiting time verification is passed, and there is no need to re-determine the controller waiting time. If it is determined that the controller waiting time does not meet the safe response condition, it indicates that the controller waiting time verification is failed, and all keys cannot be safely guaranteed to complete the response within the controller waiting time. At this time, the controller waiting time can be re-determined.
[0098] Specifically, the controller can re-send the matching request to each key of the vehicle when the controller waiting time does not meet the safe response condition, to re-receive the response time of each key, and then, in response to the trigger operation of the user, generate a function interaction request according to the key reply order and the re-received response time of each key, send the newly generated function interaction request to each key, and receive the sleep time feedback from each key. Then, the controller waiting time is re-determined according to the sleep time of each key and the time at which each sleep time is received, and the initial controller waiting time is updated based on the newly determined controller waiting time.
[0099] In the above embodiment, the verification of the controller waiting time is realized, and for the case that all key feedback response signals are received within the controller waiting time, it is determined whether the controller waiting time meets the safe response condition. In the case that the controller waiting time does not meet the safe response condition, the matching request is re-sent to each key to re-receive each response time, and then the controller waiting time is re-determined, which realizes the correction of the controller waiting time and further ensures the accuracy of the controller waiting time.
[0100] Optionally, the embodiment further comprises: if the response signals of the feedbacks of all the keys are not received within the controller waiting time, and the trigger operation is detected, then the function interaction request is regenerated based on the key reply sequence and the response time of each key, and is sent to each key to update the controller waiting time.
[0101] Specifically, if the response signals of the feedbacks of all the keys are not received within the controller waiting time, it indicates that there is a key that has not completed hibernation within the controller waiting time, and the controller waiting time determined based on the hibernation time is unreasonable, therefore, when the trigger operation is detected, the function interaction request can be regenerated and sent to each key according to the key reply sequence and the response time of each key, so that each key feeds back a new hibernation time, and then the controller waiting time is re-determined according to the new hibernation time and the time of receiving each new hibernation time, and the initial controller waiting time is updated based on the newly determined controller waiting time.
[0102] In the above embodiment, the verification of the controller waiting time is realized, and in the case that the response signals of the feedbacks of all the keys are not received within the controller waiting time, the function interaction request is regenerated and sent to each key in response to the trigger operation of the user, the controller waiting time is updated according to the new hibernation time of each key and the time of receiving the new hibernation time, the correction of the controller waiting time is realized, and the accuracy of the controller waiting time is further ensured.
[0103] The communication method between the vehicle and the keys provided by the application realizes the determination of the controller waiting time by sending the matching request to each key of the vehicle respectively, receiving the response time fed back by each key based on the matching request, and then determining the first reply time at which the hibernation time needs to be fed back by each key according to the preset key reply sequence and the response time of all the keys, and receiving the hibernation time of each key fed back by the key when the first reply time is reached, and then determining the interval time at which the function interaction request is repeatedly sent by the controller according to the hibernation time of each key and the time of receiving each hibernation time. This method realizes the determination of the controller waiting time by communicating with each key to obtain the response time and the hibernation time in sequence, ensures the real-time and accuracy of the obtained response time and hibernation time, solves the problem of function failure caused by the mismatch between the controller waiting time stored at the vehicle end and the response time and hibernation time at the key end due to the change of the key parameters, and further improves the user's experience of using the keyless entry and starting system of the vehicle.
[0104] Figure 2 Another flowchart of the communication method between the vehicle and the keys provided by the embodiment of the application is provided, and the method is applied to the keys of the vehicle. Referring to Figure 2 The communication method between the vehicle and the keys comprises the following steps:
[0105] S210, in response to receiving the matching request sent by the controller of the keyless entry and start system of the vehicle, determining a response time, and sending the response time to the controller.
[0106] Specifically, the key can determine the time of responding to the low-frequency signal sent by the controller, i.e., the response time, when receiving the matching request sent by the controller of the keyless entry and start system, and then send the response time to the controller.
[0107] S220, determining a first reply time based on the response time and the preset key reply sequence, and feeding back the sleep time to the controller when the first reply time is reached, so that the controller determines the controller waiting time based on the sleep time of each key and the time of receiving each sleep time.
[0108] In an example, determining the first reply time based on the response time and the preset key reply sequence, and feeding back the sleep time to the controller when the first reply time is reached, includes: in response to the function interaction request sent by the controller, determining the first reply time based on the key reply sequence in the function interaction request and the response time of all keys; determining the sleep time, and sending the sleep time to the controller when the first reply time is reached.
[0109] Wherein, the controller can generate a function interaction request according to the response time fed back by the key and the key reply sequence, and send the function interaction request to each key, further, each key responds to the function interaction request, and determines a first reply time for replying to the function interaction request according to the key reply sequence in the function interaction request and the response time of all keys.
[0110] Further, each key can measure the time from the start of sleep to the end of sleep each time, feed back the recorded latest sleep time to the controller, and then the controller determines the controller waiting time based on the sleep time of each key and the time of receiving each sleep time.
[0111] Optionally, the method provided by the embodiment further includes: in response to receiving the verification signal sent by the controller, determining a second reply time based on the key reply sequence in the verification signal, and sending a response signal to the controller when the second reply time is reached, so that the controller judges whether the response signal fed back by all keys is received within the controller waiting time, and if so, judges whether the controller waiting time meets the safe response condition based on the time of receiving each response signal.
[0112] Specifically, after determining the controller waiting time, the controller can verify the controller waiting time. Specifically, the controller can send a verification signal to each key in the form of a low-frequency signal, and then each key determines a second reply time for replying to the verification signal according to the key reply order in the verification signal, and feeds back a response signal to the controller at the second reply time. Then the controller determines whether the response signals from all the keys are received within the controller waiting time. If yes, the controller determines whether the controller waiting time meets the safety response condition according to the time of receiving each response signal.
[0113] Specifically, in the case that the controller waiting time does not meet the safety response condition, each key re-receives the matching request sent by the controller, re-measures the response time, and feeds back the new response time to the controller. Then, in response to the trigger operation of the user, the controller sends a function interaction request to each key. Each key re-determines the first reply time according to the key reply order in the function interaction request and the new response time of all the keys, and feeds back the latest sleep time to the controller at the first reply time. Then the controller re-calculates the controller waiting time.
[0114] In the above embodiment, the controller waiting time is verified, and the controller waiting time is re-determined in the case that the safety response condition is not met, so as to correct the controller waiting time and further ensure the accuracy of the controller waiting time.
[0115] The communication method between the vehicle and the key provided in the present application determines the response time and feeds it back to the controller in response to the matching request sent by the controller, and calculates the first reply time of the feedback sleep time according to the response time and the preset key reply order, and feeds back the sleep time of itself at the first reply time, so that the controller determines the interval time of repeatedly sending the function interaction request according to the sleep time of each key and the time of receiving each sleep time, thereby determining the controller waiting time. The method sequentially acquires the response time of each key and the sleep time of each key through communication with each key, thereby ensuring the real-time and accuracy of the acquired response time and sleep time of each key. Further, the controller waiting time is determined by combining the real-time acquired sleep time of each key and the time of receiving each sleep time, thereby ensuring the accuracy of the interval time of repeatedly sending the function interaction request by the controller, solving the problem of function failure caused by the mismatch between the controller waiting time stored at the vehicle end and the response time or sleep time at the key end due to the change of the key parameters, and further improving the user experience of the keyless entry and start system of the vehicle.
[0116] It should be noted that the method of the embodiments of the present application can be executed by a single device, for example, a computer or a server, etc. The method of the embodiments can also be applied to a distributed scenario, and be completed by multiple devices cooperating with each other. In the case of such a distributed scenario, one of the multiple devices can only execute one or more steps in the method of the embodiments of the present application, and the multiple devices can interact with each other to complete the method.
[0117] It should be noted that some embodiments of the present application have been described above. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in a different order and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve the desired results. In certain implementations, multitasking and parallel processing can be advantageous.
[0118] Based on the same inventive concept, the present application also provides a vehicle and key communication device corresponding to any of the above-mentioned embodiments. Figure 3 A structural schematic diagram of a vehicle and key communication device provided by the embodiments of the present application is shown in the figure. The device can be integrated into the controller of the keyless entry and start system of the vehicle. Referring to Figure 3 , the vehicle and key communication device comprises a first matching module 310, an interaction module 320 and a calculation module 330:
[0119] The first matching module 310 is configured to send a matching request to each key of the vehicle respectively, and receive a response time fed back by each key based on the matching request;
[0120] The interaction module 320 is configured to receive the sleep time fed back by each key, wherein the sleep time is fed back by the key when reaching a first reply time, and the first reply time is determined according to the response time and a preset key reply order;
[0121] The calculation module 330 is configured to determine a controller waiting time based on the sleep time of each key and the time of receiving each sleep time, wherein the controller waiting time is an interval time for repeatedly sending the function interaction request.
[0122] Optionally, the interaction module 320 is specifically configured to: in response to a triggering operation of a user, generate a function interaction request based on the preset key reply order and the response time of each key, send the function interaction request to each key respectively, so that each key determines a first reply time based on the key reply order and the response time of all keys, and feeds back a sleep time to the controller when reaching the first reply time.
[0123] Optionally, the computing module 330 is further configured to:
[0124] In response to a new triggering operation of the user, generate a new function interaction request based on the key reply sequence and the response time of each key, send the new function interaction request to each key respectively, so that each key determines a new first reply time based on the key reply sequence and the response time of all keys, and feeds back a new sleep time to the controller when the new first reply time is reached; determine a new controller waiting time based on the new sleep time of each key and the time when each sleep time is received; determine the maximum value between the controller waiting time and the new controller waiting time as the final controller waiting time.
[0125] Optionally, the computing module 330 is specifically configured to:
[0126] For each key, determine the sum of the sleep time and the time when the sleep time is received as a key working cycle; determine the controller waiting time based on the key working cycle of each key.
[0127] Optionally, the computing module 330 is further configured to:
[0128] Determine the maximum cycle in the key working cycle of each key as the controller waiting time; or, determine the maximum cycle in the key working cycle, and determine the sum of the maximum cycle and a preset error time as the controller waiting time.
[0129] Optionally, the apparatus further comprises a verification module, which is configured to send a verification signal to each key respectively, so that each key determines a second reply time based on the key reply sequence in the verification signal, and feeds back a response signal when the second reply time is reached; determine whether the response signals fed back by all keys are received within the controller waiting time, if yes, determine whether the controller waiting time meets a safe response condition based on the time when each response signal is received, if no, send a matching request to each key of the vehicle respectively to update the controller waiting time.
[0130] Optionally, the verification module is further configured to:
[0131] Determine the maximum time in the time when each response signal is received; if the difference between the maximum time and the controller waiting time is greater than a preset value, determine that the controller waiting time meets the safe response condition.
[0132] Optionally, the verification module is further configured to:
[0133] If no response signal of all key feedback is received within the controller waiting time and the trigger operation is detected, the function interaction request is regenerated based on the key reply sequence and the response time of each key, and is sent to each key to update the controller waiting time.
[0134] Corresponding to the method of any of the above embodiments, the application also provides a vehicle and key communication device based on the same inventive concept. Figure 4 Another vehicle and key communication device structure diagram is provided for the embodiments of the application, which can be integrated into the key of the vehicle. Referring to Figure 4 The vehicle and key communication device includes a second matching module 410 and a feedback module 420.
[0135] The second matching module 410 is configured to determine a response time in response to receiving a matching request sent by a controller of a keyless entry and start system of a vehicle, and send the response time to the controller.
[0136] The feedback module 420 is configured to determine a first reply time based on the response time and a preset key reply sequence, and feed back a sleep time to the controller when the first reply time is reached, so that the controller determines a controller waiting time based on the sleep time of each key and the time of receiving each sleep time.
[0137] Optionally, the feedback module 420 is further configured to determine a first reply time based on the key reply sequence in the function interaction request and the response time of all keys in response to the function interaction request sent by the controller, and determine a sleep time and send the sleep time to the controller when the first reply time is reached.
[0138] Optionally, the device further includes a verification reply module configured to determine a second reply time based on the key reply sequence in the verification signal in response to receiving the verification signal sent by the controller, and send a response signal to the controller when the second reply time is reached, so that the controller judges whether the response signal of all key feedback is received within the controller waiting time, and if so, judges whether the controller waiting time meets a safe response condition based on the time of receiving each response signal.
[0139] For the convenience of description, the above device is described as various modules in function. Of course, the functions of each module can be implemented in the same or multiple software and / or hardware when implementing the application.
[0140] The device of the above embodiment is used to implement the corresponding vehicle-key communication method in any of the above embodiments, and has the beneficial effects of the corresponding method embodiment, which will not be repeated here.
[0141] Based on the same inventive concept, corresponding to any of the above-mentioned embodiments and methods, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor, wherein when the processor executes the program, the vehicle-key communication method described in any of the above embodiments is implemented.
[0142] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application, see Figure 5 , shows a more specific electronic device hardware structure, which may include: a processor 1010, a memory 1020, an input / output interface 1030, a communication interface 1040, and a bus 1050. The processor 1010, the memory 1020, the input / output interface 1030, and the communication interface 1040 are connected to each other within the device via the bus 1050.
[0143] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of this specification.
[0144] The memory 1020 can be implemented in the form of ROM (Read Only Memory), RAM (Random Access Memory), static storage devices, dynamic storage devices, etc. The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called and executed by the processor 1010.
[0145] The input / output interface 1030 is used to connect input / output modules to implement information input and output. The input / output modules can be configured as components within the device (not shown in the figure) or can be externally connected to the device to provide corresponding functions. Input devices may include a keyboard, mouse, touch screen, microphone, various sensors, etc., and output devices may include a display, speaker, vibrator, indicator light, etc.
[0146] The communication interface 1040 is configured to connect a communication module (not shown in the figure) to realize the communication interaction between the device and other devices. The communication module can realize communication through wired mode (for example, USB, network cable, etc.), or realize communication through wireless mode (for example, mobile network, WIFI, Bluetooth, etc.).
[0147] The bus 1050 includes a path for transmitting information between various components (for example, the processor 1010, the memory 1020, the input / output interface 1030 and the communication interface 1040) of the device.
[0148] It should be noted that although the above device only shows the processor 1010, the memory 1020, the input / output interface 1030, the communication interface 1040 and the bus 1050, in the specific implementation process, the device can also include other components necessary for normal operation. In addition, those skilled in the art can understand that the above device can also only contain the components necessary for the implementation of the embodiments of the present application, and does not have to contain all the components shown in the figure.
[0149] The electronic device of the above embodiment is used to realize the communication method of the vehicle and the key in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be repeated here.
[0150] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a vehicle, which comprises the electronic device of any of the above embodiments.
[0151] Based on the same inventive concept, corresponding to the method of any of the above embodiments, the present application also provides a non-transitory computer readable storage medium, which stores computer instructions for causing the computer to execute the communication method of the vehicle and the key as described in any of the above embodiments.
[0152] The computer readable medium of the present embodiment includes permanent and non-permanent, removable and non-removable media, which can be realized by any method or technology to store information. The information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette, magnetic tape, magnetic disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information accessible by a computing device.
[0153] The storage medium of the above-mentioned embodiments stores computer instructions for causing the computer to execute the vehicle and key communication method as described in any of the above embodiments, and has the beneficial effects of the corresponding method embodiments, which are not described here again.
[0154] Those skilled in the art should understand that the discussion of any of the above embodiments is merely exemplary and is not intended to suggest that the scope of the application (including the claims) is limited to these examples; the above embodiments or technical features among different embodiments can also be combined, steps can be implemented in any order, and there are many other variations of the different aspects of the embodiments of the application as described above, which are not provided in detail for the sake of brevity. They should understand that the scope of the application is defined by the appended claims.
[0155] In addition, in order to simplify the description and discussion, and so as not to make the embodiments of the application difficult to understand, the well-known power / ground connections of integrated circuit (IC) chips and other components can or can not be shown in the provided drawings. In addition, the devices can be shown in the form of block diagrams in order to avoid making the embodiments of the application difficult to understand, and this also takes into account the fact that the details of the implementation of these block diagram devices are highly dependent on the platform to be implemented in the embodiments of the application (i.e. these details should be fully within the understanding of those skilled in the art). Where specific details (e.g. circuits) are set forth in order to describe the exemplary embodiments of the application, it will be apparent to those skilled in the art that the embodiments of the application can be practiced without these specific details or with variations on these specific details. Therefore, these descriptions should be considered illustrative rather than limiting.
[0156] Although the application has been described in conjunction with the specific embodiments thereof, it is evident that many alternatives, modifications and variations will be apparent to those skilled in the art in light of the foregoing description. For example, other memory architectures (e.g. dynamic RAM (DRAM)) can use the embodiments discussed.
[0157] The embodiments of the application are intended to cover all such alternatives, modifications and variations as falling within the broad scope of the appended claims. Accordingly, any and all such modifications, variations or equivalents that fall within the spirit and scope of the embodiments of the application are intended to be included within the scope of the application.
Claims
1. A vehicle-to-key communication method characterized by, A controller applied to a keyless entry and start system of a vehicle, the method comprising: sending a matching request to each key of the vehicle respectively, and receiving a response time fed back by each key based on the matching request; receiving a sleep time fed back by each key, wherein the sleep time is fed back by the key when a first reply time is reached, and the first reply time is determined according to the response time and a preset key reply order; determining a controller waiting time based on the sleep time of each key and the time of receiving each sleep time, wherein the controller waiting time is determined so that the sum of the sleep time of each key and the time of receiving the sleep time is not more than the controller waiting time.
2. The method of claim 1, wherein, The receiving of the sleep time fed back by each key comprises: in response to a trigger operation of a user, generating a function interaction request based on the preset key reply order and the response time of each key, and sending the function interaction request to each key respectively, so that each key determines a first reply time based on the key reply order and the response time of all keys, and feeds back a sleep time to the controller when the first reply time is reached.
3. The method of claim 2, wherein, After the determination of the controller waiting time based on the sleep time of each key and the time of receiving each sleep time, the method further comprises: in response to a new trigger operation of the user, generating a new function interaction request based on the key reply order and the response time of each key, and sending the new function interaction request to each key respectively, so that each key determines a new first reply time based on the key reply order and the response time of all keys, and feeds back a new sleep time to the controller when the new first reply time is reached; determining a new controller waiting time based on the new sleep time of each key and the time of receiving each sleep time; determining the maximum value between the controller waiting time and the new controller waiting time as a final controller waiting time.
4. The method of claim 1, wherein, The determination of the controller waiting time based on the sleep time of each key and the time of receiving each sleep time comprises: for each key, determining the sum of the sleep time and the time of receiving the sleep time as a key working period; determining the controller waiting time based on the key working period of each key.
5. The method of claim 4, wherein, The determination of the controller waiting time based on the key working period of each key comprises: determining the maximum period in the key working period of each key as the controller waiting time; or determining the maximum period in the key working period, and determining the sum of the maximum period and a preset error time as the controller waiting time.
6. The method of claim 2, wherein, After the determination of the controller waiting time based on the sleep time of each key and the time of receiving each sleep time, the method further comprises: sending a verification signal to each key respectively, so that each key determines a second reply time based on the key reply order in the verification signal, and feeds back a response signal when the second reply time is reached; determining whether the controller waiting time meets a safe response condition based on the time of receiving each response signal, if not, re-sending a matching request to each key of the vehicle respectively to update the controller waiting time.
7. The method of claim 6, wherein, The determining whether the controller waiting time meets a safe response condition based on the time of receiving each response signal comprises: determining a maximum time among the time of receiving each response signal; if the difference between the maximum time and the controller waiting time is greater than a preset value, determining that the controller waiting time meets the safe response condition.
8. The method of claim 6, wherein, The method further comprises: if no response signal of all keys is received within the controller waiting time and the trigger operation is detected, re-generating a function interaction request based on the key reply sequence and the response time of each key and sending to each key to update the controller waiting time.
9. A vehicle and key communication method characterized by, The key applied to the vehicle, the method comprises: in response to receiving a matching request sent by a controller of a keyless entry and start system of the vehicle, determining a response time and sending the response time to the controller; determining a first reply time based on the response time and a preset key reply sequence, and feeding back a sleep time to the controller when the first reply time is reached, so that the controller determines a controller waiting time based on the sleep time of each key and the time of receiving each sleep time; wherein the controller determines the controller waiting time so that the sum of the sleep time of each key and the time of receiving the sleep time does not exceed the controller waiting time.
10. The method of claim 9, wherein, The determining a first reply time based on the response time and a preset key reply sequence, and feeding back a sleep time to the controller when the first reply time is reached, comprises: in response to a function interaction request sent by the controller, determining a first reply time based on the key reply sequence in the function interaction request and the response time of all keys; determining a sleep time and sending the sleep time to the controller when the first reply time is reached.
11. The method of claim 10, wherein, The method further comprises: in response to receiving a verification signal sent by the controller, determining a second reply time based on the key reply sequence in the verification signal, and sending a response signal to the controller when the second reply time is reached, so that the controller determines whether the response signal of all keys is received within the controller waiting time, if so, determining whether the controller waiting time meets a safe response condition based on the time of receiving each response signal.
12. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor implements the method of any one of claims 1 to 11 when executing the program.
13. A vehicle characterized by comprising: The electronic device of claim 12. The electronic device of claim 12.
Citation Information
Patent Citations
Keyless entry and start system, communication method thereof, and vehicle comprising system
CN111361526A
Vehicle keyless entry method and system and vehicle
CN114643953A