A display screen interaction logic mapping method based on spatial perception data
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-14
- Publication Date
- 2026-08-11
AI Technical Summary
[0004]为了弥补以上不足,本发明提供了一种基于空间感知数据的显示屏交互逻辑映射方法,旨在改善传统的旋钮大多采用线性脉冲累加,由于转速突变与线性响应存在动力学错位,从而造成快速旋转时UI焦点过调越界的问题
1、本发明中,通过将脉冲间隔倒数代入对数模型解算并执行双轨约束,进而使界面跳转跨度随转速非线性收敛并受钳位,从而改善了传统的旋钮大多采用线性脉冲累加,由于转速突变与线性响应存在动力学错位,从而造成快速旋转时UI焦点过调越界的问题。
Smart Images

Figure CN122547260A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of human-computer interaction technology for smart home appliances, and in particular to a display screen interaction logic mapping method based on spatial perception data. Background Technology
[0002] In smart knob controller applications with displays, users interact with multi-level interfaces by physically rotating the knob. Existing display interaction logic mapping schemes mostly employ a purely linear pulse accumulation mechanism to drive the underlying state machine when handling physical rotation actions.
[0003] However, when using purely physical knobs to navigate across large areas of the interface or fine-tune parameters, the user's physical operation intentions are often non-linear. When the user rapidly rotates the knob to find a target node or slowly fine-tunes a specific value, there is a serious dynamic misalignment between the purely linear digital mapping mechanism and the user's expected non-linear physical action response. This results in severe over-adjustment of the UI focus during rapid rotation and sluggish response during slow fine-tuning. Summary of the Invention
[0004] To overcome the above shortcomings, this invention provides a display screen interaction logic mapping method based on spatial perception data, which aims to improve the problem that traditional knobs mostly use linear pulse accumulation, and the UI focus is over-adjusted and goes out of bounds when rotating rapidly due to dynamic misalignment between sudden speed changes and linear response.
[0005] This invention provides the following technical solution: a display screen interaction logic mapping method based on spatial perception data, applied to an intelligent interaction system, comprising the following steps: S1: Obtain effective physical pulses generated by continuous rotational actions subject to physical constraints, and extract the rotational polarity characteristics of the effective physical pulses and the time interval characteristics of two adjacent effective physical pulses; S2: Calculate the reciprocal of the time interval feature to obtain the instantaneous angular velocity, substitute the instantaneous angular velocity into the preset logarithmic perception mapping model to perform the underlying solution operation, and generate a floating-point step value; S3: Perform an integer truncation operation on the floating-point step value, and perform an extremum limit operation using the preset maximum allowable step constant. Combined with the rotation polarity feature, generate a target step offset with directional attributes. S4: Determine the interactive logic node attribute of the currently displayed interface. If the interactive logic node attribute is a discrete business node attribute, perform a modulo closed-loop operation on the sum of the initial node index and the target discrete step offset to calculate the target logic node index of the first and last loop. If the interactive logic node attribute is a continuous parameter node attribute, perform a clamping restriction operation on the sum of the initial parameter setting value and the target discrete step offset to calculate the target logic node index with boundaries. S5: Initiate a fixed-point image resource scheduling request based on the target logical node index, and drive the display device to execute the fixed-point screen refresh instruction.
[0006] By adopting the above technical solution, the inverse of the pulse interval is substituted into the logarithmic model for calculation and dual-track constraint is executed, thereby making the interface jump span nonlinearly converge with the rotation speed and clamped. This improves the problem that traditional knobs mostly use linear pulse accumulation, which causes the UI focus to overshoot the limit when rotating rapidly due to the dynamic misalignment between the sudden change in rotation speed and the linear response.
[0007] The present invention has the following beneficial effects: 1. In this invention, by substituting the reciprocal of the pulse interval into the logarithmic model for calculation and executing dual-track constraints, the interface jump span is nonlinearly converged with the rotation speed and clamped, thereby improving the problem that traditional knobs mostly use linear pulse accumulation, which causes the UI focus to overshoot the limit when rotating rapidly due to the dynamic misalignment between the sudden change in rotation speed and the linear response.
[0008] 2. In this invention, the orthogonal electrical signals are guided through a physical resistor-capacitor low-pass filter link to perform cleaning, thereby filtering out high-frequency mechanical jitter levels from the physical layer. This improves the problem that traditional pulse acquisition mostly uses software delay debouncing, which is easily interfered with by software interruption in complex electromagnetic environments, resulting in the microcontroller frequently recording incorrect count values.
[0009] 3. In this invention, by comparing the summation variable with the absolute safety upper and lower limit thresholds and performing forced replacement truncation, the physical parameters are forcibly locked within the safety boundary, thereby improving the problem that traditional parameter adjustment mostly uses unbounded numerical accumulation, which lacks the underlying logic for executing extreme values, resulting in parameter settings exceeding the physical limits of the equipment.
[0010] 4. By sending a heartbeat to the hardware watchdog and receiving a reset level after a timeout, the system is forced to reset its base state when the bus is deadlocked. This improves the problem that traditional display drivers mostly use internal spin-wait, which can easily cause communication bus congestion due to high-load rendering, resulting in the device's interactive interface freezing completely. Attached Figure Description
[0011] Figure 1This is a flowchart of a display screen interaction logic mapping method based on spatial perception data proposed in this invention; Figure 2 This is a flowchart of an effective physical impulse and temporal feature extraction method for display screen interaction logic mapping based on spatial perception data proposed in this invention. Figure 3 This is a flowchart of the underlying nonlinear mapping and boundary quantization process of a display screen interaction logic mapping method based on spatial perception data proposed in this invention. Figure 4 This is a flowchart of the state machine dual-track logic branch judgment and update process for a display screen interaction logic mapping method based on spatial perception data proposed in this invention. Figure 5 This is a flowchart illustrating the parallel security process of resource scheduling and hardware reset monitoring for a display screen interaction logic mapping method based on spatial perception data proposed in this invention. Detailed Implementation
[0012] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0013] Example 1: In a first embodiment of the present invention, the present invention provides a display screen interaction logic mapping method based on spatially perceived data, such as... Figures 1-2 As shown, it includes the following steps: S1: Obtain the effective physical pulses generated by continuous rotational motions subject to physical constraints, and extract the rotational polarity features of the effective physical pulses and the time interval features between two adjacent effective physical pulses. Furthermore, in S1, acquiring effective physical pulses based on continuous rotational motion subject to physical constraints includes: receiving two initial orthogonal electrical signals containing a phase difference triggered by an external mechanical knob overcoming damping torque; The two initial orthogonal electrical signals are guided to pass in parallel through a physical RC low-pass filter link constructed by a pull-up resistor network, a series isolation network, and a bypass grounding network; The high-frequency mechanical jitter level in the two initial quadrature electrical signals is filtered out, and the effective physical pulse after high-frequency cleaning is output to the bottom input capture register.
[0014] In S1, the rotational polarity features of the effective physical pulses and the time interval features of two adjacent effective physical pulses are extracted, including: comparing the phase lead or lag logic relationship between the two effective physical pulses, and determining the direction multiplier of the rotational polarity features based on the comparison results; Trigger the external interrupt channel of the underlying hardware timer to capture valid edge transition events of valid physical pulses; Read the count value variable of the underlying hardware timer between two consecutive valid edge transition events, and convert the count value variable into a time interval feature in the time domain.
[0015] Specifically, in S1, the system establishes a signal mapping from physical actions to digital characteristics. When an external mechanical knob rotates against its own damping torque, it triggers two initial quadrature electrical signals. These two signals are connected to a physical RC low-pass filter link, which consists of a 10kΩ pull-up resistor network, a 100Ω series isolation network, and a 10nm bypass ground network. The low-pass channel formed by the resistor and capacitor filters out high-frequency mechanical jitter levels from the two initial quadrature electrical signals. The valid physical pulse generated after filtering out noise is transmitted to the microcontroller's low-level input capture register. This hardware-level filtering preprocessing cuts off the path for high-frequency noise to cause frequent erroneous interrupts triggered by the microcontroller, ensuring the accuracy of subsequent counting.
[0016] After receiving a valid physical pulse, the microcontroller compares the phase lead or lag logic between the two pulses. If it determines that the first phase level changes before the second phase level, the direction multiplier for the rotational polarity characteristic is set to positive 1. If it determines that the first phase level changes after the second phase level, the direction multiplier is set to negative 1. The direction multiplier is used to subsequently determine whether the interface focus shifts to the left or right.
[0017] To quantify the speed of rotation, the microcontroller uses the external interrupt channel of the underlying hardware timer to capture edge-transition events of valid physical pulses. It reads the count value variable accumulated by the underlying hardware timer between two adjacent edge-transition events and then converts the count value variable into a time-domain time interval feature.
[0018] The formula for time-domain data conversion is as follows: ; in This represents the calculated time interval characteristic, measured in seconds. This variable represents the count value between two consecutive transition events read by the underlying hardware timer; it is a dimensionless integer. This represents the operating clock frequency of the underlying hardware timer configuration, measured in Hertz.
[0019] This step creates a unidirectional data flow from input to output. The electrical signal generated by the original mechanical motion is cleaned by a physical capacitor-resistor network, outputting a pure pulse square wave. This wave is then converted into digital domain direction multipliers and time characteristics by the microcontroller's interrupt register, and directly provided to the next level of nonlinear sensing mapping model as source computation data.
[0020] like Figure 3 As shown, S2: Calculate the reciprocal of the time interval feature to obtain the instantaneous angular velocity, substitute the instantaneous angular velocity into the preset logarithmic perception mapping model to perform the underlying solution operation, and generate a floating-point step value; Furthermore, in S2, the reciprocal of the time interval feature is calculated to obtain the instantaneous angular velocity. This instantaneous angular velocity is then substituted into a preset logarithmic perceptual mapping model to perform underlying calculations, generating floating-point step values, including: Based on the microprocessor clock frequency, the reciprocal division operation is performed on the time interval characteristics to extract the instantaneous angular velocity characterizing the intensity of the physical action stimulus; Obtain the pre-calibrated noise floor velocity threshold parameter and calculate the ratio of instantaneous angular velocity to the noise floor velocity threshold parameter; The ratio data and the preset gain constant are imported into the natural logarithm function engine for compound summation to calculate the real variables that exhibit a nonlinear convergence trend. The real variables are then determined as floating-point step values.
[0021] Specifically, in S2, the microprocessor receives the time interval feature data stream generated by the preceding operation. The microprocessor's arithmetic logic unit performs a reciprocal division operation on this time interval feature based on the clock frequency to calculate the instantaneous angular velocity characterizing the intensity of the physical rotational motion stimulus.
[0022] The specific formula for reciprocal operations is: ; in This represents the calculated instantaneous angular velocity, with dimensions in Hertz. The time interval characteristic represents the input, measured in seconds.
[0023] The system retrieves a pre-calibrated noise floor velocity threshold parameter from its built-in non-volatile memory. The arithmetic logic unit executes a division instruction to calculate the ratio of the instantaneous angular velocity to this noise floor velocity threshold parameter. After obtaining the ratio data, the microprocessor extracts a preset Weber gain constant and imports this constant along with the ratio data into its internal natural logarithm function engine to perform a composite product operation, ultimately solving for the real variable exhibiting a non-linear convergence trend.
[0024] The mapping formula for the underlying solution operations is: ; in This represents the floating-point step value of the solution output, which is a dimensionless continuous real number. Represented by constants The natural logarithm operator with base . This represents the instantaneous angular velocity obtained previously. The constants in the further formulas are then subjected to the following engineering calibration steps to determine their specific values: for the noise floor velocity threshold parameter... With the equipment stationary and inactive, the highest frequency of noise pulses triggered by environmental vibration and physical clearance in the encoder was tested and extracted. A safety threshold of 1.5 to 2.0 times this frequency is set. The recommended engineering value range is 2.0–5.0 pulses / ms; this applies to the Weber gain constant. According to the rated external mechanical knob Physical damping torque; establish an inverse proportional fitting curve between damping torque and gain; within the rated damping range of this embodiment... The value range is defined as 10.0–15.0. Furthermore, to accommodate the fixed-point computing power limitations of the underlying microcontroller, the natural logarithm operator… The engineering implementation does not call high-overhead floating-point math libraries, but instead uses a pre-built piecewise one-dimensional lookup table combined with an approximation algorithm based on the first three terms of a Taylor series expansion. While maintaining the monotonicity of the mapping response, it outputs real-valued variables exhibiting a non-linear convergence trend. The constant 1 is used as an addend to ensure that the argument is always greater than or equal to 1, preventing negative results.
[0025] This step cuts off the runaway path of traditional linear algorithms that directly amplify the number of pulses proportionally, leading to pointer overflows. Logarithmic functions inherently possess the mathematical characteristic of large derivatives in low-speed domains and small derivatives in high-speed domains. When the user slowly rotates the knob, the floating-point step value is highly sensitive to speed changes, ensuring accurate feedback of the value step by step. When the user rapidly rotates the knob, the resulting extremely high instantaneous angular velocity is compressed by the logarithmic engine, causing the output floating-point step value to converge. This non-linear convergence mechanism limits the infinite expansion of output data from the algorithm's source.
[0026] Throughout the execution cycle, the input receives a simple time-domain time difference variable. After cascading operations by the reciprocal, divider, and logarithm engine, a floating-point step value representing the theoretical interface jump span is generated at the output and pushed into the system cache for subsequent use by the logical boundary constraint module.
[0027] like Figure 3 As shown, S3: Performs an integer truncation operation on the floating-point step value, and performs an extremum limit operation using the preset maximum allowable step constant. Combined with the rotation polarity feature, it generates a target offset step offset with directional attributes. Furthermore, in S3, an integer truncation operation is performed on the floating-point step value, and an extremum constraint operation is performed using a preset maximum allowable step constant. Combined with rotational polarity features, a target deviation step offset with directional attributes is generated, including: The floating-point arithmetic unit is invoked to perform a rounding operation on the floating-point step value to the nearest integer, generating the basic discrete step size constant. Extract the maximum allowable step size constant preset at the bottom layer of the system, input the basic step size constant and the maximum allowable step size constant into the comparator to find the minimum value, and output the restricted boundary step size; Perform an algebraic multiplication operation between the restricted boundary step size and the direction multiplier of the rotation polarity feature, and output the target offset step advance offset with positive and negative sign bits.
[0028] Specifically, in S3, the digital system's data bus receives the floating-point step value generated by the aforementioned steps. Since the memory pointers and logical nodes of the display interface exist in discrete integer form and do not support real-number addressing, the microprocessor calls its internal floating-point arithmetic unit to perform a rounding operation on the floating-point step value. After rounding, the continuous dimension is forcibly converted to a discrete integer dimension, generating the fundamental discrete step size constant.
[0029] The system memory pre-programs a maximum permissible step size constant, which sets the limit on the maximum number of nodes the interface can traverse within a single refresh cycle. The microprocessor inputs the calculated base step size constant and the maximum permissible step size constant into a hardware comparator. The comparator performs a minimum value operation, selecting the smaller value as the restricted boundary step size output.
[0030] The control logic then feeds the constrained boundary step size and the rotational polarity feature direction multiplier extracted in the earlier steps into the multiplication register. The two are then multiplied algebraically, assigning a specific positive or negative logical attribute to the scalar step size, and finally outputting the target offset step advance offset with positive and negative sign bits.
[0031] The composite mapping formula of quantization and boundary constraints is as follows: ; in This represents the offset of the target from the step, and its data type is a signed integer. This represents the preset maximum allowable jump level constant, and its data type is an unsigned integer constant. Furthermore, the engineering calibration of this constant is based on the persistence of vision effect and the video memory refresh bandwidth. To prevent visual tearing and underlying SPI bus overflow caused by excessively large spans of interface elements within a single rendering frame, The upper limit of the value is strictly limited to 1 / 2 to 1 / 3 of the total number of list items that can be displayed on a single page of the current screen (in the 1.8-inch display module of this embodiment, the recommended value is 3 to 5). This represents the floating-point step value input in the previous calculation stage; the data type is floating-point real number. (Symbol) This refers to the operator for rounding to the nearest integer. (Operator) This represents the function that finds the minimum value. The direction multiplier represents the rotational polarity characteristic, and its value is either positive 1 or negative 1.
[0032] This step performs a data stream conversion from the continuous real number field to the restricted discrete integer field. The input receives an unsigned floating-point real number. The processor first strips the decimal places of the real number, and then uses a hardware comparator to force clipping, cutting off the runaway path where the step size variable exceeds the memory refresh limit under extreme physical speeds. The clipped value is then directly merged with the polarity direction, generating a signed integer offset variable at the output that adapts to the displacement of the underlying state machine address pointer.
[0033] like Figure 4 As shown, S4: Determine the interactive logic node attribute of the current display interface. If the interactive logic node attribute is a discrete business node attribute, perform a modulo closed-loop operation on the sum of the initial node index and the target discrete step offset to calculate the target logic node index of the first and last loops. If the interactive logic node attribute is a continuous parameter node attribute, perform a clamping restriction operation on the sum of the initial parameter setting value and the target discrete step offset to calculate the target logic node index with boundaries. Furthermore, in S4, the attributes of the interactive logic nodes of the currently displayed interface are determined, including: Detect the business depth attributes of the theme scene currently being rendered by the display device; Analyze the business depth attributes and determine the corresponding interaction interface level category; If the business depth attribute points to the set of application scenario mode switching interfaces, then the interaction logic node attribute will be marked as a discrete business node attribute. If the business depth attribute points to a specific set of physical adjustment interfaces for hardware execution limits, then the interaction logic node attribute will be marked as a continuous parameter node attribute.
[0034] In S4, if the interaction logic node attribute is a discrete business node attribute, then a modulo-closed-loop operation is performed on the sum of the initial node index and the target discrete step offset to calculate the target logic node index of the first and last loops, including: Extract the total number of valid, connected interface nodes at the current theme scene level; Extract the initial node index locked and saved in the previous operation cycle, and perform an algebraic summation operation on the initial node index and the target distance step offset to generate the first dynamic summation variable; The first dynamic summation variable and the total number of valid interface nodes are input into the divider unit to perform integer division and remainder operation, and the non-negative remainder output by the integer division and remainder operation is determined as the target logic node index of the first and last loop.
[0035] In S4, if the interactive logic node attribute is a continuous parameter node attribute, then a clamping constraint operation is performed on the sum of the initial parameter setting and the target discrete step offset, and the bounded target logic node index is calculated, including: Obtain the pre-configured absolute safety upper limit threshold, absolute safety lower limit threshold, and preset adjustment step size under the current adjustment dimension; After multiplying the target offset step size by the preset adjustment step size, perform an algebraic summation operation with the initial parameter setting value locked and saved in the previous operation cycle to generate a second dynamic summation variable; The second dynamic summation variable is compared sequentially with the absolute safety lower threshold and the absolute safety upper threshold. For data that is below the absolute safety lower threshold or above the absolute safety upper threshold, a forced replacement truncation is performed, and the target logical node index with safety boundaries is output.
[0036] Specifically, in S4, the microprocessor receives the target distance advance offset with positive and negative sign bits and reads the scene status word from the current graphics rendering engine. After passing through the attribute judgment mechanism, the data stream undergoes dual-track splitting, ultimately outputting a physical memory pointer or specific parameter settings for directly addressing flash memory resources.
[0037] The microprocessor internally maintains a global state machine register. The business depth attribute of the theme scene currently being rendered by the display device resides in this register as a prefix flag. The logic control unit extracts this prefix flag by reading the state header file of the currently active layer. It then parses the prefix flag to determine the corresponding interactive interface level category. If the flag matches the application scenario mode switching interface set, the logic control unit marks the interactive logic node attribute as a discrete business node attribute. If the flag matches the specific hardware execution limit physical adjustment interface set, it marks it as a continuous parameter node attribute. For different node attributes, the system invokes independent underlying mathematical constraint rules.
[0038] When the interactive logic node attribute is in the discrete business node attribute state, the operation unit extracts the total number of valid interface nodes connected end-to-end under the current theme scene level. The register retrieves the initial node index locked and saved in the previous operation cycle, performs an algebraic summation operation with it and the target discrete step offset, generating the first dynamic sum variable. The divider unit receives the first dynamic sum variable and the total number of valid interface nodes, performs integer division and modulo operation, and selects the non-negative remainder result as the target logic node index for the first and last loop.
[0039] The modulo closed-loop mapping formula for discrete service nodes is as follows: ; in This represents the index of the target logical node output in this operation cycle, and its dimension is an unsigned integer. It represents the initial node index locked and saved in the previous operation cycle, and its dimension is an unsigned integer. The target offset represented by the positive and negative sign bits. Represents the total number of valid interface nodes, and is a constant unsigned integer. Operator Indicates the variable The modulo division operation performed.
[0040] Modulo operations prevent the infinite accumulation of summation variables. When physical rotation causes the target's distance step offset to become too large, the remainder is always confined to a closed interval between zero and the total number of nodes minus one. This constructs a circular addressing space in memory to handle overflow and out-of-bounds data when the user quickly flips through the menu.
[0041] When the interactive logic node attribute is in the continuous parameter node attribute state, the control unit obtains the pre-configured absolute safety upper limit threshold, absolute safety lower limit threshold, and preset adjustment step size for the current adjustment dimension. The multiplier multiplies the target discrete step offset by the preset adjustment step size, and the adder performs an algebraic summation operation on the product and the initial parameter setting value locked and saved in the previous operation cycle to generate a second dynamic sum variable. The numerical comparator sequentially compares the second dynamic sum variable with the absolute safety lower limit threshold and the absolute safety upper limit threshold. For data below the absolute safety lower limit threshold or above the absolute safety upper limit threshold, a forced replacement truncation is performed, and the target logic node index with safety boundaries is output.
[0042] When the interactive logic node attribute is in the continuous parameter node attribute state, the control unit obtains the pre-configured absolute safety upper limit threshold, absolute safety lower limit threshold, and preset adjustment step size for the current adjustment dimension. The multiplier multiplies the target discrete step offset by the preset adjustment step size, and the adder performs an algebraic summation operation on the product and the initial parameter setting value locked and saved in the previous operation cycle to generate a second dynamic sum variable. The numerical comparator sequentially compares the second dynamic sum variable with the absolute safety lower limit threshold and the absolute safety upper limit threshold. For data below the absolute safety lower limit threshold or above the absolute safety upper limit threshold, a forced replacement truncation is performed, and the target logic node index with safety boundaries is output.
[0043] ; in The index of the target logical node with boundaries refers to the physical parameter setting value of the current operation cycle. This represents the absolute security upper limit threshold for burning the underlying firmware. This represents the absolute safety threshold for burning the underlying firmware. This represents the initial parameter setting value locked in the previous operation cycle. This represents the offset of the target from the walking distance. This represents the preset adjustment step size. Operator and These represent hardware comparison instructions for finding the maximum and minimum values, respectively.
[0044] This clamping operation establishes a physical limit for hardware execution. Regardless of the extreme value accumulated by the target distance step offset, the final set parameters are forcibly locked within the upper and lower threshold range by the hardware comparator, preventing erroneous high-speed continuous input from causing subsequent hardware driver overload.
[0045] like Figure 5 As shown, S5: Initiate a fixed-point image resource scheduling request based on the target logical node index, and drive the display device to execute the fixed-point screen refresh instruction; Furthermore, in S5, a fixed-point image resource scheduling request is initiated based on the target logical node index, including: The target logical node indices of the first and last loops of the solution output, or the target logical node indices with boundaries, are converted into physical direct memory access addresses pointing to external serial memory. Initiate a direct memory read request to the external serial memory based on the physical direct memory access address; Extract the target graphical user interface bitmap resource stored in the corresponding address range of the external serial memory.
[0046] In S5, the driver of the display device executes point-to-point screen refresh instructions, including: The extracted target graphical user interface bitmap resources are pushed to the display driver controller of the display device via the internal serial communication bus. During the rendering cycle in which the display driver controller performs pixel scanning and refresh, the main control processing unit synchronously outputs a heartbeat reset level to the underlying hardware watchdog module; If bus congestion occurs during the rendering cycle, causing the heartbeat reset level to time out and be interrupted, the system will be forced to reset to the base state in response to the highest priority hardware reset signal fed back by the hardware watchdog module.
[0047] Specifically, in S5, the system's memory management unit receives the target logical node index or the bounded target logical node index from the output of the preceding logical node state machine. This logical index enters the hardware address mapping logic and is converted into a physical direct memory access address pointing to the external serial memory.
[0048] To ensure compatibility with graphical user interface bitmap resources of varying sizes, the mapping from index to physical address is achieved by calling an underlying hash lookup table, with the following calculation model: ; in It represents the physical direct memory access address generated by the system, and is a 32-bit unsigned integer pointer constant. Represents the index of the target logical node from the input. This represents a one-dimensional pointer array pre-programmed into the main control program's storage area. Internally, this array establishes an absolute mapping between global discrete logic node indices and the corresponding graphics resource start address base constants in the external serial memory. The direct memory access controller then uses the calculated physical direct memory access address... It initiates a direct memory read request to the external serial memory, bypassing the central processing unit core to directly extract the target bitmap resource.
[0049] The Direct Memory Access Controller (DMI) initiates a DMI read request to the external serial memory based on the physical DMI address. The data bus bypasses the central processing unit (CPU) core and directly retrieves the target graphical user interface (GUI) bitmap resource stored in the corresponding address range. The main control unit continuously pushes this GUI bitmap resource to the display driver controller of the display device via the internal serial communication bus. The display driver controller receives the image data stream and triggers a rendering cycle that refreshes the physical pixels.
[0050] Throughout the entire image resource handling and pixel rendering cycle, the main control processing unit synchronously outputs a heartbeat reset level to the underlying hardware watchdog module at a preset frequency. When extreme physical environmental interference causes congestion and deadlock on the internal serial communication bus, the streaming thread of the main control processing unit stalls, resulting in a timeout interruption of the heartbeat reset level. Specifically, the overflow timeout period of the counter inside the hardware watchdog module is strictly bound to the maximum single-frame rendering time of the display driver controller. In this embodiment, based on a target frame rate of 30FPS, this overflow timeout period is set to the range of 50ms to 100ms. Once the streaming thread stalls, causing the main loop to block for more than this set period, the counter inside the hardware watchdog module, after timeout overflow, feeds back a highest-priority hardware reset signal to the main control processing unit via the physical reset pin. The main control processing unit responds to the reset signal, forcibly erasing the stack and register states of the current deadlock program, and forcing the system to reset to the base state.
[0051] This step completes the physical transformation loop from control data flow to visual image output. The abstract logical index of the front-end input is converted into image transport actions through direct address mapping. The watchdog interrupt mechanism configured in the execution terminal cuts off the fault propagation path of display device crashes caused by bus congestion, establishing a security defense boundary for the underlying display rendering tasks.
[0052] Example 2: The application scenario is a single-knob controller for a smart washing machine with a display screen. Users physically rotate the knob to perform multi-level human-machine interactions on the embedded display screen, such as selecting washing modes and setting water temperature and spin speed. In this scenario, existing technologies mostly use purely linear pulse accumulation mapping logic, which has the following main technical problems: First, when users rapidly rotate the knob to find the target mode or slowly fine-tune values, a dynamic misalignment occurs between the subjective physical operation intention and the system's linear response, easily leading to severe UI focus overflow or response lag. Second, when setting parameters involving hardware execution limits, the lack of boundary clamping restrictions and anti-interference defense mechanisms in the underlying logic makes it easy for accidental touches or high-frequency electromagnetic surges generated by the washing machine motor to cause parameter settings to exceed the absolute safety limits of the device, resulting in system display lag, system crashes, and uncontrollable equipment operation safety hazards. To solve the above problems, this invention provides a display screen interaction logic mapping method based on spatial perception data, the structure of which is as follows: Figure 1 As shown. The specific implementation process of this method is as follows: By acquiring the pulse time interval characteristics of physically constrained rotational movements and calculating their reciprocals to extract instantaneous angular velocity, this value is substituted into a logarithmic perceptual mapping model to generate floating-point step values. This nonlinear convergence-based underlying algorithm replaces traditional linear pulse accumulation, directly eliminating the dynamic misalignment between the physical operation intent and the interface response during rapid flips or slow fine-tuning. Subsequently, the system enforces integer truncation and maximum allowable step constant limits on the floating-point step values. Combined with rotational polarity feature conversion, it generates the target discrete step offset, cutting off the memory overflow path caused by the rapid increase in step size variables due to high-speed rotation at the data domain source. The control logic further executes dual-track constraints based on the node attributes of the display interface. For discrete business nodes, it performs a modulo-closed-loop operation to establish a head-and-tail circular addressing space; for continuous parameter nodes, it performs clamping constraint operations to forcibly lock the values within absolute safe upper and lower thresholds. The pointers calculated by the above operations ultimately directly trigger fixed-point image resource scheduling and screen refresh, completely eliminating underlying execution defects such as interface focus overshoot, pointer lag, and parameter overflow without increasing hardware processing overhead.
[0053] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art can still modify the technical solutions described in the foregoing embodiments or make equivalent substitutions for some of the technical features. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the protection scope of the present invention.
Claims
1. A display screen interaction logic mapping method based on spatial perception data, applied to an intelligent interactive system, characterized in that, Includes the following steps: S1: Obtain effective physical pulses generated by continuous rotational actions subject to physical constraints, and extract the rotational polarity characteristics of the effective physical pulses and the time interval characteristics of two adjacent effective physical pulses; S2: Calculate the reciprocal of the time interval feature to obtain the instantaneous angular velocity, substitute the instantaneous angular velocity into the preset logarithmic perception mapping model to perform the underlying solution operation, and generate a floating-point step value; S3: Perform an integer truncation operation on the floating-point step value, and perform an extremum limit operation using the preset maximum allowable step constant. Combined with the rotation polarity feature, generate a target step offset with directional attributes. S4: Determine the interactive logic node attribute of the currently displayed interface. If the interactive logic node attribute is a discrete business node attribute, perform a modulo closed-loop operation on the sum of the initial node index and the target discrete step offset to calculate the target logic node index of the first and last loop. If the interactive logic node attribute is a continuous parameter node attribute, perform a clamping restriction operation on the sum of the initial parameter setting value and the target discrete step offset to calculate the target logic node index with boundaries. S5: Initiate a fixed-point image resource scheduling request based on the target logical node index, and drive the display device to execute the fixed-point screen refresh instruction.
2. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S1, obtaining the effective physical pulse generated by the continuous rotational motion subject to physical constraints includes: receiving two initial orthogonal electrical signals containing a phase difference triggered by an external mechanical knob overcoming the damping torque; The two initial orthogonal electrical signals are guided to pass in parallel through a physical RC low-pass filter link constructed by a pull-up resistor network, a series isolation network, and a bypass grounding network; The high-frequency mechanical jitter levels in the two initial orthogonal electrical signals are filtered out, and the effective physical pulses after high-frequency cleaning are output to the bottom-level input capture register.
3. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S1, the extraction of the rotational polarity feature of the effective physical pulse and the time interval feature of two adjacent effective physical pulses includes: comparing the phase lead or lag logic relationship between the two effective physical pulses, and determining the direction multiplier of the rotational polarity feature based on the comparison result; The external interrupt channel of the underlying hardware timer is triggered to capture the valid edge transition event of the valid physical pulse; Read the count value variable of the underlying hardware timer between two consecutive valid edge transition events, and convert the count value variable into the time interval feature in the time domain dimension.
4. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S2, the step of calculating the reciprocal of the time interval feature to obtain the instantaneous angular velocity, substituting the instantaneous angular velocity into a preset logarithmic perceptual mapping model to perform low-level calculation operations, and generating a floating-point step value includes: Based on the microprocessor clock frequency, the time interval feature is divided by the reciprocal to extract the instantaneous angular velocity that characterizes the intensity of the physical action stimulus; Obtain a pre-calibrated noise floor velocity threshold parameter, and calculate the ratio of the instantaneous angular velocity to the noise floor velocity threshold parameter; The ratio data and the preset gain constant are imported into the natural logarithm function engine for compound product operation to calculate the real variable that exhibits a nonlinear convergence trend, and the real variable is determined as the floating-point step value.
5. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S3, the process of performing an integer truncation operation on the floating-point step value and performing an extremum limit operation using a preset maximum allowable step constant, combined with the rotational polarity feature, generates a target offset step offset with directional attributes, including: The floating-point arithmetic unit is invoked to perform a rounding operation on the floating-point step value to the nearest integer, generating a basic discrete step size constant. Extract the maximum allowable step constant preset at the bottom layer of the system, input the basic step size constant and the maximum allowable step constant into a comparator to find the minimum value, and output the restricted boundary step size; Perform an algebraic multiplication operation between the restricted boundary step size and the direction multiplier of the rotational polarity feature, and output the target offset step advance offset with positive and negative sign bits.
6. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S4, determining the attributes of the interactive logic nodes of the currently displayed interface includes: Detect the business depth attributes of the theme scene currently being rendered by the display device; Analyze the business depth attribute and determine the corresponding interactive interface level category; If the business depth attribute points to the set of application scenario mode switching interfaces, then the interaction logic node attribute is marked as the discrete business node attribute. If the business depth attribute points to a specific set of physical adjustment interfaces for hardware execution limits, then the interaction logic node attribute is marked as the continuous parameter node attribute.
7. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S4, if the interactive logical node attribute is a discrete business node attribute, then a modulo-closed-loop operation is performed on the sum of the initial node index and the target discrete step offset to calculate the target logical node index of the first and last loops, including: Extract the total number of valid, connected interface nodes at the current theme scene level; Extract the initial node index locked and saved in the previous operation cycle, and perform an algebraic summation operation on the initial node index and the target offset step offset to generate the first dynamic summation variable; The first dynamic summation variable and the total number of valid interface nodes are input into the divider unit to perform integer division and remainder operation, and the non-negative remainder result output by the integer division and remainder operation is determined as the target logical node index of the first and last loop.
8. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S4, if the interactive logic node attribute is a continuous parameter node attribute, then a clamping constraint operation is performed on the sum of the initial parameter setting value and the target discrete step offset to calculate the target logic node index with boundaries, including: Obtain the pre-configured absolute safety upper limit threshold, absolute safety lower limit threshold, and preset adjustment step size under the current adjustment dimension; After multiplying the target offset step advance offset by the preset adjustment step size, perform an algebraic summation operation with the initial parameter setting value locked and saved in the previous operation cycle to generate a second dynamic summation variable; The second dynamic summation variable is compared sequentially with the absolute safety lower threshold and the absolute safety upper threshold. For data that is lower than the absolute safety lower threshold or higher than the absolute safety upper threshold, a forced replacement truncation is performed, and the target logical node index with a safety boundary is output.
9. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S5, initiating a fixed-point image resource scheduling request based on the target logical node index includes: The target logical node index of the first and last loops or the target logical node index with boundaries output by the solution are converted into physical direct memory access addresses pointing to external serial memory. A direct memory read request is initiated to the external serial memory based on the physical direct memory access address; Extract the target graphical user interface bitmap resource stored in the corresponding address range of the external serial memory.
10. The display screen interaction logic mapping method based on spatial perception data according to claim 1, characterized in that, In S5, the driving display device executes a fixed-point screen refresh instruction, including: The extracted target graphical user interface bitmap resource is pushed to the display driver controller of the display device via an internal serial communication bus. During the rendering cycle in which the display driver controller performs pixel scanning and refreshing, the main control processing unit synchronously outputs a heartbeat reset level to the underlying hardware watchdog module; If bus congestion occurs during the rendering cycle, causing the heartbeat reset level to time out, the system is forced to reset to the base state in response to the highest priority hardware reset signal fed back by the hardware watchdog module.