Magnetic encoder output signal processing method, time management device and medium
By receiving the pulse signal output from the magnetic encoder and calculating the step value, adjusting the display interface, the problem of inability to adjust the sensitivity of the magnetic encoder when there is insufficient interface on the device is solved, and adaptive adaptation of sensitivity is achieved, improving user experience and operation Accuracy.
Patent Information
- Application Number
- CN202411222592.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2025-01-07
AI Technical Summary
When the interface is insufficient on the device of the magnetic encoder application, the sensitivity of the magnetic encoder cannot be adjusted, resulting in poor user experience.
By receiving the pulse signal output from the magnetic encoder, the pulse count is determined, and the step value is calculated according to the target sensitivity level, and the display focus of the display interface is adjusted to achieve adaptive adaptation of sensitivity.
It realizes dynamic adjustment of the sensitivity of the magnetic encoder according to needs under different interfaces, improves user operation experience and accuracy, and solves the sensitivity adjustment problem caused by insufficient interfaces.
Smart Images

Figure CN119268738A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of electrical digital data processing, and in particular to a method for processing a magnetic encoder output signal, a time management device and a medium. Background Art
[0002] The minimum rotation trigger angle of the magnetic encoder is configured at the factory and cannot be changed. Therefore, when the display interface is controlled by the magnetic encoder to adjust the display focus, the sensitivity of the adjustment process is associated with the hardware as a fixed value. In the related art, if the sensitivity of the magnetic encoder is to be changed, it is necessary to connect to the main control of the magnetic encoder through an additional interface and data line, and then program the internal register or modify the operation circuit. Due to the difficulty of modification, it is impossible to adjust the sensitivity of the magnetic encoder when there are insufficient interfaces on the device where the magnetic encoder is used. Summary of the invention
[0003] The main purpose of the present application is to provide a method for processing the output signal of a magnetic encoder, a time management device and a medium, aiming to solve the technical problem that the sensitivity of the magnetic encoder cannot be adjusted when there are insufficient interfaces on the device.
[0004] To achieve the above object, the present application provides a method for processing a magnetic encoder output signal, the method for processing a magnetic encoder output signal comprising:
[0005] Receive the pulse signal output by the magnetic encoder;
[0006] Determine the pulse count of the pulse signal in the current statistical period;
[0007] The step value is determined according to the pulse count and the target sensitivity level corresponding to the current statistical period.
[0008] In one embodiment, the step of determining the pulse count of the pulse signal in the current statistical period includes:
[0009] Obtain the count value corresponding to each collection time point in the current statistical period;
[0010] The pulse count is determined based on an algebraic sum of the count values.
[0011] In one embodiment, the pulse signal includes a position pulse signal, a direction pulse signal, and a reset pulse signal, and the step of obtaining the count value corresponding to each acquisition time point in the current statistical period includes:
[0012] Determine a count value according to the position pulse signal and the reset pulse signal, and determine a count sign according to the direction pulse signal;
[0013] The counting value corresponding to each of the acquisition time points is determined according to the counting symbol and the counting value.
[0014] In one embodiment, before the step of determining the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period, the step includes:
[0015] The target sensitivity level is determined according to the received sensitivity setting information, or the preset sensitivity associated with the current display interface corresponding to the current statistical period.
[0016] In one embodiment, the step of determining the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period includes:
[0017] Acquire a mapping relationship between the step value and the pulse count;
[0018] The step value is determined according to the mapping relationship, the pulse count and the target sensitivity level.
[0019] In one embodiment, before the step of determining the step value according to the pulse count and the target sensitivity level, the method further comprises:
[0020] Obtaining the minimum rotation trigger angle of the magnetic encoder;
[0021] The pulse count is updated according to the rotation trigger minimum angle.
[0022] In one embodiment, after the step of determining the step value according to the pulse count and the target sensitivity level, the following steps are included:
[0023] Determining a position adjustment value according to the step value and the resolution of the current display interface;
[0024] The display focus on the current display interface is adjusted according to the position adjustment value.
[0025] In one embodiment, after the step of determining the step value according to the pulse count and the target sensitivity level, the following steps are included:
[0026] Obtaining an auxiliary step value corresponding to the auxiliary magnetic encoder associated with the current display interface;
[0027] Taking the second step value and the step value as vertical components respectively, determining the adjustment step value and the moving angle;
[0028] The display focus on the current display interface is adjusted according to the adjustment step value and the movement angle.
[0029] In addition, to achieve the above-mentioned purpose, the present application also provides a time management device, the time management device comprising: a device body, a rotating component, a magnetic encoder display module and a processor, the processor is used to execute the steps of the method for processing the output signal of the magnetic encoder as described above;
[0030] A receiving cavity is formed inside the device body, and the magnetic encoder and the processor are arranged in the receiving cavity;
[0031] The rotating component is rotatably connected to the device body and is connected to the magnetic encoder;
[0032] The display module is arranged on the device body, and the rotating component is arranged around the periphery of the display module;
[0033] When the rotating member rotates relative to the device body, the magnetic encoder outputs a pulse signal to the processor.
[0034] In one embodiment, the current display interface corresponding to the display module is a numerical adjustment, and the processor determines a step value based on a pulse signal output by the magnetic encoder and a first sensitivity level corresponding to the numerical adjustment, so that the display module adjusts the display value in response to the step value.
[0035] In one embodiment, the current display interface corresponding to the display module is option adjustment, and the processor determines a step value according to the pulse signal output by the magnetic encoder and the second sensitivity level corresponding to the option adjustment, so that the display module adjusts the display option in response to the step value.
[0036] In addition, to achieve the above-mentioned purpose, the present application also provides a medium, which is a computer-readable storage medium, and the computer-readable storage medium stores a program for implementing a method for processing a magnetic encoder output signal, and the program for implementing a method for processing a magnetic encoder output signal is executed by a processor to implement the steps of the method for processing a magnetic encoder output signal as described above.
[0037] The present application provides a method for processing a magnetic encoder output signal, the present application receives a pulse signal output by the magnetic encoder; determines the pulse count of the pulse signal in the current statistical period; determines the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period. The technical problem that the sensitivity of the magnetic encoder cannot be adjusted when the interface on the device is insufficient in the related technology is solved, and the technical effect of adaptively adapting different sensitivities according to different interfaces is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0039] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0040] Figure 1 A flow chart of an embodiment of a method for processing a magnetic encoder output signal of the present application;
[0041] Figure 2 A flowchart diagram of another embodiment of a method for processing a magnetic encoder output signal of the present application;
[0042] Figure 3 This is a schematic diagram of a three-phase pulse signal in an embodiment of a method for processing a magnetic encoder output signal of the present application;
[0043] Figure 4 A schematic diagram of a control principle provided for another embodiment of a method for processing a magnetic encoder output signal of the present application;
[0044] Figure 5 A flowchart diagram of another embodiment of a method for processing a magnetic encoder output signal of the present application;
[0045] Figure 6 This is a schematic diagram of the hardware structure involved in the time management device of this application;
[0046] Figure 7 This is a schematic diagram of the hardware framework layout involved in the time management device embodiment of the present application.
[0047] The purpose, features and advantages of this application will be further described in conjunction with the embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0048] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application and are not used to limit the present application.
[0049] In order to better understand the technical solution of the present application, a detailed description will be given below in conjunction with the accompanying drawings and specific implementation methods.
[0050] The main solution of the present application is: receiving a pulse signal output by a magnetic encoder; determining a pulse count of the pulse signal within a current statistical period; and determining a step value based on the pulse count and a target sensitivity level corresponding to the current statistical period.
[0051] At present, traditional time management devices (also known as timers) are controlled by buttons, which is relatively simple but not intuitive enough. The user's operation comfort and efficiency are not high enough, and it is easy to occupy the space of the screen, reducing the available display area. Most of the time management devices on the market can be controlled by touching the screen, but the screen of the time management device is generally small, and it is easy to touch by mistake during operation, and the hand will cover the screen when using it. Some time management devices are controlled by magnetic encoders, which detect the change of magnetism to determine whether the user rotates left or right, but because the minimum angle of the magnetic encoder rotation trigger is configured at the factory, when the user uses it, the scene that requires high rotation response sensitivity responds slowly, or the scene that requires slow rotation response is triggered too sensitively, resulting in a poor user experience. That is, when the interface on the device where the magnetic encoder is used is insufficient, it is impossible to adjust the sensitivity of the magnetic encoder.
[0052] The present application decodes the pulse signal of the magnetic encoder, converts it into a pulse count, and then determines the corresponding step value according to the target sensitivity level associated with the current display interface, and then adjusts the display focus of the current display interface according to the step value.
[0053] It should be noted that the execution subject of this embodiment can be a time management device, or a computing service device with data processing, network communication and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a time management device capable of realizing the above functions, etc., and this embodiment does not specifically limit this. The following takes the time management device as the execution subject as an example to illustrate this embodiment and the following embodiments.
[0054] Based on this, the present application embodiment proposes a method for processing the output signal of a magnetic encoder, please refer to Figure 1 , the method for processing the output signal of the magnetic encoder includes:
[0055] Step S110, receiving a pulse signal output by a magnetic encoder.
[0056] It should be noted that the magnetic encoder converts position and motion information into magnetic field signals by utilizing the characteristics of magnetic materials, and determines the exact value of position and motion by interpreting these magnetic field signals. A pulse signal is a signal that is continuously emitted at a certain voltage amplitude and a certain time interval. During the operation of the magnetic encoder, the magnetic encoder measures the changes in the magnetic poles on the magnetic disk and converts these changes into pulse signals, which are then processed and used to determine the exact value of position and motion.
[0057] In this embodiment, the time management device is electrically connected to the magnetic encoder to receive the pulse signal output by the magnetic encoder.
[0058] Step S120, determining the pulse count of the pulse signal in the current statistical period.
[0059] It should be noted that the current statistical period is the calculation period of the step value.
[0060] As an optional implementation, each time a pulse signal output by the magnetic encoder is collected, a pulse count is determined, and then a step value is determined.
[0061] As another optional implementation, the pulse signal is collected periodically, that is, the pulse signal is collected at least once in each statistical period, and then the pulse count corresponding to the statistical period is determined.
[0062] If the acquisition frequency of the pulse signal is equal to the determined frequency of the step value, the pulse signal output by the magnetic encoder at the current acquisition time is received, the pulse signal is analyzed, and the pulse count corresponding to the current acquisition time is determined.
[0063] If the acquisition frequency of the pulse signal is greater than the determination frequency of the step value, a pulse count is determined based on a number of received pulse signals, that is, the pulse count at the current acquisition moment is determined based on the pulse signal output by the magnetic encoder in the current statistical period, wherein the current acquisition moment and the previous acquisition moment constitute the current statistical period.
[0064] In this embodiment, the time interval between the current acquisition moment and the previous acquisition moment constitutes the current statistical period corresponding to the current acquisition moment. The pulse count is a value with positive and negative signs. If the magnetic encoder rotates clockwise, the pulse count counts positively, and if it rotates counterclockwise, the pulse count counts negatively.
[0065] Exemplarily, the first moment is the last acquisition moment, that is, the corresponding pulse count has been determined at the first moment. The second moment is the current acquisition moment, and the current statistical period is the time interval from the last acquisition moment to the current acquisition moment, and the pulse count is determined based on at least two count values from the first moment to the second moment.
[0066] Step S130, determining a step value according to the pulse count and a target sensitivity level corresponding to the current statistical period.
[0067] It should be noted that the step value is a calculated value, which represents the increment of position or movement determined based on the magnetic encoder pulse signal and preset sensitivity parameters.
[0068] As an optional implementation, the step value is obtained by comparing the numerical relationship between the pulse count generated by the magnetic encoder and the target sensitivity level.
[0069] Exemplarily, in an intelligent processing device, a magnetic encoder is used to control the position and rotation amount of a rotary selector, such as a time setting button or a menu selector, so as to accurately adjust the processing time or select a processing mode. This embodiment will elaborate on how to determine the step value by the pulse signal output by the magnetic encoder and the target sensitivity level of the current display interface to achieve more precise control. The intelligent processing device is equipped with a magnetic encoder for detecting the rotation direction and rotation amount of the rotary selector. The magnetic encoder is connected to the main control unit, which is responsible for collecting and processing the pulse signal. The main control unit collects the pulse signal output by the magnetic encoder at a fixed frequency, such as 100 times per second. Each acquisition records the rising edge or falling edge of the pulse signal to indicate the rotation action of the rotary selector. If the acquisition frequency is equal to the step value determination frequency, the main control unit directly analyzes the pulse signal at the current acquisition moment to determine the pulse count. If the acquisition frequency is greater than the step value determination frequency, the pulse signal is accumulated within a longer current statistical period, such as 0.1 seconds, to determine the total pulse count within the time interval. According to the positive or negative of the pulse signal, it is determined whether the rotary selector is rotating clockwise or counterclockwise, and the pulse count is assigned a positive or negative sign accordingly. The interface identifier is mapped to the target sensitivity level. A mapping table is pre-established in the device firmware to associate the interface identifiers of different display interfaces, such as the main timing interface and the menu interface, with the corresponding target sensitivity level. When the rotary selector is operated, the main control unit first detects the interface displayed on the current display module and obtains its interface identifier. According to the interface identifier, the corresponding target sensitivity level is searched in the mapping table. For example, the main timing interface may be set to a medium target sensitivity level so that the user can adjust the time more finely; while the menu interface may be set to a lower target sensitivity level because the selection of menu items usually does not require too fine control. The main control unit calculates the step value according to the following formula: step value = pulse count / target sensitivity level. Among them, the target sensitivity level is a value determined according to the target sensitivity level, a high target sensitivity level corresponds to a smaller coefficient value, and a low target sensitivity level corresponds to a larger coefficient value. The calculated step value is used to update the display focus or value on the display interface. For example, in a time setting interface, the step value may directly correspond to the increase or decrease of time; in a menu selection interface, the step value may determine the number of menu items skipped.
[0070] For example, the user is currently in the main timing interface, the target sensitivity level is medium, corresponding to the coefficient 0.1, and the selection knob is rotated clockwise. The main control unit collects 5 positive pulse signals within 0.1 seconds and determines that the pulse count is +5. According to the target sensitivity level of 2, the calculated step value is 5 / 2=2.5. The main control unit increases the time setting by 50 seconds and updates the time display on the display interface.
[0071] The present application provides a method for processing the output signal of a magnetic encoder. The present application first determines the pulse count at the current acquisition moment based on the pulse signal output by the magnetic encoder in the current statistical period, wherein the current acquisition moment and the previous acquisition moment constitute the current statistical period; obtains the target sensitivity level associated with the current display interface; and determines the step value according to the pulse count and the target sensitivity level. The technical problem that the sensitivity of the magnetic encoder cannot be adjusted when the interface on the device is insufficient in the related technology is solved, and the technical effect of adaptively adapting different sensitivities according to different interfaces is achieved.
[0072] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application, step S120, includes:
[0073] Step S210, obtaining the count value corresponding to each collection time point in the current statistical period.
[0074] It should be noted that the acquisition time point is the time point corresponding to the acquisition frequency of the pulse signal. In the current statistical period, there are several acquisition time points divided according to the acquisition frequency, each acquisition time point corresponds to a pulse signal, and each pulse signal determines a corresponding count value.
[0075] The pulse signal corresponding to each acquisition time point in the current statistical period is obtained, and the count value corresponding to each acquisition time point is determined.
[0076] As an optional implementation, first, the processor performs initialization settings to determine the acquisition frequency of the pulse signal. The acquisition frequency refers to the time interval within which the processor acquires the pulse signal once, and this time interval is the acquisition period. For example, if the acquisition frequency is set to 10 times per second, each acquisition time point is 100 milliseconds apart. Then, the processor synchronizes the acquisition time point through an internal clock or an external clock signal. Ensure that each acquisition time point can be sampled accurately according to the predetermined acquisition frequency. At each acquisition time point, the processor receives a pulse signal from the magnetic encoder. These pulse signals may include one or more pulses, depending on the rotation of the rotating part between the last acquisition time point and the current acquisition time point. The processor converts the pulse signal received at each acquisition time point into a count value. Generally, the count value can be the number of pulses or a more complex value calculated based on the characteristics of the pulse (such as width or interval). The count value at each acquisition time point is stored in the processor's memory for further processing. These count values represent the rotation information of the rotating part in the corresponding time period.
[0077] For example, assume that a user is using a time management device to adjust the timing value on the time setting interface. The user slowly rotates the rotating component to accurately adjust to the desired time. In this step, the processor reads the pulse signal output by the magnetic encoder every 100 milliseconds. If the user continues to rotate within a certain acquisition cycle, the processor will receive a corresponding number of pulses at each acquisition time point and convert it into a count value. For example, 5 pulses are received at the first acquisition time point, 3 pulses are received at the next acquisition time point, and so on.
[0078] Step S220, determining the pulse count based on the algebraic sum of the count values.
[0079] It should be noted that the count values corresponding to all pulse signals in the current statistical period are determined, and the number of count values is equal to the number of acquisition time points. According to the time sequence of the acquisition time points, algebraic operations are performed on each count value to determine the algebraic sum as the pulse count at the current acquisition moment.
[0080] As an optional implementation, at the end of the current statistical period, the processor accumulates the count values stored at all acquisition time points, which is equivalent to algebraically summing all the count values. The accumulated total is the total pulse count in the current statistical period, representing the overall rotation activity of the rotating component relative to the magnetic encoder in the statistical period.
[0081] For example, consider that the user is adjusting the displayed picture by rotating the widget in the main interface. The user rotates the widget quickly, hoping to quickly browse the picture collection. In this step, the processor calculates the algebraic sum of the count values of all acquisition time points in the current statistical period. Assume that in a 1-second statistical period, the processor records the following sequence of count values: 3, 4, 2, 5, 3. The processor adds these count values, that is, 3+4+2+5+3=17, and the total pulse count of the current statistical period is 17.
[0082] Based on the pulse count and the preset sensitivity level, the processor calculates a larger step value, assuming the "fast browsing" mode. The processor then controls the display module to switch pictures at a faster speed to meet the user's needs for fast browsing.
[0083] Optionally, refer to Figure 2 , step S210, comprising:
[0084] Step S211, determining a count value according to the position pulse signal and the reset pulse signal, and determining a count sign according to the direction pulse signal.
[0085] It should be noted that the pulse signal includes position pulse signal, direction pulse signal and reset pulse signal. That is, the pulse signal of the magnetic encoder is divided into three phases: A, B and Z. The magnetic strip is installed next to the magnetic encoder. When the magnetic strip moves left and right next to the magnetic encoder, ABZ signals are generated. The ABZ signals correspond to three sinusoidal wave signals respectively. The direction and speed of rotation or movement can be accurately calculated by combining the A and B signals, such as Figure 3 As shown. That is, the B phase signal is the position pulse signal, the A phase signal is the direction pulse signal, and the Z phase signal is the reset pulse signal. A signal: indicates the direction of rotation. When the A signal changes, it can be determined whether the rotation is in the forward direction or the reverse direction. In practical applications, the A phase signal is usually used in conjunction with the B phase signal, and the rotation direction is determined by the phase difference between the two. For example, when the encoder rotates forward, the A phase pulse will appear before the B phase pulse; when it is reversed, it is the opposite. B signal: indicates position count. Each time the B signal generates a high level pulse, it indicates that a displacement distance has been passed. The B phase signal and the A phase signal usually have a phase difference of 90 degrees, which makes it possible to determine the specific direction and distance of the displacement through edge detection. Z signal: indicates the starting point mark. When the Z signal generates a high level pulse, it indicates that the rotation has gone around a circle and returned to the starting point. The Z signal is often used to initialize the encoder's position count to ensure that the device can start counting again from the starting point after a circle of rotation. The count value is the numerical part of the count value, and the count sign is the positive and negative sign part of the count value.
[0086] Step S212: determining the counting value corresponding to each of the acquisition time points according to the counting symbol and the counting value.
[0087] In this embodiment, after the count value and the count sign are determined, they are combined to form the count value corresponding to each acquisition time point.
[0088] Exemplarily, a user wants to adjust the setting options of the device. The user starts to rotate the rotating part, and the magnetic encoder detects the change in the magnetic field and then generates corresponding pulse signals, including position pulse signals, direction pulse signals, and reset pulse signals. The processor receives three pulse signals at each acquisition time point. Based on the position pulse signal and the reset pulse signal, the processor determines a basic count value, which represents the absolute position or relative displacement of the rotating part. The direction pulse signal is used to determine whether the rotation is forward or reverse, thereby determining whether the sign of the count value is positive or negative. If the direction pulse signal indicates forward rotation, the count sign is positive; if it is reverse, it is negative. The count value at each acquisition time point is combined with the count sign to accumulate and obtain the total pulse count in the current statistical period. The count reflects the overall situation of the user's rotation action in the statistical period. Assuming that the target sensitivity level of the device is set to medium, the processor calculates a moderate step value based on the total pulse count. The processor then adjusts the display module according to this step value so that the menu items scroll at a moderate speed, allowing the user to accurately select the required options, such as switching to different ringtone options.
[0089] Exemplarily, the user sets the time by rotating the rotating component, and the magnetic encoder generates corresponding pulse signals, including position, direction, and reset pulse signals. The processor receives these pulse signals in real time and calculates the count value based on the position pulse signal and the reset pulse signal. The direction pulse signal is used to determine the direction of the user's rotation, and then determines the sign of the count value. The processor calculates the count value of each acquisition time point in real time and summarizes the total pulse count. Combined with the high sensitivity setting, the processor calculates a smaller step value, so that the time setting can be more accurate. The user can fine-tune the time setting, such as accurately adjusting to a specific minute or even a second, to ensure the accuracy of the alarm clock.
[0090] Exemplarily, when the user rotates the rotating component, the magnetic encoder outputs a pulse signal accordingly, including position, direction, and reset pulse signals. The processor receives the pulse signal according to the set acquisition frequency, and determines the count value based on the position pulse signal and the reset pulse signal. The direction pulse signal is used to determine the count sign to indicate the direction of rotation. The processor calculates a larger step value based on a lower sensitivity setting to adapt to the user's rotation speed. The control display module only changes one picture at a time to avoid too fast picture switching, ensuring visual comfort and selectivity. Every time the user rotates a certain angle or time, the background picture of the main interface is updated once, providing smooth and not too frequent visual changes.
[0091] By acquiring the pulse signal corresponding to each acquisition time point in the current statistical period, determining the count value corresponding to each acquisition time point, and determining the pulse count at the current acquisition moment based on the algebraic sum of each count value, the pulse signal of the magnetic encoder is mapped to a parameter for the controller to adjust the sensitivity response, thereby realizing flexible adjustment of the sensitivity of the magnetic encoder.
[0092] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application, before step S130, includes: determining the target sensitivity level according to the received sensitivity setting information, or the preset sensitivity associated with the current display interface corresponding to the current statistical period.
[0093] It should be noted that the sensitivity setting information is the sensitivity setting information of the display interface set by the user.
[0094] In this embodiment, the device first checks whether there is sensitivity setting information from the user or an external device. This information can be received in a variety of ways, such as user input on a touch screen, a configuration file received through a serial port / network interface, or a physical button adjustment on the device. If sensitivity setting information is received, the device parses the information and extracts a specific sensitivity value or a target sensitivity level identifier.
[0095] If no explicit sensitivity setting information is received, the device will then check the currently activated display interface, such as menus, operating mode selections, parameter settings, etc., to determine whether there is an associated preset sensitivity setting. The preset sensitivity is usually set based on the interface usage scenario and user experience optimization, and is stored in the device's firmware or configuration file. The device searches for the corresponding target sensitivity level from the preset sensitivity configuration table based on the currently activated display interface identifier or type. Based on the received sensitivity setting information or the preset sensitivity found, the device determines the final target sensitivity level. The target sensitivity level can be discrete, such as "low", "medium", and "high", or continuous, such as a numerical range of 0-100. The device applies the determined target sensitivity level to the corresponding input device, such as a touch screen, knob, button, etc., to adjust its response speed and sensitivity. Once the target sensitivity level is determined, the device immediately applies it to the current input device configuration.
[0096] Among them, if the step value calculation formula is step value = pulse count / sensitivity level, then the larger the value of the sensitivity level, the slower the sensitivity response of the interface.
[0097] Furthermore, the device provides feedback to the user on the current sensitivity setting, possibly through an indicator light on the interface, displayed text, or voice prompts, etc. The user can further confirm or adjust the sensitivity setting until satisfied.
[0098] For example, suppose a user is using a time management device and wants to adjust menu options and set a specific exercise timing. The device supports operation through a rotating component and allows the user to adjust the sensitivity level as needed. The user turns on the device and enters the main interface. The default sensitivity level loaded by the device is "50", which is suitable for general interface navigation and operation. The user wants to quickly browse the menu options and decides to reduce the sensitivity level. Through the device's settings interface, the user adjusts the sensitivity level to "25" to speed up the scrolling speed of the menu items. The device processor receives the new sensitivity level "25" and adjusts the step value accordingly. At this time, when the user rotates the rotating component, the scrolling speed of the menu items becomes faster, which is convenient for the user to browse quickly. When the user switches from the menu navigation to the exercise timing setting interface, in order to ensure the accuracy of the setting, the user increases the sensitivity level to "75". The device automatically updates the sensitivity level and the processor adjusts the step value, so that each operation of the user when setting the exercise time is more refined and accurate. The device displays the current target sensitivity level "75" to the user through the indicator light or text prompt on the interface, indicating that it is currently in the precise operation mode. Users can adjust the sensitivity level again according to actual conditions. If they feel the operation is too slow, they can lower the sensitivity level to "50" or "25".
[0099] During the user's operation, the device dynamically adjusts the response speed according to the set sensitivity level. When navigating the menu, the lower sensitivity level "25" improves the operating efficiency; when setting the timing, the higher sensitivity level "75" ensures the accuracy of the setting. Users can adjust the sensitivity level at any time according to their personal preferences and operating habits to achieve the best operating experience. This embodiment shows how the time management device dynamically adjusts the target sensitivity level according to the sensitivity level set by the user, thereby affecting the response speed and operating accuracy of the device. This design provides users with a flexible and personalized operating experience and meets the usage needs in different scenarios.
[0100] In this embodiment, a preset sensitivity associated with the current display interface is obtained.
[0101] It should be noted that the current display interface is the interface currently displayed by the display module of the device associated with the magnetic encoder. That is, when the magnetic encoder is triggered, the display focus of the current display interface changes with the change of the magnetic encoder.
[0102] In the time management device scenario, the current display interface includes but is not limited to the main timing interface and the menu interface. The main timing interface is the interface for adjusting the timing time, and the menu interface is the interface for adjusting the option function. Different display interfaces are associated with corresponding target sensitivity levels.
[0103] As an optional implementation, the interface identifiers of each display interface are pre-associated with the target sensitivity level. Then, when it is detected that the display module displays content, the corresponding target sensitivity level is determined according to the interface identifier of the current display interface.
[0104] As another optional implementation, the adjustable level in the current display interface is obtained, and the adjustable level is the number of sub-items that can be selected. For example, the menu interface has 10 adjustable functions, and the adjustable level is 10. The main timing interface has 60 adjustable time points, and the adjustable level is 60. This example is not limited for ease of understanding. After obtaining the adjustable level, determine the target sensitivity level corresponding to the adjustable level, where the number of adjustable levels is positively correlated with the target sensitivity level.
[0105] Exemplarily, a numerical range corresponding to the adjustable level is determined, and a target sensitivity level associated with the numerical range is obtained.
[0106] Exemplarily, after determining the adjustable level, the interface level of the current display interface is determined, and the target sensitivity level is determined according to the adjustable level and the interface level. The interface level is positively correlated with the target sensitivity level. That is, the higher the adjustable level and the interface level of the interface, the higher the target sensitivity level of the interface.
[0107] In this embodiment, the sensitivity value is adjusted according to different application scenarios or display interfaces so as to more accurately control the increment of position or motion.
[0108] In this embodiment, the device flexibly adjusts the sensitivity of the touch screen according to the user's settings, thereby improving the user experience and the accuracy of the operation.
[0109] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application, step S130, includes:
[0110] Step S410, obtaining a mapping relationship between the step value and the pulse count.
[0111] It should be noted that the mapping relationship includes but is not limited to a functional relationship.
[0112] As an optional implementation manner, the mapping relationship is a mapping between the step value, the pulse count and the target sensitivity level.
[0113] As another optional implementation, the mapping relationship is a mapping between the step value, the pulse count, the auxiliary step value and the target sensitivity level.
[0114] It should be noted that if the device is associated with at least two magnetic encoders, each magnetic encoder corresponds to a step value. The auxiliary step value is the step value determined by the remaining magnetic encoders.
[0115] Exemplarily, the mapping relationship is step value=pulse count / target sensitivity level.
[0116] Step S420: determining the step value according to the mapping relationship, the pulse count and the target sensitivity level.
[0117] In this embodiment, the mapping relationship between the step value and the pulse count is obtained, and the final step value is determined in combination with the target sensitivity level to adapt to different operation requirements and accuracy requirements.
[0118] As an optional implementation, a mapping relationship between step value and pulse count is predefined. This mapping can be in the form of a table based on experimental data, or it can be a functional relationship expressed by a mathematical formula or algorithm. The mapping relationship is not limited to step value and pulse count, but also considers the influence of target sensitivity level. Under different target sensitivity levels, the same pulse count may correspond to different step values to meet the different needs of users for response speed and accuracy. If the device is associated with multiple magnetic encoders, each encoder may be responsible for controlling different mechanical parts or different directions of the same part. At this time, it is necessary to establish an independent step value and pulse count mapping relationship for each encoder, and consider the auxiliary step value, that is, the influence of the step value determined by other encoders on the step value of the main encoder. Determine the step value based on the mapping relationship, pulse count and target sensitivity level. Read the current pulse count from the magnetic encoder in real time, which represents the current position or movement of the mechanical part. Determine the current target sensitivity level according to user settings or preset conditions. According to the established mapping relationship, the corresponding step value is calculated in combination with the current pulse count and the target sensitivity level. If the device has multiple magnetic encoders, it is necessary to further determine the adjustment step value in combination with the auxiliary step value and the step value.
[0119] Exemplarily, a user uses a time management device to set reminders for specific time periods and different functional interfaces of a navigation device. The device is input through a rotating component and has two magnetic encoders for detecting the position and direction of the rotating component. When the device is started, the default target sensitivity level of "50" is loaded, which is suitable for general operations. The mapping relationship between the step value and the pulse count and the influence of the target sensitivity level are predefined. For example, the mapping relationship is defined as step value = pulse count / target sensitivity level. At the same time, considering the case where the device is associated with two magnetic encoders, an independent mapping relationship is established for each encoder, and the adjustment logic of the auxiliary step value to the main step value is defined. The user wants to quickly switch between functional interfaces and reduces the sensitivity level to "30" through the setting interface. The device processor receives the new sensitivity level and updates the sensitivity level value in the mapping relationship. When the user rotates the rotating component, the magnetic encoder generates a pulse signal. The processor reads the pulse count in real time, assuming that the current pulse count is 150. According to the mapping relationship step value = pulse count / target sensitivity level, the processor calculates step value = 150 / 30 = 5. If there is a second magnetic encoder, the auxiliary step value generated by it is 3, and the final adjusted step value is 5+3=8. The device quickly scrolls the function interface according to the step value 8, and the user can quickly find the required function option.
[0120] When the user needs to set the reminder time accurately, the sensitivity level is raised to "70". The device processor adjusts the sensitivity level value in the mapping relationship accordingly. The user rotates the rotating part carefully, and the magnetic encoder generates a smaller pulse count, assuming it is 50. The processor calculates the step value = 50 / 70≈0.71 based on the mapping relationship. If the auxiliary step value generated by the second magnetic encoder is 0.5, the final adjusted step value is 0.71+0.5=1.21. The device finely adjusts the reminder time according to the step value of 1.21 to ensure that the user can accurately set the desired time point.
[0121] In this embodiment, the time management device dynamically adjusts the step value according to the sensitivity level, pulse count and mapping relationship set by the user, so as to adapt to the user's needs for speed and accuracy in different operating scenarios. Furthermore, the device supports multiple magnetic encoders, which can comprehensively consider the influence of auxiliary step values to achieve more flexible and precise control.
[0122] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application, before executing step S130, includes:
[0123] Step S1, obtaining the minimum rotation trigger angle of the magnetic encoder.
[0124] Step S2: updating the pulse count according to the rotation triggering minimum angle.
[0125] It should be noted that the minimum rotation trigger angle is the factory setting value of the magnetic encoder, that is, the minimum rotation trigger angle is determined according to the firmware written in the magnetic encoder. When the firmware of the magnetic encoder is not modified, the minimum rotation trigger angle is a fixed value.
[0126] As an optional implementation manner, the pulse count after updating=the pulse count before updating / the minimum rotation trigger angle.
[0127] Exemplarily, it is determined that the minimum rotation trigger angle is 1 degree, and the pulse count before updating is +8, then the pulse count after updating is +8.
[0128] Exemplarily, it is determined that the minimum rotation trigger angle is 2 degrees, the pulse count before updating is +8, and the pulse count after updating is +4.
[0129] In this embodiment, the pulse count is updated by rotating the magnetic encoder to trigger the minimum angle, so that the sensitivity adjustment of the magnetic encoder is more diverse. That is, when the device is installed with magnetic encoders of different specifications, they can be integrated into the same scale to avoid calculation conflicts caused by multiple magnetic encoders and affect the control accuracy of the device.
[0130] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application, after executing step S130, includes:
[0131] Step S610, determining a position adjustment value according to the step value and the resolution of the current display interface;
[0132] Step S620: adjusting the display focus on the current display interface according to the position adjustment value.
[0133] It should be noted that the pulse count is a signal output by the magnetic encoder, which indicates the displacement or rotation angle of the mechanical part, usually expressed as the number of pulses. The target sensitivity level is a user-set or preset parameter that affects the response speed and accuracy of the device. Under different target sensitivity levels, the same pulse count may correspond to different step values. The step value is calculated based on the pulse count and the target sensitivity level, and is used to control the amount of movement of mechanical parts or change in the position of interface elements. Resolution is the pixel density of the display interface or the fineness of the displayable elements, which affects the calculation of the position adjustment value. The position adjustment value is calculated based on the step value and the resolution of the display interface, and is used to actually adjust the display focus position. The display focus is the element that is currently selected or active on the interface, such as the cursor position, the selected menu item, etc.
[0134] As an optional implementation, the position adjustment value is determined according to the step value and the resolution of the current display interface, and the resolution information of the currently activated display interface is read, including the horizontal resolution and the vertical resolution. This information is used to determine the maximum number and arrangement of elements that can be displayed on the interface. According to the step value and the resolution of the display interface, the device calculates the position adjustment value. This calculation process involves mathematical operations such as scaling and rounding to ensure that the adjusted position meets the layout requirements of the display interface. If the step value is expressed in physical units, such as millimeters and inches, the device converts it into pixel units to match the resolution of the display interface. If the display interface supports scrolling or paging display, the device also considers factors such as the position of the scroll bar and the scrolling step length. According to the posture of the magnetic encoder being triggered, such as the sliding direction, the rotation direction and the user input, such as the pressing of the direction key, the device determines the adjustment direction of the display focus. According to the position adjustment value and the adjustment direction, the device updates the position of the display focus. For example, the movement of the cursor in the text input box, the scrolling of the menu items in the list, the scrolling of the page in the browser, etc. The device confirms to the user that the adjustment operation has been completed through changes in interface elements, such as cursor position update, scroll bar movement, or feedback such as sound and vibration.
[0135] Exemplarily, a user is using a time management device to set his daily reading time period. The device inputs through a rotating component and has a high sensitivity level setting for precise time adjustment. The display interface resolution is 800x600 pixels, supporting scrolling and paging display. The user wants to set a specific reading time period, such as from 2 pm to 5 pm, by rotating the rotating component. The magnetic encoder generates a pulse signal accordingly. The processor reads the pulse count as 150 and obtains the current target sensitivity level as "75" from the setting. According to the mapping relationship step value = pulse count / target sensitivity level, the processor calculates the step value as 150 / 75 = 2. Considering the resolution of the display interface, the device converts the step value into pixel units. Assuming the conversion ratio is 1 step value = 100 pixels, the position adjustment value is 2*100 = 200 pixels. The device moves the display focus down according to the position adjustment value of 200 pixels, which is equivalent to scrolling 200 pixels in the time selection list. If the current focus is on the time option at 1 pm, after adjustment, the focus will move to the time option at 3 pm. The list of times on the display scrolls, and the user sees that the 3pm to 5pm time option is now selected. The device provides visual feedback, such as highlighting the currently selected time period, and possible sound effects or vibration feedback to confirm that the action is complete.
[0136] Furthermore, the user wishes to fine-tune the end time and adjust the sensitivity level to "90" for finer control. When fine-tuning, the processor recalculates the step value and position adjustment value based on the new sensitivity level, thereby achieving more accurate time setting. In this embodiment, how does the time management device accurately control the operation of setting the reading time through the pulse count of the magnetic encoder, the target sensitivity level, the step value, and the resolution of the display interface. This allows the user to flexibly and accurately navigate and select the appropriate time point when setting the reading time period. The device provides an efficient and precise user operation experience through fine step value calculation and position adjustment.
[0137] Reference Figure 4 As an optional implementation of this embodiment, the ABZ three-phase pulse signal output by the magnetic encoder is received through the control chip of the time management device. After the pulse signal is collected, the pulse count corresponding to the pulse signal in the current statistical period is determined, and the sensitivity configuration, that is, the sensitivity level of the current display interface, is obtained. Then, the sensitivity level is used as the target sensitivity level for calculating the step value, and the step value of the current statistical period is determined according to the determined pulse count and the target sensitivity level. Then, the display focus displayed on the screen is adjusted by the step value.
[0138] Since the position adjustment value is determined according to the step value and the resolution of the current display interface, and the display focus on the current display interface is adjusted according to the position adjustment value, the step value output by the magnetic encoder is dynamically adjusted based on different display interfaces without modifying the main control of the magnetic encoder and without an additional interface of the device to adapt to the magnetic encoder, thereby achieving the technical effect of fine control of the device to flexibly adapt to different display interfaces.
[0139] In a possible embodiment of the present application, the method for processing the output signal of the magnetic encoder proposed in the present application is as follows: Figure 5 , after executing step S130, comprising:
[0140] Step S710, obtaining an auxiliary step value corresponding to the auxiliary magnetic encoder associated with the current display interface;
[0141] Step S720, using the second step value and the step value as vertical components respectively, determining an adjustment step value and a moving angle;
[0142] Step S730: adjusting the display focus on the current display interface according to the adjustment step value and the movement angle.
[0143] It should be noted that the auxiliary magnetic encoder is a magnetic encoder that works in parallel with the main magnetic encoder and is used to monitor and control movement in different directions or dimensions from the main encoder. The auxiliary step value is the step value calculated by the pulse count corresponding to the auxiliary magnetic encoder and the target sensitivity level. The adjustment step value is the total step value calculated by vector synthesis by combining the main step value and the auxiliary step value to adjust the display focus position. The movement angle is the direction angle of the display focus movement in a two-dimensional or three-dimensional interface, which is determined by the direction of the auxiliary step value relative to the main step value. The display focus is the element that is currently selected or active on the interface, such as the cursor position, the selected menu item, etc.
[0144] As an optional embodiment, the device has two magnetic encoders. The main magnetic encoder monitors movement in the horizontal direction and calculates the main step value based on the pulse count and the target sensitivity level. The auxiliary magnetic encoder monitors movement in the vertical direction and also calculates the auxiliary step value based on the pulse count and the target sensitivity level. Determine the adjustment step value and the movement angle, and regard the main step value and the auxiliary step value as the horizontal and vertical components on the two-dimensional plane, respectively. Calculate the adjustment step value using the Pythagorean theorem or vector synthesis method. Determine the movement angle based on the ratio of the auxiliary step value to the main step value, that is, the angle with the horizontal direction on the two-dimensional plane. Adjust the display focus and update the position of the display focus based on the adjustment step value and the movement angle.
[0145] Exemplarily, a time management device has a touch screen with horizontal and vertical sliding functions. The horizontal sliding is monitored by the main magnetic encoder, and the vertical sliding is monitored by the auxiliary magnetic encoder. The user slides to the right, which is considered horizontal, and slides down, which is considered vertical, at the same time, and the two encoders output pulse counts respectively. The device calculates the main step value and the auxiliary step value based on these pulse counts and the set target sensitivity level. Through vector synthesis, the device calculates the adjustment step value and the movement angle, and moves the display focus to the new position.
[0146] As another optional embodiment, the device has three magnetic encoders. Obtain step values in three directions, each magnetic encoder monitors movement in one direction, such as the X-axis, Y-axis, Z-axis, or three independent directions in any three-dimensional space. Calculate the step values in the three directions based on their respective pulse counts and target sensitivity levels. Determine the adjustment step value and the three-dimensional movement direction, and regard the three step values as coordinate components in the three-dimensional space. Calculate the adjustment step value using the distance formula in the three-dimensional space. Determine the three-dimensional movement direction based on the ratio of the three step values. If it is on a two-dimensional interface, map the three-dimensional movement to a two-dimensional plane, such as by projection or ignoring the movement of a preset dimension. In a three-dimensional graphical user interface or virtual reality environment, adjust the position of the display focus directly according to the three-dimensional movement direction.
[0147] Exemplarily, the user operates in a virtual reality helmet with three-dimensional operation capabilities. Three magnetic encoders respectively monitor the user's head movements in three-dimensional space, such as front and back, left and right, and up and down. When the user changes the position of the head, the three encoders output pulse counts respectively. The device calculates the step values in three directions based on these pulse counts and the set target sensitivity level. In the virtual reality environment, the device directly adjusts the position and direction of the user's viewing angle according to these step values, thereby changing the position of the display focus. If it needs to be displayed on a two-dimensional screen, the three-dimensional movement is converted into movement on the two-dimensional screen through appropriate mapping or projection.
[0148] The present application also provides a time management device 1, which includes: a device body 11, a rotating part 12, a magnetic encoder, a display module 13 and a processor, wherein the processor is used to execute the processing method described in any of the above embodiments; a accommodating cavity is formed inside the device body 11, and the magnetic encoder and the processor are arranged in the accommodating cavity; the rotating part 12 is rotatably connected to the device body 11 and connected to the magnetic encoder; the display module 13 is arranged on the device body 11, and the rotating part 12 is arranged around the periphery of the display module 13; when the rotating part 12 rotates relative to the device body 11, the magnetic encoder outputs a pulse signal to the processor.
[0149] In this embodiment, refer to Figure 6 The time management device 1 is composed of a device body 11, a rotating component 12, a magnetic encoder, a display module 13 and a processor. The device body 11 is the main support structure of the time management device 1, and the rotating component 12, the magnetic encoder, the display module 13 and the processor can be connected to the device body 11, or be in a receiving cavity formed inside the device body 11.
[0150] As an optional implementation, a receiving cavity is formed inside the device body 11, and the magnetic encoder and the processor are arranged in the receiving cavity.
[0151] Furthermore, the magnetic encoder is composed of a magnetic part and a magnetic induction module. The magnetic part is displaced, thereby generating a magnetic field change, and the magnetic induction module detects the magnetic field change and outputs a corresponding pulse signal.
[0152] In one embodiment, the magnetic component and the magnetic induction module are disposed separately.
[0153] In this embodiment, the rotating component 12 is rotatably connected to the device body 11 .
[0154] As an optional embodiment, the rotating component 12 is rotatably connected to the device body 11 through a movable part, and the display module 13 is fixedly arranged on the device body 11, so that when the rotating component 12 rotates, the display module 13 and the device body 11 are fixed. That is, the rotation of the rotating component 12 will not drive the device body 11 to rotate. The device body 11 is a columnar structure, and the rotating component 12 is connected to the side wall of the device body 11 in a cylindrical shape, and the height of the cylinder is not specifically set in this embodiment.
[0155] Exemplarily, the height of the rotating component 12 is the same as the side wall of the device body 11 .
[0156] Exemplarily, the rotating component 12 is embedded in a preset groove on the side wall of the equipment body 11 in a circular ring shape.
[0157] Optionally, the rotating component 12 is connected to a magnetic encoder. The magnetic encoder includes a magnetic part and a magnetic induction module. The magnetic part is arranged around the inner wall of the rotating component 12 in the form of a strip, so that when the rotating component 12 rotates, the magnetic part is driven to rotate, thereby generating a magnetic field change. The magnetic induction module detects the magnetic field change and outputs a corresponding pulse signal.
[0158] Optionally, the rotating component 12 is made of magnetic material. In this case, the rotating component 12 has no hard connection with the magnetic encoder. When the rotating component 12 rotates, it causes the magnetic field to change. The magnetic induction module detects the magnetic field change and then outputs a corresponding pulse signal. That is, the rotating component 12 and the magnetic induction module form a magnetic encoder, and the magnetic part of the magnetic encoder realizes the function of the rotating component 12.
[0159] In this embodiment, the time management device 1 further includes a display module 13, and the display module 13 is used to display multimedia content. The multimedia content includes but is not limited to option adjustment, time adjustment, value adjustment, and picture display.
[0160] As an optional implementation, the display module 13 is disposed on the device body 11 . The rotating component 12 is disposed around the periphery of the display module 13 .
[0161] Exemplarily, the device body 11 is a cylinder or a quasi-cylindrical body, the rotating component 12 is rotatably disposed on the side wall of the device body 11 , and the display module 13 is disposed on the top surface of the device body 11 . In this case, the rotating component 12 is disposed around the periphery of the display module 13 .
[0162] Exemplarily, the display focus on the display module 13 highlights the selected option, time, or value. The highlighting method includes, but is not limited to, magnification, highlighting, and box selection. When the rotating component 12 rotates relative to the device body 11, the magnetic field change generated is sensed by the magnetic encoder, and then the magnetic encoder outputs a pulse signal. The processor determines the step value based on the received pulse signal, and then adjusts the option, time, or value highlighted by the display focus. For example, switching options, increasing or decreasing values, switching time, etc.
[0163] For example, a picture or a moving picture is displayed on the display module 13. When the rotating component 12 rotates relative to the device body 11, the magnetic field change generated is sensed by the magnetic encoder, and then the magnetic encoder outputs a pulse signal. The processor determines the step value according to the received pulse signal, and then the display module 13 switches the displayed picture or moving picture according to the step value. For example, if the step value is 2, the display module 13 switches twice based on the current picture and displays the switched picture.
[0164] In a possible embodiment of the present application, the current display interface corresponding to the display module 13 is a numerical adjustment, and the processor determines the step value according to the pulse signal output by the magnetic encoder and the first sensitivity level corresponding to the numerical adjustment, so that the display module 13 adjusts the display value in response to the step value.
[0165] In this embodiment, different display interfaces of the display module 13 are associated with corresponding sensitivity levels.
[0166] Exemplarily, the numerical adjustment corresponds to a first sensitivity level, and the specific numerical value of the first sensitivity level is not limited.
[0167] In this embodiment, the numerical adjustment is divided into several scenarios, for example, adjusting the time is a numerical adjustment, adjusting the display font size is also a numerical adjustment, and adjusting the volume is also a numerical adjustment. For each subdivided display scenario, there is a corresponding sensitivity level.
[0168] Exemplarily, the current display interface of the display module 13 is time adjustment, and the user needs to adjust the timing. The processor determines that the sensitivity corresponding to the time adjustment is registered as the first sensitivity level. The rotating component 12 rotates the first angle, and the processor collects the pulse signal to determine the pulse count, and then determines the step value based on the pulse count and the first sensitivity level. The specific calculation formula is not limited here. Including but not limited to step value = pulse count / sensitivity level. The step value is determined to be +2. It is determined that the value corresponding to the display focus before adjustment is 20, then based on the step value, the value corresponding to the display focus is adjusted to 22.
[0169] Exemplarily, the rotating component 12 rotates the second angle, the processor collects the pulse signal to determine the pulse count, and then determines the step value according to the pulse count and the first sensitivity level. The specific calculation formula is not limited here. Including but not limited to step value = pulse count / sensitivity level. The step value is determined to be -6. It is determined that the value corresponding to the display focus before adjustment is 18, then based on the step value, the value corresponding to the display focus is adjusted to 12.
[0170] Optionally, the current display interface corresponding to the display module 13 is option adjustment, and the processor determines the step value according to the pulse signal output by the magnetic encoder and the second sensitivity level corresponding to the option adjustment, so that the display module 13 adjusts the display option in response to the step value.
[0171] Exemplarily, the current display interface of the display module 13 is option adjustment, and the user needs to adjust the timing. The processor determines that the sensitivity corresponding to the option adjustment is registered as the second sensitivity level. The rotating component 12 rotates the first angle, and the processor collects the pulse signal to determine the pulse count, and then determines the step value according to the pulse count and the second sensitivity level. The specific calculation formula is not limited here. Including but not limited to step value = pulse count / sensitivity level. The second sensitivity level may not be equal to the first sensitivity level. The step value is determined to be +1. Determine that the option corresponding to the display focus before adjustment is the option with serial number 3, then based on the step value, the option corresponding to the display focus is adjusted to the option with serial number 4.
[0172] The current display interface of the display module 13 is option adjustment. The user needs to adjust the timing. The processor determines that the sensitivity corresponding to the option adjustment is registered as the second sensitivity level. The rotating component 12 rotates a third angle, and the processor collects the pulse signal to determine the pulse count, and then determines the step value based on the pulse count and the second sensitivity level. The specific calculation formula is not limited here. Including but not limited to step value = pulse count / sensitivity level. The second sensitivity level may not be equal to the first sensitivity level. The step value is determined to be -2. Determine that the option corresponding to the display focus before adjustment is the option with serial number 3, then based on the step value, the option corresponding to the display focus is adjusted to the option with serial number 1.
[0173] For example, when the calculation formula of the step value is step value = pulse count / sensitivity level, if the sensitivity response of the time adjustment interface needs to be relatively fast, and the sensitivity response of the option adjustment interface does not need to be very sensitive, the first sensitivity level is smaller than the second sensitivity level. Therefore, the rotating component 12 is also rotated by the first angle, but in the time adjustment interface, the value of the step value is greater than the value of the step value in the option adjustment interface.
[0174] In this embodiment, since corresponding sensitivities are configured for different interfaces, the technical problem in the related art that the sensitivity of the magnetic encoder cannot be adjusted when there are insufficient interfaces on the device is solved, and the technical effect of adaptively adapting different sensitivities according to different interfaces is achieved.
[0175] The present application provides a time management device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for processing the output signal of the magnetic encoder in the above-mentioned embodiment one.
[0176] Reference below Figure 7 , which shows a schematic diagram of the structure of a time management device suitable for implementing the embodiment of the present application. The time management device in the embodiment of the present application may also include but is not limited to mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The time management device shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0177] like Figure 7As shown, the time management device may include a processing device 1001 (e.g., a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the time management device are also stored. The processing device 1001, ROM1002, and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following devices can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the time management device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a time management device with various devices, it should be understood that it is not required to implement or have all the devices shown. More or fewer devices can be implemented or have alternatively.
[0178] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.
[0179] The time management device provided by the present application adopts the processing method of the magnetic encoder output signal in the above embodiment, which can solve the technical problem that the sensitivity of the magnetic encoder cannot be adjusted when the interface on the device is insufficient. Compared with the prior art, the beneficial effects of the time management device provided by the present application are the same as those of the time management device provided by the above embodiment, and the other technical features in the time management device are the same as those disclosed in the method of the previous embodiment, which will not be repeated here.
[0180] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.
[0181] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0182] The present application provides a medium, which is a computer-readable storage medium having computer-readable program instructions (ie, computer programs) stored thereon, and the computer-readable program instructions are used to execute the method for processing the output signal of the magnetic encoder in the above-mentioned embodiment.
[0183] The computer-readable storage medium provided in the present application may be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor devices, equipment or components, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution device, device or component. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0184] The computer-readable storage medium may be included in the time management device; or may exist independently without being assembled into the time management device.
[0185] The computer-readable storage medium carries one or more programs. When the one or more programs are executed by the time management device, the time management device receives the pulse signal output by the magnetic encoder; determines the pulse count of the pulse signal in the current statistical period; and determines the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period. The computer program code for performing the operation of the present application can be written in one or more programming languages or a combination thereof, and the programming language includes an object-oriented programming language such as Java, Smalltalk, C++, and a conventional procedural programming language such as "C" language or a similar programming language. The program code can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).
[0186] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the equipment, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based device that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0187] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of the module does not constitute a limitation on the unit itself in some cases.
[0188] The readable storage medium provided by the present application is a computer-readable storage medium, which stores computer-readable program instructions (i.e., computer programs) for executing the above-mentioned method for processing the output signal of the magnetic encoder, and can solve the technical problem that the sensitivity of the magnetic encoder cannot be adjusted when there are insufficient interfaces on the device. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided by the present application are the same as the beneficial effects of the method for processing the output signal of the magnetic encoder provided by the above-mentioned embodiment, and will not be repeated here.
[0189] An embodiment of the present application provides a computer program product, including a computer program, which implements the steps of the method for processing the output signal of a magnetic encoder as described above when the computer program is executed by a processor.
[0190] The computer program product provided by the present application can solve the technical problem that the sensitivity of the magnetic encoder cannot be adjusted when the interface on the device is insufficient. Compared with the prior art, the beneficial effects of the computer program product provided by the embodiment of the present application are the same as the beneficial effects of the method for processing the output signal of the magnetic encoder provided by the above embodiment, and will not be repeated here.
[0191] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent processing scope of the present application.
Claims
1. A method for processing a magnetic encoder output signal, characterized in that: The method for processing the output signal of the magnetic encoder includes: Receive the pulse signal output by the magnetic encoder; Determine the pulse count of the pulse signal in the current statistical period; The step value is determined according to the pulse count and the target sensitivity level corresponding to the current statistical period.
2. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: The step of determining the pulse count of the pulse signal in the current statistical period includes: Obtain the count value corresponding to each collection time point in the current statistical period; The pulse count is determined based on an algebraic sum of the count values.
3. The method for processing the output signal of a magnetic encoder according to claim 2, characterized in that: The pulse signal includes a position pulse signal, a direction pulse signal and a reset pulse signal. The step of obtaining the count value corresponding to each acquisition time point in the current statistical period includes: Determine a count value according to the position pulse signal and the reset pulse signal, and determine a count sign according to the direction pulse signal; The counting value corresponding to each of the acquisition time points is determined according to the counting symbol and the counting value.
4. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: Before the step of determining the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period, the method includes: The target sensitivity level is determined according to the received sensitivity setting information, or the preset sensitivity associated with the current display interface corresponding to the current statistical period.
5. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: The step of determining the step value according to the pulse count and the target sensitivity level corresponding to the current statistical period includes: Acquire a mapping relationship between the step value and the pulse count; The step value is determined according to the mapping relationship, the pulse count and the target sensitivity level.
6. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: Before the step of determining the step value according to the pulse count and the target sensitivity level, the method includes: Obtaining the minimum rotation trigger angle of the magnetic encoder; The pulse count is updated according to the rotation trigger minimum angle.
7. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: After the step of determining the step value according to the pulse count and the target sensitivity level, the method further comprises: Determining a position adjustment value according to the step value and the resolution of the current display interface; The display focus on the current display interface is adjusted according to the position adjustment value.
8. The method for processing the output signal of a magnetic encoder according to claim 1, characterized in that: After the step of determining the step value according to the pulse count and the target sensitivity level, the method further comprises: Obtaining an auxiliary step value corresponding to the auxiliary magnetic encoder associated with the current display interface; Taking the second step value and the step value as vertical components respectively, determining the adjustment step value and the moving angle; The display focus on the current display interface is adjusted according to the adjustment step value and the movement angle.
9. A time management device, characterized in that: The time management device comprises: a device body, a rotating component, a magnetic encoder, a display module and a processor, wherein the processor is used to execute the processing method according to any one of claims 1 to 8; A receiving cavity is formed inside the device body, and the magnetic encoder and the processor are arranged in the receiving cavity; The rotating component is rotatably connected to the device body and is connected to the magnetic encoder; The display module is arranged on the device body, and the rotating component is arranged around the periphery of the display module; When the rotating member rotates relative to the device body, the magnetic encoder outputs a pulse signal to the processor.
10. The time management device according to claim 9, characterized in that The current display interface corresponding to the display module is numerical adjustment, and the processor determines a step value according to the pulse signal output by the magnetic encoder and a first sensitivity level corresponding to the numerical adjustment, so that the display module adjusts the display value in response to the step value.
11. The time management device according to claim 9, characterized in that The current display interface corresponding to the display module is option adjustment, and the processor determines a step value according to the pulse signal output by the magnetic encoder and a second sensitivity level corresponding to the option adjustment, so that the display module adjusts the display option in response to the step value.
12. A medium, characterized in that The medium is a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the steps of the method for processing the output signal of a magnetic encoder as claimed in any one of claims 1 to 8 are implemented.