SENT peripheral module data processing method based on hardware and controller

By configuring the data placement circuit and multiplexer in the SENT peripheral module, flexibly configuring the data storage sequence according to the sensor data type, the data processing complexity and delay problems caused by traditional fixed register mapping methods are solved, and efficient data is achieved Manage and respond quickly.

CN119127747APending Publication Date: 2024-12-13上海芯钛信息科技有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411302631.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

The traditional SENT peripheral module uses a fixed-position register mapping method to store data, resulting in increased data processing complexity and system delays when processing various types of sensor data, and actual application software needs to consume additional time and resources to adjust the data sequence.

Method used

By configuring the data placement circuit in the SENT peripheral module, the received sensor frame data is stored in the data position control register in the order of data position, and the storage sequence is determined according to the sensor data type, so as to realize the flexible configuration of data and Quick adjustments.

Benefits of technology

Improve data management efficiency, simplify data processing flow, reduce system delay, improve ECU response speed and overall performance, and avoid additional software resource consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127747A_ABST
    Figure CN119127747A_ABST
Patent Text Reader

Abstract

The invention relates to a hardware-based SENT peripheral module data processing method and a controller, and the method comprises the steps: configuring a data placement circuit at a SENT peripheral module through software, and carrying out the sequential placement of data positions realized by hardware before frame data received by the SENT peripheral module is placed into an FIFO storage unit in a hardware mode; frame data received by a SENT peripheral module is stored in a data position control register according to a data position sequence, so that the frame data received by the SENT peripheral module can be re-placed according to any required data position sequence according to the data position sequence requirement when actual sensor data is used; according to the method, the frame data are stored in a configurable data control register in the SENT peripheral module, so that the process of adjusting the sequence of the frame data in actual use is omitted, extra software resources are prevented from being occupied, the data processing speed is increased, and the efficiency of data management in the SENT peripheral module is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of data configuration, and relates to a hardware-based SENT peripheral module data processing method and a controller. Background Art

[0002] With the rapid development and popularization of new energy vehicles, more and more intelligent electronic modules are used in new energy vehicles, such as vehicle controllers, autonomous driving domain controllers and cockpit domain controllers. The application of these controllers is inseparable from the data collected by various sensors. SENT (Single Edge Nibble Transmission) signal is a communication digital signal. It is a signal form used to transmit data such as steering torque, angle sensor and pressure sensor on various models. In one frame transmission, the SENT signal can transmit up to 6 4-bit Data (4-bit data). At present, some products can support the transmission of up to 8 nibbles of data. After these transmitted data are received and stored by the SENT peripheral module of the MCU chip, they will be called by the application software and transmitted to other modules of the MCU chip for use, but these data are received in the order of Signal1 / Data1, Signal1 / Data2, Signal1 / Data3, Signal2 / Data1, Signal2 / Data2 and Signal2 / Data3, such as Figure 1 As shown, Signal and Data represent signal and data respectively, value represents value, ticks represents time stamp, Pause Pulse represents control frame, Optional represents optional, CRC / Checksum represents cyclic redundancy checksum / data checksum, Status communication represents communication status, and Synchronization / Calibration represents synchronization and calibration.

[0003] However, traditional SENT peripheral modules usually use a fixed-position register mapping method to store the received 32-bit data, which limits the system's adaptability to the diverse data formats of various types of sensors. This fixed-position register mapping method is inadequate in applications that require complex data structures and high flexibility. For example, when processing multi-channel and multi-type sensor data, a fixed data storage location will increase the complexity of data processing and system latency. In addition, the actual application software may use frame data in a different order than the order in which it is received. In this case, the application software will need to consume additional time and resources to process the data it needs to use, resulting in a technical problem of low data management efficiency. Summary of the invention

[0004] In view of the problems existing in the above-mentioned traditional methods, the present invention proposes a hardware-based SENT peripheral module data processing method, an electronic controller, a computer device and a computer-readable storage medium, which can effectively improve the efficiency of data management in the SENT peripheral module.

[0005] In order to achieve the above objectives, the embodiments of the present invention adopt the following technical solutions:

[0006] On the one hand, a hardware-based SENT peripheral module data processing method is provided, comprising the steps of:

[0007] Get the sensor data type currently used by the electronic controller to which the SENT peripheral module belongs;

[0008] Determine the data position sequence required when the electronic controller calls the sensor data stored in the SENT peripheral module according to the sensor data type;

[0009] Use the data position sequence to configure the data position control register in the SENT peripheral module;

[0010] In the SENT peripheral module, the received sensor frame data is stored in the data position control register according to the data position sequence through the data placement circuit; the data placement circuit includes 8 multiplexers.

[0011] On the other hand, an electronic controller is also provided, comprising a controller body and a SENT peripheral module, wherein the data storage order of the data position control register in the SENT peripheral module is configured as the data position order required when the controller body calls the sensor data stored in the data position control register; the data position order is determined based on the type of sensor data currently used by the controller body, and a data placement circuit is configured in the SENT peripheral module, and the data placement circuit includes 8 multiplexers;

[0012] When the SENT peripheral module receives the sensor frame data, the data placement circuit is used to store the sensor frame data into the data position control register according to the data position sequence.

[0013] On the other hand, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned hardware-based SENT peripheral module data processing method when executing the computer program.

[0014] On the other hand, a computer-readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above-mentioned hardware-based SENT peripheral module data processing method are implemented.

[0015] One of the above technical solutions has the following advantages and beneficial effects:

[0016] The above-mentioned hardware-based SENT peripheral module data processing method and controller configure a data placement circuit in the SENT peripheral module by software, and first perform hardware-implemented data position sequence placement before the frame data received by the SENT peripheral module is placed into the FIFO storage unit in a hardware manner, and the frame data received by the SENT peripheral module is stored in the data position control register according to the data position sequence. In this way, according to the data position sequence requirements when the actual sensor data is used, the frame data received by the SENT peripheral module can be rearranged in the data position sequence according to any required data position sequence, and then stored in the configurable data control register in the SENT peripheral module, thereby eliminating the need to adjust the frame data sequence during actual use, avoiding the occupation of additional software resources, improving the data processing speed, and thereby improving the efficiency of data management in the SENT peripheral module.

[0017] Based on the above hardware design ideas, the system where the SENT peripheral module is located can flexibly configure the 32-bit data received by each sensor at different positions in the data control register, and when the sensor data changes or the system status changes, the data position order can be quickly adjusted through software configuration. This not only simplifies the data processing process, but also greatly reduces the delay of the system where the SENT peripheral module is located, and improves the response speed and overall performance of the ECU. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the conventional technology, the drawings required for use in the embodiments or the conventional technology descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0019] Figure 1 This is a traditional data receiving protocol diagram;

[0020] Figure 2 1 is a flow chart of a method for processing data of a SENT peripheral module based on hardware in one embodiment;

[0021] Figure 3 A schematic diagram of the structure of a data placement circuit in one embodiment;

[0022] Figure 4 A schematic diagram of a default sequence of sensor frame data received by a SENT peripheral module in one embodiment;

[0023] Figure 5 It is a schematic diagram of a data control register storing sensor frame data after hardware arrangement in one embodiment. DETAILED DESCRIPTION

[0024] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with the accompanying drawings and Examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by those skilled in the art of the present invention. The terms used in the specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention.

[0025] It should be noted that the reference to "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The presentation of this phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It will be appreciated by those skilled in the art that the embodiments described herein may be combined with other embodiments. The term "and / or" used in the specification of the present invention and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.

[0026] The following will describe the implementation of the present invention in detail with reference to the accompanying drawings in the embodiment diagram of the present invention.

[0027] Since the order in which the SENT peripheral module receives data from sensors is fixed, the data received by the SENT peripheral module is usually stored in the FIFO (First In, First Out) storage unit inside the module. The SENT peripheral module receives data frames from data sources such as sensors through single-line transmission. Each data frame contains multiple nibbles (4-bit data blocks), which represent the measurement values, status information, and possible CRC check information of the sensor. The received data will be stored in the FIFO storage unit inside the SENT peripheral module in sequence. The function of the FIFO storage unit is to ensure that the data is stored in the order in which it is received to avoid data loss or confusion due to processing modules of different speeds. The data stored in the FIFO storage unit can be read in sequence by the processor or controller for further processing or for control decisions. This method ensures the order consistency of the data and the timeliness of processing. In the current increasingly intelligent automotive application scenarios, when the frame data order needs to be adjusted in actual use, this will take up too many software resources and require CPU operations such as instruction fetching and data fetching.

[0028] In one embodiment, Figure 2As shown, a hardware-based SENT peripheral module data processing method is provided, which may include the following processing steps S10 to S16:

[0029] S10, obtaining the sensor data type currently used by the electronic controller to which the SENT peripheral module belongs; the sensor data type may include the data format and data structure of various types of sensor data used in the current application scenario, covering the sensor data that the SENT peripheral module needs to receive in the current application scenario.

[0030] S12, determining the data position sequence required when the electronic controller calls the sensor data stored in the SENT peripheral module according to the sensor data type.

[0031] It is understandable that in the application scenario of automobile intelligence, when the actual application software uses the sensor frame data, the data order of the sensor frame data it calls may be different from the order in which the sensor frame data is received. In the previous SENT peripheral module, a fixed-position register mapping method is usually used to store the received sensor frame data, which means that when the application software uses the sensor frame data, it usually needs to consume extra time and resources to process the read data into the required data order before it can be used. In order to avoid this situation, in this embodiment, the data position order that the received sensor frame data should follow when it is stored is first determined in the SENT peripheral module.

[0032] S14, configuring the data position control register in the SENT peripheral module using the data position sequence.

[0033] It can be understood that the data position control register can be recorded as data_ctrl, which is a register component in the FIFO storage unit in the SENT peripheral module. By configuring the frame storage order of the data position control register data_ctrl to the data position order in advance, the received sensor frame data can be placed in it according to the set data order.

[0034] S16, in the SENT peripheral module, the received sensor frame data is stored in the data position control register according to the data position sequence through the data placement circuit; the data placement circuit includes 8 multiplexers, and the electronic controller can directly call the sensor frame data stored in the data position control register for use, and no longer needs to consume extra time and resources to process the read data into the required data sequence before use.

[0035] It can be understood that the data placement circuit is a hardware part composed of 8 multiplexers, and modern ECUs are usually highly programmable. Developers can program the configuration of each integrated circuit component through embedded software or firmware, for example, different sensor inputs can be selected in different operating modes, or the order of data processing can be adjusted in different time series. In this embodiment, the multiplexer device integrated in the ECU can be called by software configuration to be constructed for data selection and adjustment of data position sequence. The input end of the data placement circuit is the input pin of each multiplexer, which is used to access the frame data received by the SENT peripheral module, and the output end of the data placement circuit is the output pin of each multiplexer, which is used to output the data after the data position is placed in the order of data position, so as to accurately store the data in the corresponding position of the data position control register.

[0036] Accordingly, in order to improve the processing speed of the data received by the SENT peripheral module and reduce the consumption of CPU software resources, this embodiment uses hardware to place the frame data received by the SENT peripheral module in a hardware-implemented order before placing the frame data received by the SENT peripheral module into the FIFO storage unit. The frame data received by the SENT peripheral module can be stored in the configurable data control register data_ctrl (obtained from the register in the configurable FIFO storage unit) in the SENT peripheral module in any order, which is beneficial to improving the data processing speed. Specifically, the following can be used Figure 3 The hardware design (i.e., data placement circuit) composed of 8 multiplexers (MUX) shown in the figure jointly splices the frame data received by the SENT peripheral module, and each multiplexer is used to select a required nibbles (i.e., 4 bits) of data. By configuring the data position control register data_ctrl in advance once, the received data can be placed in order in advance.

[0037] The above-mentioned hardware-based SENT peripheral module data processing method configures a data placement circuit in the SENT peripheral module by software, and first performs hardware-implemented data position sequence placement before the frame data received by the SENT peripheral module is placed into the FIFO storage unit in a hardware manner, and the frame data received by the SENT peripheral module is stored in the data position control register according to the data position sequence. In this way, according to the data position sequence requirements when the actual sensor data is used, the frame data received by the SENT peripheral module can be rearranged in the data position sequence according to any required data position sequence, and then stored in the configurable data control register in the SENT peripheral module, thereby eliminating the need to adjust the frame data sequence during actual use, avoiding the occupation of additional software resources, improving the data processing speed, and thereby improving the efficiency of data management in the SENT peripheral module.

[0038] Based on the above hardware design ideas, the system where the SENT peripheral module is located can flexibly configure the 32-bit data received by each sensor at different positions in the data control register, and when the sensor data changes or the system status changes, the data position order can be quickly adjusted through software configuration. This not only simplifies the data processing process, but also greatly reduces the delay of the system where the SENT peripheral module is located, and improves the response speed and overall performance of the ECU.

[0039] like Figure 4 The following is the sensor frame data (default) received by the SENT peripheral module: Figure 5 The data control register data_ctrl is shown to store the sensor frame data after the data position sequence is implemented by hardware. The specific description can be as follows:

[0040] The value of the data control register data ctr1 is 32'h65420173, then the 6th data of the sensor frame data received by the SENT peripheral module is placed at [31:28], the 5th data of the sensor frame data received by the SENT peripheral module is placed at [27:24], the 4th data of the sensor frame data received by the SENT peripheral module is placed at [23:20], the 2nd data of the sensor frame data received by the SENT peripheral module is placed at [19:16], the 0th data of the sensor frame data received by the SENT peripheral module is placed at [15:12], the 1st data of the sensor frame data received by the SENT peripheral module is placed at [11:8], the 7th data of the sensor frame data received by the SENT peripheral module is placed at [7:4], and the 3rd data of the sensor frame data received by the SENT peripheral module is placed at [3:0].

[0041] In one embodiment, when the data format of the sensor frame data is less than 8 nibbles, the data at positions corresponding to the nibbles in the data position control register that are greater than the nibbles in the frame data format are invalid data.

[0042] It can be understood that if the data format of the sensor frame data is less than 8 nibbles, for example, the sensor frame data is 3 nibbles, the data at the positions corresponding to the values ​​of "3, 4, 5, 6, 7" of the data control register data ctr1 are invalid data, thereby ensuring that the data is correctly stored while achieving adaptation to different data formats.

[0043] In one embodiment, the sensor frame data includes temperature sensor frame data, pressure sensor frame data, angle sensor frame data, and steering torque frame data. It is understandable that the sensor frame data may vary according to different automotive intelligent application scenarios. Generally, the sensor frame data may be the various types of data shown above, or other types of data, such as various radar detection data, covering the data processing requirements of the SENT peripheral module in various application scenarios.

[0044] The improved SENT peripheral module can be integrated into an electronic control unit (ECU) that needs to process data from multiple sensors, such as temperature sensors and pressure sensors. Different sensors have different data formats and structures. Through the hardware design of the present invention, the system can flexibly configure the 32-bit data received by each sensor in different positions in the data control register, and quickly adjust the data position through configuration when the sensor data changes or the system state changes. This design not only simplifies the data processing process, but also greatly reduces system latency and improves the response speed and overall performance of the ECU.

[0045] Compared with traditional technologies, through the configurable data control register data_ctrl, users can flexibly define and adjust the placement of 32-bit data in the data control register data_ctrl to adapt to different sensor data formats. The hardware-implemented data location configuration and reconfiguration mechanism ensures efficient data processing and reduces system latency.

[0046] In one embodiment, the improved SENT peripheral module may also adopt a low power design strategy to ensure that the SENT peripheral module in the ECU system maintains low energy consumption while achieving high flexibility, which is suitable for long-term running vehicle systems.

[0047] It can be understood that low-power design strategies can be designed from multiple aspects, such as designing low-power modes (Power Modes), including Sleep Mode, Deep Sleep Mode, and Timed Wakeup. In Sleep Mode, when the SENT peripheral module does not need to transmit data, it can enter Sleep Mode or Standby Mode, in which the power consumption of the module is significantly reduced; it will only wake up from Sleep Mode when it detects data or instructions that need to be processed. In Deep Sleep Mode, when it is not needed for a longer period of time, the SENT peripheral module can enter Deep Sleep Mode to further reduce power consumption. In this mode, non-essential circuit parts in the module will be completely powered off and shut down, and only a few key circuit parts will maintain the lowest power consumption operation state. In Timed Wakeup, in Sleep or Deep Sleep Mode, the SENT peripheral module can be periodically woken up by setting a timer to check whether there is data to be processed.

[0048] Or, for example, design dynamic voltage and frequency scaling (DVFS), that is, dynamically adjust the operating voltage and frequency of the SENT peripheral module according to the load demand; when the data transmission demand is low, reduce the operating frequency and voltage of the SENT peripheral module to reduce power consumption; when the transmission demand increases, increase the frequency and voltage of the SENT peripheral module to meet the performance requirements.

[0049] Or, for example, an auto-shutdown function may be designed so that the SENT peripheral module is automatically shut down when it is inactive. That is, the SENT peripheral module is designed so that it automatically shuts down some or all functional units when there is no data transmission activity. This design can be achieved by monitoring data traffic and activity signals.

[0050] Or, for example, design low-power clock management and set a low-frequency clock source. When the SENT peripheral module is in low-power mode, it can switch to the low-frequency clock source to reduce the power consumption of clock-related circuits. Set clock gating: Reduce the power consumption of these modules by turning off the clock signals of unused modules in the SENT peripheral module; in the SENT peripheral module, if some logic units are not needed temporarily, clock gating can be used to stop supplying time to these units, thereby reducing power consumption.

[0051] Or, for example, hardware optimization can be performed by using low-power process technology, such as selecting low-power semiconductor process technology to manufacture SENT peripheral modules to reduce overall power consumption. These technologies may include using transistors with low leakage current and more efficient power management design. Or the logic circuits within the SENT peripheral modules can be optimized to reduce unnecessary signal switching and reduce the dynamic power consumption of its circuits.

[0052] Another example is to optimize data transmission, compress the sensor frame data received by the SENT peripheral module before data transmission, reduce the number of bytes transmitted, and thus reduce the time and frequency of transmission activities. Or batch data processing is used, that is, multiple small-scale data processing is concentrated together to reduce frequent wake-up and processing, which can extend the sleep time of the module and reduce average power consumption.

[0053] Alternatively, temperature sensing and management can be used to monitor the temperature of the SENT peripheral module using the temperature sensor integrated on the ECU. When the temperature rises, the power consumption can be reduced by lowering the operating frequency of the module or entering a low-power mode to prevent additional energy consumption caused by overheating. Alternatively, an on-chip power management unit (PMU) can be used. For example, an on-chip power management unit can be integrated into the SENT peripheral module during design to dynamically manage its power distribution and mode switching, so that the module can automatically adjust the power supply under different operating conditions, thereby achieving optimal power consumption performance.

[0054] The comprehensive application of these low-power design strategies in the above examples can significantly reduce the power consumption of SENT peripheral modules, extend the battery life of ECU and even vehicles, and improve the energy efficiency of the vehicle control system. These methods can be selected in the design process considering the needs of actual application scenarios to ensure that the performance and reliability of the SENT module are not affected while reducing power consumption.

[0055] It should be understood that although Figure 2 The steps in the method are shown in sequence as indicated by the arrows, but the steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of the steps, and the steps can be executed in other orders. Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequentially, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0056] In one embodiment, an electronic controller is provided, which may include a controller body and a SENT peripheral module. The data storage order of the data position control register in the SENT peripheral module is configured as the data position order required when the controller body calls the sensor data stored in the data position control register; the data position order is determined based on the sensor data type currently used by the controller body, and a data placement circuit is configured in the SENT peripheral module, and the data placement circuit includes 8 multiplexers. When the SENT peripheral module receives sensor frame data, the data placement circuit is used to store the sensor frame data in the data position control register according to the data position order.

[0057] It can be understood that the controller body refers to other components in the ECU except the SENT peripheral module.

[0058] The above-mentioned electronic controller configures a data placement circuit by software in the SENT peripheral module, and first performs hardware-implemented data position sequence placement before the frame data received by the SENT peripheral module is placed into the FIFO storage unit in a hardware manner, and stores the frame data received by the SENT peripheral module into the data position control register according to the data position sequence. In this way, according to the data position sequence requirements when the actual sensor data is used, the frame data received by the SENT peripheral module can be rearranged in the data position sequence according to any required data position sequence, and then stored in the configurable data control register in the SENT peripheral module, thereby eliminating the need to adjust the frame data sequence during actual use, avoiding the occupation of additional software resources, improving the data processing speed, and thereby improving the efficiency of data management in the SENT peripheral module.

[0059] Based on the above hardware design ideas, the system where the SENT peripheral module is located can flexibly configure the 32-bit data received by each sensor at different positions in the data control register, and when the sensor data changes or the system status changes, the data position order can be quickly adjusted through software configuration. This not only simplifies the data processing process, but also greatly reduces the delay of the system where the SENT peripheral module is located, and improves the response speed and overall performance of the ECU.

[0060] In one embodiment, when the data format of the sensor frame data is less than 8 nibbles, the data at positions corresponding to the nibbles in the data position control register that are greater than the nibbles in the frame data format are invalid data.

[0061] In one embodiment, the sensor frame data includes at least temperature sensor frame data, pressure sensor frame data, angle sensor frame data, and steering torque frame data.

[0062] For the specific definition of the electronic controller, please refer to the corresponding definition of the hardware-based SENT peripheral module data processing method mentioned above, which will not be repeated here. Each module in the above-mentioned electronic controller can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of a device with data processing functions in the form of hardware, or can be stored in the memory of the aforementioned device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. The aforementioned device can be, but is not limited to, various types of vehicle-mounted control computers already available in the art.

[0063] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the following processing steps when executing the computer program: obtaining the sensor data type currently used by the electronic controller to which the SENT peripheral module belongs; determining the data position sequence required when the electronic controller calls the sensor data stored in the SENT peripheral module according to the sensor data type; configuring the data position control register in the SENT peripheral module using the data position sequence; storing the received sensor frame data in the data position control register according to the data position sequence through a data placement circuit in the SENT peripheral module; the data placement circuit includes 8 multiplexers.

[0064] In one embodiment, when the processor executes the computer program, the added steps or sub-steps in each embodiment of the above-mentioned hardware-based SENT peripheral module data processing method can also be implemented.

[0065] 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 following processing steps are implemented: obtaining the sensor data type currently used by the electronic controller to which the SENT peripheral module belongs; determining the data position sequence required when the electronic controller calls the sensor data stored in the SENT peripheral module according to the sensor data type; configuring the data position control register in the SENT peripheral module using the data position sequence; storing the received sensor frame data in the data position control register according to the data position sequence through a data placement circuit in the SENT peripheral module; the data placement circuit includes 8 multiplexers.

[0066] In one embodiment, when the computer program is executed by a processor, it can also implement the steps or sub-steps added in each embodiment of the above-mentioned hardware-based SENT peripheral module data processing method.

[0067] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program. 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 memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus dynamic random access memory (RambusDRAM, referred to as RDRAM) and interface dynamic random access memory (DRDRAM).

[0068] 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 specification.

[0069] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of protection of the invention. It should be pointed out that, for those of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, which all belong to the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the attached claims.

Claims

1. A hardware-based SENT peripheral module data processing method, characterized in that: Includes steps: Get the sensor data type currently used by the electronic controller to which the SENT peripheral module belongs; Determining, according to the sensor data type, a data position sequence required when the electronic controller calls the sensor data stored in the SENT peripheral module; configuring a data position control register in the SENT peripheral module using the data position sequence; In the SENT peripheral module, the received sensor frame data is stored in the data position control register according to the data position sequence through a data placement circuit; the data placement circuit includes 8 multiplexers.

2. The hardware-based SENT peripheral module data processing method according to claim 1, characterized in that: When the data format of the sensor frame data is less than 8 nibbles, the data at positions corresponding to the nibbles in the data position control register that are greater than the nibbles in the frame data format are invalid data.

3. The hardware-based SENT peripheral module data processing method according to claim 1 or 2, characterized in that: The sensor frame data includes temperature sensor frame data, pressure sensor frame data, angle sensor frame data and steering torque frame data.

4. An electronic controller, characterized in that: It includes a controller body and a SENT peripheral module, wherein the data storage order of the data position control register in the SENT peripheral module is configured as the data position order required when the controller body calls the sensor data stored in the data position control register; the data position order is determined based on the sensor data type currently used by the controller body, and the SENT peripheral module is configured with a data placement circuit, and the data placement circuit includes 8 multiplexers; When the SENT peripheral module receives the sensor frame data, the data placement circuit is used to store the sensor frame data into the data position control register according to the data position sequence.

5. The electronic controller according to claim 4, characterized in that: When the data format of the sensor frame data is less than 8 nibbles, the data at positions corresponding to the nibbles in the data position control register that are greater than the nibbles in the frame data format are invalid data.

6. The electronic controller according to claim 4 or 5, characterized in that: The sensor frame data includes temperature sensor frame data, pressure sensor frame data, angle sensor frame data and steering torque frame data.

7. 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 hardware-based SENT peripheral module data processing method according to any one of claims 1 to 3 are implemented.

8. 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 hardware-based SENT peripheral module data processing method according to any one of claims 1 to 3 are implemented.

Citation Information

Cited By

  • Data processing system, data processing method and storage medium

    CN119958629A