Signal intensity processing method and device and vehicle key positioning method
By filtering and dynamic compensation processing of vehicle key signal strength, the positioning deviation problem caused by signal strength fluctuations is solved, and the accuracy of vehicle key positioning is improved.
Patent Information
- Application Number
- CN202510180731.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-05-27
AI Technical Summary
The signal intensity of Bluetooth devices fluctuates greatly, making it difficult to directly use for vehicle key positioning, and filtering will lead to a deviation between the positioning result and the actual position.
By obtaining the signal strengths sequentially collected during the vehicle key movement, filtering is performed to obtain the intermediate signal strength, the compensation amount is determined based on the local change rate, and dynamically compensates the signal strength to obtain the target signal strength for positioning.
Effectively reduce the impact of data hysteresis caused by filtering on vehicle key positioning, and improve the accuracy of signal strength and positioning accuracy.
Smart Images

Figure CN120050594A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a signal strength processing method, device, vehicle key positioning method, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of vehicle technology, vehicle keys are also being updated. At present, the rate of vehicle Bluetooth keys is increasing, and the vehicle Bluetooth keys can be located according to the signal strength of the vehicle Bluetooth keys.
[0003] However, the signal strength of Bluetooth devices is affected by many factors (such as device type, environmental conditions, and the distance between devices, etc.), resulting in large fluctuations in the actual signal strength collected, making it difficult to use directly for positioning. In related technologies, in order to obtain a relatively stable signal strength, the signal strength is generally filtered. However, filtering can also cause deviations between the positioning result and the actual position. Summary of the invention
[0004] Based on this, it is necessary to provide a signal strength processing method, device, vehicle key positioning method, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy of vehicle key positioning based on signal strength in response to the above technical problems.
[0005] In a first aspect, the present application provides a method for processing signal strength, comprising:
[0006] Acquire multiple initial signal strengths; the multiple initial signal strengths are signal strengths of the vehicle key collected sequentially during the movement of the vehicle key;
[0007] Performing filtering processing on the multiple initial signal strengths to obtain multiple intermediate signal strengths;
[0008] Based on the local change rate at each intermediate signal strength among the multiple intermediate signal strengths, determining a compensation amount corresponding to each intermediate signal strength; the compensation amount is positively correlated with the local change rate;
[0009] Based on the compensation amount corresponding to each intermediate signal strength, each intermediate signal strength is compensated respectively to obtain a plurality of target signal strengths; the plurality of target signal strengths are used for locating the vehicle key.
[0010] In one embodiment, the method for determining the local change rate at each intermediate signal strength includes:
[0011] Sliding a sliding window of a first window size over the plurality of intermediate signal strengths;
[0012] The change rates of the intermediate signal strengths covered by the positions where the sliding windows are located are calculated respectively to obtain the local change rates at the positions where the sliding windows are located.
[0013] In one embodiment, respectively calculating the change rate of the intermediate signal strength covered by the position where the sliding window is located to obtain the local change rate at the position where each sliding window is located includes:
[0014] Obtaining the last intermediate signal strength and the first intermediate signal strength covered by the current position of the sliding window;
[0015] The difference between the last intermediate signal strength and the first intermediate signal strength is calculated, and the ratio of the difference to the first window size is calculated to obtain the local change rate at the current position of the sliding window.
[0016] In one embodiment, each of the intermediate signal strengths is compensated based on the compensation amount corresponding to each of the intermediate signal strengths to obtain multiple target signal strengths, and then the method includes:
[0017] In response to the plurality of target signal strengths not satisfying a timeliness requirement, reducing the first window size.
[0018] In one embodiment, determining the compensation amount corresponding to each intermediate signal strength based on the local change rate at each intermediate signal strength among the multiple intermediate signal strengths includes:
[0019] Get a compensation window of the second window size;
[0020] The product of the local change rate at each intermediate signal strength and the second window size is calculated respectively to obtain the compensation amount corresponding to each intermediate signal strength.
[0021] In one embodiment, each of the intermediate signal strengths is compensated based on the compensation amount corresponding to each of the intermediate signal strengths to obtain multiple target signal strengths, and then the method includes:
[0022] In response to the plurality of target signal strengths not satisfying a stability requirement, reducing the second window size.
[0023] In one embodiment, filtering the multiple initial signal strengths to obtain multiple intermediate signal strengths includes:
[0024] Sliding the plurality of initial signal strengths using a sliding window;
[0025] The maximum value and the minimum value of the initial signal strength covered by the position where the sliding window is located are screened out, and the remaining initial signal strengths are subjected to mean filtering and low-pass filtering to obtain an intermediate signal strength.
[0026] In a second aspect, the present application also provides a vehicle key positioning method, comprising:
[0027] Call the pre-trained positioning algorithm model;
[0028] The target signal strength described in the above item is input into the pre-trained positioning algorithm model to obtain the positioning result of the vehicle key.
[0029] In a third aspect, the present application further provides a signal strength processing device, including:
[0030] An acquisition module, used to acquire a plurality of initial signal strengths; the plurality of initial signal strengths are signal strengths of the vehicle key acquired sequentially during the movement of the vehicle key;
[0031] A filtering module, used for filtering the multiple initial signal strengths to obtain multiple intermediate signal strengths;
[0032] A compensation amount determination module, configured to determine a compensation amount corresponding to each intermediate signal strength based on a local change rate at each intermediate signal strength among the plurality of intermediate signal strengths; the compensation amount is positively correlated with the local change rate;
[0033] The compensation module is used to compensate each intermediate signal strength based on the compensation amount corresponding to each intermediate signal strength to obtain multiple target signal strengths; the multiple target signal strengths are used for locating the vehicle key.
[0034] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of any of the methods described above when executing the computer program.
[0035] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of any of the methods described above are implemented.
[0036] In a sixth aspect, the present application also provides a computer program product, including a computer program, which implements the steps of any of the methods described above when executed by a processor.
[0037] The above-mentioned signal strength processing method, device, vehicle key positioning method, computer equipment, computer-readable storage medium and computer program product can obtain a relatively stable signal strength by filtering the signal strength of the vehicle key collected sequentially during the movement of the vehicle key; by dynamically compensating the filtered signal strength according to the local change rate of the signal strength, and the faster the signal strength changes, the greater the compensation amount, so that the compensated signal strength can be close to the actual signal strength, effectively reducing the impact of data hysteresis caused by filtering on vehicle key positioning, and improving the accuracy of vehicle key positioning based on signal strength. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 is a flow chart of a method for processing signal strength in one embodiment;
[0040] Figure 2 is a schematic diagram of multiple initial signal strengths, multiple intermediate signal strengths, and multiple target signal strengths in one embodiment;
[0041] Figure 3 is a flow chart of a method for determining the local change rate at each intermediate signal strength in one embodiment;
[0042] Figure 4 Schematic diagram of the process of step A2 in one embodiment;
[0043] Figure 5 is a flow chart of a method for processing signal strength in another embodiment;
[0044] Figure 6 is a flow chart of step S108 in one embodiment;
[0045] Figure 7 is a flow chart of a method for processing signal strength in yet another embodiment;
[0046] Figure 8 is a flow chart of step S104 in one embodiment;
[0047] Fig. 9 is a structural block diagram of a signal strength processing device in one embodiment;
[0048] Fig.10FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0049] 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.
[0050] In the related art, filtering data will cause data hysteresis. When the vehicle key is in a non-stationary state (for example, close to the vehicle or far away from the vehicle), the hysteresis of the signal strength of the filtered vehicle key will cause a deviation between the positioning result of the vehicle key and the actual position of the vehicle key. Moreover, the more stable the signal strength of the filtered vehicle key is, the more obvious the hysteresis is, which will cause a greater deviation between the positioning result of the vehicle key and the actual position of the vehicle key.
[0051] Based on this, Figure 1 As shown, the embodiment of the present application provides a method for processing signal strength. This embodiment takes the method applied to a terminal as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0052] Step S102, obtaining a plurality of initial signal strengths; the plurality of initial signal strengths are collected sequentially from the vehicle key during the movement of the vehicle key.
[0053] The vehicle key may be a vehicle-mounted Bluetooth key or other types of wireless signal transmitting devices. The vehicle key sends a signal while moving, and one or more monitoring nodes on the vehicle receive the signal from the vehicle key to obtain multiple initial signal strengths. The initial signal strength may be a received signal strength indicator (RSSI).
[0054] Step S104: filtering the multiple initial signal strengths to obtain multiple intermediate signal strengths.
[0055] Exemplarily, the filtering method for the multiple initial signal strengths may be a sliding window average method, a median method, a Gaussian filtering method, a Kalman filtering method, etc., or a hybrid filtering method combining multiple filtering methods.
[0056] Step S106, determining a compensation amount corresponding to each intermediate signal strength based on a local change rate at each intermediate signal strength among the plurality of intermediate signal strengths; the compensation amount is positively correlated with the local change rate.
[0057] The local change rate at each intermediate signal strength may be determined based on the intermediate signal strength and the intermediate signal strengths nearby. It is understandable that the greater the local change rate at the intermediate signal strength, the greater the compensation amount corresponding to the intermediate signal strength. When the intermediate signal strength increases, the compensation amount is a positive compensation amount; when the intermediate signal strength decreases, the compensation amount is a negative compensation amount.
[0058] Exemplarily, when the local change rate at the intermediate signal strength is large, the compensation amount corresponding to the intermediate signal strength can take a larger value among multiple preset compensation amounts; when the local change rate at the intermediate signal strength is small, the compensation amount corresponding to the intermediate signal strength can take a smaller value among multiple preset compensation amounts.
[0059] Step S108 , based on the compensation amount corresponding to each intermediate signal strength, each intermediate signal strength is compensated to obtain a plurality of target signal strengths; the plurality of target signal strengths are used for locating the vehicle key.
[0060] Please refer to Figure 2 , Figure 2 It is a schematic diagram of multiple initial signal strengths, multiple intermediate signal strengths and multiple target signal strengths in one embodiment. Among them, R10 is a plurality of initial signal strengths; R20 is a plurality of intermediate signal strengths obtained by filtering R10; R31 / R32 / R33 / R34 are a plurality of target signal strengths obtained by compensating R20, and the compensation amount corresponding to each intermediate signal strength is positively correlated with the local change rate at each intermediate signal strength. It can be understood that the greater the local change rate at the intermediate signal strength, the faster the target signal strength obtained after compensation increases / decreases.
[0061] In a possible implementation, multiple target signal strengths may be used to compare with reference signal strengths corresponding to position data to determine a positioning result of the vehicle key.
[0062] In the above-mentioned signal strength processing method, by filtering the signal strength of the vehicle key collected sequentially during the movement of the vehicle key, a relatively stable signal strength can be obtained; by dynamically compensating the filtered signal strength according to the local change rate of the signal strength, and the faster the signal strength changes, the greater the compensation amount, the compensated signal strength can be close to the actual signal strength, effectively reducing the impact of data hysteresis caused by filtering on vehicle key positioning, and improving the accuracy of vehicle key positioning based on signal strength.
[0063] In an exemplary embodiment, Figure 3 As shown, the determination method of the local change rate at each intermediate signal strength includes:
[0064] Step A1: Slide a sliding window of a first window size over a plurality of intermediate signal strengths.
[0065] Step A2, respectively calculating the change rate of the intermediate signal strength covered by the position where the sliding window is located, and obtaining the local change rate at the position where each sliding window is located.
[0066] Among them, the sliding window maintains a window on a data structure (e.g., an array, a sequence, etc.), and represents the left and right boundaries of the window based on two pointers (or indexes). These two pointers (or indexes) will slide on the data structure (e.g., each time it slides m bits, m elements will be removed from the left end of the window and m new elements will be added to the right end of the window), realizing the calculation problems of sub-arrays or sub-sequences, etc. The window size of the sliding window refers to the number of elements covered by the sliding window. For example, when the window size of the sliding window is n, at each position of the sliding window, the sliding window covers n intermediate signal strengths. At the initial moment, the sliding window can cover the 1st to nth intermediate signal strengths. After sliding once, the sliding window can cover the 1st+mth to n+mth intermediate signal strengths.
[0067] Exemplarily, a sliding window of a first window size may be used to slide on a plurality of intermediate signal strengths, and a change rate of the intermediate signal strength in the sliding window may be calculated. In a possible implementation, an average value of the intermediate signal strengths in the sliding window may be first calculated, and then a difference between the last intermediate signal strength in the sliding window and the average value may be calculated, and a ratio of the difference to the first window size may be calculated to obtain a local change rate at the current position of the sliding window.
[0068] Furthermore, if Figure 4 As shown, the above step A2 may include:
[0069] Step A21, obtaining the last intermediate signal strength and the first intermediate signal strength covered by the current position of the sliding window.
[0070] Step A22, calculating the difference between the last intermediate signal strength and the first intermediate signal strength, and calculating the ratio of the difference to the first window size, to obtain the local change rate at the current position of the sliding window.
[0071] In a possible implementation, the local change rate may be determined based on a first formula, and the first formula may include:
[0072] slope(n)=(Data[slopeWin]-Data[0]) / slopeWin;
[0073] Wherein, slope(n) is the local change rate, Data is the window data set determined according to the current frame n, and slopeWin is the first window size. Data[0] to Data[slopeWin] can correspond to Y[n-slopeWin] to Y[n] respectively, where Y[n-slopeWin] is the first intermediate signal strength covered by the current frame n, and Y[n] is the last intermediate signal strength covered by the current frame n.
[0074] Alternatively, if Figure 5 As shown, the signal strength processing method may further include:
[0075] Step S1091: In response to the multiple target signal strengths not meeting the timeliness requirement, reducing the first window size.
[0076] Please continue to refer to Figure 2 , R31 and R32 are multiple target signal strengths obtained under the same processing conditions except for the use of sliding windows of different sizes, and R32 uses a smaller sliding window than R31. At this time, R32 is more timely in compensation during the rising and falling stages compared to R31, and is closer to the actual change trend of the signal strength. Similarly, R34 uses a smaller sliding window compared to R33, and R34 is more timely in compensation during the rising and falling stages compared to R33. It can be understood that the smaller the sliding window, the better the timeliness of the multiple target signal strengths.
[0077] In this embodiment, by using a sliding window, the corresponding local change rate is calculated at each position of the sliding window, so that the local fluctuation of the signal strength can be monitored conveniently and accurately. Further, by considering the intermediate signal strength in the sliding window as a linear change, the efficiency of the local change rate calculation can be improved. Optionally, by changing the size of the sliding window, the timeliness requirement in actual use can be met.
[0078] In an exemplary embodiment, Figure 6 As shown, the above step S108 may include:
[0079] Step S1081, obtaining a compensation window of a second window size.
[0080] Step S1082, respectively calculating the product of the local change rate at each intermediate signal strength and the second window size to obtain the compensation amount corresponding to each intermediate signal strength.
[0081] In a possible implementation, the compensation amount may be determined based on a second formula, and the second formula may include:
[0082] compensateValue(n)=slope(n)*compensateWin;
[0083] Wherein, compensateValue(n) is the compensation amount, slope(n) is the local change rate, and compensateWin is the second window size. The second window size can be iteratively adjusted according to the deviation between the positioning result of the vehicle key and the actual position of the vehicle key.
[0084] Furthermore, the target signal strength may be determined based on a third formula, which may include:
[0085] compensateResult=Y(n)+compensateValue(n);
[0086] Among them, compensateResult is the target signal strength, Y(n) is the intermediate signal strength, and compensateValue(n) is the compensation amount.
[0087] Alternatively, if Figure 7 As shown, the signal strength processing method may further include:
[0088] Step S1092: In response to the multiple target signal strengths not satisfying the stability requirement, reducing the second window size.
[0089] Please continue to refer to Figure 2 , R31 uses a sliding window of size 10 and a compensation window of size 10; R32 uses a sliding window of size 5 and a compensation window of size 10; R33 uses a sliding window of size 10 and a compensation window of size 15; R34 uses a sliding window of size 5 and a compensation window of size 15. R31 and R33 are multiple target signal strengths obtained under the same processing conditions except for the use of compensation windows of different sizes, and R33 uses a larger compensation window and R31 uses a smaller compensation window. At this time, R31 has a smaller oscillation at the tail of the waveform than R33. Similarly, R32 uses a smaller compensation window than R34, and R32 has a smaller oscillation at the tail of the waveform than R34. It can be understood that the smaller the compensation window, the better the stability of the multiple target signal strengths.
[0090] In this embodiment, by taking the product of the local change rate and the second window size as the compensation amount, the approximate calculation of the compensation amount can be achieved, so that the compensated signal strength is closer to the actual signal strength. Furthermore, by changing the size of the compensation window, the requirement for stability in actual use can be met.
[0091] In an exemplary embodiment, Figure 8 As shown, the above step S104 may include:
[0092] Step S1041: Slide over multiple initial signal strengths using a sliding window.
[0093] Step S1042, filtering out the maximum and minimum values of the initial signal strengths covered by the position of the sliding window, and performing mean filtering and low-pass filtering on the remaining initial signal strengths to obtain intermediate signal strengths.
[0094] For example, a sliding window can be used to slide on multiple initial signal strengths, and at the same time, the abnormal values (including: maximum value, minimum value, etc.) in the sliding window are first screened out, and then the remaining initial signal strengths are average filtered, and then first-order low-pass filtered to obtain the final filtering result (that is, the intermediate signal strength). The larger the sliding window, the more obvious the hysteresis of the intermediate signal strength.
[0095] Specifically, the first-order low-pass filtering can be implemented based on the fourth formula, which may include:
[0096] Y(n)=aX(n)+(1-a)Y(n-1);
[0097] Among them, Y(n) is the final filtering result of this filtering, Y(n-1) is the final filtering result of the previous filtering, X(n) is the filtering result of the mean filtering, and a is a constant. When a is smaller, the intermediate signal strength is more stable but the hysteresis is more obvious. Please continue to refer to Figure 2 When the initial signal strength changes suddenly, the corresponding intermediate signal strength has an obvious delay. This results in a longer response time when locating the vehicle key through the intermediate signal strength.
[0098] In this embodiment, by first filtering out the maximum value and the minimum value, the interference of abnormal values can be reduced; by performing double filtering by adopting a combination of mean filtering and low-pass filtering, the signal strength after filtering can be relatively stable.
[0099] In one embodiment, a vehicle key positioning method is provided. This embodiment uses the method applied to a vehicle terminal as an example for illustration. It is understandable that the method can also be applied to a system including a vehicle terminal and a server, and is implemented through the interaction between the vehicle terminal and the server. The method includes the following steps:
[0100] Step S202, calling the pre-trained positioning algorithm model.
[0101] Step S204: input the target signal strength obtained by any of the signal strength processing methods described above into a pre-trained positioning algorithm model to obtain a positioning result of the vehicle key.
[0102] The pre-trained positioning algorithm model may be obtained by training based on reference signal strength and corresponding location data.
[0103] To sum up, in the above-mentioned signal strength processing method, by filtering the signal strength of the vehicle key collected sequentially during the movement of the vehicle key, a relatively stable signal strength can be obtained; by dynamically compensating the filtered signal strength according to the local change rate of the signal strength, and the faster the signal strength changes, the greater the compensation amount, the compensated signal strength can be close to the actual signal strength, effectively reducing the influence of data hysteresis caused by filtering on vehicle key positioning, and improving the accuracy of vehicle key positioning based on signal strength.
[0104] 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.
[0105] Based on the same inventive concept, the embodiment of the present application also provides a signal strength processing device for implementing the signal strength processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the one or more signal strength processing device embodiments provided below can refer to the limitations of the signal strength processing method above, and will not be repeated here.
[0106] In an exemplary embodiment, Fig. 9 As shown, a signal strength processing device 300 is provided, comprising: an acquisition module 301, a filtering module 302, a compensation amount determination module 303 and a compensation module 304, wherein:
[0107] The acquisition module 301 is used to acquire multiple initial signal strengths; the multiple initial signal strengths are signal strengths of the vehicle key collected sequentially during the movement of the vehicle key.
[0108] The filtering module 302 is used to filter the multiple initial signal strengths to obtain multiple intermediate signal strengths.
[0109] The compensation amount determination module 303 is used to determine the compensation amount corresponding to each intermediate signal strength based on the local change rate at each intermediate signal strength among the multiple intermediate signal strengths; the compensation amount is positively correlated with the local change rate.
[0110] The compensation module 304 is used to compensate each intermediate signal strength based on the compensation amount corresponding to each intermediate signal strength to obtain multiple target signal strengths; the multiple target signal strengths are used to locate the vehicle key.
[0111] In an exemplary embodiment, the signal strength processing device 300 includes a change rate determination module, and the change rate determination module may include:
[0112] The first sliding submodule is used to slide a sliding window of a first window size on a plurality of intermediate signal strengths.
[0113] The change rate determination submodule is also used to calculate the change rate of the intermediate signal strength covered by the position where the sliding window is located, and obtain the local change rate at the position where each sliding window is located.
[0114] In an exemplary embodiment, the above-mentioned change rate determination submodule may include:
[0115] An acquisition unit, used to acquire the last intermediate signal strength and the first intermediate signal strength covered by the current position of the sliding window;
[0116] The calculation unit is used to calculate the difference between the last intermediate signal strength and the first intermediate signal strength, and calculate the ratio of the difference to the first window size to obtain the local change rate at the current position of the sliding window.
[0117] In an exemplary embodiment, the signal strength processing device 300 may further include:
[0118] The first adjustment module is configured to reduce the first window size in response to the multiple target signal strengths not meeting the timeliness requirement.
[0119] In an exemplary embodiment, the compensation amount determination module 303 may include:
[0120] The compensation window acquisition submodule is used to acquire a compensation window of a second window size.
[0121] The compensation amount determination submodule is used to respectively calculate the product of the local change rate at each intermediate signal strength and the second window size to obtain the compensation amount corresponding to each intermediate signal strength.
[0122] In an exemplary embodiment, the signal strength processing device 300 may further include:
[0123] The second adjustment module is configured to reduce the second window size in response to the multiple target signal strengths not meeting the stability requirement.
[0124] In an exemplary embodiment, the filtering module 302 may include:
[0125] The second sliding submodule is used to slide on multiple initial signal strengths using a sliding window.
[0126] The filtering submodule is used to filter out the maximum and minimum values of the initial signal strength covered by the position of the sliding window, and perform mean filtering and low-pass filtering on the remaining initial signal strength to obtain the intermediate signal strength.
[0127] Each module in the above-mentioned signal strength processing device can be implemented in whole or in part by software, hardware or a combination thereof. Each module 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 module.
[0128] 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. Fig.10 As 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, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. 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 signal strength processing method is implemented.
[0129] Those skilled in the art will understand that Fig.10 The 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.
[0130] In an exemplary embodiment, a computer device is 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-mentioned method embodiments when executing the computer program.
[0131] 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 method embodiments are implemented.
[0132] 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.
[0133] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 memory 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), magnetic 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, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0134] The technical features of the above embodiments may be combined arbitrarily. 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 application.
[0135] 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 processing signal strength, characterized in that: include: Acquire multiple initial signal strengths; the multiple initial signal strengths are signal strengths of the vehicle key collected sequentially during the movement of the vehicle key; Performing filtering processing on the multiple initial signal strengths to obtain multiple intermediate signal strengths; Based on the local change rate at each intermediate signal strength among the multiple intermediate signal strengths, determining a compensation amount corresponding to each intermediate signal strength; the compensation amount is positively correlated with the local change rate; Based on the compensation amount corresponding to each intermediate signal strength, each intermediate signal strength is compensated respectively to obtain a plurality of target signal strengths; the plurality of target signal strengths are used for locating the vehicle key.
2. The method according to claim 1, characterized in that The determination method of the local change rate at each intermediate signal strength includes: Sliding a sliding window of a first window size over the plurality of intermediate signal strengths; The change rates of the intermediate signal strengths covered by the positions where the sliding windows are located are calculated respectively to obtain the local change rates at the positions where the sliding windows are located.
3. The method according to claim 2, characterized in that The respectively calculating the change rate of the intermediate signal strength covered by the position where the sliding window is located to obtain the local change rate at the position where each sliding window is located includes: Obtaining the last intermediate signal strength and the first intermediate signal strength covered by the current position of the sliding window; The difference between the last intermediate signal strength and the first intermediate signal strength is calculated, and the ratio of the difference to the first window size is calculated to obtain the local change rate at the current position of the sliding window.
4. The method according to claim 2, characterized in that: After the compensation amount corresponding to each intermediate signal strength is compensated respectively for each intermediate signal strength to obtain a plurality of target signal strengths, the method further includes: In response to the plurality of target signal strengths not satisfying a timeliness requirement, reducing the first window size.
5. The method according to claim 1, characterized in that The determining, based on the local change rate at each intermediate signal strength among the plurality of intermediate signal strengths, the compensation amount corresponding to each intermediate signal strength comprises: Get a compensation window of the second window size; The product of the local change rate at each intermediate signal strength and the second window size is calculated respectively to obtain the compensation amount corresponding to each intermediate signal strength.
6. The method according to claim 5, characterized in that After the compensation amount corresponding to each intermediate signal strength is compensated respectively for each intermediate signal strength to obtain a plurality of target signal strengths, the method further includes: In response to the plurality of target signal strengths not satisfying a stability requirement, reducing the second window size.
7. The method according to claim 1, characterized in that The filtering the multiple initial signal strengths to obtain multiple intermediate signal strengths includes: Sliding the plurality of initial signal strengths using a sliding window; The maximum value and the minimum value of the initial signal strength covered by the position where the sliding window is located are screened out, and the remaining initial signal strengths are subjected to mean filtering and low-pass filtering to obtain an intermediate signal strength.
8. A vehicle key positioning method, characterized in that: include: Call the pre-trained positioning algorithm model; The target signal strength according to any one of claims 1 to 7 is input into the pre-trained positioning algorithm model to obtain the positioning result of the vehicle key.
9. A signal strength processing device, characterized in that: The device comprises: An acquisition module, used to acquire a plurality of initial signal strengths; the plurality of initial signal strengths are signal strengths of the vehicle key acquired sequentially during the movement of the vehicle key; A filtering module, used for filtering the multiple initial signal strengths to obtain multiple intermediate signal strengths; A compensation amount determination module, configured to determine a compensation amount corresponding to each intermediate signal strength based on a local change rate at each intermediate signal strength among the plurality of intermediate signal strengths; the compensation amount is positively correlated with the local change rate; The compensation module is used to compensate each intermediate signal strength based on the compensation amount corresponding to each intermediate signal strength to obtain multiple target signal strengths; the multiple target signal strengths are used for locating the vehicle key.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
11. 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.
12. A computer program product, comprising a computer program, 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.