Method, device and readable storage medium for implementing a user-customizable interface of a movement product

By realizing serial command reception and analysis on infrared movement product software, the problems of increased volume, high cost, high development complexity and long cycle caused by user-defined interfaces are solved, and flexible personalized interface design is realized, which reduces development difficulty and product volume, and improves stability and user experience.

CN119847526BActive Publication Date: 2025-07-18SUN CREATIVE ZHEJIANG TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510315658.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-03-18
Publication Date
2025-07-18
Estimated Expiration
2045-03-18

AI Technical Summary

Technical Problem

When existing infrared movement products are implemented in user-defined interfaces, there are problems such as increasing volume, high cost, high development complexity and long cycle, which is difficult to meet personalized needs.

Method used

By adding serial command reception and analysis, user-defined interface control logic, memory and interface synthesis logic to the infrared movement product software, user-defined interface is realized and processing boards are avoided.

Benefits of technology

There is no need to add processing boards, reduce development complexity and cycle, reduce product volume, improve integration and stability, enhance user customization flexibility, and meet personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847526B_ABST
    Figure CN119847526B_ABST
Patent Text Reader

Abstract

The present invention provides a method, device and readable storage medium for realizing a user-customizable interface for a movement product. Aiming at the problem that additional processing boards need to be added for secondary development of existing infrared movement products to add a custom interface, resulting in large product volume, high cost, complex development and long cycle, the present invention adds serial port command reception and parsing, user-customizable interface control logic, memory and interface synthesis logic to the software of the infrared movement product. Commands containing graphic operation instructions and parameters are received through the serial port. After verification to ensure accuracy, graphic resources are loaded from the memory according to the commands, graphic coordinates are calculated on the display interface and operations such as overlaying or clearing are performed. Finally, the internal interface and the custom interface are merged and output to the OLED display screen. The present invention has important significance in the application fields of infrared movement products such as security monitoring and industrial detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of infrared technology, and particularly to a method, device and readable storage medium for realizing a user-customizable interface for a core module product. Background Art

[0002] With the continuous development of infrared technology, infrared core module products have been widely used in many fields, such as security monitoring, industrial inspection, medical diagnosis, etc. The diversification of these application scenarios has promoted the increasing richness of the functions of infrared core module products, and the user's personalized needs for the products have become more and more intense.

[0003] In the current market environment, the interface design of infrared core module products is mainly dominated by manufacturers. According to their own positioning of the products and the functions to be achieved, manufacturers pre-complete the interface design work during the product development stage. This design mode ensures the integrity and stability of the products to a certain extent, but ignores the personalized and differentiated needs of users during actual use.

[0004] Specifically, when users need to perform secondary development on infrared core module products, especially add a custom interface to meet special functional requirements, in a preset application scenario, they face many difficulties. Existing solutions usually require users to add an additional processing board to implement the addition of a custom interface. For example, in some security monitoring systems, users may hope to customize a personalized monitoring interface according to the preset monitoring scene layout and operation habits, including adding preset icons, indication marks or operation buttons, etc. However, since the infrared core module products themselves do not reserve the function for users to directly add an interface, users have to achieve this goal by connecting an external processing board.

[0005] This way of realizing a user-customizable interface by adding a processing board has obvious defects. First, from the perspective of product volume, the additional processing board will inevitably increase the volume of the entire product, which is extremely disadvantageous for some application scenarios with strict requirements on product volume, such as portable infrared detection devices or small security monitoring terminals, etc. Second, in terms of cost, the addition of a processing board means an increase in hardware costs, including the procurement cost of the processing board itself, the installation and commissioning costs, and the associated circuit design and wiring costs, etc. Moreover, the complexity and difficulty of product development will also increase significantly. Users not only need to be familiar with the working principle and interface specifications of the infrared core module products themselves, but also need to deeply understand the hardware structure and software programming of the external processing board, which undoubtedly increases the technical threshold and workload of developers. In addition, due to the collaborative work between multiple hardware modules and software-level adaptation, the entire development cycle will also be greatly extended.

[0006] In summary, the deficiencies of existing infrared core products in the implementation of user-defined interfaces severely restrict the application and development of products in scenarios with personalized requirements. To solve these problems, there is an urgent need for a method that can directly implement a user-defined interface by controlling the core, so as to meet the growing personalized needs of users and overcome the problems in terms of volume, cost, development complexity, and cycle brought by existing solutions. Summary of the Invention

[0007] Embodiments of the present invention provide a method, device, and readable storage medium for implementing a user-defined interface for a core product. In view of the problems existing in the current technology that the interfaces of existing infrared core products are preset by manufacturers, and when users perform secondary development, a processing board is added to implement a user-defined interface, which results in large product volume, high cost, complex development, and long cycle, and it is difficult to meet the requirements of personalized needs and product miniaturization, high integration, and low cost.

[0008] The core technology of the present invention mainly adds serial port command reception and parsing, user-defined interface control logic, a memory, and interface synthesis logic to the software of the infrared core product, enabling users to send commands through the serial port to implement a user-defined interface and avoiding the problems brought by adding a processing board.

[0009] In a first aspect, the present invention provides a method for implementing a user-defined interface for a core product, and the method includes the following steps:

[0010] S00: Receive the commands and related parameters for constructing a user-defined interface transmitted from above and perform verification. The commands include various graphic construction operation instructions, and the related parameters include the position and size of the graphic on the display interface for determining;

[0011] S10: According to the received commands and related parameters, implement the construction, modification, and clearing operations of graphic elements on the display interface, including loading graphic resources from the storage unit, calculating the coordinates of the graphic on the display interface, and performing overlay or clearing processing of the graphic. The display interface has a preset resolution, and each point has a corresponding representation method, and there are corresponding logical calculations and processing methods for different graphic operations;

[0012] S20: Store the graphic resources for constructing a user-defined interface. The graphic resources are stored in a specified address space according to a predetermined rule, with a storage format having a starting address and a fixed size, and the storage location is related to the graphic resource number;

[0013] S30: Merge the existing internal interface with the user-defined interface, and determine the display content of each point on the merged interface according to a preset rule to generate a complete interface finally output to the display device.

[0014] Further, in step S00, the verification method performs mathematical operations based on the command and related parameters, and the comparison between the result and the preset verification value is used to determine the correctness of the command transmission.

[0015] Further, in step S00, the graphic construction operation instructions include drawing a graphic of a specific shape and clearing a graphic of a specific shape, and the operation commands for different shaped graphics can parse out the corresponding complete parameter set.

[0016] Further, in step S10, the storage format of the graphic resources and the calculation method of the storage address are determined according to the resolution of the display interface.

[0017] Further, in step S10, the graphic elements include pictures, rectangles, lines, and points, and there are corresponding loading, drawing, and clearing logics for different graphic elements.

[0018] Further, in step S30, the preset rules for merging the interfaces are judged and processed based on the states of each point of the internal interface and the user-defined interface.

[0019] Further, in step S00, the command and related parameters for constructing the user-defined interface transmitted from the upper layer are received, and the picture number, horizontal starting coordinate, vertical starting coordinate, horizontal width, vertical height, and overlapping area transparency status indication parameter are parsed from the command.

[0020] In a second aspect, the present invention provides a device for implementing a user-customizable interface of a movement product, including:

[0021] An MCU, as the core control unit, is used to transmit commands and coordinate the work of each module;

[0022] A serial port command receiving and parsing module, which receives the command and related parameters for constructing the user-defined interface transmitted by the MCU and performs verification. The command includes various graphic construction operation instructions, and the related parameters include those for determining the position and size of the graphic on the display interface;

[0023] A user-defined interface control logic module, which, according to the received command and related parameters, realizes the construction, modification, and clearing operations of graphic elements on the display interface, including loading graphic resources from the storage unit, calculating the coordinates of the graphic on the display interface, and performing overlay or clearing processing of the graphic. The display interface has a preset resolution, each point has a corresponding representation method, and there are corresponding logical calculations and processing methods for different graphic operations;

[0024] A storage unit, which stores the graphic resources for constructing the user-defined interface. The graphic resources are stored in the specified address space according to a predetermined rule, have a storage format with a starting address and a fixed size, and the storage location is related to the graphic resource number;

[0025] The interface synthesis logic module merges the existing internal interfaces with the user-defined interfaces, and determines the display content of each point of the merged interface according to preset rules to generate a complete interface that is finally output to the display device;

[0026] The display device is used to display the complete interface.

[0027] In a third aspect, the present invention provides an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method for implementing a user-defined interface of a core product as described above.

[0028] In a fourth aspect, the present invention provides a readable storage medium. A computer program is stored in the readable storage medium. The computer program includes program codes for controlling a process to execute the process, and the process includes the method for implementing a user-defined interface of a core product as described above.

[0029] The main contributions and innovations of the present invention are as follows:

[0030] 1. No additional processing board is required: The present invention directly expands functions on the software of the infrared core product, and users do not need to add a user interface processing board. In the prior art, in order to implement a custom interface, an additional processing board needs to be added each time, which not only increases the hardware cost, but also involves the procurement, installation and debugging of the processing board, as well as the circuit design and wiring costs related thereto.

[0031] 2. Reduce development complexity and cycle: It avoids the problems of multi-hardware module cooperation and software adaptation caused by adding a processing board. In the prior art, when users perform secondary development, they need to deeply understand both the infrared core product and the external processing board at the same time, which is difficult and time-consuming. The present invention enables developers to only focus on sending commands through the serial port to implement a custom interface, greatly reducing the technical threshold and workload, and significantly shortening the development cycle.

[0032] 3. Reduce the product volume: Canceling the additional processing board helps to miniaturize the product. In the prior art, the product volume increases due to the addition of a processing board, while the present invention does not have a negative impact on the product volume while implementing the user-defined interface function, which is beneficial for the product to be used in application scenarios with strict volume requirements, such as portable infrared devices, etc.

[0033] 4. High integration and stability: The present invention integrates the custom interface function into the software of the core product, enhancing the integration of the product, reducing the unstable factors that may be introduced by external components, and improving the overall stability and reliability of the product.

[0034] 5. Enhanced user-defined flexibility: Users can send commands through the serial port at any time according to their own needs to perform operations on various graphic elements (such as drawing pictures, rectangles, lines, points, etc.), easily customize personalized interfaces, meet the needs of diverse application scenarios, and enhance the user experience and the market competitiveness of the product.

[0035] Details of one or more embodiments of the present invention are set forth in the following drawings and description to make other features, objects, and advantages of the present invention more concise and understandable. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings described herein are used to provide a further understanding of the present invention and form a part of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0037] Figure 1 is a partial flowchart of a method for implementing a user-defined interface for a movement product according to an embodiment of the present invention;

[0038] Figure 2 is a flowchart of loading pictures, generating rectangles, generating lines, and generating points according to a parsed command according to an embodiment of the present invention;

[0039] Figure 3 is a framework diagram according to an embodiment of the present invention;

[0040] Figure 4 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0041] Here, exemplary embodiments will be described in detail, and their examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with one or more embodiments of this specification. On the contrary, they are merely examples of devices and methods consistent with some aspects of one or more embodiments of this specification as detailed in the appended claims.

[0042] It should be noted that: In other embodiments, the steps of the corresponding methods are not necessarily executed in the order shown and described in this specification. In some other embodiments, the steps included in the method may be more or less than those described in this specification. In addition, a single step described in this specification may be decomposed into multiple steps for description in other embodiments; and multiple steps described in this specification may also be combined into a single step for description in other embodiments.

[0043] The prior art realizes a user-defined interface by increasing the processing board, which increases the product volume, raises the cost, makes product development complex and difficult, and also prolongs the development cycle. It is difficult to achieve miniaturization, high integration, and low cost of the product.

[0044] Based on this, the present invention is based on a new architecture to solve the problems existing in the prior art.

[0045] Embodiment 1

[0046] The present invention aims to propose a method for realizing a user-defined interface of a movement product. By adding serial port command reception, command parsing, user-defined interface control logic, a memory, and interface synthesis logic to the software of the infrared movement product, the function of the user-defined interface is realized.

[0047] Specifically, an embodiment of the present invention provides a method for realizing a user-defined interface of a movement product. Specifically, the method includes:

[0048] S00. Receive commands and related parameters for constructing a custom interface transmitted from an external device, and ensure the accuracy of command transmission through a specific verification method. The commands include various graphic construction operation instructions, and the related parameters are used to determine the position, size, and other attributes of the graphics on the display interface. The verification method calculates based on the commands and parameters and compares with the received verification value;

[0049] In this embodiment, receive commands for drawing, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing points, and clearing points transmitted from the MCU, as well as the parameters attached with the commands. The serial port command format includes a frame header, a command code (indicating drawing, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing points, clearing points), a picture number), a horizontal starting coordinate (X_start), a vertical starting coordinate (Y_start), a horizontal width (X_width), a vertical height (Y_high), a color (used when drawing rectangles, drawing lines, and drawing points), an overlapping area transparency status indicator (T_flag), verification, and a frame tail. The frame header is used to indicate the start of command transmission; the verification adopts cumulative sum verification, that is, starting from the command code, adding up the parameters until the transparency status indicator (SUM), and then dividing by 256 to obtain the remainder, that is, verification = remainder of SUM / 256. The serial port command reception calculates in the same way, and if the calculated result is the same as the received verification value, it is considered that the transmission is correct, otherwise, it is considered that the transmission is abnormal and the current transmission is discarded; the frame tail indicates the end of a serial port transmission. As Figure 2 shown, the specific steps are as follows:

[0050] a. Receive a drawing command, and parse out the picture number (which picture to extract from the memory), horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), horizontal width (X_width), vertical height (Y_high), and overlapping area transparency status indicator (T_flag) parameter from the command.

[0051] b. Receive a draw rectangle command, and parse out the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), horizontal width (X_width), vertical height (Y_high), color, and overlapping area transparency status indicator (T_flag) parameter from the command.

[0052] c. Receive a clear rectangle command, and parse out the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), horizontal width (X_width), and vertical height (Y_high) parameter from the command.

[0053] d. Receive a draw line command, and parse out the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), horizontal width (X_width), and color parameter from the command.

[0054] e. Receive a clear line command, and parse out the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and horizontal width (X_width) parameter of the line from the command;

[0055] f. Receive a draw point command, and parse out the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and color parameter of the point from the command;

[0056] g. Receive a clear point command, and parse out the horizontal starting coordinate (X_start) and vertical starting coordinate (Y_start) of the point from the command.

[0057] S10. According to the received command and parameters, implement the construction, modification, and clearing operations of graphic elements on the display interface, including loading graphic resources from the storage unit, calculating the coordinates of the graphics on the display interface, and performing overlay or clearing processing of the graphics. The display interface has a specific resolution, and each point has a corresponding representation method. There are corresponding logical calculations and processing methods for different graphic operations;

[0058] In this embodiment, the user-defined interface control logic implements the coordinate calculation of picture loading, drawing, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing points, and clearing points on the display interface, as well as the overlay or clearing of graphics. The functional block diagram is as Figure 1As shown. If the display interface has a resolution of N×M, then each point on the interface is represented as Fuse[x,y], where X∈[0,N] and y∈[0,M]. The more specific steps are as follows:

[0059] A. The picture loading control logic obtains the picture number (which picture to extract from the memory), horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), vertical height (Y_high), and overlapping area transparency status indication (T_flag) parameter from the parameters parsed from the drawing command. Calculate the start address for reading the picture from the memory, read start address = Offset + picture number * Pic NUM , and the read image size is Pic[Y_high,X_width];

[0060] Calculate the area where the picture is drawn on the interface. The horizontal end address X_end = X_start + X_width, and the vertical end address Y_end = Y_start + Y_hight. Then replace the area Fuse[x,y], where x∈[X_start,X_end] and y∈[Y_start,Y_end] on the interface with Pic[X_width,Y_high], that is, the interface coordinate pixel value F use [X_start,Y_start]=Pic[0,0], and replace each pixel one by one, a total of X_width×Y_high pixel points are replaced. When the overlapping area transparency status indication (T_flag) parameter is transparent, first judge F use [x,y], where x∈[X_start,X_end] and y∈[Y_start,Y_end], if its value is 0, it means the coordinate point on the interface is empty and replacement is performed, otherwise no replacement is done.

[0061] B. The rectangle drawing logic obtains the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), vertical height (Y_high), color, and overlapping area transparency status indication (T_flag) parameter from the parameters parsed from the rectangle drawing command. Map the data Data used on the interface according to the color. Then calculate the area on the interface. The horizontal end address X_end = X_start + X_width, and the vertical end address Y_end = Y_start + Y_hight. Then replace the F on the interface useReplace the region [x, y], where x ∈ [X_start, X_end] and y ∈ [Y_start, Y_end] with Data, that is, the interface coordinate pixel value F[X_start, Y_start] = Data, and replace pixel by pixel. A total of X_width × Y_high pixels are replaced. When the transparency state indicator (T_flag) parameter in the overlapping region is transparent, first determine whether the value of F use [x, y], where x ∈ [X_start, X_end] and y ∈ [Y_start, Y_end] is 0. If it is 0, it means that the coordinate point on the interface is empty and replacement is performed; otherwise, no replacement is done.

[0062] C. Clearing rectangle logic Obtain the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and vertical height (Y_high) from the parameters parsed from the clearing rectangle command. Calculate the region on the interface, where the horizontal end address X_end = X_start + X_width, and the vertical end address Y_end = Y_start + Y_hight. Then replace the region F use [x, y], where x ∈ [X_start, X_end] and y ∈ [Y_start, Y_end] with 0, that is, the interface coordinate pixel value F use [X_start, Y_start] = 0, and replace pixel by pixel. A total of X_width × Y_high pixels are replaced to achieve rectangle clearing.

[0063] D. Line drawing logic Obtain the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and color from the parameters parsed from the line drawing command. Map the data Data used on the interface according to the color. Then calculate the region on the interface, where the horizontal end address X_end = X_start + X_width, and the vertical address is Y_start. Then replace the region F use [x, y], where x ∈ [X_start, X_end] and y = Y_start with Data, that is, the interface coordinate pixel value F use [X_start, Y_start] = Data, and replace pixel by pixel. A total of X_width × 1 pixels are replaced.

[0064] E. The clearing line logic obtains the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and horizontal width (X_width) from the parameters parsed from the clearing line command. Calculate the area on the interface, where the horizontal end address X_end = X_start + X_width, and the vertical address is Y_start. Then replace the area F on the interface use [x, y], where x ∈ [X_start, X_end] and y = Y_start, with 0, that is, replace the interface coordinate pixel value F use [X_start, Y_start] = 0, and replace pixel by pixel. A total of X_width × 1 pixel points are replaced.

[0065] F. The draw point logic obtains the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and color from the parameters parsed from the draw point command. Map the data Data used on the interface according to the color. Then replace the area F on the interface use [x, y], where x = X_start and y = Y_start, with Data, that is, replace the interface coordinate pixel value F use [X_start, Y_start] = Data, and a total of 1 × 1 pixel points are replaced.

[0066] G. The clear point logic obtains the horizontal starting coordinate (X_start) and vertical starting coordinate (Y_start) from the parameters parsed from the clear point command. Then replace the area F on the interface use [x, y], where x = X_start and y = Y_start, with 0, that is, replace the interface coordinate pixel value F use [X_start, Y_start] = 0, and a total of 1 × 1 pixel points are replaced to achieve point clearing.

[0067] S20. Store the graphic resources used to build the custom interface. The graphic resources are stored in a specific address space according to a predetermined rule, with a storage format having a starting address and a fixed size, and the storage location is related to the graphic resource number;

[0068] In this embodiment, the memory stores the pictures used by the user for drawing. The user stores the pictures required for drawing in the memory in advance. The first picture is stored at the address Offset in the memory. The storage space starting from the starting address Offset is the storage space reserved for the user's drawing. Then each picture is stored once according to a fixed size. The picture size is calculated according to the display interface resolution, and each picture occupies a size Pic NUM = N × M * 2. The starting address for storing the z-th picture is Address = Offset + z × Pic NUM .

[0069] S30. Merge the existing internal interface with the user-defined interface, and determine the display content of each point on the merged interface according to specific rules, so as to generate the complete interface finally output to the display device.

[0070] In this embodiment, the interface synthesis logic implements the interface F generated by the internal interface control logic In [x, y] and the user-defined interface F use [x, y] are merged into F[x, y], where X ∈ [0, N] and y ∈ [0, M]. If F In [x, y] == 0, then F[x, y] = Fuse[x, y]; otherwise, F[x, y] = F in [x, y].

[0071] Embodiment 2

[0072] Based on the same concept, as Figure 3 shown, the present invention also proposes a device for implementing a user-defined interface of a movement product, including:

[0073] An MCU, as the core control unit, is used to download commands and coordinate the work of each module;

[0074] In this embodiment, an infrared movement product is connected through the UART method. The infrared movement product includes the following modules except the display device.

[0075] A serial port command receiving and parsing module, which receives the commands and related parameters for constructing the user-defined interface downloaded by the MCU and performs verification. Among them, the commands include various graphic construction operation instructions, and the related parameters include the position and size of the graphic in the display interface;

[0076] A user-defined interface control logic module, which implements the construction, modification, and clearing operations of graphic elements in the display interface according to the received commands and related parameters, including loading graphic resources from the storage unit, calculating the coordinates of the graphic in the display interface, and performing graphic overlay or clearing processing. The display interface has a preset resolution, each point has a corresponding representation method, and there are corresponding logical calculations and processing methods for different graphic operations;

[0077] A storage unit (memory), which stores the graphic resources for constructing the user-defined interface. The graphic resources are stored in the specified address space according to a predetermined rule, have a storage format with a starting address and a fixed size, and the storage location is related to the graphic resource number;

[0078] An interface synthesis logic module, which merges the existing internal interface with the user-defined interface, and determines the display content of each point on the merged interface according to the preset rules, so as to generate the complete interface finally output to the display device;

[0079] A display device for displaying a complete interface.

[0080] Preferably, the display device here is preferably an OLED display screen.

[0081] Embodiment III

[0082] This embodiment also provides an electronic device. Refer to Figure 4 , including a memory 404 and a processor 402. A computer program is stored in the memory 404, and the processor 402 is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0083] Specifically, the above-mentioned processor 402 may include a central processing unit (CPU), or a preset integrated circuit (Application Specific Integrated Circuit, abbreviated as ASIC), or may be configured as one or more integrated circuits implementing the embodiments of the present invention.

[0084] Among them, the memory 404 may include a mass memory 404 for data or instructions. By way of example and not limitation, the memory 404 may include a hard disk drive (HDD), a floppy disk drive, a solid state drive (SSD), a flash memory, an optical disc, a magneto-optical disc, a magnetic tape, or a universal serial bus (USB) drive, or a combination of two or more of these. Where appropriate, the memory 404 may include removable or non-removable (or fixed) media. Where appropriate, the memory 404 may be internal or external to the data processing device. In a preset embodiment, the memory 404 is a non-volatile memory. In a preset embodiment, the memory 404 includes a read-only memory (ROM) and a random access memory (RAM). Where appropriate, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically alterable ROM (EAROM), or a flash memory, or a combination of two or more of these. Where appropriate, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), where the DRAM may be a fast page mode dynamic random access memory (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0085] The memory 404 can be used to store or cache various data files required for processing and / or communication, as well as possible computer program instructions executed by the processor 402.

[0086] By reading and executing the computer program instructions stored in the memory 404, the processor 402 implements any one of the methods for implementing a user-customizable interface of the movement product in the above embodiments.

[0087] Optionally, the above electronic device may further include a transmission device 406 and an input / output device 408. Among them, the transmission device 406 is connected to the above processor 402, and the input / output device 408 is connected to the above processor 402.

[0088] The transmission device 406 can be used to receive or send data via a network. Specific examples of the above network may include wired or wireless networks provided by the communication provider of the electronic device. In one example, the transmission device includes a network adapter (Network Interface Controller, abbreviated as NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one example, the transmission device 406 can be a radio frequency (Radio Frequency, abbreviated as RF) module, which is used to communicate with the Internet wirelessly.

[0089] The input / output device 408 is used to input or output information.

[0090] Embodiment 4

[0091] This embodiment also provides a readable storage medium, in which a computer program is stored. The computer program includes program code for controlling a process to execute the process. The process includes the method for implementing a user-customizable interface of the movement product according to Embodiment 1.

[0092] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation manners, and will not be elaborated here.

[0093] Generally, various embodiments can be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the present invention can be implemented in hardware, while other aspects can be implemented by firmware or software executed by a controller, microprocessor, or other computing device, but the present invention is not limited thereto. Although various aspects of the present invention can be shown and described as block diagrams, flowcharts, or using some other graphical representation, it should be understood that, as a non-limiting example, the blocks, devices, systems, technologies, or methods described herein can be implemented in hardware, software, firmware, dedicated circuits or logic, general hardware or a controller or other computing device, or some combination thereof.

[0094] Embodiments of the present invention can be implemented by computer software, which is executable by a data processor of a mobile device, such as in a processor entity, or by hardware, or by a combination of software and hardware. A computer software or program (also referred to as a program product), including software routines, applets, and / or macros, can be stored in any device-readable data storage medium, and they include program instructions for performing preset tasks. The computer program product can include one or more computer-executable components configured to execute the embodiments when the program runs. One or more computer-executable components can be at least one software code or a part thereof. Additionally, in this regard, it should be noted that any block of the logical flow can represent a program step, or interconnected logical circuits, blocks, and functions, or a combination of program steps and logical circuits, blocks, and functions. The software can be stored on physical media such as memory chips or storage blocks implemented within the processor, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and their data variants, CDs. The physical media are non-transitory media.

[0095] Those skilled in the art should understand that the technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as within the scope described in this specification.

[0096] The above embodiments merely represent several implementation manners of the present invention, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can still be made, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention should be subject to the appended claims.

Claims

1. A method for implementing a user-customizable interface for a movement product, characterized in that, It is realized directly at the movement software level without an external processing board through the following steps: S00: Receive the commands and related parameters for constructing a custom interface transmitted downward through the serial port command receiving and command parsing module built into the movement product, and perform verification. The commands include various graphic construction operation instructions, and the related parameters include the position and size of the graphic on the display interface; S10: According to the received commands and related parameters, through the user-defined interface control logic module built into the movement product, realize the construction, modification, and clearing operations of graphic elements on the display interface, including loading graphic resources from the storage unit built into the movement product, calculating the coordinates of the graphic on the display interface, and performing overlay or clearing processing of the graphic. The display interface has a preset resolution, and each point has a corresponding representation method. There are corresponding logical calculations and processing methods for different graphic operations; among them, the storage format and storage address calculation method of the graphic resources are determined according to the resolution of the display interface; S20: The storage unit built into the movement product stores the graphic resources for constructing a custom interface. The graphic resources are stored in the specified address space according to a predetermined rule, with a storage format of a starting address and a fixed size, and the storage location is related to the graphic resource number; S30: Through the interface synthesis logic module built into the movement product, merge the existing internal interface with the user-defined interface, and determine the display content of each point of the merged interface according to a preset rule to generate a complete interface finally output to the display device; Among them, the preset rule for merging the interfaces is judged and processed based on the states of each point of the internal interface and the user-defined interface. Specifically: The interface F generated by the internal interface control logic module In [x, y] and the user-defined interface F use are merged into F[x, y], where x ∈ [0, N], y ∈ [0, M], [x, y] are the coordinates of the display interface, and N×M is the resolution of the display interface; If F In [x,y] == 0, then F[x,y] = F use [x,y], and vice versa F[x,y] = F In [x,y].

2. The method for implementing a user-customizable interface of a movement product according to claim 1, wherein, In step S00, the verification method performs mathematical operations based on the commands and related parameters, and the comparison of the result with the preset verification value is used to judge the correctness of the command transmission.

3. A method for implementing a user-customizable interface of a movement product according to claim 1, characterized in that, In step S00, the graphic construction operation instructions include drawing a graphic of a specific shape and clearing a graphic of a specific shape, and the operation commands for different shaped graphics can parse out the corresponding complete parameter set.

4. A method for implementing a user-customizable interface of a movement product according to claim 1, characterized in that, In step S10, the graphic elements include pictures, rectangles, lines, and points, and there are corresponding loading, drawing, and clearing logics for different graphic elements.

5. A method for implementing a user-customizable interface of a movement product according to any one of claims 1 to 4, characterized in that, In step S00, receive the commands and related parameters for constructing a custom interface transmitted downward, and parse out the picture number, horizontal starting coordinate, vertical starting coordinate, horizontal width, vertical height, and overlapping area transparency status indication parameter from the commands.

6. A device for realizing a user-customizable interface of a movement product, characterized in that, Including: MCU, as the core control unit, is used to transmit commands downward and coordinate the work of each module; The serial port command receiving and parsing module, integrated inside the movement product, is used to receive the commands and related parameters for constructing a custom interface transmitted downward by the MCU and perform verification. The commands include various graphic construction operation instructions, and the related parameters include the position and size of the graphic on the display interface; The user-defined interface control logic module is integrated inside the movement product and is used to build, modify, and clear graphical elements on the display interface according to the received commands and related parameters, including loading graphical resources from the storage unit, calculating the coordinates of the graphics on the display interface, and performing overlay or clearing processing of the graphics. The display interface has a preset resolution, and each point has a corresponding representation method. There are corresponding logical calculations and processing methods for different graphical operations; the storage format and storage address calculation method of the graphical resources are determined according to the resolution of the display interface; The storage unit is integrated inside the movement product and is used to store the graphical resources for building the custom interface. The graphical resources are stored in the specified address space according to a predetermined rule, with a storage format of a starting address and a fixed size, and the storage location is related to the graphical resource number; The interface composition logic module is integrated inside the movement product and is used to merge the existing internal interface with the user-defined interface, and determine the display content of each point of the merged interface according to a preset rule to generate the complete interface finally output to the display device; the preset rule for merging the interfaces is judged and processed based on the states of each point of the internal interface and the user-defined interface. Specifically: The interface F generated by the internal interface control logic module In [x, y] and the user-defined interface F use are merged into F[x, y], where x ∈ [0, N], y ∈ [0, M], [x, y] are the coordinates of the display interface, and N × M is the resolution of the display interface; If F In [x,y] == 0, then F[x,y] = F use [x,y], otherwise F[x,y] = F In [x,y]; The display device is used to display the complete interface.

7. An electronic device, comprising a memory and a processor, characterized in that, The computer program is stored in the memory, and the processor is set to run the computer program to execute the method for implementing the user-customizable interface of the movement product according to any one of claims 1 to 5.

8. A readable storage medium, characterized in that, The computer program is stored in the readable storage medium. The computer program includes program code for controlling a process to execute the process, and the process includes the method for implementing the user-customizable interface of the movement product according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Layer fusion method, device and system

    CN112634404A

  • Graphical programming-based material drawing and editing method, device and system and medium

    CN113254005A

  • Parameterization setting method and system based on EDA design tool, electronic equipment and storage medium

    CN118886373A

  • Method and device for drawing on map interface, storage medium and electronic equipment

    CN119205984A