CN116974670A - 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 PDFInfo
- Publication number
- CN116974670A CN116974670A CN202310858197.1A CN202310858197A CN116974670A CN 116974670 A CN116974670 A CN 116974670A CN 202310858197 A CN202310858197 A CN 202310858197A CN 116974670 A CN116974670 A CN 116974670A
- 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.)
- Granted
Links
- 238000007726 management method Methods 0.000 title claims abstract description 96
- 230000003068 static effect Effects 0.000 claims abstract description 30
- 230000006870 function Effects 0.000 claims description 51
- 238000000034 method Methods 0.000 claims description 36
- 230000008569 process Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 17
- 230000005540 biological transmission Effects 0.000 claims description 12
- 238000011161 development Methods 0.000 abstract description 11
- 230000003993 interaction Effects 0.000 abstract description 5
- 230000004044 response Effects 0.000 abstract description 5
- 230000002452 interceptive effect Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 239000011800 void material Substances 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000003086 colorant Substances 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/44—Arrangements for executing specific programs
- G06F9/451—Execution 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 application 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
Technical Field
The application 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, single-chip microcomputer) 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 application 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 a CreateWindows function, the CreateWindows function processes 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 application 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 application has the beneficial effects that:
the application 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 application;
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 application;
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 application;
FIG. 4 is a schematic diagram of a control management module according to an embodiment of the present application;
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 application 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 of the embodiment is named as a 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 currently being displayed by the control,
unsigned char ControlType indicates the type of the current graphical control, possibly one of a button, an edit box, a check box, unsigned char IsFocus indicates 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 the graphical control ID of the current control; the void 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 the graphical control type is a check box, 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 XRGBX 240) liquid crystal display screen, 256 colors can be displayed by adopting an IO connection mode, the display cache adopts SRAM, and for the 320XRGBX240 lattice color LCD, a plurality of 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 a CreateWindows function, the CreateWindows function processes other parameters of interface parameters according to the graphical control types, 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, 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 a current page in a one-dimensional structure body array named as CtrlManager and marks the current page as a 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 application are provided by way of illustration only and are not intended to limit the scope of the application. 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 application are desired to be protected by the following claims.
Claims (10)
1. A graphical control management method based on a singlechip is characterized by comprising 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.
2. The graphical control management method 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 input information of an input device to the control management module, and the control management module controls interfaces generated by pages on a 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.
3. The method for managing graphical controls based on the single chip microcomputer according to claim 2, wherein different graphical controls are created on an interface of a designated page, and in the interface of the designated page, a first created graphical control is marked as a focus control, assigned with 1, and other graphical controls are assigned with 0; all graphical control generation controls are created by adopting the same interface.
4. The method for managing the graphical control based on the single chip microcomputer according to claim 2, wherein the interface parameters comprise a graphical control container number, a graphical control type, an X coordinate of graphical control display, a Y coordinate of graphical control display, a length and a width of the graphical control, characters displayed on the graphical control, a callback function of a focus, a picture of focus display, a callback function of focus loss, a picture of 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.
5. The method for managing graphical controls based on a single chip microcomputer according to claim 4, wherein the window creation function is a CreateWindows function, the CreateWindows function processes other parameters of interface parameters according to the graphical control types, interfaces of different graphical controls are displayed on the 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.
6. The method for managing graphical controls based on a single chip microcomputer according to claim 5, 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.
7. A graphical control management system based on a single chip microcomputer, the system comprising: 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.
8. The graphical control management method based on the singlechip as set forth in claim 7, wherein 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.
9. The graphical control management method based on the single chip microcomputer according to claim 7, 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.
10. The method for managing graphical controls based on the single-chip microcomputer according to claim 7, wherein a memory is further provided on the single-chip microcomputer, and the memory is used for storing graphical control information of a current display interface on the display device.
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 true CN116974670A (en) | 2023-10-31 |
CN116974670B 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 (2)
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109597549B (en) * | 2018-10-16 | 2020-11-03 | 西北铁道电子股份有限公司 | Human-computer interaction system of GYK equipment based on SelfUI |
-
2023
- 2023-07-12 CN CN202310858197.1A patent/CN116974670B/en active Active
Patent Citations (2)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN116974670B (en) | 2024-05-14 |
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 | |
US6100885A (en) | Supporting modification of properties via a computer system's user interface | |
US4866638A (en) | Process for producing human-computer interface prototypes | |
US5041967A (en) | Methods and apparatus for dynamic menu generation in a menu driven computer system | |
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 | |
CN109902255B (en) | Page mixed browsing record generation method, device, equipment and storage medium | |
KR20090127158A (en) | Service program generation technology | |
JPH0225919A (en) | Window display | |
US20070074181A1 (en) | Method and system for parent/child application integration | |
US20050289450A1 (en) | User interface virtualization | |
KR20000057701A (en) | Method and apparatus for mobile device screen reformatting utilizing hypertext | |
EP0690432B1 (en) | A method for asynchronously maintaining an image on a display device | |
US5287502A (en) | Computer system for executing application programs by a combination of picture symbols | |
CN110990431A (en) | Method for realizing synchronous linkage carousel of China map and line graph data | |
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 | |
US5995984A (en) | Apparatus and method for zoom-in entry of an element in a table | |
CN116974670B (en) | Graphical control management method and system based on single chip microcomputer |
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 |