CN116974670B - Graphical control management method and system based on single chip microcomputer - Google Patents

Graphical control management method and system based on single chip microcomputer Download PDF

Info

Publication number
CN116974670B
CN116974670B CN202310858197.1A CN202310858197A CN116974670B CN 116974670 B CN116974670 B CN 116974670B CN 202310858197 A CN202310858197 A CN 202310858197A CN 116974670 B CN116974670 B CN 116974670B
Authority
CN
China
Prior art keywords
interface
graphical
graphical control
information
module
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310858197.1A
Other languages
Chinese (zh)
Other versions
CN116974670A (en
Inventor
蔡树衡
张伟
黄浩涛
卢键沂
陈锡钊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Hybribio Biotech Ltd
Hybribio Ltd
Guangdong Kaipu Technology Intelligent Manufacturing Co ltd
Original Assignee
Guangzhou Hybribio Biotech Ltd
Hybribio Ltd
Guangdong Kaipu Technology Intelligent Manufacturing Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Hybribio Biotech Ltd, Hybribio Ltd, Guangdong Kaipu Technology Intelligent Manufacturing Co ltd filed Critical Guangzhou Hybribio Biotech Ltd
Priority to CN202310858197.1A priority Critical patent/CN116974670B/en
Publication of CN116974670A publication Critical patent/CN116974670A/en
Application granted granted Critical
Publication of CN116974670B publication Critical patent/CN116974670B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Digital Computer Display Output (AREA)

Abstract

The invention provides a graphical control management method and a graphical control management system based on a single chip microcomputer, which relate to the technical field of single chip microcomputer control and are used for creating a static memory for registering graphical control information and storing interface parameters on the single chip microcomputer; the singlechip is communicated with the display equipment through a data bus, controls the display equipment to generate relevant interfaces on each page, and stores graphical control information and corresponding interface parameters of each interface in a static memory created by the singlechip; the singlechip reads the input information of the input equipment, updates the graphical control information according to the input information and the interface running state information of the display equipment, transmits the updated graphical control information to the display equipment through a corresponding interface, and refreshes the generated interface, so that the development efficiency and the interface response speed are effectively improved, the interaction between a user and a product is more convenient and quick, and the user is guided to manage and operate the system or software more intuitively.

Description

Graphical control management method and system based on single chip microcomputer
Technical Field
The invention relates to the technical field of single-chip microcomputer control, in particular to a graphical control management method and system based on a single-chip microcomputer.
Background
With the continuous development of computer technology, graphical interfaces have become a common feature in modern computer systems, and the graphical interfaces display information and functions to users in an intuitive and easy-to-operate manner through a graphical control management manner, and realize interaction between users and products.
Currently, in embedded systems, a single-chip microcomputer (Microcontroller Unit) is widely applied to graphical control management, which is a knowledge and technology for user interface design, graphic rendering and drawing, operating system and software interface, data interaction and storage and other aspects based on a graphical interface, and can help a user to manage and operate the system or software more conveniently. The graphical control management is realized on the singlechip, the intelligent management and control of the electronic equipment can be realized, the automation level of the equipment is improved, and better user experience is provided, but the traditional singlechip has limited resources, and the development process is complex, so that the design and realization of a graphical interface are relatively difficult.
The prior art discloses a graphical interface operation system and an implementation method thereof, wherein the method fills texts, icons, touch controls, attribute values of layout and callback functions of configuration events of each interface in an interface element table of a singlechip memory in advance; and reading the text, the icon, the touch control, the attribute value of the layout and the callback function of the event of each interface in the interface element list, namely loading the text, the icon, the touch control and the attribute value of the layout of a specific interface by calling the first interface to generate the specific interface, and displaying the generated interface on the display device by calling the second interface: the method comprises the steps of calling a third interface to read input information from input equipment in real time, calling a callback function of an event when the event is triggered to refresh the interface, wherein resources of the singlechip are limited.
Disclosure of Invention
In order to solve the problems of low development efficiency and low interface response speed in the current graphical interface operation system realization method, the application provides a graphical control management method and system based on a singlechip, which effectively improve development efficiency and interface response speed, provide convenience and rapidness for interaction between a user and a product, and guide the user to manage and operate the system or software more intuitively.
In order to achieve the technical effects, the technical scheme of the invention is as follows:
a graphical control management method based on a singlechip comprises the following steps:
s1, creating a static memory for registering graphical control information and storing interface parameters on a singlechip;
S2, the singlechip is communicated with the display equipment through a data bus, the singlechip controls the display equipment to generate relevant interfaces on each page, and graphical control information and corresponding interface parameters of each interface are stored in a static memory created by the singlechip;
s3, the singlechip reads input information of the input equipment, updates the graphical control information according to the input information and interface running state information of the display equipment, transmits the updated graphical control information to the display equipment through a corresponding interface, and refreshes the generated interface.
Preferably, the singlechip is provided with an input interface module and a control management module, the input interface module is used for transmitting input information of the input device to the control management module, and the control management module controls interfaces generated by each page on the display device, specifically: the control management module adopts interfaces corresponding to the graphical controls, creates different graphical controls on interfaces of a designated page, calls a window creation function to process interface parameters corresponding to the graphical controls, and displays interfaces generated by interface parameter processing results on display equipment; and the control management module is created according to the form of the static memory, and the quantity of graphical control information managed by the control management module does not exceed a preset quantity threshold value.
Preferably, different graphical controls are created on the interface of the designated page, in the interface of the designated page, the first created graphical control is marked as a focus control, the value is 1, and the other graphical controls are 0; all graphical control generation controls are created by adopting the same interface.
Preferably, the interface parameters include a graphical control container number, a graphical control type, an X coordinate displayed by the graphical control, a Y coordinate displayed by the graphical control, a length and a width of the graphical control, characters displayed on the graphical control, a callback function of a focus, a picture displayed by the focus, a callback function of the focus, a picture displayed by the focus, and an event callback function of the input device; the input device is a key device, and a plurality of keys are arranged on the key device.
Preferably, the window creating function adopts CreateWindows functions, the CreateWindows functions process other parameters of interface parameters according to the type of the graphical control, interfaces of different graphical controls are displayed on the display device, after the interface of each designated page is generated, pages of a main interface are displayed, and interfaces of other pages are stored in a cache so as to switch the interfaces of each page according to key input.
Preferably, step S3 is specifically: the singlechip circularly reads the key information of the key equipment, transmits the key information to the control management module, and the control management module calls a callback function for obtaining a focus, a callback function for losing the focus and an event callback function for the key of the key equipment according to the key information and the running state information of an interface, updates the graphical control information, transmits the updated graphical control information to the display equipment, and refreshes the interface generated by the display equipment.
The invention also provides a graphical control management system based on the singlechip, which comprises: the input device, the singlechip and the display device are connected in sequence;
the input device is used for inputting information to the singlechip;
The single chip microcomputer is used for creating static memory for registering graphical control information and storing interface parameters, and then is communicated with the display equipment through the data bus, the single chip microcomputer controls the display equipment to generate relevant interfaces on each page, and the graphical control information and the corresponding interface parameters of each interface are stored in the static memory created by the single chip microcomputer; finally, the input information of the input equipment is read, the graphical control information is updated according to the input information and the interface running state information of the display equipment, and the updated graphical control information is transmitted to the display equipment through a corresponding interface;
and the display equipment is used for generating relevant interfaces on each page according to the control of the singlechip, receiving updated graphical control information and refreshing the generated interfaces.
Preferably, the singlechip is provided with an input interface module and a control management module; the input interface module is used for transmitting the input information of the input device to the control management module,
The control management module comprises a creation sub-module, a control sub-module and a reading sub-module;
the creating sub-module is used for creating a static memory for registering graphical control information and storing interface parameters on the singlechip, wherein the control management module is created in the form of the static memory;
the control submodule is used for controlling interfaces generated on each page of the display equipment, adopting interfaces corresponding to the graphical controls, creating different graphical controls on the interfaces of the designated pages, calling a window creation function to process interface parameters corresponding to the graphical controls, and displaying interfaces generated by interface parameter processing results on the display equipment;
And the reading sub-module is used for circularly reading the input information of the input equipment, updating the graphical control information according to the input information and the running state information of the interface, and transmitting the updated graphical control information to the display equipment.
Preferably, the display device is provided with a read-write module, an interface generating module and an interface refreshing module;
The read-write module is used for reading the transmission data of the control management module;
the interface generating module is used for generating an interface of a transmission data processing result according to the transmission data read by the reading and writing module;
And the interface refreshing module is used for refreshing the interface generated by the display equipment according to the transmission data read by the reading and writing module.
Preferably, the singlechip is further provided with a memory, and the memory is used for storing graphical control information of a current display interface on the display device.
Compared with the prior art, the technical scheme of the invention has the beneficial effects that:
The invention provides a graphical control management method and a graphical control management system based on a singlechip, which are characterized in that firstly, a static memory for registering graphical control information and storing interface parameters is created on the singlechip, then the singlechip is used for communicating with a display device through a data bus, the singlechip controls the display device to generate relevant interfaces on each page, the graphical control information of each interface and the corresponding interface parameters are stored in the static memory created by the singlechip, the development process of the singlechip is simplified, the defects of excessive data processing function development on the singlechip, occupation of a large amount of hardware data of the singlechip and realization of excessive functions are avoided, the data processing and the interface generation are realized only by the singlechip, the input information of an input device is further read through the singlechip without being matched with an external circuit, the updated graphical control information is transmitted to the display device, the interface generated by the display device is refreshed, the development efficiency and the interface response speed are effectively improved, the interaction between a user and a product is more convenient and quick, and the user is guided to manage and operate a system or software intuitively.
Drawings
FIG. 1 shows a flow diagram of a graphical control management method based on a single chip microcomputer according to an embodiment of the present invention;
FIG. 2 shows a hardware connection diagram of a graphical control management method based on a single chip microcomputer according to an embodiment of the invention;
FIG. 3 shows a schematic structural diagram of a graphical control management system based on a single-chip microcomputer according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a control management module according to an embodiment of the present invention;
1. An input device; 2. a single chip microcomputer; 21. an input interface module; 22. a control management module; 221. creating a sub-module; 222. a control sub-module; 223. a reading sub-module; a 23 memory; 3. a display device; 31. a read-write module; 32. an interface generation module; 33. and an interface refreshing module.
Detailed Description
The drawings are for illustrative purposes only and are not to be construed as limiting the present patent;
For better illustrating the present embodiment, some parts of the drawings may be omitted, enlarged or reduced, and do not represent actual dimensions, and the description of the directions of the parts such as "up" and "down" is not limiting of the present patent;
it will be appreciated by those skilled in the art that some well known descriptions in the figures may be omitted;
The positional relationship depicted in the drawings is for illustrative purposes only and is not to be construed as limiting the present patent;
the technical scheme of the invention is further described below with reference to the accompanying drawings and examples.
Example 1
As shown in fig. 1, the present embodiment provides a graphical control management method based on a single-chip microcomputer, which includes the following steps:
s1, creating a static memory for registering graphical control information and storing interface parameters on a singlechip;
In step S1, the single-chip microcomputer is provided with an input interface module and a control management module, the input interface module is used for transmitting input information of the input device to the control management module, and the control management module controls interfaces generated on each page of the display device, specifically: the control management module adopts interfaces corresponding to the graphical controls, creates different graphical controls on interfaces of a designated page, calls a window creation function to process interface parameters corresponding to the graphical controls, and displays interfaces generated by interface parameter processing results on display equipment; the control management module is created according to the form of the static memory, the number of graphical control information managed by the control management module does not exceed a preset number threshold value 50, and because resources of the singlechip are limited, but the application function is simple, the form of creating the static memory stores at most 50 graphical controls, the control management module manages at most 50 graphical control information, the control management module stores graphical control information under each page, registration is needed in the control management module when each graphical control is created, and the graphical control information is written;
S2, the singlechip is communicated with the display equipment through a data bus, the singlechip controls the display equipment to generate relevant interfaces on each page, and graphical control information and corresponding interface parameters of each interface are stored in a static memory created by the singlechip;
In step S2, different graphical controls are created on the interface of the designated page, where the first created graphical control is marked as a focus control, and the other graphical controls are assigned as 1 and 0; creating all the graphical controls by adopting the same interface; the interface parameters comprise a graphical control container number, a graphical control type, an X coordinate displayed by the graphical control, a Y coordinate displayed by the graphical control, the length and width of the graphical control, characters displayed on the graphical control, a callback function of a focus, a picture displayed by the focus, and an event callback function of an input device; in the static memory of the control management module, a one-dimensional structure array of 50 elements is declared, the one-dimensional structure array is a linear table data structure, a group of continuous memory space is used for storing a group of data with the same type of structure, the one-dimensional structure array name of the embodiment is CTRLMANAGER, and the code script of the one-dimensional structure array is as follows:
typedef struct tagCtrlManager{
unsigned char PageNum;
unsigned char ControlType;
unsigned char IsFocus;
unsigned char CtrlID;
void*pHandle;
}CtrlManager,*PCtrlManager;
In this script, unsigned char PageNum represents the number of pages of the current control on the display device,
Unsigned char ControlType denotes the type of the current graphical control, which may be one of a button, an edit box, and a check box, unsigned char IsFocus denotes whether the focus is on the current graphical control, if yes, it is 1, otherwise it is 0, and each page of the display device has only one graphical control set to 1; unsigned CHAR CTRLID denotes the current control graphical control ID; void pHandle represents a data information set of the current graphical control, such as a storage position of a graphical control picture, a pointer of an event callback function, whether the graphical control type is checked if a check box is formed, input information of the edit box if the graphical control type is the edit box, and the like;
Referring to fig. 2, the input device is a key device, on which an up-down key, a number key, a determination key, and the like are arranged, and interface display control functions of the key device include: selecting different graphical controls of the same interface through the focus of the upper and lower key switching graphical controls, inputting different parameters through the numeric keys, determining keys, canceling the keys to realize page switching, and carrying out previous page or next page; the display device is an LCD liquid crystal display screen, the model is a controllable color TFT (320 XRGBX240,240) liquid crystal display screen, 256 colors can be displayed by adopting an IO connection mode, the display cache adopts SRAM, and for 320XRGBX lattice color LCD, multiple pages of display contents can be stored, so that the rapid switching of pages is realized; the control management module decides to call a corresponding interface of the corresponding graphical control according to the page, the interface control focus and the key information of the display equipment, and the corresponding interface of the graphical control generates or updates the interface of the display equipment; the control management module records the information of each generated graphical control, and the subsequent operation on the graphical control is carried out through the control management module; the singlechip generates control on each page to form a software interface, receives input information of keys, and displays an LCD and processes data according to the input information;
The window creation function adopts CreateWindows functions, the CreateWindows functions process other parameters of interface parameters according to the types of the graphical controls, different graphical control interfaces are displayed on the display equipment, after the interface of each designated page is generated, pages of a main interface are displayed, interfaces of other pages are stored in a cache, wherein the interface parameters are stored in a static memory created in the step S1, and the interfaces of each page are switched according to key input; the corresponding switching is carried out according to the key input, and the front and back switching pages are generally realized by determining the key and canceling the key;
s3, the singlechip reads input information of the input equipment, updates the graphical control information according to the input information and interface running state information of the display equipment, transmits the updated graphical control information to the display equipment through a corresponding interface, and refreshes the generated interface.
The step S3 specifically comprises the following steps: the singlechip circularly reads the key information of the key equipment, transmits the key information to the control management module, and the control management module calls a callback function for obtaining a focus, a callback function for losing the focus and an event callback function for the key of the key equipment according to the key information and the running state information of an interface, updates the graphical control information, transmits the updated graphical control information to the display equipment, and refreshes the interface generated by the display equipment.
The embodiment provides a graphical control management method based on a singlechip, the method adopts a C language to write a program code, compiles and generates a hex binary execution file under a development environment of VR Studio, the method is not based on the prior OS operation system, the method is realized for the original code, firstly, a control management module is created on the singlechip in a static memory mode, then the control management module is used for controlling interfaces generated on various pages of display equipment to adopt interfaces corresponding to graphical controls, different graphical controls are created on interfaces of designated pages, a window creation function is called to process interface parameters corresponding to the graphical controls, the interfaces generated by interface parameter processing results are displayed on the display equipment, the control management module simplifies the development process of the singlechip, the defects of developing excessive data processing functions on the singlechip, occupying a large amount of hardware data of the singlechip and realizing excessive functions are overcome, only the control management module of the singlechip is used for realizing data processing and interface generation, no need to be matched with peripheral circuits, input information of input equipment is further read through the control management module, the graphical control information is updated, the updated graphical control information is displayed on the interface, the interface parameters corresponding to the graphical control is displayed on the display equipment, the display equipment is more convenient to interact with the display equipment, the interactive operation speed is improved, the interactive operation speed is more convenient, the interactive operation speed is improved, and the system is more convenient, and the user interface is more convenient to use.
Example 2
As shown in fig. 3, this embodiment proposes a graphical control management system based on a single-chip microcomputer, where the system includes: an input device 1, a singlechip 2 and a display device 3 which are connected in sequence,
The input device 1 is used for inputting information to the singlechip;
The singlechip 2 is used for creating static memory for registering graphical control information and storing interface parameters, communicating with the display equipment through a data bus, controlling the display equipment to generate relevant interfaces on each page by the singlechip, and storing the graphical control information and the corresponding interface parameters of each interface in the static memory created by the singlechip; finally, the input information of the input equipment is read, the graphical control information is updated according to the input information and the interface running state information of the display equipment, and the updated graphical control information is transmitted to the display equipment through a corresponding interface;
In the singlechip 2, the singlechip 2 is provided with an input interface module 21 and a control management module 22; the input interface module 21 is configured to transmit input information of the input device 1 to the control management module 22, referring to fig. 4, where the control management module 22 includes a creation sub-module 221, a control sub-module 222 and a reading sub-module 223;
A creation sub-module 221, configured to create a static memory on the singlechip 2 for registering graphical control information and storing interface parameters, where the control management module 22 is created in the form of the static memory;
The control submodule 222 is used for controlling interfaces generated on each page of the display device 3, creating different graphical controls on the interfaces of the designated pages by adopting interfaces corresponding to the graphical controls, calling a window creation function to process interface parameters corresponding to the graphical controls, and displaying interfaces generated by interface parameter processing results on the display device 3;
The reading submodule 223 is configured to circularly read input information of the input device 1, update graphical control information according to the input information and running state information of an interface, and transmit the updated graphical control information to the display device 3; when the graphical control management system is started, after the pages are filled at one time, only pages of the display device 3 are switched or refreshed in a small range in the subsequent operation process, the starting process occupies a certain time, the subsequent workload is small, the speed is natural and fast, and if the interface is not loaded for display, repeated display work is possible to be carried out continuously.
And the display equipment 3 is used for generating relevant interfaces on each page according to the control of the singlechip, receiving updated graphical control information and refreshing the generated interfaces.
The display device 3 is provided with a read-write module 31, an interface generation module 32 and an interface refreshing module 33;
a read-write module 31, configured to read the transmission data of the control management module 21;
The interface generating module 32 is configured to generate an interface generated by a transmission data processing result according to the transmission data read by the read-write module 31;
The interface refreshing module 33 is configured to refresh the interface of the display device 3 according to the transmission data read by the read-write module 31.
The singlechip is also provided with a memory 23, and the memory 23 is used for storing graphical control information of the current 3-display interface on the display device 1.
In the embodiment, firstly, a control management module is established on the singlechip in a static memory mode, then, the control management module is utilized to control interfaces generated on each page of the display equipment to adopt interfaces corresponding to graphical controls, different graphical controls are established on interfaces of designated pages, a window creation function is called to process interface parameters corresponding to the graphical controls, interfaces generated by interface parameter processing results are displayed on the display equipment, the control management module simplifies the development process of the singlechip, the defects that excessive data processing functions are developed on the singlechip, a large amount of hardware data of the singlechip are occupied and excessive functions are realized are overcome, the control management module of the singlechip is utilized to realize data processing and interface generation, input information of input equipment is further read through the control management module without being matched with peripheral circuits, the updated graphical control information is transmitted to the display equipment, the interfaces generated by the display equipment are refreshed, the graphical control management system based on the singlechip is unified in the graphical control creation method, the design mode of the graphical interfaces under the singlechip is unified, the efficient and the interactive response speed of the system is improved, the interactive system is more convenient to use or the user interface is more convenient to develop and more convenient to use, and more interactive with the user interface management system is more convenient to use; in addition, the memory is an internal integrated module of the singlechip, a peripheral circuit is not needed, and the access speed is higher; the interface generation module and the interface refreshing module are integrated on the display equipment, the singlechip can complete interface management only by communicating with the display equipment through the control management module, the working pressure of the singlechip is smaller, and the singlechip only needs to send instructions to the display equipment, so that the operation is simpler and the real-time performance is higher; the concurrency is high, the control management module can process other information only by sending the instruction to the display equipment without waiting, and the display equipment finishes operations such as interface refreshing and the like.
Example 3
The embodiment further describes an implementation method of the graphical control management system based on the singlechip, wherein the method is implemented based on the graphical control management system;
Referring to fig. 2, when an interface of a page is generated under a current page of a display device (LCD), three graphic controls, two edit boxes and one check box, respectively, are created; when the graphical control management system is started, after the pages are filled at one time, only pages of the display device are switched or refreshed in a small range in the subsequent operation process, a certain time is occupied at the beginning of the starting, the subsequent workload is small, the speed is natural and high, if the interface is not loaded for display, repeated display work is possible to be continuously performed, the time for loading 3 pages is 9 seconds, the time for updating and switching or refreshing in a small range is 1 second each time, the time for updating and switching in a small range is 109 seconds each time 100 times, and the time for displaying one page is 3 seconds and 100 times is 300 seconds each time without loading display.
When the user presses the direction key "down" on the key device under this interface, the control focus will be changed from the first graphical control to the second graphical control in the display device as shown in fig. 2, and the specific procedure is as follows:
the key equipment transmits key information to a control management module of the singlechip,
And the key management module finds the current page in the one-dimensional structure body array named 'CTRLMANAGER' and marks the current page as the current graphical control, calls a focus-losing callback function of the graphical control, and stores the focus-losing callback function in the control management module in advance.
Calling a callback function losing focus, transmitting updated graphical control information to display equipment, redrawing a first graphical control, and setting a focus mark of current control information to 0 to indicate that focus is not on the graphical controls;
then, the control management module searches the next control of the page, sets a focus flag to 1 to indicate that the focus is on the graphical control, calls a callback function for controlling the second graphical control to acquire the focus, transmits updated graphical control information to the display equipment, and updates the display equipment.
It is to be understood that the above examples of the present invention are provided by way of illustration only and are not intended to limit the scope of the invention. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. Any modification, equivalent replacement, improvement, etc. which come within the spirit and principles of the invention are desired to be protected by the following claims.

Claims (7)

1. The application method of the graphical control management system based on the singlechip is characterized in that the system comprises an input device, a singlechip and a display device which are connected in sequence;
the input device is used for inputting information to the singlechip;
The single chip microcomputer is used for creating static memory for registering graphical control information and storing interface parameters, and then is communicated with the display equipment through the data bus, the single chip microcomputer controls the display equipment to generate relevant interfaces on each page, and the graphical control information and the corresponding interface parameters of each interface are stored in the static memory created by the single chip microcomputer; finally, the input information of the input equipment is read, the graphical control information is updated according to the input information and the interface running state information of the display equipment, and the updated graphical control information is transmitted to the display equipment through a corresponding interface;
the display equipment is used for generating relevant interfaces on each page according to the control of the singlechip, receiving updated graphical control information and refreshing the generated interfaces; wherein the method comprises the steps of:
s1, creating a static memory for registering graphical control information and storing interface parameters on a singlechip;
S2, the singlechip is communicated with the display equipment through a data bus, the singlechip controls the display equipment to generate relevant interfaces on each page, and graphical control information and corresponding interface parameters of each interface are stored in a static memory created by the singlechip;
The singlechip is provided with an input interface module and a control management module, the input interface module is used for transmitting input information of input equipment to the control management module, and the control management module controls interfaces generated on each page of display equipment, specifically: the control management module adopts interfaces corresponding to the graphical controls, creates different graphical controls on interfaces of a designated page, calls a window creation function to process interface parameters corresponding to the graphical controls, and displays interfaces generated by interface parameter processing results on display equipment; the control management module is created according to the form of the static memory, and the quantity of graphical control information managed by the control management module does not exceed a preset quantity threshold;
Different graphical controls are created on the interface of the designated page, wherein in the interface of the designated page, the first created graphical control is marked as a focus control, the value is 1, and the other graphical controls are assigned as 0; creating all the graphical controls by adopting the same interface;
s3, the singlechip reads input information of the input equipment, updates the graphical control information according to the input information and interface running state information of the display equipment, transmits the updated graphical control information to the display equipment through a corresponding interface, and refreshes the generated interface.
2. The application method of the graphical control management system based on the single chip microcomputer according to claim 1, wherein the interface parameters comprise a graphical control container number, a graphical control type, an X coordinate displayed by the graphical control, a Y coordinate displayed by the graphical control, a length and a width of the graphical control, characters displayed on the graphical control, a callback function of a focus, a picture of a focus display, a callback function of a focus loss, a picture of a focus loss and an event callback function of an input device; the input device is a key device, and a plurality of keys are arranged on the key device.
3. The application method of the graphical control management system based on the single chip microcomputer according to claim 2, wherein the window creation function is CreateWindows functions, the CreateWindows functions process other parameters of interface parameters according to the graphical control types, interfaces of different graphical controls are displayed on a display device, after the interfaces of each designated page are generated, pages of a main interface are displayed, and interfaces of other pages are stored in a cache to switch the interfaces of each page according to key input.
4. The application method of the graphical control management system based on the single chip microcomputer as claimed in claim 3, wherein the step S3 is specifically: the singlechip circularly reads the key information of the key equipment, transmits the key information to the control management module, and the control management module calls a callback function for obtaining a focus, a callback function for losing the focus and an event callback function for the key of the key equipment according to the key information and the running state information of an interface, updates the graphical control information, transmits the updated graphical control information to the display equipment, and refreshes the interface generated by the display equipment.
5. The application method of the graphical control management system based on the single-chip microcomputer according to claim 1, wherein the single-chip microcomputer is provided with an input interface module and a control management module; the input interface module is used for transmitting the input information of the input device to the control management module,
The control management module comprises a creation sub-module, a control sub-module and a reading sub-module;
the creating sub-module is used for creating a static memory for registering graphical control information and storing interface parameters on the singlechip, wherein the control management module is created in the form of the static memory;
the control submodule is used for controlling interfaces generated on each page of the display equipment, adopting interfaces corresponding to the graphical controls, creating different graphical controls on the interfaces of the designated pages, calling a window creation function to process interface parameters corresponding to the graphical controls, and displaying interfaces generated by interface parameter processing results on the display equipment;
And the reading sub-module is used for circularly reading the input information of the input equipment, updating the graphical control information according to the input information and the running state information of the interface, and transmitting the updated graphical control information to the display equipment.
6. The application method of the graphical control management system based on the single chip microcomputer according to claim 1, wherein the display device is provided with a read-write module, an interface generation module and an interface refreshing module;
The read-write module is used for reading the transmission data of the control management module;
the interface generating module is used for generating an interface of a transmission data processing result according to the transmission data read by the reading and writing module;
And the interface refreshing module is used for refreshing the interface generated by the display equipment according to the transmission data read by the reading and writing module.
7. The application method of the graphical control management system based on the single-chip microcomputer according to claim 1, wherein a memory is further arranged on the single-chip microcomputer, and the memory is used for storing graphical control information of a current display interface on the display device.
CN202310858197.1A 2023-07-12 2023-07-12 Graphical control management method and system based on single chip microcomputer Active CN116974670B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310858197.1A CN116974670B (en) 2023-07-12 2023-07-12 Graphical control management method and system based on single chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310858197.1A CN116974670B (en) 2023-07-12 2023-07-12 Graphical control management method and system based on single chip microcomputer

Publications (2)

Publication Number Publication Date
CN116974670A CN116974670A (en) 2023-10-31
CN116974670B true CN116974670B (en) 2024-05-14

Family

ID=88470517

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310858197.1A Active CN116974670B (en) 2023-07-12 2023-07-12 Graphical control management method and system based on single chip microcomputer

Country Status (1)

Country Link
CN (1) CN116974670B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662662A (en) * 2012-03-27 2012-09-12 山东电力集团公司 Embedded graphics interface generation system and method
CN105302574A (en) * 2015-11-20 2016-02-03 深圳圣诺医疗设备有限公司 Graphic interface operating system and implementation method thereof
CN109597549A (en) * 2018-10-16 2019-04-09 西北铁道电子股份有限公司 A kind of man-machine interactive system of the GYK equipment based on SelfUI

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102662662A (en) * 2012-03-27 2012-09-12 山东电力集团公司 Embedded graphics interface generation system and method
CN105302574A (en) * 2015-11-20 2016-02-03 深圳圣诺医疗设备有限公司 Graphic interface operating system and implementation method thereof
CN109597549A (en) * 2018-10-16 2019-04-09 西北铁道电子股份有限公司 A kind of man-machine interactive system of the GYK equipment based on SelfUI

Also Published As

Publication number Publication date
CN116974670A (en) 2023-10-31

Similar Documents

Publication Publication Date Title
US5062060A (en) Computer human interface comprising user-adjustable window for displaying or printing information
US5502839A (en) Object-oriented software architecture supporting input/output device independence
US5335323A (en) Computer human interface with multiapplication display
US6493002B1 (en) Method and apparatus for displaying and accessing control and status information in a computer system
US5611031A (en) Graphical user interface for modifying object characteristics using coupon objects
US6262728B1 (en) System and method for annotating a graphical user interface display in a computer-based system
Potel MVP: Model-View-Presenter the Taligent programming model for C++ and Java
US5041967A (en) Methods and apparatus for dynamic menu generation in a menu driven computer system
US7017118B1 (en) Method and apparatus for reordering data items
US20050216834A1 (en) Method, apparatus, and computer-readable medium for dynamically rendering a user interface menu
CN103729065A (en) System and method for mapping touch operations to entity keys
JPH0225919A (en) Window display
US20050289450A1 (en) User interface virtualization
KR20000057701A (en) Method and apparatus for mobile device screen reformatting utilizing hypertext
Burnett et al. Implementing level 4 liveness in declarative visual programming languages
US5287502A (en) Computer system for executing application programs by a combination of picture symbols
CA2151866C (en) Method for asynchronously maintaining an image on a display device
US7096475B2 (en) Runlets as application execution units
JPH0520016A (en) Icon menu display device
CN112099789A (en) Human-computer interaction design method, device, equipment and storage medium
Meyrowitz et al. BRUWIN: An adaptable design strategy for window manager/virtual terminal systems
US6216149B1 (en) Method and system for efficient control of the execution of actions in an object oriented program
CN116974670B (en) Graphical control management method and system based on single chip microcomputer
US5995984A (en) Apparatus and method for zoom-in entry of an element in a table
EP0603095A2 (en) Method and apparatus for managing a windowing environment in an object oriented programming system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant