An embedded device human-machine interaction system and method

By using embedded device human-computer interaction methods, the human-computer scheduling unit and the business unit operate independently, solving the problems of large development workload and high code complexity in existing technologies, and achieving efficient development and improved reliability.

CN114816402BActive Publication Date: 2026-03-17NR ELECTRIC CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-15
Publication Date
2026-03-17

AI Technical Summary

Technical Problem

In the existing system framework where the human-machine interface program and the device's business program are separated in the embedded devices of the power industry, the development workload is large, the code complexity is high, and the development efficiency and reliability are affected.

Method used

An embedded device human-computer interaction method is adopted. The human-computer scheduling unit receives configuration information files and human-computer business units, and independently completes interface drawing and data interaction. The human-computer business units communicate independently with the data service unit, reducing the scale and code complexity of the human-computer program.

Benefits of technology

When adding or modifying human-machine functions, reduce coupling with other business processes, improve development efficiency and code reliability, and reduce code complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114816402B_ABST
    Figure CN114816402B_ABST
Patent Text Reader

Abstract

The application discloses an embedded device human-computer interaction system and method in the technical field of embedded devices in the electric power industry, and relates to the technical field of embedded devices, and comprises the following steps: receiving configuration information files and various human-computer service units; requesting configuration information files and human-computer service unit files from the management service unit of a service terminal through a human-computer scheduling unit, and generating an entry interface according to the configuration information files; receiving and processing external operation events through the human-computer scheduling unit, determining the human-computer service unit associated with the operation object, executing and transferring human-computer control to the associated human-computer service unit, wherein the human-computer service unit is independently communicated with the data service unit of the service terminal, data acquisition and setting are completed, the display interface is refreshed, and external operation events are received and processed. The application can configure various service units according to actual needs, effectively reduces the size of the human-computer program, and when new human-computer service functions are added, the code complexity is reduced and the development efficiency is improved due to the uncoupling with other services.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to an embedded device human-computer interaction system and method, belonging to the field of embedded device technology in the power industry. Background Technology

[0002] As the market continues to expand, the application scenarios of embedded devices in the power industry are increasing. From traditional protection and control to new energy distribution networks, different scenarios have put forward richer display requirements for the human-machine functions of the devices.

[0003] Currently, embedded devices in the power industry generally adopt a system framework that separates the human-machine interface program from the device's business program. That is, the human-machine interface program runs on one MCU or CPU, while the device's business program runs on another CPU, and the two communicate with each other through serial port / Ethernet / internal bus. Under this framework, the software is mainly implemented in two ways: Method 1, the human-machine display program presets some command messages, and the data service module in the device business program sends the corresponding command messages according to the content to be drawn, specifying the coordinates and display content (symbols or text) in the messages. In this mode, it is generally necessary to preset the drawing method of graphic elements / device symbols or achieve the preset effect by interacting with graphic element / device description information files during the initialization phase. When adding complex graphic elements and their operation logic, both the human-machine display program and the device business program need to be upgraded at the same time, resulting in a large development workload; Method 2, the human-machine display program uses a GUI framework to run some file / information parsing modules, data processing modules, function execution modules, etc. When adding new functions, it is often necessary to modify the graphic configuration file, data processing and execution units at the same time. The modifications involve many modules, and as the functions become more and more complex, the program size of its data processing unit and execution unit will also become larger and larger, resulting in high code complexity, reduced reliability, and impact on development efficiency. Summary of the Invention

[0004] The purpose of this invention is to overcome the shortcomings of the prior art and provide an embedded device human-computer interaction system and method that can configure each business unit according to actual needs, effectively reduce the scale of the human-computer program, and reduce code complexity and improve development efficiency when adding new human-computer business functions because they are not coupled with other business functions.

[0005] To achieve the above objectives, the present invention is implemented using the following technical solution:

[0006] In a first aspect, the present invention provides a human-computer interaction method for an embedded device, executed by the embedded device, comprising:

[0007] Receive configuration information files and various human-machine interface service units;

[0008] The human-machine scheduling unit requests configuration information files and human-machine business unit files from the management service unit of the service terminal, and generates an entry interface based on the configuration information files.

[0009] The human-machine scheduling unit receives and processes external operation events, determines the human-machine business unit associated with the operation object, executes and transfers human-machine control to the associated human-machine business unit, and the human-machine business unit communicates independently with the data service unit of the service terminal to complete data acquisition and setting, refresh the display interface and receive and process external operation events.

[0010] When the current interface is exited, the human-machine business unit exits and returns human-machine control to the human-machine scheduling unit. The human-machine scheduling unit then displays the entry interface and waits for the operator's next operation.

[0011] Furthermore, the human-machine scheduling unit requests configuration information files and human-machine business unit files from the management service unit of the service terminal, and generates an entry interface based on the configuration information files, including:

[0012] S1. The human-machine scheduling unit first requests the configuration information file verification code from the management service unit of the service terminal and compares it with the local verification code. If the two are consistent, S2 is executed directly; if the two are inconsistent, the configuration information file is requested from the management service unit.

[0013] S2. The human-machine scheduling unit parses the configuration information file and requests the verification code of the associated human-machine business unit from the management service unit according to the actual associated human-machine business unit. It then compares the verification code with the verification code of the local human-machine business unit file. For human-machine business units whose verification codes match, no processing is performed. For human-machine business units whose verification codes do not match, the human-machine scheduling unit requests the latest human-machine business unit file from the management service unit.

[0014] S3. After all human-machine business unit files are processed, the human-machine scheduling unit generates an entry interface based on the menu structure in the configuration information file and responds to external operation events of the operator on the entry interface.

[0015] Furthermore, the human-machine business unit is obtained through interaction between the human-machine scheduling unit and the management service unit, and the human-machine business unit completes the drawing of the current interface, information interaction with the data service unit, and execution of its own logical functions based on its own code implementation.

[0016] Furthermore, the configuration information file is configured and generated by the operator and includes menu names and their associated human-machine business unit information and verification code information. The menu names and their associated human-machine business unit information are used by the human-machine scheduling unit of the human-machine terminal to form an entry interface, and the verification code information is used to verify whether the file has been changed.

[0017] Furthermore, the data service unit receives message information from the human-machine interface unit, organizes response data, and performs data setting operations.

[0018] Furthermore, when the human-machine interface function needs to be modified, the embedded device receives the modified human-machine interface unit according to the actual needs; when the human-machine interface function needs to be added, the embedded device receives the newly added human-machine interface unit and the modified configuration information file.

[0019] Furthermore, the system receives newly added human-machine interface business units and modified configuration information files, including: after implementing interface drawing, data interaction with data service units, and business logic functions in the new human-machine interface business units according to functional requirements, modifying the configuration information file, and adding the newly added human-machine interface business units to appropriate positions in the menu organization structure of the configuration information file for use as the entry interface display at the start of runtime.

[0020] In a second aspect, the present invention provides an embedded device human-computer interaction system, comprising:

[0021] Data receiving module: used to receive configuration information files and various human-machine interface business units;

[0022] Human-Machine Scheduling Unit: Used to request configuration information files and human-machine business unit files from the management service unit of the service terminal, and generate an entry interface based on the configuration information files; receive and process external operation events, determine the human-machine business unit associated with the operation object, execute and transfer human-machine control to the associated human-machine business unit;

[0023] Human-Machine Service Unit: Used to communicate independently with the data service unit of the service terminal, complete data acquisition and setting, refresh the display interface and receive and process external operation events; when exiting the current interface, the human-machine service unit exits and returns human-machine control to the human-machine scheduling unit, wherein the human-machine scheduling unit displays the entry interface and waits for the operator's next operation.

[0024] Thirdly, the present invention provides an embedded human-computer interaction device, including a processor and a storage medium;

[0025] The storage medium is used to store instructions;

[0026] The processor is configured to operate according to the instructions to perform the steps of the method according to any of the foregoing.

[0027] Fourthly, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any of the methods described above.

[0028] Compared with the prior art, the beneficial effects achieved by the present invention are as follows:

[0029] This invention provides an embedded device human-computer interaction method. Within the aforementioned system framework, it proposes an embedded human-computer interaction method that improves development efficiency when adding or modifying human-computer functions. Application personnel can configure each business unit according to actual needs, effectively reducing the size of the human-computer program. Furthermore, when adding new human-computer business functions, the method reduces code complexity and improves development efficiency and code reliability because it is not coupled with other business functions. Attached Figure Description

[0030] Figure 1 This is a flowchart illustrating a human-computer interaction method for an embedded device provided in Embodiment 1 of the present invention;

[0031] Figure 2 This is an embedded device human-computer interaction system framework provided in Embodiment 1 of the present invention;

[0032] Figure 3 This is a flowchart illustrating the information interaction between the human-machine scheduling unit and the management service unit provided in Embodiment 1 of the present invention.

[0033] Figure 4 This is a flowchart illustrating the process of adding new business functions as provided in Embodiment 1 of the present invention. Detailed Implementation

[0034] The present invention will be further described below with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and should not be used to limit the scope of protection of the present invention.

[0035] Example 1:

[0036] like Figure 1 and Figure 2 As shown, this embodiment provides a human-machine interaction method for an embedded device. The embedded device includes a service terminal and a human-machine terminal. The service terminal includes a data service unit, a management service unit, and a storage medium for storing configuration information files and human-machine business unit files. The human-machine terminal initially only has a human-machine scheduling unit. The human-machine business units in the running phase are obtained by the interaction between the human-machine scheduling unit and the management service unit in the initialization phase.

[0037] The human-machine scheduling unit of the human-machine terminal is an independent program running on the terminal. It draws the entry interface based on a configuration information file (this file, configured and generated by the operator, includes menu names, associated human-machine service unit information, and verification code information; the menu names and associated human-machine service unit information are used by the terminal's scheduling unit to form the entry interface, and the verification code information is used to verify whether the file has been modified). During the display of the entry interface, it responds to external operation events and schedules and executes relevant human-machine service units. Each human-machine service unit is an independently running program used for drawing the interface of a specific human-machine service function, communicating with the data service unit to acquire and set data, and executing business logic. Each human-machine service unit corresponds to a specific human-machine service function, and each device has multiple human-machine service functions, including but not limited to status viewing, setting values, command execution, and waveform display. The data service unit receives message information from the human-machine service units, organizes response data, and executes data setting operations.

[0038] This method includes the following steps:

[0039] Step (A): Configure the HMI menu and its HMI business units according to actual needs and generate a configuration information file. Download the configuration information file and each HMI business unit to the embedded device.

[0040] Step (B), the embedded device startup initialization phase, involves the human-machine terminal's human-machine scheduling unit requesting configuration information files and human-machine business unit files from the service terminal's management service unit, and generating an entry interface based on the configuration information files, such as... Figure 3 As shown, it includes the following steps:

[0041] (B1) The human-machine scheduling unit of the human-machine terminal first requests the configuration information file verification code from the management service unit of the service terminal and compares it with the local verification code. If the two are consistent, it will directly execute (B2); if the two are inconsistent, it will request the configuration information file from the management service unit.

[0042] (B2) The human-machine scheduling unit parses the configuration information file and requests the verification code of the associated human-machine business unit from the management service unit according to the actual associated human-machine business unit. It then compares the verification code with the verification code of the local human-machine business unit file. If the verification code comparison results are consistent, no processing is performed. If the verification code comparison results are inconsistent, the human-machine scheduling unit requests the latest human-machine business unit file from the management service unit.

[0043] (B3) After all the human-machine business unit files are processed, the human-machine scheduling unit generates an entry interface based on the menu structure in the configuration information file and responds to the operator's mouse, keyboard, touch screen and other events on the entry interface.

[0044] The human-machine scheduling unit of the human-machine terminal uses a verification code to determine whether it is necessary to reread the configuration information file and human-machine business unit file from the management service unit. This avoids re-acquiring them every time the terminal starts, reduces unnecessary information interaction, and ensures security and reliability.

[0045] Step (C), the embedded device operation phase: The human-machine terminal's human-machine scheduling unit executes the corresponding human-machine service unit based on the operator's selection. The human-machine service unit, according to its own code implementation, completes the drawing of the current interface, information interaction with the data service unit, and execution of its own logical functions. Specifically: the human-machine terminal's human-machine scheduling unit receives and processes external operation events, determines the human-machine service unit associated with the operation object, executes and transfers human-machine control to the associated human-machine service unit, and the human-machine service unit independently communicates with the data service unit of the service terminal to complete data acquisition and setting, refreshes the display interface, and receives and processes external operation events, including keyboard operation events, mouse operation events, and touchscreen operation events.

[0046] In step (D), during the embedded device operation phase, if the current interface is exited, the current human-machine business unit will exit and hand over human-machine control to the human-machine scheduling unit, which will then display the entry interface and wait for the operator's next operation.

[0047] Step (E): If it is necessary to modify the existing human-machine business functions, simply modify the corresponding human-machine business unit and download the updated human-machine business unit to the device.

[0048] Step (F): If new human-machine business functions are needed, a new human-machine business unit is added to implement the new business functions, such as... Figure 4 As shown, it includes the following steps:

[0049] (F1) Implement interface drawing, data interaction with the data service unit, and business logic functions in the new human-machine business unit according to functional requirements.

[0050] (F2) Modify the configuration information file and add the newly added human-machine business unit to the appropriate position in the menu organization structure of the configuration information file for display on the entry interface when the program starts running.

[0051] (F3) Download the newly added human-machine business unit and the modified configuration information file to the device.

[0052] When it is necessary to modify or add a certain human-machine business function, only one human-machine business unit needs to be operated. This human-machine business unit can independently complete the various requirements of the human-machine business function without relying on other human-machine business units, thereby reducing the coupling with other modules and helping to improve code reliability.

[0053] This method can configure each business unit according to actual needs, effectively reducing the size of the human-machine program. When adding new human-machine business functions, it reduces code complexity and improves development efficiency because it is not coupled with other businesses.

[0054] Example 2:

[0055] An embedded device human-computer interaction system, which can implement the embedded device human-computer interaction method described in Embodiment 1, includes:

[0056] Data receiving module: used to receive configuration information files and various human-machine interface business units;

[0057] Human-Machine Scheduling Unit: Used to request configuration information files and human-machine business unit files from the management service unit of the service terminal, and generate an entry interface based on the configuration information files; receive and process external operation events, determine the human-machine business unit associated with the operation object, execute and transfer human-machine control to the associated human-machine business unit;

[0058] Human-Machine Service Unit: Used to communicate independently with the data service unit of the service terminal, complete data acquisition and setting, refresh the display interface and receive and process external operation events; when exiting the current interface, the human-machine service unit exits and returns human-machine control to the human-machine scheduling unit, wherein the human-machine scheduling unit displays the entry interface and waits for the operator's next operation.

[0059] Example 3:

[0060] This invention also provides an embedded device human-computer interaction device that can implement the embedded device human-computer interaction method described in Embodiment 1, including a processor and a storage medium;

[0061] The storage medium is used to store instructions;

[0062] The processor is configured to operate according to the instructions to perform the steps of the following method:

[0063] Receive configuration information files and various human-machine interface service units;

[0064] The human-machine scheduling unit requests configuration information files and human-machine business unit files from the management service unit of the service terminal, and generates an entry interface based on the configuration information files.

[0065] The human-machine scheduling unit receives and processes external operation events, determines the human-machine business unit associated with the operation object, executes and transfers human-machine control to the associated human-machine business unit, and the human-machine business unit communicates independently with the data service unit of the service terminal to complete data acquisition and setting, refresh the display interface and receive and process external operation events.

[0066] When the current interface is exited, the human-machine business unit exits and returns human-machine control to the human-machine scheduling unit. The human-machine scheduling unit then displays the entry interface and waits for the operator's next operation.

[0067] Example 4:

[0068] This invention also provides a computer-readable storage medium that can implement the embedded device human-computer interaction method described in Embodiment 1. The medium stores a computer program that, when executed by a processor, performs the steps of the following method:

[0069] Receive configuration information files and various human-machine interface service units;

[0070] The human-machine scheduling unit requests configuration information files and human-machine business unit files from the management service unit of the service terminal, and generates an entry interface based on the configuration information files.

[0071] The human-machine scheduling unit receives and processes external operation events, determines the human-machine business unit associated with the operation object, executes and transfers human-machine control to the associated human-machine business unit, and the human-machine business unit communicates independently with the data service unit of the service terminal to complete data acquisition and setting, refresh the display interface and receive and process external operation events.

[0072] When the current interface is exited, the human-machine business unit exits and returns human-machine control to the human-machine scheduling unit. The human-machine scheduling unit then displays the entry interface and waits for the operator's next operation.

[0073] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0074] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1A device that provides the functions specified in one or more boxes.

[0075] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0076] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0077] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.

Claims

1. An embedded device human-machine interaction method, characterized in that, The embedded device is executed, comprising: receiving configuration information files and each human-computer service unit; requesting configuration information files and human-computer service unit files from the management service unit of the service terminal through the human-computer scheduling unit, and generating an entry interface according to the configuration information files; receiving and processing external operation events through the human-computer scheduling unit, determining the human-computer service unit associated with the operation object, executing and transferring the human-computer control right to the associated human-computer service unit, which independently communicates with the data service unit of the service terminal, completes data acquisition and setting, refreshes the display interface, and receives and processes external operation events; when the current interface exits, the human-computer service unit exits and returns the human-computer control right to the human-computer scheduling unit, and the human-computer scheduling unit displays the entry interface and waits for the next operation of the operator; wherein, requesting configuration information files and human-computer service unit files from the management service unit of the service terminal through the human-computer scheduling unit, and generating an entry interface according to the configuration information files, comprises: S1, the human-computer scheduling unit first requests the configuration information file check code from the management service unit of the service terminal, and compares it with the local check code, if the two are consistent, then directly execute S2; if the two are not consistent, request the configuration information file from the management service unit; S2, the human-computer scheduling unit parses the configuration information file, and according to the actual associated human-computer service unit, requests the check code of the associated human-computer service unit from the management service unit, and compares it with the check code of the local human-computer service unit file, for the human-computer service unit whose check code comparison result is consistent, do not process; for the human-computer service unit whose check code comparison is inconsistent, the human-computer scheduling unit requests the latest human-computer service unit file from the management service unit; S3, after all human-computer service unit files are processed, the human-computer scheduling unit generates an entry interface according to the menu structure in the configuration information file, and responds to the external operation events of the operator in the entry interface.

2. The method of claim 1, wherein, The human-computer service unit is obtained by the human-computer scheduling unit interacting with the management service unit, and the human-computer service unit completes the drawing of the current interface, the information interaction with the data service unit, and the execution of its own logic function according to its own code implementation.

3. The method of claim 1, wherein, The configuration information file is configured and generated by the operator, and contains menu name and its associated human-computer service unit information and check code information, wherein the menu name and its associated human-computer service unit information are used by the human-computer scheduling unit of the human-computer terminal to form an entry interface, and the check code information is used to check whether the file has changed.

4. The method of claim 1, wherein, The data service unit receives the message information of the human-computer service unit, organizes the response data and executes the data setting operation.

5. The method of claim 1, wherein, When the human-computer service function needs to be modified, the embedded device receives the human-computer service unit modified according to the actual needs; when the human-computer service function needs to be added, the embedded device receives the newly added human-computer service unit and the modified configuration information file.

6. The method of claim 5, wherein, Receiving the added human-machine service unit and the modified configuration information file, including: after realizing the interface drawing, data interaction with the data service unit and business logic function in the new human-machine service unit according to the functional requirements, modifying the configuration information file, adding the added human-machine service unit to the appropriate position of the menu organization structure of the configuration information file, for the entry interface display at the beginning of running.

7. An embedded device human interface system, characterized by, Comprising: a data receiving module: for receiving the configuration information file and each human-machine service unit; a human-machine scheduling unit: for requesting the configuration information file and the human-machine service unit file to the management service unit of the service terminal, and generating the entry interface according to the configuration information file; receiving and processing external operation events, determining the human-machine service unit associated with the operation object, executing and transferring the human-machine control right to the associated human-machine service unit; a human-machine service unit: for independently communicating with the data service unit of the service terminal, completing data acquisition and setting, refreshing the display interface and receiving and processing external operation events; when the current interface exits, the human-machine service unit exits and returns the human-machine control right to the human-machine scheduling unit, wherein the human-machine scheduling unit displays the entry interface and waits for the next operation of the operator; wherein the configuration information file and the human-machine service unit file are requested to the management service unit of the service terminal through the human-machine scheduling unit, and the entry interface is generated according to the configuration information file, comprising: S1, the human-machine scheduling unit first requests the configuration information file check code to the management service unit of the service terminal, and compares it with the local check code, if the two are consistent, then directly execute S2; if the two are not consistent, request the configuration information file to the management service unit; S2, the human-machine scheduling unit parses the configuration information file, and according to the actual associated human-machine service unit, requests the check code of the associated human-machine service unit to the management service unit, and compares it with the check code of the local human-machine service unit file, for the human-machine service unit with consistent check code comparison result, do not handle; for the human-machine service unit with inconsistent check code comparison, the human-machine scheduling unit requests the latest human-machine service unit file to the management service unit; S3, after all the human-machine service unit file processing is completed, the human-machine scheduling unit generates the entry interface according to the menu structure in the configuration information file, and responds to the external operation events of the operator in the entry interface.

8. An embedded device human interface device, characterized by, including a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method according to any one of claims 1-6.

9. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to realize the steps of the method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Cross-platform security service software construction method, device and equipment and storage medium

    CN112394917A

  • Man-machine interaction implementation method for applying mobile terminal to industrial internet

    CN113536154A