Wireless vehicle-mounted radio frequency data decoding method, system and equipment
By integrating wireless data decoding processing technology in the microprocessor, directly decoding the on-board radio frequency data, the problems of high cost and complex structure of decoding chips in the on-board wireless sensing system are solved, and efficient and accurate decoding and economic benefits are achieved.
Patent Information
- Application Number
- CN202411111321.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-11-26
AI Technical Summary
Existing vehicle-mounted wireless sensing systems require independent decoding chips, resulting in high costs and complex system structure.
By integrating wireless data decoding processing technology in the microprocessor, the decoding of wireless vehicle-mounted radio frequency data is directly performed, which avoids the need for independent decoding chips and reduces the dependence on external hardware.
It realizes efficient and accurate decoding of wireless radio frequency data, reduces costs, simplifies the system structure, and improves integration and economic benefits.
Smart Images

Figure CN119030664A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless data decoding, and in particular to a method, system and device for wireless vehicle-mounted radio frequency data decoding. Background Art
[0002] With the continuous evolution of communication, automation control and electronic technology, wireless sensor technology has become a hot spot in the field of scientific research and application, and its presence is widespread in many key fields such as automobiles, environmental protection monitoring, smart homes, industrial automation, etc. Especially in the automotive industry, the application of wireless sensor technology has become indispensable. It not only enables tire pressure monitoring systems to ensure driving safety, but also supports convenient remote door opening and closing control, as well as keyless start systems, which improves the convenience and safety of driving.
[0003] The vehicle-mounted wireless sensor system adopts a diversified RF frequency transmission scheme, covering the frequency bands of 315MHz, 433.92MHz, 868MHz and 915MHz, among which the 433.92MHz frequency band occupies a dominant position in the domestic market. With its low power consumption, low data transmission rate and economical cost-effectiveness, this frequency has become an ideal wireless communication solution, especially suitable for the specific needs of the automotive industry. It not only promotes the lightweight and intelligentization of automotive electronic systems, but also achieves an optimal balance between cost and efficiency, providing strong support for the green development of the automotive industry and smart travel. However, the current vehicle-mounted wireless sensor system requires the installation of an independent decoding chip, which has problems such as high cost and complex system structure. Summary of the invention
[0004] The main purpose of the present invention is to provide a wireless vehicle-mounted radio frequency data decoding method, system and device, aiming to solve at least one of the above problems.
[0005] To achieve the above object, the present invention provides a wireless vehicle-mounted radio frequency data decoding method, comprising:
[0006] Initialize and configure the microprocessor and receive input wireless vehicle radio frequency data;
[0007] Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area, and the starting position and the ending position of the valid data;
[0008] Record the received data based on the preamble, the data identification preparation area, and the starting position and ending position of the valid data to obtain a data collection table;
[0009] Perform median estimation and period calculation according to the data collection table to obtain a pulse width period state table;
[0010] Establish a data decoding model based on Manchester encoding rules and level status;
[0011] The data in the pulse width cycle state table are decoded one by one according to the data decoding model to complete wireless data decoding.
[0012] In some embodiments, the initialization configuration of the microprocessor and receiving input wireless vehicle radio frequency data includes:
[0013] Initialize and configure the working environment of the microprocessor to start the decoding process;
[0014] Performing port configuration on the microprocessor to match wireless data reception;
[0015] After completing the initialization configuration and port configuration, collect the continuous input wireless vehicle RF data.
[0016] In some embodiments, the identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble, the data identification preparation area, and the starting position and the ending position of the valid data includes:
[0017] Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble;
[0018] Determine a data identification preparation area for the wireless vehicle-mounted radio frequency data based on the preamble;
[0019] The starting position and the ending position of the valid data are determined based on the data identification preparation area and the section identifier.
[0020] In some embodiments, the step of performing median estimation and period calculation according to the data collection table to obtain a pulse width period state table includes:
[0021] Constructing data points according to the duration of the level in the data collection table;
[0022] Constructing a big data analysis graph based on the data points;
[0023] Performing median estimation based on the big data analysis graph to select the median as a representative value and use the representative value as the median;
[0024] The data collection table is analyzed based on the median value to obtain a pulse width period state table.
[0025] In some embodiments, analyzing the data collection table based on the median value to obtain a pulse width cycle state table includes:
[0026] Analyzing the duration of the level in the data collection table according to the median value to classify each time period;
[0027] Mark the period where the level lasts longer than or equal to the median as a full cycle;
[0028] Marking a period in which the level duration is less than the median as a half period;
[0029] A pulse width period state table is constructed based on the full cycle, the half cycle and the data acquisition table. In some embodiments, the data decoding model is established based on Manchester encoding rules and level states, including:
[0030] A decoding model is established based on Manchester encoding rules and all level change states of the port; wherein the decoding model includes a full cycle, a half cycle, a previous bit value of a data bit, a data end bit, a data valid bit and a data value.
[0031] In some embodiments, decoding the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding includes:
[0032] Initializing the data decoding model to set the previous bit value of the data bit, the data end bit, the data valid bit and the data value to zero;
[0033] Determine each data in the pulse width cycle state table one by one according to Manchester coding characteristics and the data decoding model;
[0034] Decoding is performed in sequence according to the previous bit value of each data bit, the data end bit, the data valid bit and the data value to obtain the decoded data.
[0035] In addition, to achieve the above purpose, the present invention also proposes a wireless vehicle-mounted radio frequency data decoding system, comprising:
[0036] An initialization module, used for initializing and configuring the microprocessor and receiving input wireless vehicle radio frequency data;
[0037] A waveform recognition module, used to recognize the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data recognition preparation area, and the starting position and the ending position of the valid data;
[0038] A data recording module, used to record the received data based on the preamble, the data identification preparation area, and the starting position and the ending position of the valid data to obtain a data collection table;
[0039] A data conversion module, used for performing median estimation and period calculation according to the data acquisition table to obtain a pulse width period state table;
[0040] A model building module, used to build a data decoding model based on Manchester encoding rules and level states;
[0041] The data decoding module is used to decode the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding.
[0042] In some embodiments, the wireless vehicle-mounted radio frequency data decoding system includes:
[0043] A wireless receiving chip is used to receive the wireless vehicle-mounted radio frequency data transmitted by the transmitting end;
[0044] A microcontroller, connected to the wireless receiving chip, for receiving the wireless vehicle-mounted radio frequency data transmitted by the wireless receiving chip and decoding the wireless vehicle-mounted radio frequency data;
[0045] Wherein, the microcontroller includes: the initialization module, the waveform recognition module, the data recording module, the data conversion module, the model building module and the data decoding module.
[0046] In addition, to achieve the above-mentioned purpose, the present invention also proposes an electronic device, which includes: a memory, a processor, and a wireless vehicle-mounted radio frequency data decoding program stored in the memory and executable on the processor, wherein the wireless vehicle-mounted radio frequency data decoding program is configured to implement the wireless vehicle-mounted radio frequency data decoding method as described above.
[0047] The present invention provides a wireless vehicle-mounted radio frequency data decoding method, including: initializing and configuring a microprocessor and receiving input wireless vehicle-mounted radio frequency data; identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area, and the starting position and the ending position of the valid data; recording the received data based on the leading code, the data identification preparation area, and the starting position and the ending position of the valid data to obtain a data acquisition table; performing median estimation and cycle calculation according to the data acquisition table to obtain a pulse width cycle state table; establishing a data decoding model based on Manchester coding rules and level states; decoding the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding. In the present invention, the wireless data decoding processing technology is integrated in the microprocessor, and the decoding processing of the wireless vehicle-mounted radio frequency data is directly performed by the microprocessor, which ensures the efficient and accurate decoding of the wireless radio frequency data in the microprocessor, strengthens the autonomous decoding capability, does not need to set the independent decoding chip requirement, reduces the dependence on external hardware, thereby greatly reducing the cost and simplifying the system structure, and improving the integration and economic benefits. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] Figure 1 A schematic diagram of the structure of an electronic device in a hardware operating environment involved in an embodiment of the present invention;
[0049] Figure 2A schematic diagram of a flow chart of an embodiment of a wireless vehicle-mounted radio frequency data decoding method of the present invention;
[0050] Figure 3 A schematic diagram of a wireless communication model involved in an embodiment of the present invention;
[0051] Figure 4 A schematic diagram of a decoding process involved in an embodiment of the present invention;
[0052] Figure 5 A schematic diagram of a data waveform example involved in an embodiment of the present invention;
[0053] Figure 6 It is a schematic diagram of data collection involved in the embodiment of the present invention;
[0054] Figure 7 Schematic diagram of the median M involved in the embodiment of the present invention;
[0055] Figure 8 A schematic diagram of the pulse width cycle state involved in the embodiment of the present invention;
[0056] Fig. 9 A schematic diagram of a data decoding model involved in an embodiment of the present invention;
[0057] Fig.10 A schematic diagram of data decoding results involved in an embodiment of the present invention;
[0058] Fig.11 The structure block diagram of an embodiment of a wireless vehicle-mounted radio frequency data decoding system of the present invention.
[0059] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0060] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0061] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0062] In addition, the descriptions of "first", "second", etc. in the present invention are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0063] Reference Figure 1 , Figure 1 The figure is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present invention.
[0064] like Figure 1 As shown, the electronic device may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM memory) or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0065] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0066] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a wireless vehicle-mounted radio frequency data decoding program.
[0067] exist Figure 1In the electronic device shown, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the electronic device of the present invention can be set in the electronic device, and the electronic device calls the wireless vehicle-mounted radio frequency data decoding program stored in the memory 1005 through the processor 1001, and executes the wireless vehicle-mounted radio frequency data decoding method provided in an embodiment of the present invention.
[0068] The present invention provides a wireless vehicle-mounted radio frequency data decoding method, system and equipment.
[0069] The embodiment of the present invention provides a wireless vehicle-mounted radio frequency data decoding method, referring to Figure 2 , Figure 2 The figure is a flow chart of an embodiment of a wireless vehicle-mounted radio frequency data decoding method of the present invention.
[0070] like Figure 2 As shown, the wireless vehicle-mounted radio frequency data decoding method includes:
[0071] Step S100: Initialize and configure the microprocessor and receive input wireless vehicle radio frequency data;
[0072] Step S200: Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area, and the starting position and the ending position of the valid data;
[0073] Step S300: Record the received data based on the preamble, the data identification preparation area, and the start position and end position of the valid data to obtain a data collection table;
[0074] Step S400: performing median estimation and period calculation according to the data collection table to obtain a pulse width period state table;
[0075] Step S500: establishing a data decoding model based on Manchester coding rules and level states;
[0076] Step S600: decoding the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding.
[0077] It should be noted that this embodiment uses the decoding technology based on wireless vehicle radio frequency data as an example for explanation. This embodiment adopts an innovative wireless data decoding processing technology integrated in a microprocessor, which directly performs the decoding task of wireless data through a microprocessor or an auxiliary chip, bypassing the need for an independent decoding chip in the traditional sense, thereby greatly reducing costs and simplifying the system structure, and improving integration and economic benefits.
[0078] like Figure 3In the wireless communication model shown, the signal sent by the transmitter module is received by the wireless receiving chip at the receiving end, and the wireless receiving chip transmits the single-port wireless data to the microcontroller for decoding, wherein the GPIO interface of the microcontroller is connected to the DATA interface of the wireless receiving chip and grounded. It can be understood that any submodule or system following the method described in this embodiment can adopt the same strategy to decode the wireless RF data. The method described in this embodiment is in a microprocessor (such as Figure 3 The following refined procedures (such as Figure 4 As shown): 1. Initialization configuration system initialization; 2. Port configuration and data acquisition level acquisition; 3. Feature waveform recognition preamble recognition; 4. Data segment identification preparation area confirmation; 5. Data acquisition record record data; 6. Pulse width period state table median estimation, pulse width period; 7. Data decoding model establishment model; 8. Decoding execution data decoding, the following is a specific description in conjunction with the embodiment.
[0079] In one embodiment, the microprocessor is initialized and configured and input wireless vehicle radio frequency data is received, including: initializing and configuring the working environment of the microprocessor to start a decoding process; configuring the port of the microprocessor to match the wireless data reception; after completing the initialization configuration and the port configuration, collecting the continuously input wireless vehicle radio frequency data.
[0080] Specifically, 1. Initialization configuration system initialization: set the working environment of the microprocessor to ensure the smooth start of the decoding process. 2. Port configuration and data acquisition level acquisition: optimize the port settings to match the wireless data reception and start the efficient acquisition of continuous data.
[0081] In order to more clearly explain the design method of this embodiment, a specific example will be briefly outlined below. For example, the internal pressure sensor of the tire of a real vehicle transmits a high-frequency carrier 433.92MHz signal, and the baud rate of the transmitted data is 5000bps. Figure 5 As shown, green is the transmitter signal, and orange is the received data waveform. The wireless vehicle RF data consists of the following four parts: ① data preamble; ② data identification preparation area; ③ data area Manchester encoding; ④ data end area. When there is no signal at the receiving end, the data is messy and irregular.
[0082] In one embodiment, identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble code, the data identification preparation area, and the starting position and the ending position of the valid data includes: identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble code; determining the data identification preparation area of the wireless vehicle-mounted radio frequency data based on the preamble code; determining the starting position and the ending position of the valid data based on the data identification preparation area and the section identifier.
[0083] In one embodiment, the received data is recorded based on the preamble, the data identification preparation area, and the start position and end position of the valid data to obtain a data collection table.
[0084] Specifically, data reception: the microprocessor (MCU) collects the duration of each high and low level of the port, identifies the regular characteristic preamble and the specific data preparation area (low level for a fixed duration), and then starts recording the data area. Figure 6 The data collection table shown in the example records the duration of high and low levels, and determines that data reception is complete based on the end characteristic level.
[0085] In one embodiment, a pulse width period state table is obtained by performing median estimation and period calculation according to the data collection table, including: constructing data points according to the level duration in the data collection table; constructing a big data analysis graph according to the data points; performing median estimation based on the big data analysis graph to select the median as a representative value and use the representative value as the median; analyzing the data collection table based on the median to obtain a pulse width period state table.
[0086] It is understandable that the M value (median) is estimated based on the data collection table time_length_table (such as Figure 7 As shown in the figure, the intermediate reference value M is calculated. In the Manchester encoding rule, the median M must meet the following conditions: the M value cannot be equal to the value of any point in the time_length_table; the M value must meet the middle position between the full cycle time value and the half cycle time value.
[0087] Specifically, the M value is obtained by statistically analyzing a large amount of measured data in the "time_length_table" in the data acquisition table. Based on the given signal baud rate (5000bps), the theoretical time for a complete data transmission cycle is calculated to be 200 microseconds (1s / 5000b / s=200μs / bit) as a reference. Specific method: Use these data points to construct a big data distribution map, and select the median as the representative value to ensure that the obtained M value can accurately reflect the central trend of the data set. Determine the M value based on the measured data sample (such as Figure 7 The blue horizontal line M value is 170), and the filter experience value range is given. In this example, the sampling point duration less than (0.58*M) or greater than (1.6*M) is an outlier. By removing the outliers, the impact of outliers and extreme values on the results can be reduced.
[0088] In one embodiment, the data acquisition table is analyzed based on the median to obtain a pulse width cycle state table, including: analyzing the level duration in the data acquisition table according to the median to classify each time period; marking the time period in which the level duration is greater than or equal to the median as a full cycle; marking the time period in which the level duration is less than the median as a half cycle; and constructing a pulse width cycle state table based on the full cycle, the half cycle and the data acquisition table.
[0089] Specifically, cycle calculation: After determining the median M, analyze the port level duration recorded in the "time_length_table". Classify each time period according to the median M: the time period with a duration exceeding the M value is regarded as representing a complete signal cycle, marked as "F" (full); conversely, if the duration does not reach the M value, it is regarded as half a cycle, marked as "H" (half). Through this process, a new data representation form, namely the pulse width cycle state table (such as Figure 8 In this embodiment, this conversion step is intended to intuitively reflect the characteristics of port level changes through simplified binary coding.
[0090] In one embodiment, a data decoding model is established based on Manchester encoding rules and level states, including: establishing a decoding model based on Manchester encoding rules and all level change states of the port; wherein the decoding model includes a full cycle, a half cycle, a previous bit value of the data bit, a data end bit, a data valid bit, and a data value.
[0091] It should be noted that the decoding model: based on the Manchester encoding characteristics and the data decoding basic model (such as Fig. 9 As shown in FIG. 1 , each bit value in the signal coding table (pulse width period state table) is decoded. The data decoding model is established based on the Manchester coding rule and all possible level change states of the port.
[0092] In one embodiment, the data in the pulse width cycle state table are decoded one by one according to the data decoding model to complete wireless data decoding, including: initializing the data decoding model to set the previous bit value of the data bit, the data end bit, the data valid bit and the data value to zero; judging each data in the pulse width cycle state table one by one according to Manchester coding characteristics and the data decoding model; decoding in sequence according to the previous bit value of the data bit, the data end bit, the data valid bit and the data value of each data to obtain decoded data.
[0093] Specifically, the basic process of data decoding is as follows:
[0094] a) Initialization, bit_pre data bit value is 0, bit_end data end bit is 0, bit_valid data valid bit is 0, bit_value data value is 0;
[0095] b) Judge each data in the pulse width cycle state table one by one and obtain the valid value of bit_value;
[0096] c) If Fig.10 In the example shown, the valid data encoding start signal is a half-cycle high level ( Fig.10 Middle red H), the data bit signal has not ended bit_end=0, and the decoding result value is invalid bit_valid=0;
[0097] d) The next code is a full cycle low level ( Fig.10 Middle green F), according to the previous data bit high level data bit not ending mark, it can be determined that the starting data bit decoding result is 1b. If the data is not fully decoded, this bit_value result will be used as the pre-value bit_pre=1 for the next encoding;
[0098] e) The next encoding is a full-cycle high level. According to the previous data bit value 1, the data bit ends 1, the data valid mark 1, and the bit value is invalid;
[0099] f) All data can be obtained by decoding in sequence.
[0100] It can be understood that Manchester coding is a coding method that uses level jumps to represent 1 or 0, such as Fig.10 As shown, a transition from high level to low level indicates 1, and a transition from low level to high level indicates 0. Fig.10 The example shown is decoded to 101010100001110111..., and the binary code is converted into hexadecimal, and the final decoding result is AA1D..., and all decoded data are obtained.
[0101] The above series of steps in this embodiment ensures efficient and accurate decoding of wireless radio frequency data inside the microprocessor, strengthens the system's autonomous decoding capability, reduces dependence on external hardware, improves the cost-effectiveness and system integration of the vehicle-mounted wireless sensor system, promotes the lightweight and intelligentization of automotive electronic systems, and achieves an optimal balance between cost and efficiency.
[0102] The present embodiment provides a method for decoding wireless vehicle-mounted radio frequency data, including: initializing and configuring a microprocessor and receiving input wireless vehicle-mounted radio frequency data; identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area, and the starting position and the ending position of the valid data; recording the received data based on the leading code, the data identification preparation area, and the starting position and the ending position of the valid data to obtain a data acquisition table; performing median estimation and cycle calculation according to the data acquisition table to obtain a pulse width cycle state table; establishing a data decoding model based on Manchester encoding rules and level states; decoding the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding. In the present embodiment, the wireless data decoding processing technology is integrated in the microprocessor, and the decoding processing of the wireless vehicle-mounted radio frequency data is directly performed by the microprocessor, which ensures the efficient and accurate decoding of the wireless radio frequency data in the microprocessor, strengthens the autonomous decoding capability, does not need to set the independent decoding chip requirement, reduces the dependence on external hardware, thereby greatly reducing the cost and simplifying the system structure, and improving the integration and economic benefits.
[0103] In addition, an embodiment of the present invention further provides a storage medium, on which a wireless vehicle-mounted radio frequency data decoding program is stored. When the wireless vehicle-mounted radio frequency data decoding program is executed by a processor, the steps of the wireless vehicle-mounted radio frequency data decoding method described above are implemented.
[0104] Reference Fig.11 , Fig.11 The structure block diagram of an embodiment of a wireless vehicle-mounted radio frequency data decoding system of the present invention.
[0105] like Fig.11 As shown, the wireless vehicle-mounted radio frequency data decoding system includes:
[0106] An initialization module 10, used for initializing and configuring the microprocessor and receiving input wireless vehicle radio frequency data;
[0107] The waveform recognition module 20 is used to recognize the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data recognition preparation area, and the starting position and the ending position of the valid data;
[0108] A data recording module 30, for recording the received data based on the preamble, the data identification preparation area, and the starting position and the ending position of the valid data to obtain a data collection table;
[0109] A data conversion module 40, used for performing median estimation and period calculation according to the data collection table to obtain a pulse width period state table;
[0110] A model building module 50, used to build a data decoding model based on Manchester coding rules and level states;
[0111] The data decoding module 60 is used to decode the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding.
[0112] In one embodiment, the wireless vehicle-mounted radio frequency data decoding system includes:
[0113] A wireless receiving chip is used to receive the wireless vehicle-mounted radio frequency data transmitted by the transmitting end;
[0114] A microcontroller, connected to the wireless receiving chip, for receiving the wireless vehicle-mounted radio frequency data transmitted by the wireless receiving chip and decoding the wireless vehicle-mounted radio frequency data;
[0115] Wherein, the microcontroller includes: the initialization module, the waveform recognition module, the data recording module, the data conversion module, the model building module and the data decoding module.
[0116] Specifically, Figure 3 In the wireless communication model shown, the signal sent by the transmitter module is received by the wireless receiving chip at the receiving end, and the wireless receiving chip transmits the single-port wireless data to the microcontroller for decoding, wherein the GPIO interface of the microcontroller is connected to the DATA interface of the wireless receiving chip and grounded. It can be understood that any submodule or system of the microcontroller described in this embodiment can adopt the same strategy to decode the wireless RF data.
[0117] In one embodiment, the initialization module 10 is specifically used for:
[0118] Initialize and configure the working environment of the microprocessor to start the decoding process;
[0119] Performing port configuration on the microprocessor to match wireless data reception;
[0120] After completing the initialization configuration and port configuration, collect the continuous input wireless vehicle RF data.
[0121] In one embodiment, the waveform recognition module 20 is specifically used for:
[0122] Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble;
[0123] Determine a data identification preparation area for the wireless vehicle-mounted radio frequency data based on the preamble;
[0124] The starting position and the ending position of the valid data are determined based on the data identification preparation area and the section identifier.
[0125] In one embodiment, the data conversion module 40 is specifically used for:
[0126] Constructing data points according to the duration of the level in the data collection table;
[0127] Constructing a big data analysis graph based on the data points;
[0128] Performing median estimation based on the big data analysis graph to select the median as a representative value and use the representative value as the median;
[0129] The data collection table is analyzed based on the median value to obtain a pulse width period state table.
[0130] In one embodiment, the data conversion module 40 is specifically used for:
[0131] Analyzing the duration of the level in the data collection table according to the median value to classify each time period;
[0132] Mark the period where the level lasts longer than or equal to the median as a full cycle;
[0133] Marking a period in which the level duration is less than the median as a half period;
[0134] A pulse width cycle state table is constructed based on the full cycle, the half cycle and the data acquisition table.
[0135] In one embodiment, the model building module 50 is specifically used to:
[0136] A decoding model is established based on Manchester encoding rules and all level change states of the port; wherein the decoding model includes a full cycle, a half cycle, a previous bit value of a data bit, a data end bit, a data valid bit and a data value.
[0137] In one embodiment, the data decoding module 60 is specifically used to:
[0138] Initializing the data decoding model to set the previous bit value of the data bit, the data end bit, the data valid bit and the data value to zero;
[0139] Determine each data in the pulse width cycle state table one by one according to Manchester coding characteristics and the data decoding model;
[0140] Decoding is performed in sequence according to the previous bit value of each data bit, the data end bit, the data valid bit and the data value to obtain the decoded data.
[0141] In this embodiment, wireless data decoding and processing technology is integrated into the microprocessor, and the wireless vehicle-mounted radio frequency data is directly decoded and processed by the microprocessor, ensuring efficient and accurate decoding of the wireless radio frequency data inside the microprocessor, enhancing the autonomous decoding capability, eliminating the need to set up an independent decoding chip, and reducing dependence on external hardware, thereby greatly reducing costs and simplifying the system structure, and improving integration and economic benefits.
[0142] It should be noted that the technical details not described in detail in the embodiment of the wireless vehicle-mounted radio frequency data decoding system can be found in the wireless vehicle-mounted radio frequency data decoding method described above provided in any embodiment of the present invention, and will not be repeated here.
[0143] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0144] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0145] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0146] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0147] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0148] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A wireless vehicle-mounted radio frequency data decoding method, characterized in that: include: Initialize and configure the microprocessor and receive input wireless vehicle radio frequency data; Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area, and the starting position and the ending position of the valid data; Record the received data based on the preamble, the data identification preparation area, and the starting position and ending position of the valid data to obtain a data collection table; Perform median estimation and period calculation according to the data acquisition table to obtain a pulse width period state table; Establish a data decoding model based on Manchester encoding rules and level status; The data in the pulse width cycle state table are decoded one by one according to the data decoding model to complete wireless data decoding.
2. The method according to claim 1, characterized in that The initialization configuration of the microprocessor and receiving input wireless vehicle radio frequency data includes: Initialize and configure the working environment of the microprocessor to start the decoding process; Performing port configuration on the microprocessor to match wireless data reception; After completing the initialization configuration and port configuration, collect the continuous input wireless vehicle RF data.
3. The method according to claim 1, characterized in that The identifying the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data identification preparation area and the starting position and the ending position of the valid data includes: Identify the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the preamble; Determine a data identification preparation area for the wireless vehicle-mounted radio frequency data based on the preamble; The starting position and the ending position of the valid data are determined based on the data identification preparation area and the section identifier.
4. The method according to claim 1, characterized in that The pulse width period state table is obtained by performing median estimation and period calculation according to the data collection table, including: Constructing data points according to the duration of the level in the data collection table; Constructing a big data analysis graph based on the data points; Performing median estimation based on the big data analysis graph to select the median as a representative value and use the representative value as the median; The data collection table is analyzed based on the median value to obtain a pulse width period state table.
5. The method according to claim 4, characterized in that The step of analyzing the data collection table based on the median value to obtain a pulse width cycle state table includes: Analyzing the duration of the level in the data collection table according to the median value to classify each time period; Mark the period in which the level lasts longer than or equal to the median as a full cycle; Marking a period in which the level duration is less than the median as a half period; A pulse width cycle state table is constructed based on the full cycle, the half cycle and the data acquisition table.
6. The method according to claim 1, characterized in that The data decoding model is established based on Manchester coding rules and level states, including: A decoding model is established based on Manchester encoding rules and all level change states of the port; wherein the decoding model includes a full cycle, a half cycle, a previous bit value of a data bit, a data end bit, a data valid bit and a data value.
7. The method according to any one of claims 1 to 6, characterized in that The step of decoding the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding includes: Initializing the data decoding model to set the previous bit value of the data bit, the data end bit, the data valid bit and the data value to zero; Determine each data in the pulse width cycle state table one by one according to Manchester coding characteristics and the data decoding model; Decoding is performed in sequence according to the previous bit value of each data bit, the data end bit, the data valid bit and the data value to obtain the decoded data.
8. A wireless vehicle-mounted radio frequency data decoding system, characterized in that: include: An initialization module, used for initializing and configuring the microprocessor and receiving input wireless vehicle radio frequency data; A waveform recognition module, used to recognize the characteristic waveform of the wireless vehicle-mounted radio frequency data to determine the leading code, the data recognition preparation area, and the starting position and the ending position of the valid data; A data recording module, used to record the received data based on the preamble, the data identification preparation area, and the starting position and the ending position of the valid data to obtain a data collection table; A data conversion module, used for performing median estimation and period calculation according to the data acquisition table to obtain a pulse width period state table; A model building module, used to build a data decoding model based on Manchester encoding rules and level states; The data decoding module is used to decode the data in the pulse width cycle state table one by one according to the data decoding model to complete wireless data decoding.
9. The system according to claim 8, characterized in that The wireless vehicle-mounted radio frequency data decoding system comprises: A wireless receiving chip is used to receive the wireless vehicle-mounted radio frequency data transmitted by the transmitting end; A microcontroller, connected to the wireless receiving chip, for receiving the wireless vehicle-mounted radio frequency data transmitted by the wireless receiving chip and decoding the wireless vehicle-mounted radio frequency data; Wherein, the microcontroller includes: the initialization module, the waveform recognition module, the data recording module, the data conversion module, the model building module and the data decoding module.
10. An electronic device, characterized in that: The electronic device includes: a memory, a processor, and a wireless vehicle-mounted radio frequency data decoding program stored in the memory and executable on the processor, wherein the wireless vehicle-mounted radio frequency data decoding program is configured to implement the wireless vehicle-mounted radio frequency data decoding method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Wireless data decoding method and system
CN113014522A
