Calibration method and system of intelligent key, computer equipment and storage medium
By encoding the carrier signal and driving the Helmholtz coil to generate a test magnetic field, the smart key is calibrated, which solves the signal response deviation caused by the differences in the sensing characteristics of traditional smart keys, and achieves an improvement in performance consistency.
Patent Information
- Application Number
- CN202411814960.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-10
- Publication Date
- 2025-03-25
AI Technical Summary
The difference in induction characteristics of traditional smart keys leads to signal response deviations, and the performance consistency of smart keys cannot be guaranteed.
By adjusting the phase of the carrier signal, encoding the preset number of steps is generated, command sub-signal and step signal is generated, the Helmholtz coil is driven to generate a test magnetic field, the excitation signal is transmitted to the smart key, the signal amplitude is measured, and the calibration key is calibrated according to the measurement results of the reference key.
Accurate calibration of smart keys is achieved, the consistency of their response to signal strength is improved, and the performance stability of smart keys is ensured.
Smart Images

Figure CN119689361A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of automotive electronic technology, and in particular to a calibration method, system, computer device and storage medium for a smart key. Background Art
[0002] With the development of automotive electronic technology, keyless entry systems have emerged. The smart key is the core component of the keyless entry system. The car can determine the distance between itself and the smart key based on the signal strength sensed by the smart key, thereby achieving keyless entry.
[0003] In traditional technology, even if smart keys are from the same batch produced by the same manufacturer, the sensing characteristics may be different. These differences may further lead to deviations in the response of each smart key to the signal strength, and the performance of the smart key cannot be guaranteed. Summary of the invention
[0004] Based on this, it is necessary to provide a smart key calibration method, system, computer device, computer readable storage medium and computer program product that can ensure the performance of the smart key in response to the above technical problems.
[0005] In a first aspect, the present application provides a smart key calibration method, comprising:
[0006] The preset number of steps is encoded by adjusting the phase of the carrier signal to obtain a command sub-signal;
[0007] Within the step period of the preset number of steps after the command sub-signal, adjusting the amplitude of the carrier signal according to the step amplitude of the preset number of steps to obtain a step sub-signal;
[0008] determining an excitation signal including the command sub-signal and the step sub-signal;
[0009] The Helmholtz coil is driven to generate a test magnetic field corresponding to the excitation signal; wherein the test magnetic field is used to transmit the excitation signal to a smart key located at the center of the Helmholtz coil, so as to instruct the smart key to measure the signal amplitude of the step sub-signal within a step cycle of the preset number of steps after the command sub-signal; the smart key is a reference key or a key to be calibrated;
[0010] Acquiring a reference measurement result of the reference key and a measurement result to be calibrated of the key to be calibrated;
[0011] Determining a mapping relationship between the measurement result to be calibrated and the reference measurement result;
[0012] The key to be calibrated is calibrated according to the mapping relationship.
[0013] In a second aspect, the present application further provides a smart key calibration system, the system comprising a host computer, a drive device, a Helmholtz coil, a reference key and a key to be calibrated; wherein:
[0014] The driving device is used to encode a preset number of steps by adjusting the phase of a carrier signal to obtain a command sub-signal; within a step cycle of the preset number of steps after the command sub-signal, adjust the amplitude of the carrier signal according to the step amplitude of the preset number of steps to obtain a step sub-signal; determine an excitation signal including the command sub-signal and the step sub-signal; and drive a Helmholtz coil to generate a test magnetic field corresponding to the excitation signal;
[0015] The Helmholtz coil is used to generate a test magnetic field corresponding to the excitation signal;
[0016] The reference key is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil, and to measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal to obtain a reference measurement result;
[0017] The key to be calibrated is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil, and to measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal to obtain the measurement result to be calibrated;
[0018] The host computer is used to obtain the reference measurement result of the reference key and the measurement result to be calibrated of the key to be calibrated; determine the mapping relationship between the measurement result to be calibrated and the reference measurement result; and calibrate the key to be calibrated according to the mapping relationship.
[0019] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps in the above method when executing the computer program.
[0020] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in the above method when executed by a processor.
[0021] In a fifth aspect, the present application also provides a computer program product, including a computer program, which implements the steps in the above method when executed by a processor.
[0022] The calibration method, device, computer equipment, storage medium and computer program product of the above-mentioned smart key encodes the preset number of steps by adjusting the phase of the carrier signal to obtain the command sub-signal. Since the magnetic induction difference of the smart key will affect the signal strength it receives, but usually does not affect the phase of the received signal, the command sub-signal can accurately transmit the preset number of steps to the smart key through the phase while stimulating the smart key to measure the signal amplitude. The signal amplitude is directly related to the signal strength. Within the step cycle of the preset number of steps after the command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain the step sub-signal. The step sub-signal can support the smart key to measure multiple step amplitudes within the step cycle of the preset number of steps after the command sub-signal. The measurement result can more comprehensively reflect the response of the smart key to different signal strengths. Determine an excitation signal including a command sub-signal and a step sub-signal; the command sub-signal and the step sub-signal together constitute the excitation signal, and generate a test magnetic field corresponding to the excitation signal by driving the Helmholtz coil, so that the smart key located at the center of the Helmholtz coil can receive the excitation signal by inducing the test magnetic field, and measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal. The smart key is a reference key or a key to be calibrated; obtain the reference measurement result of the reference key and the measurement result to be calibrated of the key to be calibrated, the reference measurement result can more comprehensively reflect the response of the reference key to multiple signal strengths, and the measurement result to be calibrated can more comprehensively reflect the response of the key to be calibrated to multiple signal strengths, and determine the mapping relationship between the measurement result to be calibrated and the reference measurement result; calibrate the key to be calibrated according to the mapping relationship, so as to ensure that the response of the calibrated key to be calibrated is closer to the response of the reference key, improve the consistency of the response of the smart key to the signal strength, and ensure the performance of the smart key. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Figure 1 A schematic diagram of a flow chart of a smart key calibration method provided in an embodiment of the present application.
[0024] Figure 2 A schematic diagram of a command sub-signal provided in an embodiment of the present application.
[0025] Figure 3 A schematic diagram of a step sub-signal provided in an embodiment of the present application.
[0026] Figure 4 A schematic diagram of an excitation signal provided in an embodiment of the present application.
[0027] Figure 5 A schematic diagram of the interaction between various devices in a smart key calibration system provided in an embodiment of the present application.
[0028] Figure 6 A schematic diagram of the timing of measuring signal amplitude of a smart key provided in an embodiment of the present application.
[0029] Figure 7 This is a structural block diagram of a smart key calibration system provided in an embodiment of the present application.
[0030] Figure 8 An internal structure diagram of a computer device provided in an embodiment of the present application.
[0031] Fig. 9 An internal structure diagram of another computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0032] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0033] In an exemplary embodiment, Figure 1 As shown, a smart key calibration method is provided, and the method is applied to a smart key calibration system as an example for description, including the following steps 102 to 112.
[0034] Step 102 : Encode the preset number of steps by adjusting the phase of the carrier signal to obtain a command sub-signal.
[0035] Among them, the preset number of steps is used to characterize the number of step cycles in the step sub-signal. It can be understood that the signal amplitudes in the same step cycle in the step sub-signal are the same, and the signal amplitudes in different step cycles are different. Therefore, the preset number of steps can also be used to characterize the number of different signal amplitudes in the step sub-signal. For example, the preset number of steps is 3, there are 3 step cycles in the step sub-signal, the signal amplitudes in the same step cycle are the same, and the signal amplitudes in different step cycles are different, so there are 3 different signal amplitudes in the step sub-signal. The command sub-signal is used to instruct the smart key to measure the signal amplitude of the step sub-signal.
[0036] Exemplarily, the calibration system may include a drive device. The drive device may perform binary phase shift keying (BPSK) modulation on a preset number of steps to obtain a command sub-signal. It is understood that in binary phase shift keying modulation, binary data is represented by changing the phase of a carrier signal. For a "0" in the binary data, the phase of the carrier signal remains unchanged, usually defined as 0 degrees or a fixed initial phase, and for a "1" in the binary data, the phase of the carrier signal changes by 180 degrees.
[0037] In some embodiments, Figure 2 The driving device can perform binary phase shift keying (BPSK) modulation on the frame header, command word, preset step number, additional command control word and frame check to obtain the command sub-signal.
[0038] In some embodiments, the calibration system may further include a host computer. The host computer may send a command word and a preset number of steps to the driving device to instruct the driving device to perform binary phase shift keying modulation on the frame header, the command word, the preset number of steps and the frame check to obtain a command sub-signal.
[0039] In some embodiments, the host computer may also send a step cycle to the driving device to instruct the driving device to perform binary phase shift keying modulation on the frame header, command word, preset number of steps, step cycle and frame check to obtain a command sub-signal.
[0040] Step 104 , within a step period of a preset number of steps after the command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain a step sub-signal.
[0041] Among them, the step period refers to the period of step-wise changes in the signal amplitude in the step sub-signal.
[0042] Exemplarily, the step amplitudes of the preset number of steps show a step-like change from the first step amplitude to the last step amplitude. The driving device can adjust the amplitude of the carrier signal according to the nth step amplitude of the preset number of steps in the nth step cycle after the command sub-signal to obtain a step sub-signal. Where n is an integer, 1≤n≤preset number of steps.
[0043] In some implementations, the signal amplitude in the step sub-signal shows a step-like increase from the first step cycle to the last step cycle after the command sub-signal. Figure 3The signal amplitude in the first step cycle T1 after the command sub-signal is the smallest, the signal amplitude in the second step cycle T2 further increases, and the signal amplitude in the third step cycle T3 further increases until the last step cycle.
[0044] Step 106: Determine an excitation signal including a command sub-signal and a step sub-signal.
[0045] For example, Figure 4 As shown, an excitation signal is provided. The driving device can obtain an excitation signal composed of a command sub-signal and a step sub-signal. It can be understood that in the excitation signal, the signal within a step cycle of a preset number of steps after the command sub-signal is the step sub-signal.
[0046] In some embodiments, the excitation signal may be, but is not limited to, at least one of a 22 KHz frequency band signal, a 125 KHz frequency band signal, or a 134.2 KHz frequency band signal.
[0047] Step 108, driving the Helmholtz coil to generate a test magnetic field corresponding to the excitation signal; wherein the test magnetic field is used to transmit the excitation signal to the smart key located at the center of the Helmholtz coil to instruct the smart key to measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal; the smart key is a reference key or a key to be calibrated.
[0048] Exemplarily, the test magnetic field may be, but is not limited to, an alternating current magnetic field. The driving device may transmit an excitation signal to the Helmholtz coil to drive the Helmholtz coil to generate a corresponding test magnetic field.
[0049] The smart key can be fixed by a fixture at the center of the Helmholtz coil, so that the antenna of the smart key is in a preset position, which can ensure the consistency of the position of the antennas of different smart keys. The smart key located at the center of the Helmholtz coil can receive the excitation signal by inducing the test magnetic field, obtain the preset number of steps from the received command sub-signal, and measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal.
[0050] In some embodiments, the step period may be fixed, and there is no need to transmit the step period to the smart key via a command sub-signal. The step period may also be non-fixed, and the step period may be transmitted to the smart key via a command sub-signal.
[0051] In some embodiments, the reference key may be, but is not limited to, an original key of the car. The key to be calibrated may be, but is not limited to, a key reconfigured for the car.
[0052] In some embodiments, the smart key may be, but is not limited to, a key produced with reference to the original key of the car. The reference key is a key that is compatible with the car and can achieve keyless entry with the car. The key to be calibrated is a key that is not compatible with the car and needs to be calibrated before it can achieve keyless entry with the car.
[0053] Step 110 , obtaining a reference measurement result of a reference key and a measurement result to be calibrated of a key to be calibrated.
[0054] Exemplarily, the reference key can measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal by inducing a test magnetic field to obtain a reference measurement result.
[0055] The key to be calibrated can measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal by inducing a test magnetic field to obtain a measurement result to be calibrated.
[0056] The host computer can obtain the reference measurement result issued by the reference key, and obtain the measurement result to be calibrated issued by the key to be calibrated.
[0057] In some embodiments, the calibration system includes a UHF receiving device, a key reading and writing device, and a host computer. After the signal carrying the measurement result sent by the smart key is received and demodulated by the UHF receiving device, it is transmitted to the key reading and writing device through the serial peripheral interface (SerialPeripheralInterface, SPI). After the key reading and writing device reads the measurement result, it is transmitted to the host computer through the universal serial bus (Universal Serial Bus, USB). Among them, the smart key is a reference key or a key to be calibrated. The measurement result is a reference measurement result or a measurement result to be calibrated.
[0058] In some embodiments, the host computer may include at least one of a terminal or a server. The terminal may be, but is not limited to, various personal computers, laptops, smart phones, or tablet computers. The server may be implemented as an independent server or a server cluster consisting of multiple servers.
[0059] Step 112, determining a mapping relationship between the measurement result to be calibrated and the reference measurement result; and calibrating the key to be calibrated according to the mapping relationship.
[0060] Exemplarily, the Helmholtz coil may be a three-dimensional Helmholtz coil. The smart key is provided with a three-dimensional antenna. The three-dimensional antenna may receive signals in a first direction, a second direction, and a third direction.
[0061] The reference measurement result may include at least one of a first reference value, a second reference value, or a third reference value in each step cycle. The first reference value in a step cycle refers to the signal amplitude received by the three-dimensional antenna of the reference key in the first direction in the step cycle. The second reference value in a step cycle refers to the signal amplitude received by the three-dimensional antenna of the reference key in the second direction in the step cycle. The third reference value in a step cycle refers to the signal amplitude received by the three-dimensional antenna of the reference key in the third direction in the step cycle.
[0062] The measurement result to be calibrated may include at least one of the first value to be calibrated, the second value to be calibrated, or the third value to be calibrated in each step cycle. The first value to be calibrated in the step cycle refers to the signal amplitude received by the three-dimensional antenna of the key to be calibrated in the first direction in the step cycle. The second value to be calibrated in the step cycle refers to the signal amplitude received by the three-dimensional antenna of the key to be calibrated in the second direction in the step cycle. The third value to be calibrated in the step cycle refers to the signal amplitude received by the three-dimensional antenna of the key to be calibrated in the third direction in the step cycle.
[0063] It can be understood that the smart key can determine the signal strength based on the measured signal amplitude through its own internal logic. Therefore, in this embodiment, by directly calibrating the signal amplitude received by the smart key, the signal strength sensed by the smart key can be indirectly calibrated.
[0064] The host computer can determine the mapping relationship corresponding to the first direction according to the first reference value and the first value to be calibrated in each step cycle. The signal amplitude received by the three-dimensional antenna of the key to be calibrated in the first direction is calibrated according to the mapping relationship corresponding to the first direction. The mapping relationship corresponding to the second direction is determined according to the second reference value and the second value to be calibrated in each step cycle. The signal amplitude received by the three-dimensional antenna of the key to be calibrated in the second direction is calibrated according to the mapping relationship corresponding to the second direction. The mapping relationship corresponding to the third direction is determined according to the third reference value and the third value to be calibrated in each step cycle. The signal amplitude received by the three-dimensional antenna of the key to be calibrated in the third direction is calibrated according to the mapping relationship corresponding to the third direction.
[0065] In some embodiments, the host computer may map the first value to be calibrated in each step cycle to the first reference value in the same step cycle to obtain the mapping relationship corresponding to each first value to be calibrated. The mapping relationship corresponding to each first value to be calibrated is stored in the key to be calibrated to instruct the key to be calibrated to measure the value to be calibrated in the first direction in the magnetic field generated by the car, and calibrate the value to be calibrated in the first direction currently measured according to the mapping relationship corresponding to the first value to be calibrated that is closest to the value to be calibrated in the first direction currently measured.
[0066] In some embodiments, the host computer may map the second value to be calibrated in each step cycle to the second reference value in the same step cycle to obtain the mapping relationship corresponding to each second value to be calibrated. The mapping relationship corresponding to each second value to be calibrated is stored in the key to be calibrated to instruct the key to be calibrated to measure the value to be calibrated in the second direction in the magnetic field generated by the car, and calibrate the value to be calibrated in the second direction currently measured according to the mapping relationship corresponding to the second value to be calibrated that is closest to the value to be calibrated in the second direction currently measured.
[0067] In some embodiments, the host computer can map the third value to be calibrated in each step cycle to the third reference value in the same step cycle to obtain the mapping relationship corresponding to each third value to be calibrated. The mapping relationship corresponding to each third value to be calibrated is stored in the key to be calibrated to instruct the key to be calibrated to measure the value to be calibrated in the third direction in the magnetic field generated by the car, and the value to be calibrated in the third direction currently measured is calibrated according to the mapping relationship corresponding to the third value to be calibrated that is closest to the value to be calibrated in the third direction currently measured. In the calibration method of the above-mentioned smart key, the preset number of steps is encoded by adjusting the phase of the carrier signal to obtain the command sub-signal. Since the magnetic induction difference of the smart key will affect the signal strength it receives, but usually does not affect the phase of the received signal, the command sub-signal can accurately transmit the preset number of steps to the smart key through the phase while stimulating the smart key to measure the signal amplitude. The signal amplitude is directly related to the signal strength. Within the step cycle of the preset number of steps after the command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain a step sub-signal. The step sub-signal can support the smart key to perform multiple step amplitude measurements within the step cycle of the preset number of steps after the command sub-signal. The measurement results can more comprehensively reflect the response of the smart key to different signal strengths. Determine an excitation signal including a command sub-signal and a step sub-signal; the command sub-signal and the step sub-signal together constitute an excitation signal, and the test magnetic field corresponding to the excitation signal is generated by driving the Helmholtz coil, so that the smart key located at the center of the Helmholtz coil can receive the excitation signal by inducing the test magnetic field, and measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal. The smart key is a reference key or a key to be calibrated; a reference measurement result of the reference key and a measurement result to be calibrated of the key to be calibrated are obtained, the reference measurement result can more comprehensively reflect the response of the reference key to multiple signal strengths, the measurement result to be calibrated can more comprehensively reflect the response of the key to be calibrated to multiple signal strengths, and a mapping relationship between the measurement result to be calibrated and the reference measurement result is determined; the key to be calibrated is calibrated according to the mapping relationship, so that the response of the calibrated key to be calibrated can be guaranteed to be closer to the response of the reference key, thereby improving the consistency of the response of the smart key to the signal strength and ensuring the performance of the smart key.
[0068] In some embodiments, within a step cycle of a preset number of steps after a command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain a step sub-signal, including: taking the first step cycle after the command sub-signal as the current step cycle, taking the first step amplitude of the preset number of steps as the current amplitude, and adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude; when the current amplitude is not the last step amplitude, taking the next step cycle of the current step cycle as the new current step cycle, taking the next step amplitude of the current amplitude as the new current amplitude, and returning to execute the step of adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude; when the current step is the last step, obtaining the adjusted step sub-signal.
[0069] Exemplarily, the driving device can obtain a step sub-signal after the command sub-signal by adjusting the amplitude of the carrier signal to the nth step amplitude of the preset step number of step amplitudes within the nth step cycle after the command sub-signal. Wherein, n is an integer, and 1≤n≤preset step number. That is, within the first step cycle after the command sub-signal, the amplitude of the carrier signal is adjusted to the first step amplitude of the preset step number of step amplitudes, and within the second step cycle, the amplitude of the carrier signal is adjusted to the second step amplitude of the preset step number of step amplitudes, and so on, until within the preset step number of step cycles, the amplitude of the carrier signal is adjusted to the preset step number of step amplitudes of the preset step number, and the adjusted step sub-signal can be obtained.
[0070] In this embodiment, the first step cycle after the command sub-signal is taken as the current step cycle, the first step amplitude of the step amplitude of the preset number of steps is taken as the current amplitude, and the amplitude of the carrier signal in the current step cycle is adjusted to the current amplitude; if the current amplitude is not the last step amplitude, the next step cycle of the current step cycle is taken as the new current step cycle, the next step amplitude of the current amplitude is taken as the new current amplitude, and the step of adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude is returned; if the current step is the last step, the adjusted step sub-signal is obtained. The signal amplitude is directly related to the signal strength. The step sub-signal can support the smart key to measure multiple step amplitudes within the step cycle of the preset number of steps after the command sub-signal, so that the measurement results can more comprehensively reflect the response of the smart key to different signal strengths.
[0071] In some embodiments, the Helmholtz coil is a three-dimensional Helmholtz coil; the smart key includes a three-dimensional antenna; the three-dimensional antenna is used to receive signals in the first direction, the second direction and the third direction by inducing a magnetic field; the smart key is used to receive an excitation signal by inducing a test magnetic field through the three-dimensional antenna, determine the preset number of steps carried by the command sub-signal, and measure the signal amplitude received by the three-dimensional antenna in the first direction, the second direction and the third direction respectively within the step cycle of the preset number of steps after the command sub-signal; the reference measurement result includes a first reference value in the first direction, a second reference value in the second direction and a third reference value in the third direction within each step cycle; the measurement result to be calibrated includes a first value to be calibrated in the first direction, a second value to be calibrated in the second direction and a third value to be calibrated in the third direction within each step cycle.
[0072] In this embodiment, the three-dimensional Helmholtz coil can provide a relatively uniform magnetic field environment in three-dimensional space, so that the smart key at the center of the three-dimensional Helmholtz coil can use the uniformity of the signal amplitude received by the three-dimensional antenna in the first direction, the second direction and the third direction, and support simultaneous signal amplitude measurement in the first direction, the second direction and the third direction, which can save computing resources compared to measuring the signal amplitude in different directions respectively. The smart key only needs to receive the excitation signal through the three-dimensional antenna induction test magnetic field, and measure the signal amplitude received by the three-dimensional antenna in the first direction, the second direction and the third direction respectively for the step sub-signal within the preset number of steps after the command sub-signal, so as to test the response of the three-dimensional antenna of the smart key to different signal strengths in the first direction, the second direction and the third direction. Furthermore, the difference between the first reference value in the first direction within each step period in the reference measurement result and the first calibration value in the first direction within each step period in the measurement result to be calibrated can be used as a basis for calibrating the signal amplitude received by the key to be calibrated in the first direction. The difference between the second reference value in the second direction within each step period in the reference measurement result and the second calibration value in the second direction within each step period in the measurement result to be calibrated can be used as a basis for calibrating the signal amplitude received by the key to be calibrated in the second direction. The difference between the third reference value in the third direction within each step period in the reference measurement result and the third calibration value in the third direction within each step period in the measurement result to be calibrated can be used as a basis for calibrating the signal amplitude received by the key to be calibrated in the third direction, thereby ensuring the accuracy of the smart key calibration.
[0073] In some embodiments, the smart key can receive an excitation signal by inducing a test magnetic field, respond to a command sub-signal in the excitation signal, obtain a preset number of steps carried by the command sub-signal, and measure the signal amplitudes received by the three-dimensional antenna of the smart key in the first direction, the second direction, and the third direction respectively within a step period of the preset number of steps after the command sub-signal.
[0074] In some embodiments, the reference test result includes a reference value in each step cycle. The test result to be calibrated includes a value to be calibrated in each step cycle. The reference values in the same direction in each step cycle are averaged to obtain a reference average value in the direction in the step cycle. The values to be calibrated in the same direction in each step cycle are averaged to obtain a mean value to be calibrated in the direction in the step cycle. The reference mean values in the same direction in the step cycles of a preset number of steps are segmented according to a preset interval length to obtain each reference range in the direction. The mean values to be calibrated in the same direction in the step cycles of a preset number of steps are segmented according to a preset interval length to obtain each range to be calibrated in the direction. For each range to be calibrated, a reference range corresponding to the range to be calibrated in each range to be calibrated in the same direction is determined. A mapping relationship corresponding to the range to be calibrated in the direction is determined according to the corresponding range to be calibrated in the same direction and the reference range. The value to be calibrated in the direction within the range to be calibrated measured by the key to be calibrated is calibrated according to the mapping relationship corresponding to the range to be calibrated in the direction.
[0075] Wherein, the direction may include at least one of the first direction, the second direction or the third direction. The reference value may include at least one of the first reference value, the second reference value or the third reference value. The value to be calibrated may include at least one of the first value to be calibrated, the second value to be calibrated or the third value to be calibrated. The reference range may include at least one of the first reference range, the second reference range or the third reference range. The range to be calibrated may include at least one of the first range to be calibrated, the second range to be calibrated or the third range to be calibrated. The first reference value, the first value to be calibrated, the first reference range and the first range to be calibrated are the reference value, the value to be calibrated, the reference range and the range to be calibrated in the first direction. The second reference value, the second value to be calibrated, the second reference range and the second range to be calibrated are the reference value, the value to be calibrated, the reference range and the range to be calibrated in the second direction. The third reference value, the third value to be calibrated, the third reference range and the third range to be calibrated are the reference value, the value to be calibrated, the reference range and the range to be calibrated in the third direction.
[0076] In some embodiments, according to determining the mapping relationship between the measurement result to be calibrated and the reference measurement result, the method includes: calculating the mean of the first reference value, the second reference value, the third reference value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in each step cycle, respectively, to obtain the first reference mean, the second reference mean, the third reference mean, the first mean to be calibrated, the second mean to be calibrated and the third mean to be calibrated in the step cycle; segmenting the first reference mean, the second reference mean, the third reference mean, the first mean to be calibrated, the second mean to be calibrated and the third mean to be calibrated in the step cycle with a preset number of steps according to a preset interval length, to obtain each first reference range, each second reference range, each third reference range, each first range to be calibrated, each second range to be calibrated and each third range to be calibrated; for each first range to be calibrated in each first reference range, determining the first reference range corresponding to the first range to be calibrated in each first reference range; and calculating the first reference range of the first reference range according to the first reference range. A first mapping relationship is determined between the calibration range and the corresponding first reference range; for each second range to be calibrated, a second reference range corresponding to the second range to be calibrated in each second reference range is determined; a second mapping relationship is determined based on the second range to be calibrated and the corresponding second reference range; for each third range to be calibrated, a third reference range corresponding to the third range to be calibrated in each third reference range is determined; a third mapping relationship is determined based on the third range to be calibrated and the corresponding third reference range; and a key to be calibrated is calibrated based on the mapping relationship, including: calibrating a value to be calibrated in a first direction within the first range to be calibrated measured by the key to be calibrated according to the first mapping relationship; calibrating a value to be calibrated in a second direction within the second range to be calibrated measured by the key to be calibrated according to the second mapping relationship; and calibrating a value to be calibrated in a third direction within the third range to be calibrated measured by the key to be calibrated according to the third mapping relationship.
[0077] The preset interval length is used to characterize the number of step cycles to which the mean values constituting the range belong. For example, if the preset length is 3, then the reference mean values within 3 step cycles constitute the reference range, and the mean values to be calibrated within 3 step cycles constitute the range to be calibrated.
[0078] Exemplarily, each step cycle includes at least one first reference value, at least one second reference value, at least one third reference value, at least one first value to be calibrated, at least one second value to be calibrated, and at least one third value to be calibrated. Specifically, the driving device can drive the three-dimensional Helmholtz coil at least once to generate a test magnetic field. The smart key can perform at least one signal amplitude measurement in the first direction, the second direction, and the third direction in each step cycle by sensing the test magnetic field.
[0079] The host computer can calculate the mean of at least one first reference value in each step cycle to obtain the first reference mean in the step cycle. Calculate the mean of at least one second reference value in each step cycle to obtain the second reference mean in the step cycle. Calculate the mean of at least one third reference value in each step cycle to obtain the third reference mean in the step cycle. Calculate the mean of at least one first value to be calibrated in each step cycle to obtain the first mean to be calibrated in the step cycle. Calculate the mean of at least one second value to be calibrated in each step cycle to obtain the second mean to be calibrated in the step cycle. Calculate the mean of at least one third value to be calibrated in each step cycle to obtain the third mean to be calibrated in the step cycle.
[0080] The upper computer can segment the first reference mean within the step cycle of a preset number of steps according to the interval length to obtain each first reference range, segment the second reference mean within the step cycle of a preset number of steps according to the interval length to obtain each second reference range, and segment the third reference mean within the step cycle of a preset number of steps according to the interval length to obtain each third reference range.
[0081] The upper computer can segment the first mean value to be calibrated within the step cycle of a preset number of steps according to the interval length to obtain each first range to be calibrated, segment the second mean value to be calibrated within the step cycle of a preset number of steps according to the interval length to obtain each second range to be calibrated, and segment the third mean value to be calibrated within the step cycle of a preset number of steps according to the interval length to obtain each third range to be calibrated.
[0082] Assume that the first reference mean within the step cycle of the preset number of steps is A0, A1, A2, A3, A4, A5, A6, A7, A8, and the first mean to be calibrated within the step cycle of the preset number of steps is B0, B1, B2, B3, B4, B5, B6, B7, B8. If the interval length is 3, then the first reference ranges are [A0, A2), [A2, A4), [A4, A6), [A6, A8], and the first reference ranges are [B0, B2), [B2, B4), [B4, B6), [B6, B8].
[0083] The first reference range formed by the first reference values in the step cycles to which the first mean value to be calibrated that constitutes the first range to be calibrated belongs corresponds to the first reference range mentioned above. The second reference range formed by the second reference values in the step cycles to which the second mean value to be calibrated that constitutes the second range to be calibrated belongs corresponds to the second reference range mentioned above. The third reference range formed by the third reference values in the step cycles to which the third mean value to be calibrated that constitutes the third range to be calibrated belongs corresponds to the third reference range mentioned above. For example, [B0, B2) corresponds to [A0, A2), [B2, B4) corresponds to [A2, A4), and so on.
[0084] The host computer may determine, for each first range to be calibrated, a first reference range corresponding to the first range to be calibrated in each first reference range. For each second range to be calibrated, a second reference range corresponding to the second range to be calibrated in each second reference range. For each third range to be calibrated, a third reference range corresponding to the third range to be calibrated in each third reference range.
[0085] Different first ranges to be calibrated correspond to different first mapping relationships. Different second ranges to be calibrated correspond to different second mapping relationships. Different third ranges to be calibrated correspond to different third mapping relationships. The host computer can determine the first mapping relationship corresponding to the first range to be calibrated according to the difference between the first range to be calibrated and the corresponding first reference range. The first mapping relationship corresponding to the first range to be calibrated is used to calibrate the value to be calibrated in the first direction within the first range to be calibrated measured by the calibration key. The second mapping relationship corresponding to the second range to be calibrated is determined according to the difference between the second range to be calibrated and the corresponding second reference range. The second mapping relationship corresponding to the second range to be calibrated is used to calibrate the value to be calibrated in the second direction within the second range to be calibrated measured by the calibration key. The third mapping relationship corresponding to the third range to be calibrated is determined according to the difference between the third range to be calibrated and the corresponding third reference range. The third mapping relationship corresponding to the third range to be calibrated is used to calibrate the value to be calibrated in the third direction within the third range to be calibrated measured by the calibration key.
[0086] In some embodiments, the host computer may filter at least one first reference value within each step cycle and calculate the mean value to obtain the first reference mean value within the step cycle. Filter at least one second reference value within each step cycle and calculate the mean value to obtain the second reference mean value within the step cycle. Filter at least one third reference value within each step cycle and calculate the mean value to obtain the third reference mean value within the step cycle. Filter at least one first value to be calibrated within each step cycle and calculate the mean value to obtain the first mean value to be calibrated within the step cycle. Filter at least one second value to be calibrated within each step cycle and calculate the mean value to obtain the second mean value to be calibrated within the step cycle. Filter at least one third value to be calibrated within each step cycle and calculate the mean value to obtain the third mean value to be calibrated within the step cycle. Wherein, the filtering method may be, but is not limited to, Gaussian filtering.
[0087] In some embodiments, the host computer may store the first mapping relationship corresponding to the first range to be calibrated to the smart key, so that the smart key calibrates the value to be calibrated in the first direction within the first range to be calibrated measured in the magnetic field generated by the car according to the corresponding first mapping relationship. The second mapping relationship corresponding to the second range to be calibrated is stored in the smart key, so that the smart key calibrates the value to be calibrated in the second direction within the second range to be calibrated measured in the magnetic field generated by the car according to the corresponding second mapping relationship. The third mapping relationship corresponding to the third range to be calibrated is stored in the smart key, so that the smart key calibrates the value to be calibrated in the third direction within the third range to be calibrated measured in the magnetic field generated by the car according to the corresponding third mapping relationship.
[0088] In this embodiment, after averaging the reference value and the value to be calibrated within the step cycle, the reference mean value and the value to be calibrated within the step cycle with a preset number of steps are segmented according to the preset interval length to obtain each reference range and each range to be calibrated. The mapping relationship corresponding to the range to be calibrated is determined according to the range to be calibrated and the corresponding reference range, thereby realizing the segmented determination of the corresponding mapping relationship for each range to be calibrated. These mapping relationships can be used to calibrate the value to be calibrated within each range to be calibrated, thereby ensuring the calibration accuracy of the smart key.
[0089] In some embodiments, a first mapping relationship is determined based on a first range to be calibrated and a corresponding first reference range, including: mapping the first range to be calibrated to a first median reference value in the middle of the corresponding first reference range to obtain a first mapping relationship; a second mapping relationship is determined based on a second range to be calibrated and a corresponding second reference range, including: mapping the second range to be calibrated to a second median reference value in the middle of the corresponding second reference range to obtain a second mapping relationship; a third mapping relationship is determined based on a third range to be calibrated and a corresponding third reference range, including: mapping the third range to be calibrated to a third median reference value in the middle of the corresponding third reference range to obtain a third mapping relationship.
[0090] Exemplarily, the preset interval length may be an odd number. The host computer may map the first range to be calibrated to the first median reference value in the middle of the corresponding first reference range to obtain a first mapping relationship. The first median reference value is written into the key to be calibrated to indicate that the key to be calibrated maps the value to be calibrated in the first direction within the first range to be calibrated measured in the magnetic field generated by the car to the first median reference value. The second range to be calibrated is mapped to the second median reference value in the middle of the corresponding second reference range to obtain a second mapping relationship. The second median reference value is written into the key to be calibrated to indicate that the key to be calibrated maps the value to be calibrated in the second direction within the second range to be calibrated measured in the magnetic field generated by the car to the second median reference value. The third range to be calibrated is mapped to the third median reference value in the middle of the corresponding third reference range to obtain a third mapping relationship. The third median reference value is written into the key to be calibrated to indicate that the key to be calibrated maps the value to be calibrated in the third direction within the third range to be calibrated measured in the magnetic field generated by the car to the third median reference value.
[0091] In this embodiment, the first range to be calibrated is mapped to a first median reference value in the middle of the corresponding first reference range to obtain a first mapping relationship; the second range to be calibrated is mapped to a second median reference value in the middle of the corresponding second reference range to obtain a second mapping relationship; the third range to be calibrated is mapped to a third median reference value in the middle of the corresponding third reference range to obtain a third mapping relationship, thereby realizing segmented mapping of each first range to be calibrated to the corresponding first median reference value, mapping each second range to be calibrated to the corresponding second median reference value, and mapping each third range to be calibrated to the corresponding third median reference value. Subsequently, the corresponding first median reference value is used to calibrate the value to be calibrated in the first direction within the first range to be calibrated measured by the calibration device, the corresponding second median reference value is used to calibrate the value to be calibrated in the second direction within the second range to be calibrated measured by the calibration device, and the corresponding third median reference value is used to calibrate the value to be calibrated in the third direction within the third range to be calibrated, thereby ensuring the calibration accuracy of the smart key.
[0092] In some embodiments, the value to be calibrated in a first direction within a first range to be calibrated and measured by the key to be calibrated is calibrated according to a first mapping relationship, including: sending a first median reference value to the key to be calibrated to indicate that the key to be calibrated will map the value to be calibrated in the first direction within the first range to be calibrated and measured in the magnetic field generated by the car into the first median reference value; the value to be calibrated in a second direction within a second range to be calibrated and measured by the key to be calibrated is calibrated according to a second mapping relationship, including: sending a second median reference value to the key to be calibrated to indicate that the key to be calibrated will map the value to be calibrated in the second direction within the second range to be calibrated and measured in the magnetic field generated by the car into the second median reference value; the value to be calibrated in a third direction within a third range to be calibrated and measured by the key to be calibrated is calibrated according to a third mapping relationship, including: sending a third median reference value to the key to be calibrated to indicate that the key to be calibrated will map the value to be calibrated in the third direction within the third range to be calibrated and measured in the magnetic field generated by the car into the third median reference value.
[0093] Exemplarily, the host computer may transmit the first median reference value to the key reading and writing device via the universal serial bus to instruct the key reading and writing device to write the first median reference value to the key to be calibrated. The host computer may transmit the second median reference value to the key reading and writing device via the universal serial bus to instruct the key reading and writing device to write the second median reference value to the key to be calibrated. The host computer may transmit the third median reference value to the key reading and writing device via the universal serial bus to instruct the key reading and writing device to write the third median reference value to the key to be calibrated.
[0094] In some embodiments, the host computer may write the first middle reference value, the second middle reference value and the third middle reference value into an electrically erasable programmable read only memory (EEPROM) of the key to be calibrated through a key reading and writing device.
[0095] In this embodiment, the first median reference value, the second median reference value, and the third median reference value are sent to the key to be calibrated to instruct the key to be calibrated to map the value to be calibrated in the first direction within the first range to be calibrated in the magnetic field generated by the car into the first median reference value, to map the value to be calibrated in the second direction within the second range to be calibrated into the second median reference value, and to map the value to be calibrated in the third direction within the third range to be calibrated into the third median reference value, which can ensure that the response of the key to be calibrated after calibration is closer to the response of the reference key, improve the consistency of the smart key's response to the signal strength, and ensure the performance of the smart key.
[0096] In some embodiments, a first mapping relationship is determined based on a first range to be calibrated and a corresponding first reference range, including: mapping the first range to be calibrated to the corresponding first reference range to obtain a first mapping function; a second mapping relationship is determined based on a second range to be calibrated and a corresponding second reference range, including: mapping the second range to be calibrated to the corresponding second reference range to obtain a second mapping function; a third mapping relationship is determined based on a third range to be calibrated and a corresponding third reference range, including: mapping the third range to be calibrated to the corresponding third reference range to obtain a third mapping function.
[0097] Exemplarily, the host computer may linearly map the first range to be calibrated to the corresponding first reference range to obtain a first mapping function corresponding to the first range to be calibrated. The first mapping function is used to describe the first mapping relationship. The second range to be calibrated is linearly mapped to the corresponding second reference range to obtain a second mapping function corresponding to the second range to be calibrated. The second mapping function is used to describe the second mapping relationship. The third range to be calibrated is linearly mapped to the corresponding third reference range to obtain a third mapping function corresponding to the third range to be calibrated. The third mapping function is used to describe the third mapping relationship.
[0098] In some embodiments, the host computer may determine the slope parameters and intercept parameters of the first mapping function, the second mapping function, and the third mapping function by using formula (1).
[0099]
[0100] Wherein, when A1 represents the first reference value at the starting end of the first reference range, and B1 represents the first value to be calibrated at the starting end of the first range to be calibrated, K test Represents the slope parameter of the first mapping function, offset test represents the intercept parameter of the first mapping function. When A1 represents the second reference value at the starting end of the second reference range, and B1 represents the second value to be calibrated at the starting end of the second range to be calibrated, K test Represents the slope parameter of the second mapping function, offset test represents the intercept parameter of the second mapping function. When A1 represents the third reference value at the starting end of the third reference range, and B1 represents the third value to be calibrated at the starting end of the third range to be calibrated, K test Represents the slope parameter of the third mapping function, offset test Represents the intercept parameter of the third mapping function.
[0101] In some embodiments, the host computer may send the slope parameter and intercept parameter of the first mapping function to the key to be calibrated to instruct the key to be calibrated to linearly map the value to be calibrated in the first direction within the first range to be calibrated measured in the magnetic field generated by the car according to the slope parameter and intercept parameter of the first mapping function. The host computer may send the slope parameter and intercept parameter of the second mapping function to the key to be calibrated to instruct the key to be calibrated to linearly map the value to be calibrated in the second direction within the second range to be calibrated measured in the magnetic field generated by the car according to the slope parameter and intercept parameter of the second mapping function. The host computer may send the slope parameter and intercept parameter of the third mapping function to the key to be calibrated to instruct the key to be calibrated to linearly map the value to be calibrated in the third direction within the third range to be calibrated measured in the magnetic field generated by the car according to the slope parameter and intercept parameter of the third mapping function.
[0102] In this embodiment, the first range to be calibrated is mapped to the corresponding first reference range to obtain a first mapping function corresponding to the first range to be calibrated; the second range to be calibrated is mapped to the corresponding second reference range to obtain a second mapping function corresponding to the second range to be calibrated; the third range to be calibrated is mapped to the corresponding third reference range to obtain a third mapping function corresponding to the three ranges to be calibrated. Through the first mapping function, the second mapping function and the third mapping function, the calibrated value measured by the key to be calibrated can be mapped to a reference value closer to the reference key, which can ensure that the response of the calibrated key to be calibrated is closer to the response of the reference key, improve the consistency of the response of the smart key to the signal strength, and ensure the performance of the smart key.
[0103] In some embodiments, Figure 5As shown, a schematic diagram of the interaction of each device in the calibration system of the smart key is provided. The calibration system may include a host computer, a drive device, a three-dimensional Helmholtz coil, a smart key, a UHF receiving device and a key reading and writing device. Among them, the smart key is a reference key or a key to be calibrated. The host computer and the drive device communicate through a universal serial bus (USB), and the host computer can send a command word and a preset number of steps to the drive device. The drive device can be, but is not limited to, a 22KHz low-frequency drive device, and the drive device can perform binary phase shift keying modulation on the frame header, the command word, the preset number of steps and the frame check to obtain a 22KHz low-frequency command sub-signal, and within the step cycle of the preset number of steps after the command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain a 22KHz low-frequency step sub-signal, thereby obtaining a 22KHz low-frequency excitation signal spliced by the command sub-signal and the step sub-signal. The drive device can drive the three-dimensional Helmholtz coil to generate a test magnetic field corresponding to the excitation signal. The smart key is fixed by a fixture at the center of the three-dimensional Helmholtz coil. The three-dimensional antenna of the smart key is in a preset position to receive 22KHz low-frequency excitation signals in the first direction, the second direction and the third direction respectively. The smart key can send out a UHF signal carrying the measurement result. The UHF receiving device can receive and demodulate the UHF signal and transmit it to the key reading and writing device through the serial peripheral interface (SPI). After the key reading and writing device reads the measurement result, it transmits it to the host computer through the universal serial bus (USB).
[0104] In some embodiments, the host computer can send a command word and a preset number of steps to the driving device to instruct the driving device to perform binary phase shift keying modulation on the frame header, command word, preset number of steps and frame check to obtain a command sub-signal, and within a step period of a preset number of steps after the command sub-signal, adjust the amplitude of the carrier signal according to the step amplitude of the preset number of steps to obtain a step sub-signal, thereby obtaining an excitation signal spliced by the command sub-signal and the step sub-signal.
[0105] The driving device can drive the three-dimensional Helmholtz coil to generate a test magnetic field corresponding to the excitation signal. It can be understood that the excitation signal can be a current signal. When the three-dimensional Helmholtz coil receives the excitation signal, the current in the three-dimensional Helmholtz coil will change, so that the three-dimensional Helmholtz coil generates a test magnetic field corresponding to the excitation signal.
[0106] The smart key is fixed by a fixture at the center of the three-dimensional Helmholtz coil. At this time, the three-dimensional antenna of the smart key is in a preset position, and the three-dimensional antenna can receive signals in the first direction, the second direction, and the third direction. Figure 6 As shown, a schematic diagram of the timing of the smart key measuring the signal amplitude is provided. At the start time of the measurement time window in each step cycle, the smart key turns on the analog-to-digital converter, and measures the signal amplitude in the X direction (first direction), the Y direction (second direction) and the Z direction (third direction) in sequence. At the end time of the measurement time window, the smart key turns off the analog-to-digital converter. It can be understood that the smart key is a key to be calibrated or a reference key. For the reference key, the reference measurement result includes a first reference value in the first direction in each step cycle, a second reference value in the second direction, and a third reference value in the third direction. For the key to be calibrated, the measurement result to be calibrated includes a first value to be calibrated in the first direction in each step cycle, a second value to be calibrated in the second direction, and a third value to be calibrated in the third direction. The reference key can send the reference measurement result to the host computer. The key to be calibrated can send the measurement result to be calibrated to the host computer.
[0107] The host computer can calculate the mean of the first reference value, the second reference value, the third reference value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in each step cycle, and obtain the first reference mean value, the second reference mean value, the third reference mean value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in the step cycle. The first reference mean value, the second reference mean value, the third reference mean value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in the step cycle of the preset number of steps are segmented to obtain each first reference range, each second reference range, each third reference range, each first range to be calibrated, each second range to be calibrated and each third range to be calibrated.
[0108] The step cycle to which the first mean value to be calibrated that constitutes the first range to be calibrated belongs, and the first reference range constituted by the first reference values in these step cycles correspond to the first range to be calibrated mentioned above. The step cycle to which the second mean value to be calibrated that constitutes the second range to be calibrated belongs, and the second reference range constituted by the second reference values in these step cycles correspond to the second range to be calibrated mentioned above. The step cycle to which the third mean value to be calibrated that constitutes the third range to be calibrated belongs, and the third reference range constituted by the third reference values in these step cycles correspond to the third range to be calibrated mentioned above.
[0109] The host computer may send a first median reference value in the middle of a first range to be calibrated and a corresponding first reference range to the smart key, so as to instruct the key to be calibrated to map the value to be calibrated in the first direction within the first range to be calibrated measured in the magnetic field generated by the car to the first median reference value. The host computer may send a second median reference value in the middle of a second range to be calibrated and a corresponding second reference range to the smart key, so as to instruct the key to be calibrated to map the value to be calibrated in the second direction within the second range to be calibrated measured in the magnetic field generated by the car to the second median reference value. The host computer may send a third median reference value in the middle of a third range to be calibrated and a corresponding third reference range to the smart key, so as to instruct the key to be calibrated to map the value to be calibrated in the third direction within the third range to be calibrated measured in the magnetic field generated by the car to the third median reference value.
[0110] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0111] Based on the same inventive concept, the embodiment of the present application also provides a smart key calibration system for implementing the smart key calibration method involved above. The implementation scheme for solving the problem provided by the system is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more smart key calibration system embodiments provided below can refer to the limitations of the smart key calibration method above, and will not be repeated here.
[0112] In an exemplary embodiment, Figure 7 As shown, a smart key calibration system 700 is provided, including: a host computer 702, a drive device 704, a Helmholtz coil 706, a reference key 708 and a key to be calibrated 710.
[0113] The driving device 704 is used to encode a preset number of steps by adjusting the phase of the carrier signal to obtain a command sub-signal; within a step period of a preset number of steps after the command sub-signal, the amplitude of the carrier signal is adjusted according to the step amplitude of the preset number of steps to obtain a step sub-signal; an excitation signal including a command sub-signal and a step sub-signal is determined; and the Helmholtz coil 706 is driven to generate a test magnetic field corresponding to the excitation signal.
[0114] The Helmholtz coil 706 is used to generate a test magnetic field corresponding to the excitation signal.
[0115] The reference key 708 is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil 706, and measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal to obtain a reference measurement result.
[0116] The key to be calibrated 710 is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil 706, and measure the signal amplitude of the step sub-signal within a step cycle of a preset number of steps after the command sub-signal to obtain the measurement result to be calibrated.
[0117] The host computer 702 is used to obtain the reference measurement result of the reference key 708 and the measurement result to be calibrated of the key to be calibrated 710 ; determine the mapping relationship between the measurement result to be calibrated and the reference measurement result; and calibrate the key to be calibrated 710 according to the mapping relationship.
[0118] In some embodiments, the driving device 704 is used to take the first step cycle after the command sub-signal as the current step cycle, take the first step amplitude of the step amplitude of a preset number of steps as the current amplitude, and adjust the amplitude of the carrier signal in the current step cycle to the current amplitude; when the current amplitude is not the last step amplitude, take the next step cycle of the current step cycle as the new current step cycle, take the next step amplitude of the current amplitude as the new current amplitude, and return to execute the step of adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude; when the current step is the last step, obtain the adjusted step sub-signal.
[0119] In some embodiments, the Helmholtz coil 706 is a three-dimensional Helmholtz coil 706; the smart key includes a three-dimensional antenna; the three-dimensional antenna is used to receive signals in the first direction, the second direction and the third direction by inducing a magnetic field; the smart key is used to receive an excitation signal by inducing a test magnetic field through the three-dimensional antenna, determine the preset number of steps carried by the command sub-signal, and measure the signal amplitude received by the three-dimensional antenna in the first direction, the second direction and the third direction respectively for the step sub-signal within a step cycle of the preset number of steps after the command sub-signal; the reference measurement result includes a first reference value in the first direction, a second reference value in the second direction and a third reference value in the third direction within each step cycle; the measurement result to be calibrated includes a first value to be calibrated in the first direction, a second value to be calibrated in the second direction and a third value to be calibrated in the third direction within each step cycle.
[0120] In some embodiments, the host computer 702 is used to calculate the mean of the first reference value, the second reference value, the third reference value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in each step cycle, respectively, to obtain the first reference mean, the second reference mean, the third reference mean, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in the step cycle; the first reference mean, the second reference mean, the third reference mean, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in the step cycle with a preset number of steps are segmented according to a preset interval length to obtain each first reference range, each second reference range, each third reference range, each first range to be calibrated, each second range to be calibrated and each third range to be calibrated; for each first range to be calibrated of each first range to be calibrated, determine the first reference range corresponding to the first range to be calibrated in each first reference range; according to the first range to be calibrated Determine a first mapping relationship with the corresponding first reference range; for each second range to be calibrated of each second range to be calibrated, determine the second reference range corresponding to the second range to be calibrated in each second reference range; determine a second mapping relationship based on the second range to be calibrated and the corresponding second reference range; for each third range to be calibrated of each third range to be calibrated, determine the third reference range corresponding to the third range to be calibrated in each third reference range; determine a third mapping relationship based on the third range to be calibrated and the corresponding third reference range; calibrate the value to be calibrated in the first direction within the first range to be calibrated measured by the calibration key 710 according to the first mapping relationship; calibrate the value to be calibrated in the second direction within the second range to be calibrated measured by the calibration key 710 according to the second mapping relationship; calibrate the value to be calibrated in the third direction within the third range to be calibrated measured by the calibration key 710 according to the third mapping relationship.
[0121] In some embodiments, the host computer 702 is used to map the first range to be calibrated to a first median reference value in the middle of the corresponding first reference range to obtain a first mapping relationship; map the second range to be calibrated to a second median reference value in the middle of the corresponding second reference range to obtain a second mapping relationship; map the third range to be calibrated to a third median reference value in the middle of the corresponding third reference range to obtain a third mapping relationship.
[0122] In some embodiments, the host computer 702 is used to send a first median reference value to the key to be calibrated 710 to instruct the key to be calibrated 710 to map the value to be calibrated in the first direction within the first range to be calibrated and measured in the magnetic field generated by the car into the first median reference value; send a second median reference value to the key to be calibrated 710 to instruct the key to be calibrated 710 to map the value to be calibrated in the second direction within the second range to be calibrated and measured in the magnetic field generated by the car into the second median reference value; send a third median reference value to the key to be calibrated 710 to instruct the key to be calibrated 710 to map the value to be calibrated in the third direction within the third range to be calibrated and measured in the magnetic field generated by the car into the third median reference value.
[0123] In some embodiments, the host computer 702 is used to map the first range to be calibrated to the corresponding first reference range to obtain a first mapping function corresponding to the first range to be calibrated; map the second range to be calibrated to the corresponding second reference range to obtain a second mapping function corresponding to the second range to be calibrated; map the third range to be calibrated to the corresponding third reference range to obtain a third mapping function corresponding to the third range to be calibrated.
[0124] Each device in the above-mentioned smart key calibration system can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned devices can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above-mentioned devices.
[0125] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 8As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a calibration method for a smart key is implemented.
[0126] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Fig. 9 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a calibration method for a smart key is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.
[0127] Those skilled in the art will understand that Figure 8 or Fig. 9The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0128] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0129] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0130] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0131] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0132] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0133] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for calibrating a smart key, characterized in that: The method comprises: The preset number of steps is encoded by adjusting the phase of the carrier signal to obtain a command sub-signal; Within the step period of the preset number of steps after the command sub-signal, adjusting the amplitude of the carrier signal according to the step amplitude of the preset number of steps to obtain a step sub-signal; determining an excitation signal including the command sub-signal and the step sub-signal; The Helmholtz coil is driven to generate a test magnetic field corresponding to the excitation signal; wherein the test magnetic field is used to transmit the excitation signal to a smart key located at the center of the Helmholtz coil, so as to instruct the smart key to measure the signal amplitude of the step sub-signal within a step cycle of the preset number of steps after the command sub-signal; the smart key is a reference key or a key to be calibrated; Acquiring a reference measurement result of the reference key and a measurement result to be calibrated of the key to be calibrated; Determining a mapping relationship between the measurement result to be calibrated and the reference measurement result; The key to be calibrated is calibrated according to the mapping relationship.
2. The method according to claim 1, characterized in that The stepping period of the preset number of steps after the command sub-signal, adjusting the amplitude of the carrier signal according to the preset number of step amplitudes to obtain a step sub-signal, comprises: Taking the first step cycle after the command sub-signal as the current step cycle, taking the first step amplitude of the step amplitude of the preset step number as the current amplitude, and adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude; In the case where the current amplitude is not the last step amplitude, taking the next step cycle of the current step cycle as the new current step cycle, taking the next step amplitude of the current amplitude as the new current amplitude, and returning to execute the step of adjusting the amplitude of the carrier signal in the current step cycle to the current amplitude; In the case that the current step is the last step, an adjusted step sub-signal is obtained.
3. The method according to claim 1, characterized in that The Helmholtz coil is a three-dimensional Helmholtz coil; the smart key includes a three-dimensional antenna; the three-dimensional antenna is used to receive signals in a first direction, a second direction and a third direction by inducing a magnetic field; The smart key is used to sense the test magnetic field through the three-dimensional antenna to receive the excitation signal, determine the preset number of steps carried by the command sub-signal, and measure the signal amplitudes received by the three-dimensional antenna in the first direction, the second direction, and the third direction respectively within a step cycle of the preset number of steps after the command sub-signal for the step sub-signal; The reference measurement result includes a first reference value in the first direction, a second reference value in the second direction, and a third reference value in the third direction in each step period; The measurement result to be calibrated includes a first value to be calibrated in the first direction, a second value to be calibrated in the second direction, and a third value to be calibrated in the third direction within each step period.
4. The method according to claim 3, characterized in that The determining a mapping relationship between the measurement result to be calibrated and the reference measurement result includes: Calculating the mean of the first reference value, the second reference value, the third reference value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in each step period respectively, to obtain the first reference mean value, the second reference mean value, the third reference mean value, the first value to be calibrated, the second value to be calibrated and the third value to be calibrated in the step period; The first reference mean, the second reference mean, the third reference mean, the first mean to be calibrated, the second mean to be calibrated and the third mean to be calibrated within the step cycle of the preset number of steps are segmented according to the preset interval length to obtain each first reference range, each second reference range, each third reference range, each first range to be calibrated, each second range to be calibrated and each third range to be calibrated; For each of the first ranges to be calibrated, determining a first reference range corresponding to the first range to be calibrated in the first reference ranges; determining a first mapping relationship according to the first to-be-calibrated range and the corresponding first reference range; For each of the second ranges to be calibrated, determining a second reference range corresponding to the second range to be calibrated in the second reference ranges; determining a second mapping relationship according to the second to-be-calibrated range and the corresponding second reference range; For each of the third ranges to be calibrated, determining a third reference range corresponding to the third range to be calibrated in the third reference ranges; Determine a third mapping relationship according to the third range to be calibrated and the corresponding third reference range; The step of calibrating the key to be calibrated according to the mapping relationship includes: Calibrate the value to be calibrated in the first direction within the first range to be calibrated measured by the key to be calibrated according to the first mapping relationship; The value to be calibrated in the second direction within the second calibrated range measured by the key to be calibrated is calibrated according to the second mapping relationship; the value to be calibrated in the third direction within the third calibrated range measured by the key to be calibrated is calibrated according to the third mapping relationship.
5. The method according to claim 4, characterized in that The determining a first mapping relationship according to the first to-be-calibrated range and the corresponding first reference range includes: Mapping the first to-be-calibrated range to a first median reference value in the middle of the corresponding first reference range to obtain a first mapping relationship; The determining a second mapping relationship according to the second to-be-calibrated range and the corresponding second reference range includes: Mapping the second to-be-calibrated range to a second median reference value in the middle of the corresponding second reference range to obtain a second mapping relationship; The determining a third mapping relationship according to the third to-be-calibrated range and the corresponding third reference range includes: The third range to be calibrated is mapped to a third median reference value in the middle of the corresponding third reference range to obtain a third mapping relationship.
6. The method according to claim 5, characterized in that The step of calibrating the value to be calibrated in the first direction within the first range to be calibrated and measured by the key to be calibrated according to the first mapping relationship includes: Sending the first middle reference value to the key to be calibrated to instruct the key to be calibrated to map the value to be calibrated in the first direction within the first to-be-calibrated range measured in the magnetic field generated by the car into the first middle reference value; The step of calibrating the value to be calibrated in the second direction within the second range to be calibrated and measured by the key to be calibrated according to the second mapping relationship includes: Sending the second middle reference value to the key to be calibrated to instruct the key to be calibrated to map the value to be calibrated in the second direction within the second to-be-calibrated range measured in the magnetic field generated by the car into the second middle reference value; The step of calibrating the value to be calibrated in the third direction within the third to-be-calibrated range measured by the key to be calibrated according to the third mapping relationship comprises: The third middle reference value is sent to the key to be calibrated to instruct the key to be calibrated to map the value to be calibrated in the third direction within the third range to be calibrated and measured in the magnetic field generated by the vehicle into the third middle reference value.
7. The method according to claim 4, characterized in that The determining of the first mapping relationship according to the first range to be calibrated and the corresponding first reference range includes: mapping the first range to be calibrated to the corresponding first reference range to obtain a first mapping function corresponding to the first range to be calibrated; The determining a second mapping relationship according to the second to-be-calibrated range and the corresponding second reference range includes: Mapping the second range to be calibrated to the corresponding second reference range to obtain a second mapping function corresponding to the second range to be calibrated; The determining a third mapping relationship according to the third to-be-calibrated range and the corresponding third reference range includes: The third range to be calibrated is mapped to the corresponding third reference range to obtain a third mapping function corresponding to the third range to be calibrated.
8. A smart key calibration system, characterized in that: The system comprises a host computer, a drive device, a Helmholtz coil, a reference key and a key to be calibrated; The driving device is used to encode a preset number of steps by adjusting the phase of a carrier signal to obtain a command sub-signal; within a step cycle of the preset number of steps after the command sub-signal, adjust the amplitude of the carrier signal according to the step amplitude of the preset number of steps to obtain a step sub-signal; determine an excitation signal including the command sub-signal and the step sub-signal; and drive a Helmholtz coil to generate a test magnetic field corresponding to the excitation signal; The Helmholtz coil is used to generate a test magnetic field corresponding to the excitation signal; The reference key is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil, and to measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal to obtain a reference measurement result; The key to be calibrated is used to receive the excitation signal by inducing the test magnetic field when located at the center of the Helmholtz coil, and to measure the signal amplitude of the step sub-signal within the step cycle of the preset number of steps after the command sub-signal to obtain the measurement result to be calibrated; The host computer is used to obtain the reference measurement result of the reference key and the measurement result to be calibrated of the key to be calibrated; Determining a mapping relationship between the measurement result to be calibrated and the reference measurement result; The key to be calibrated is calibrated according to the mapping relationship.
9. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.