Method and device for realizing user customizable interface of movement product and readable storage medium thereof

By adding functions such as serial command reception and analysis, user-defined interface control logic in infrared movement product software, users can realize custom interfaces through serial commands, solving the problem of user-defined interfaces in the existing technology, and achieving the goals of miniaturization, high integration and low cost.

CN119847526AActive Publication Date: 2025-04-18SUN CREATIVE ZHEJIANG TECH CO LTD
View PDF 10 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing infrared movement products have shortcomings in the implementation of user-defined interfaces, which leads to limited application and development of products in personalized demand scenarios, and the addition of processing boards leads to large size, high cost, complex development and long cycle.

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, users can realize custom interfaces through the serial port, avoiding adding processing boards.

Benefits of technology

It realizes the implementation of user-defined interface functions without adding processing boards, which reduces development complexity and cycle, reduces product volume, improves product integration and stability, and meets users' personalized needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119847526A_ABST
    Figure CN119847526A_ABST
Patent Text Reader

Abstract

The invention provides a method and a device for realizing a user customizable interface of a movement product and a readable storage medium thereof, and aims to solve the problems of large product size, high cost, complex development and long period caused by the fact that a processing board needs to be additionally arranged when a user of an existing infrared movement product adds the customizable interface for secondary development. Serial port command receiving and analyzing, user-defined interface control logic, a memory and interface synthesis logic are added on infrared movement product software. A command containing a graphic operation instruction and parameters is received through a serial port, graphic resources are loaded from a memory according to the command after accuracy is ensured through verification, graphic coordinates are calculated on a display interface and operations such as superposition or clearing are carried out, and finally an internal interface and a user-defined interface are combined and output to an OLED display screen. The infrared machine core has important significance in the application fields of infrared machine core 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 in particular to a method, a device and a readable storage medium thereof for realizing a user-customizable interface of a movement product. Background Art

[0002] With the continuous development of infrared technology, infrared movement products have been widely used in many fields, such as security monitoring, industrial detection, medical diagnosis, etc. The diversification of these application scenarios has led to the increasing functionality of infrared movement products, and users' demand for personalized products has become stronger.

[0003] In the current market environment, the interface design of infrared movement products is mainly dominated by manufacturers. Manufacturers complete the interface design work in advance during the product development stage based on their own product positioning and expected functions. This design model ensures the integrity and stability of the product to a certain extent, but ignores the personalized and differentiated needs of users in actual use.

[0004] Specifically, when users need to conduct secondary development of infrared movement products under preset application scenarios, especially when adding custom interfaces to meet special functional requirements, they face many difficulties. Existing solutions usually require users to add additional processing boards to add custom interfaces. For example, in some security monitoring systems, users may want to customize personalized monitoring interfaces according to preset monitoring scene layouts and operating habits, including adding preset icons, indicator signs or operation buttons. However, since the infrared movement product itself does not reserve the function for users to directly add interfaces, users have to use external processing boards to achieve this goal.

[0005] This method of implementing a user-defined interface by adding a processing board has obvious defects. First of all, 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 that have strict requirements on product volume, such as portable infrared detection equipment or small security monitoring terminals. Secondly, in terms of cost, the increase in processing boards means an increase in hardware costs, including the purchase cost, installation and debugging costs of the processing board itself, and the related circuit design and wiring costs. Furthermore, 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 movement product itself, but also need to have an in-depth understanding of 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 the adaptation at the software level, the entire development cycle will be greatly extended.

[0006] In summary, the shortcomings of existing infrared movement products in realizing user-defined interfaces have seriously restricted the application and development of products in personalized demand scenarios. To solve these problems, there is an urgent need for a method that can directly realize user-defined interfaces by controlling the movement to meet the growing personalized needs of users, while overcoming the problems of volume, cost, development complexity and cycle brought by existing solutions. Summary of the invention

[0007] The embodiments of the present invention provide a method, device and readable storage medium for realizing a user-customizable interface for a movement product. In view of the current technical problems that the interface of an existing infrared movement product is preset by the manufacturer, and the user realizes a customized interface by adding a processing board during secondary development, which results in a large product size, high cost, complex development and a long cycle, making it difficult to meet personalized needs and the requirements of product miniaturization, high integration and low cost.

[0008] The core technology of the present invention is mainly to add serial port command reception and analysis, user-defined interface control logic, memory and interface synthesis logic to the infrared movement product software, so that users can send commands through the serial port to implement a customized interface and avoid the problems caused by adding a processing board.

[0009] In a first aspect, the present invention provides a method for implementing a user-customizable interface for a movement product, the method comprising the following steps: S00, receiving and verifying the commands and related parameters for building a custom interface, wherein the commands include a variety of graphics building operation instructions, and the related parameters include those for determining the position and size of the graphics on the display interface; S10, according to the received command and related parameters, realize the construction, modification and clearing operation of the graphic element on the display interface, including loading the graphic resource from the storage unit, calculating the coordinates of the graphic on the display interface and performing the superposition 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 calculation and processing methods for different graphic operations; S20, storing graphic resources for constructing a custom interface, the graphic resources are stored in a specified address space according to a predetermined rule, have a starting address and a fixed-size storage format, and the storage location is related to the graphic resource number; S30, merging the existing internal interface with the user-defined interface, and determining the display content of each point of the merged interface according to a preset rule, so as to generate a complete interface that is finally output to a display device.

[0010] Furthermore, in step S00, the verification method is to perform 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.

[0011] Furthermore, in step S00, the graphic construction operation instruction includes drawing a specific shape graphic and clearing a specific shape graphic, and the operation commands for graphics of different shapes can be parsed to obtain corresponding complete parameter sets.

[0012] Furthermore, in step S10, the storage format and storage address calculation method of the graphic resource are determined according to the resolution of the display interface.

[0013] Furthermore, 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.

[0014] Furthermore, in step S30, the preset rule of merging the interfaces is judged and processed based on the status of each point of the internal interface and the user-defined interface.

[0015] Furthermore, in step S00, the command and related parameters for constructing a custom interface are received, and the picture number, horizontal starting coordinate, vertical starting coordinate, horizontal width, vertical height, and overlapping area transparency status indication parameters are parsed from the command.

[0016] In a second aspect, the present invention provides a device for realizing a user-customizable interface of a movement product, comprising: MCU, as the core control unit, is used to transmit commands and coordinate the work of each module; The serial port command receiving and parsing module receives and verifies the commands and related parameters for building a custom interface transmitted by the MCU. The commands include a variety of graphics building operation instructions, and the related parameters include those for determining the position and size of the graphics on the display interface. The user-defined interface control logic module implements the construction, modification and clearing of graphic elements on the display interface according to the received commands and related parameters, including loading graphic resources from the storage unit, calculating the coordinates of the graphics on the display interface, and superimposing or clearing the graphics. 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; A storage unit stores graphic resources used to construct a custom interface. The graphic resources are stored in a specified address space according to a predetermined rule, have a starting address and a fixed-size storage format, and the storage location is related to the graphic resource number; The interface synthesis logic module merges the existing internal interface with the user-defined interface, and determines the display content of each point in the merged interface according to preset rules to generate a complete interface that is finally output to the display device; Display device, used to display the complete interface.

[0017] In a third aspect, the present invention provides an electronic device including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the above-mentioned method for realizing a user-customizable interface for a movement product.

[0018] In a fourth aspect, the present invention provides a readable storage medium, in which a computer program is stored. The computer program includes a program code for controlling a process to execute a process. The process includes the method for implementing a user-customizable interface for a movement product according to the above-mentioned method.

[0019] The main contributions and innovations of the present invention are as follows: 1. No need for additional processing board: The present invention directly expands the functions on the infrared core product software, and users do not need to add a user interface processing board. In the prior art, in order to realize a customized interface, an additional processing board is required each time, which not only increases the hardware cost, but also involves the purchase, installation and debugging of the processing board, as well as the related circuit design and wiring costs.

[0020] 2. Reduce development complexity and cycle: Avoid the problem of multiple hardware modules working together and software adaptation caused by adding a processing board. In the prior art, users need to have a deep understanding of the infrared movement product and the external processing board at the same time during secondary development, which makes development difficult and takes a long time. The present invention allows developers to focus on sending commands through the serial port to implement a custom interface, which greatly reduces the technical threshold and workload and significantly shortens the development cycle.

[0021] 3. Reduce product size: Eliminating the additional processing board helps miniaturize the product. The existing technology increases the product size due to the addition of the processing board, while the present invention does not have a negative impact on the product size while realizing the user-defined interface function, which is conducive to the use of the product in application scenarios with strict requirements on volume, such as portable infrared devices.

[0022] 4. High integration and stability: The present invention integrates the custom interface function into the core product software, which enhances the integration of the product, reduces the unstable factors that may be introduced by external components, and improves the overall stability and reliability of the product.

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

[0024] The details of one or more embodiments of the invention are set forth in the following drawings and description so that other features, objects, and advantages of the invention are more readily apparent. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary 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: Figure 1 is a partial flow chart of a method for implementing a user-customizable interface for a movement product according to an embodiment of the present invention; Figure 2 is a flowchart of loading a picture, generating a rectangle, generating a line, and generating a point according to parsing the first command according to an embodiment of the present invention; Figure 3 is a framework diagram according to an embodiment of the present invention; Figure 4 is a schematic diagram of the hardware structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. Instead, 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.

[0027] It should be noted that: in other embodiments, the steps of the corresponding method are not necessarily performed 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 be combined into a single step for description in other embodiments.

[0028] The existing technology realizes the user-defined interface by adding a processing board, which increases the product size, increases the cost, makes product development complicated and difficult, and prolongs the development cycle, making it difficult to achieve miniaturization, high integration and low cost of the product.

[0029] Based on this, the present invention solves the problems existing in the prior art based on a completely new architecture.

[0030] Embodiment 1 The present invention aims to propose a method for realizing a user-customizable interface for a movement product, and realizes the user-customizable interface function by adding serial port command reception and command parsing, user-customized interface control logic, memory, and interface synthesis logic to the software of the infrared movement product.

[0031] Specifically, an embodiment of the present invention provides a method for implementing a user-customizable interface for a movement product. Specifically, the method includes: S00, receiving commands and related parameters for building a custom interface transmitted by an external device, and ensuring the accuracy of command transmission through a specific verification method, wherein the command includes a variety of graphics 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 is based on the command and the parameters. The calculation is compared with the received verification value; In this embodiment, commands for drawing, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing dots, and clearing dots, as well as parameters accompanying the commands, are received from the MCU. The serial port command format includes a frame header, a command code (instructing drawing, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing dots, and clearing dots), 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, lines, and dots), an indication of the transparent state of the overlapping area (T_flag), a checksum, and a frame tail. The frame header is used to indicate that a command has been issued to start transmission; the checksum adopts a cumulative checksum, that is, starting from the command code, the parameters indicated by the transparent state are added (SUM), and then divided by 256. The remainder obtained is the remainder of the checksum = SUM / 256. The serial port command reception is calculated in the same way. If the calculated result is consistent with the received checksum value, the transmission is considered correct. Otherwise, the transmission is considered abnormal and the current transmission is discarded; the frame tail indicates the end of a serial port transmission. For example Figure 2 As shown, the specific steps are as follows: a. Receive the drawing command and parse 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 transparent status indication (T_flag) parameters from the command.

[0032] b. Receive the command to draw a rectangle, and parse the rectangle's 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) parameters from the command.

[0033] c. Receive the clear rectangle command, and parse the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and vertical height (Y_high) parameters from the command.

[0034] d. Receive the line drawing command and parse the line's horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and color parameters from the command.

[0035] e. Receive the clear line command, and parse the horizontal start coordinate (X_start), vertical start coordinate (Y_start), and horizontal width (X_width) parameters of the line from the command; f. Receive the point drawing command, and parse the point's horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and color parameters from the command; g. Receive the clear point command and parse the point's horizontal start coordinate (X_start) and vertical start coordinate (Y_start) parameters from the command.

[0036] S10, according to the received commands and parameters, realize 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 superimposing or clearing the graphics. The display interface has a specific resolution, each point has a corresponding representation method, and there are corresponding logical calculations and processing methods for different graphic operations; In this embodiment, the user-defined interface control logic realizes the coordinate calculation and graphic superposition or clearing of the display interface required for drawing, such as loading pictures, drawing rectangles, clearing rectangles, drawing lines, clearing lines, drawing points, and clearing points. The functional block diagram is as follows: Figure 1 As shown. If the display interface has a resolution of N×M, then each point on the interface is represented by Fuse[x,y], X∈[0,N], y∈[0,M]. More specific steps are as follows: A. The image loading control logic obtains the image number (the number of images to be extracted from the memory), horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), horizontal width (X_width), vertical height (Y_high), and overlapping area transparent state indication (T_flag) parameters from the parameters parsed by the drawing command. Calculate the starting address of the image to be read from the memory, the starting address = Offset + image number * Pic NUM , read the image size as Pic[Y_high,X_width]; Calculate the area of ​​the picture drawn on the interface, the horizontal end address X_end = X_start + X_width, the vertical end address Y_end = Y_start + Y_hight. Then replace the area Fuse[x,y], x∈[X_start,X_end], y∈[Y_start,Y_end] on the interface with Pic[X_width,Y_high], that is, the interface coordinate pixel value Fuse [X_start, Y_start] = Pic[0,0], replace each pixel one by one, and replace a total of X_width×Y_high pixels. When the transparent state indicator (T_flag) parameter in the overlapping area is transparent, first determine F use Whether the value of [x,y],x∈[X_start,X_end],y∈[Y_start,Y_end] is 0. If it is 0, it means that the coordinate point on the interface is empty and it is replaced. Otherwise, it is not replaced.

[0037] 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) parameters from the parameters of the rectangle drawing command. According to the data used in the color mapping interface, the area on the interface is calculated, and the horizontal end address X_end = X_start + X_width, and the vertical end address Y_end = Y_start + Y_hight. Then the F use [x,y], x∈[X_start,X_end], y∈[Y_start,Y_end] area is replaced with Data, that is, the interface coordinate pixel value F[X_start,Y_start]=Data, and the pixels are replaced one by one, and a total of X_width×Y_high pixels are replaced. When the overlapping area transparent state indication (T_flag) parameter is transparent, first determine F use Whether the value of [x,y],x∈[X_start,X_end],y∈[Y_start,Y_end] is 0. If it is 0, it means that the coordinate point on the interface is empty and it is replaced. Otherwise, it is not replaced.

[0038] C. Clear rectangle logic obtains the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and vertical height (Y_high) from the parameters of the clear rectangle command. 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 set the F use [x,y], x∈[X_start,X_end], y∈[Y_start,Y_end] area is replaced by 0, that is, the interface coordinate pixel value F use [X_start, Y_start] = 0, replace pixels one by one, and replace a total of X_width×Y_high pixels to achieve rectangular clearing.

[0039] D. The line drawing logic obtains the horizontal start coordinate (X_start), vertical start coordinate (Y_start), horizontal width (X_width), and color from the parameters of the line drawing command. According to the data used in the color mapping interface, the area on the interface is calculated, and the horizontal end address X_end = X_start + X_width, and the vertical address is Y_start. Then the F use [x,y],x∈[X_start,X_end], y=Y_start area is replaced by Data, i.e. the interface coordinate pixel value F use [X_start, Y_start] = Data, replace pixels one by one, replacing a total of X_width × 1 pixels.

[0040] E. Clear line logic obtains the horizontal start coordinate (X_start), vertical start coordinate (Y_start), and horizontal width (X_width) from the parameters of the clear line command. Calculate the area on the interface, the horizontal end address X_end = X_start + X_width, and the vertical address is Y_start. Then set the F use [x,y],x∈[X_start,X_end], y=Y_start area is replaced by 0, that is, the interface coordinate pixel value F use [X_start, Y_start] = 0, replace pixels one by one, and replace a total of X_width × 1 pixels.

[0041] F. The drawing logic obtains the horizontal starting coordinate (X_start), vertical starting coordinate (Y_start), and color from the parameters of the drawing command. Then, the color is mapped to the data used on the interface. use [x,y], x=X_start, y=Y_start area is replaced with Data, i.e. the interface coordinate pixel value F use [X_start,Y_start]=Data, a total of 1×1 pixels are replaced.

[0042] G. Clear point logic obtains the horizontal starting coordinate (X_start) and vertical starting coordinate (Y_start) from the parameters of the clear point command. Then set the F use [ x , y ] , x=X_start, y=Y_start area is replaced by 0, i.e. the interface coordinate pixel value F use [ X_start , Y_start ] = 0, a total of 1 × 1 pixels are replaced to achieve point clearing.

[0043] S20, storing graphic resources for constructing a custom interface, wherein the graphic resources are stored in a specific address space according to a predetermined rule, have a starting address and a fixed-size storage format, and the storage location is related to the graphic resource number; In this embodiment, the memory stores pictures used by users for drawing. The user stores the pictures needed for drawing in the memory in advance. The first picture is stored at the address of the memory address Offset. Here, the storage space starting from the starting address Offset is the storage space reserved for user drawing. Then each picture is stored once at a fixed size. The picture size is calculated according to the resolution of the display interface, and each picture occupies a size of Pic NUM =N×M*2. The starting address of the zth picture storage is Address=Offset+z×Pic NUM .

[0044] S30, merging the existing internal interface with the user-defined interface, and determining the display content of each point of the merged interface according to specific rules to generate a complete interface that is finally output to the display device.

[0045] In this embodiment, the interface synthesis logic realizes the interface F generated by the internal interface control logic. In [x,y] and user-defined interface F use [x,y] is merged into F[x,y], X∈[0,N], y∈[0,M]. If F In When [x,y]==0, F[x,y]=Fuse[x,y], otherwise F[x,y]=F in [x,y].

[0046] Embodiment 2 Based on the same concept, Figure 3 As shown, the present invention also proposes a device for realizing a user-customizable interface of a movement product, comprising: MCU, as the core control unit, is used to transmit commands and coordinate the work of each module; In this embodiment, the infrared core product is connected via UART, and the infrared core product includes the following modules except the display device.

[0047] The serial port command receiving and parsing module receives and verifies the commands and related parameters for building a custom interface transmitted by the MCU. The commands include a variety of graphics building operation instructions, and the related parameters include those for determining the position and size of the graphics on the display interface. The user-defined interface control logic module implements the construction, modification and clearing of graphic elements on the display interface according to the received commands and related parameters, including loading graphic resources from the storage unit, calculating the coordinates of the graphics on the display interface, and superimposing or clearing the graphics. 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; A storage unit (memory) stores graphic resources used to construct a custom interface. The graphic resources are stored in a specified address space according to a predetermined rule, have a starting address and a fixed size storage format, and the storage location is related to the graphic resource number; The interface synthesis logic module merges the existing internal interface with the user-defined interface, and determines the display content of each point in the merged interface according to preset rules to generate a complete interface that is finally output to the display device; Display device, used to display the complete interface.

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

[0049] Embodiment 3 This embodiment also provides an electronic device, referring to Figure 4 , comprises a memory 404 and a processor 402, wherein the memory 404 stores a computer program, and the processor 402 is configured to run the computer program to execute the steps in any of the above method embodiments.

[0050] Specifically, the processor 402 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present invention.

[0051] Among them, the memory 404 may include a large capacity memory 404 for data or instructions. For example, but 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 disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 404 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 404 may be inside or outside 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 (Programmable Read-Only Memory, PROM for short), an erasable PROM (Erasable Programmable Read-Only Memory, EPROM for short), an electrically erasable PROM (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), an electrically alterable ROM (Electrically Alterable Read-Only Memory, EAROM for short) or a flash memory (FLASH) or a combination of two or more of these. In appropriate circumstances, the RAM may be a static random access memory (SRAM) or a dynamic random access memory (DRAM), wherein the DRAM may be a fast page mode dynamic random access memory 404 (FPMDRAM), an extended data output dynamic random access memory (EDODRAM), a synchronous dynamic random access memory (SDRAM), etc.

[0052] The memory 404 may 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 .

[0053] The processor 402 reads and executes the computer program instructions stored in the memory 404 to implement any one of the methods for implementing a user-customizable interface for a movement product in the above embodiments.

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

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

[0056] Input / output devices 408 are used to input or output information.

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

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

[0059] In general, various embodiments may be implemented in hardware or dedicated circuits, software, logic, or any combination thereof. Some aspects of the invention may be implemented in hardware, while other aspects may be implemented in firmware or software executed by a controller, microprocessor, or other computing device, but the invention is not limited thereto. Although various aspects of the invention may be shown and described as block diagrams, flow charts, or using some other graphical representation, it should be understood that, as non-limiting examples, the boxes, devices, systems, techniques, or methods described herein may be implemented in hardware, software, firmware, dedicated circuits or logic, general-purpose hardware or controllers or other computing devices, or some combination thereof.

[0060] 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 implemented by hardware, or implemented by a combination of software and hardware. Computer software or programs (also referred to as program products) 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. Computer program products can include one or more computer executable components configured to perform embodiments when the program is running. One or more computer executable components can be at least one software code or a part thereof. In addition, at this point, it should be noted that any box of the logic flow can represent a program step, or interconnected logic circuits, boxes and functions, or a combination of program steps and logic circuits, boxes and functions. Software can be stored in physical media such as memory chips or storage blocks implemented in processors, magnetic media such as hard disks or floppy disks, and optical media such as, for example, DVDs and data variants thereof, CDs. Physical media are non-transient media.

[0061] Those skilled in the art should understand that the technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

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

Claims

1. A method for realizing a user-customizable interface for a movement product, characterized in that: The following steps are involved: S00, receiving and verifying the commands and related parameters for building a custom interface, wherein the commands include a variety of graphics building operation instructions, and the related parameters include those for determining the position and size of the graphics on the display interface; S10, according to the received command and related parameters, realize the construction, modification and clearing operation of the graphic element on the display interface, including loading the graphic resource from the storage unit, calculating the coordinates of the graphic on the display interface and performing the superposition 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 calculation and processing methods for different graphic operations; S20, storing graphic resources for constructing a custom interface, the graphic resources are stored in a specified address space according to a predetermined rule, have a starting address and a fixed-size storage format, and the storage location is related to the graphic resource number; S30, merging the existing internal interface with the user-defined interface, and determining the display content of each point of the merged interface according to a preset rule, so as to generate a complete interface that is finally output to a display device.

2. A method for realizing a user-customizable interface for a movement product as claimed in claim 1, characterized in that: In step S00, the verification method performs mathematical operations based on commands and related parameters, and the comparison between the results and preset verification values ​​is used to determine the correctness of command transmission.

3. A method for realizing a user-customizable interface for a movement product as claimed in claim 1, characterized in that: In step S00, the graphic construction operation instructions include drawing a specific shape graphic and clearing a specific shape graphic, and the operation commands for graphics of different shapes can be parsed to obtain corresponding complete parameter sets.

4. A method for realizing a user-customizable interface for a movement product as claimed in claim 1, characterized in that: In step S10, the storage format and storage address calculation method of the graphic resource are determined according to the resolution of the display interface.

5. The method for realizing 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 different graphic elements have corresponding loading, drawing, and clearing logic.

6. A method for realizing a user-customizable interface for a movement product as claimed in claim 1, characterized in that: In step S30, the preset rules of the merged interface are judged and processed based on the status of each point of the internal interface and the user-defined interface.

7. A method for realizing a user-customizable interface for a movement product according to any one of claims 1 to 6, characterized in that: In step S00, the command and related parameters for constructing a custom interface are received, and the picture number, horizontal starting coordinate, vertical starting coordinate, horizontal width, vertical height, and overlapping area transparency status indication parameters are parsed from the command.

8. A device for realizing a user-customizable interface for a movement product, characterized in that: include: MCU, as the core control unit, is used to transmit commands and coordinate the work of each module; The serial port command receiving and parsing module receives and verifies the commands and related parameters for building a custom interface transmitted by the MCU. The commands include a variety of graphics building operation instructions, and the related parameters include those for determining the position and size of the graphics on the display interface. The user-defined interface control logic module implements the construction, modification and clearing of graphic elements on the display interface according to the received commands and related parameters, including loading graphic resources from the storage unit, calculating the coordinates of the graphics on the display interface, and superimposing or clearing the graphics. 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; A storage unit stores graphic resources used to construct a custom interface. The graphic resources are stored in a specified address space according to a predetermined rule, have a starting address and a fixed-size storage format, and the storage location is related to the graphic resource number; The interface synthesis logic module merges the existing internal interface with the user-defined interface, and determines the display content of each point in the merged interface according to preset rules to generate a complete interface that is finally output to the display device; Display device, used to display the complete interface.

9. An electronic device comprising a memory and a processor, characterized in that: The memory stores a computer program, and the processor is configured to run the computer program to execute the method for realizing a user-customizable interface for a movement product as described in any one of claims 1 to 7.

10. A readable storage medium, characterized in that: The readable storage medium stores a computer program, which includes a program code for controlling a process to execute the process, and the process includes a method for realizing a user-customizable interface for a movement product according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Method and device for achieving user-defined graphical user interface

    CN104267951A

  • 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