Zero-code programmable man-machine interaction system

Through a zero-code programmable human-computer interaction system, using a rich UI component library and logical interaction functions, combined with a high-performance single-chip ASIC, the problem of the lack of upstream application support for the underlying system in the existing technology is solved, and an interface without programming is realized. Design and logical interaction are suitable for human-computer interaction scenarios in multiple fields, improving development and production efficiency.

CN118642684APending Publication Date: 2024-09-13STAR CHAIN (GUANGDONG) ELECTRONIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410746801.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-11
Publication Date
2024-09-13

AI Technical Summary

Technical Problem

When the existing underlying system provides touch control screens suitable for different specifications and interface configurations, it lacks upstream application support, resulting in insufficient flexibility and customization, and requires professionals to write code, making it difficult to meet the needs of non-professional users.

Method used

Provides a zero-code programmable human-computer interaction system, including the front-end for editing UI interface and logical interaction, the uCOS system for parsing and running the generated project files, and the hardware devices are controlled through the hardware communication interface, using a rich UI component library and logic Interactive functions support interface design and logical interaction without programming, and are combined with high-performance, low-power consumption single-chip dual-core ASIC to achieve highly customized HMI solutions.

Benefits of technology

There is no need to carry out separate programming and development for specific demand specifications and interface configurations, which improves development efficiency and reduces labor costs. It is suitable for a wide range of human-computer interaction scenarios, including central control, audio and video, industrial and other fields, and simplifies the development and production process. Improved productivity and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118642684A
    Figure CN118642684A
Patent Text Reader

Abstract

The invention discloses a zero-code programmable man-machine interaction system in the technical field of interaction systems, and the system comprises a front end which is used for executing and editing a UI interface and logic interaction, generating a project file, and carrying out the downloading of a butt joint interface; the uCOS system is connected with the front end and is used for executing, analyzing and operating the project file generated by the front end; according to the programmable interaction uCOS system based on the dual-core single-chip microcomputer, independent programming development does not need to be carried out on a touch control screen with a certain requirement specification and interface configuration through rich UI element libraries and logic interaction functions provided in the system and excellent compatibility, and the system has the advantages of being simple in structure, convenient to operate, high in practicability and easy to popularize and use. The hardware devices are various touch screen devices carrying the uCOS system. The programmable interaction uCOS system based on the dual-core single-chip microcomputer does not need to carry out independent programming development on the touch control screen with certain requirement specification and interface configuration. The system only needs to be built in the touch control screen, and an upstream application program is just like a UI design interface, does not need to write codes, design the interface and a logic interaction mode of the interface, and is downloaded to the system, so that the development efficiency is improved, and the labor cost is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of interactive systems, and in particular to a zero-code programmable human-computer interactive system. Background Art

[0002] In the building, industrial and other industries, the precise control and management of customized equipment in different fields requires the support of human-machine interactive touch control screens that can be quickly customized and developed and used stably. The traditional method requires separate programming and development of touch control screens with different specifications and interface configurations, which leads to problems such as large workload, low efficiency and easy errors.

[0003] Some existing underlying systems on the market can meet the needs of touch control screens with different specifications and interface configurations, but they lack support from upstream applications and lack flexibility and customization. In addition, some underlying systems provide support for upstream applications, can drag and drop user interfaces for design, and also support control logic and UI interaction logic, but still require professionals to write codes, which is still difficult for non-professional users. Therefore, how to reduce labor costs and improve development efficiency is an urgent problem to be solved by technicians in this technical field. Summary of the invention

[0004] The purpose of the present invention is to provide a zero-code programmable human-computer interaction system to solve the problem that some existing underlying systems on the market can meet the requirements of touch control screens with different specifications and interface configurations, but lack support from upstream applications, and lack flexibility and customization. In addition, some underlying systems provide support for upstream applications, can drag and drop user interface design, and also support control logic and UI interaction logic, but still require professionals to write code, which is still difficult for non-professional users.

[0005] To achieve the above object, the present invention provides the following technical solution: a zero-code programmable human-computer interaction system, comprising:

[0006] The front end is used to edit the UI interface and logic interaction and generate project files and connect to the interface for download;

[0007] uCOS system, the uCOS system is connected to the front end and is used to parse and run the engineering files generated by the front end;

[0008] Hardware devices, wherein the hardware devices are various touch screen devices equipped with uCOS system, and the devices used to perform docking control communicate through hardware communication interfaces.

[0009] Preferably, the front end is an upstream application, which serves as a tool for human-computer interface and logic interaction design, providing a smooth and complete interface design canvas, rich modular UI elements, and a very simple logic interaction setting without programming.

[0010] Preferably, the UI component library module encapsulates various types of components, and is used to execute the property description of the corresponding type of components in the project file, call the corresponding encapsulated components and assign the properties to display on the interface.

[0011] Preferably, the logic interaction function module encapsulates multiple types of logic interaction functions, and is used to execute corresponding function types and their accompanying data in the project file, as well as connection relationships, and calls corresponding encapsulated functions and their accompanying data, and executes them according to the connection relationships.

[0012] Preferably, the uCOS system is composed of a GUI core and an OS core, and dual-core parallel processing is performed by the GUI core and the OS core.

[0013] Preferably, the GUI core is used to execute and process UI interface display, real-time control, peripherals and data transmission.

[0014] Preferably, the OS core is used to perform logical interaction function execution, mathematics and algorithms, and big data processing.

[0015] Preferably, the core part of the hardware device is the CPU core module, which is a highly customized single-chip dual-core ASIC with low power consumption, high cost performance, high performance and high integration of GUI and OS for scenarios such as human-computer interaction and AIoT.

[0016] Preferably, the hardware communication interface includes a LAN communication interface, an IO communication interface, an RS232 communication interface and an RS485 communication interface.

[0017] Compared with the prior art, the present invention has the following beneficial effects:

[0018] (1) With its rich UI component library and logical interaction functions, as well as its superior compatibility, it is no longer necessary to program and develop a touch control screen with a certain specification and interface configuration. Instead, the touch control screen only needs to be built into the system, and the upstream application can be used like a UI design interface. Without writing code, the interface and its logical interaction method can be designed and downloaded to the system, which improves development efficiency and reduces labor costs.

[0019] (2) The underlying hardware is highly customized for scenarios such as human-computer interaction and AIoT. It is a single-chip dual-core ASIC with high performance, low power consumption, high cost performance, and high integration of GUI and OS. The chip uses the most widely used, mature and stable 8051 core, 1T (single instruction cycle) high-speed operation, a maximum main frequency of 250MHz, built-in high-speed video memory, 2D hardware acceleration, and large-capacity storage space, ensuring its cost performance and stability.

[0020] (3) The programmable HMI complete machine and programmable HMI module series products developed based on this chip can meet the needs of all HMI human-machine interaction scenarios on the market. The system is not limited to a single field and can be widely used in human-machine interface terminal display and control scenarios in the fields of central control, audio and video, conference, industry, home appliances, smart home, etc.;

[0021] (4) The system has many built-in logical interaction functions with rich function types, which can meet the logical interaction needs in complex scenarios. Its architecture design is simple, stable and highly extensible. In addition to being suitable for the design and implementation of human-computer interaction touch control screens, it can also be applied to the design and implementation of touchless human-computer interaction display screens and programmable hosts. Its scope of application is very broad.

[0022] (5) For developers of human-computer interaction touch screens, there is no need to program code. They only need to design the interface like the UI design interface, and then simply configure its logical interaction and download it to the system, which improves development efficiency and reduces labor costs. For production personnel of human-computer interaction touch screens, there is no need to burn software to each device one by one. They only need to download project files to the device in batches through the network or serial port, which improves production efficiency and reduces error rates. For users of human-computer interaction touch screens, thanks to the stable system architecture and highly customized high-performance, low-power chips, they can use the touch screen efficiently and smoothly. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a schematic diagram of the logic model of the uCOS system of the present invention;

[0024] Figure 2 A schematic diagram of the system architecture of the present invention is provided;

[0025] Figure 3 It is a schematic diagram of the software architecture of the uCOS system of the present invention;

[0026] Figure 4 It is a schematic diagram of the hardware architecture of the present invention;

[0027] Figure 5This is a schematic diagram of the workflow of the uCOS system upstream application program docking of the present invention;

[0028] Figure 6 It is a schematic diagram of the UI interface display process of the uCOS system GUI core of the present invention;

[0029] Figure 7 It is a schematic diagram of the hardware initialization configuration process of the uCOS system GUI core of the present invention;

[0030] Figure 8 It is a schematic diagram of the logical interaction function analysis flow of the uCOS system OS core of the present invention;

[0031] Fig. 9 It is a schematic diagram of the process flow of parsing serial port input function of the uCOS system OS core of the present invention;

[0032] Fig.10 This is a schematic diagram of the data restart and recovery module workflow of the uCOS system OS core of the present invention;

[0033] Fig.11 It is a schematic diagram of the logical interaction function execution workflow of the uCOS system OS core of the present invention;

[0034] Fig.12 The software architecture and flow chart of HMIDesigner of the present invention;

[0035] Fig.13 This is a schematic diagram of the application of the LAN wired programmable touch screen of the present invention;

[0036] Fig.14 The present invention is a schematic diagram of the application of the RS-232 serial port wired programmable touch screen. DETAILED DESCRIPTION

[0037] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0038] The present invention provides a zero-code programmable human-computer interaction system. Through the rich UI component library and logical interaction functions provided in the system, as well as the superior compatibility, it is not necessary to perform separate programming and development for a touch control screen with a certain required specification and interface configuration. Instead, the system only needs to be built into the touch control screen, and the interface and its logical interaction mode can be designed without writing code and downloaded to the system through the upstream application program, just like the UI design interface. This improves development efficiency and reduces labor costs.

[0039] The overall architecture of the system is divided into four parts for design, such as Figure 2 As shown, the system architecture can be designed by dividing it into four parts: user, front-end, uCOS system, and device;

[0040] The user part can be simply divided into development users and user users. The development user refers to the person who develops the touch screen equipped with the system. By using the HMIDesigner software, the UI interface and interaction logic are edited and downloaded to the system for analysis and operation;

[0041] The user refers to a person who uses the touch screen equipped with the system, triggers the corresponding logical interaction by operating the UI interface on the touch screen, and sends the command to the device through the system compatible interface for control;

[0042] The front-end part refers to the upstream application, which is mainly used by developers. By using the software to edit the UI interface and logical interaction and generate project files, and then downloading them to the system through the docking interface provided by the system, the project can be parsed and run. The specific process is as follows Figure 2 As shown in steps ①-④;

[0043] The uCOS system is mainly responsible for parsing and running the project files sent by the upstream application. The upstream application docking module is used to dock and receive the project files sent by HMIDesigner, and pass the project files to the GUI core and OS core to parse and run the project files. Users can operate the UI interface running in the GUI core to trigger the logical interaction running in the OS core, and then send the instructions to the corresponding hardware communication interface module through the system compatible module, and finally control the device to perform actions. The specific process is as follows: Figure 2 As shown in steps ⑤-⑦;

[0044] The architecture of the uCOS system will be combined with a customized single-chip dual-core ASIC, which is divided into two parts for parallel processing. The first part is the GUI core responsible for processing UI interface display, real-time control, peripherals, and data transmission, and the second part is the OS core for executing logical interaction functions, mathematics and algorithms, and big data processing. The interaction between the two cores is carried out by writing defined instructions to the RAM memory system variable interface address. Through the dual-core parallel mode, the GUI core and the OS core are separated and run simultaneously, and only interact through the defined storage space, so as to achieve strong processing capabilities without affecting each other.

[0045] The chip adopts the most widely used, mature and stable 8051 core, 1T (single instruction cycle) high-speed operation, the highest main frequency of 250MHz, built-in high-speed video memory, 2D hardware acceleration, large-capacity storage space, etc. At the same time, based on the chip packaging and expansion of a number of programmable HMI machine series products with different parameter configurations, resolutions, sizes, and interface functions, as well as programmable HMI module series COB module products, provide users with a wider range of choices;

[0046] At the same time, since the system has many built-in logical interaction functions and rich function types, it can meet the logical interaction needs in complex scenarios, and its architecture design is simple, stable and highly extensible. In addition to being suitable for the design and implementation of human-computer interaction touch control screens, it can also be applied to the design and implementation of touchless human-computer interaction display screens and programmable hosts, and its scope of application is very broad.

[0047] The device part mainly refers to the device that the touch screen equipped with the system connects to and controls. The touch screen and the device communicate through hardware communication interfaces, such as LAN, IO, 232, 485, etc. The specific number and type of interfaces are determined by the touch screen model, and the system is compatible with all models;

[0048] According to the overall system requirements and the architecture analysis including upstream and downstream parts, such as Fig.12 The architecture and process design of the upstream application HMIDesigner software are shown as follows;

[0049] Software process: First, users can use the software on Windows or MacOS platforms. After entering the software, first create a project, and then create a specific project under the project. A project can contain multiple projects, which can be created according to the actual device model. After the creation is completed, you will enter the visual design interface, which provides a rich component library and editing functions for users to design. After designing the user interface, you can then set up the logical interaction. You only need to add execution actions to the trigger events provided by the components through a simple pop-up window selection method to successfully set the logical interaction of the components. If there are special needs, you can use advanced programming to implement it. It provides various logical interaction functions to meet the implementation of different needs. After the user interface and logical interaction design are completed, when downloading the project, the software will automatically generate the corresponding project files and download them to the target device through the network or serial port. This is the general process of the software, and the software architecture will be detailed below.

[0050] Based on the Web platform: The software is developed based on Web technology, using front-end technologies such as HTML, CSS and JavaScript. Due to the inherent cross-platform nature of Web technology, users can access and use it through common Web browsers, and can also install and use it through various platforms. Currently, the software supports Windows and MacOS platforms. This means that users can use the software on any system and platform;

[0051] Visual design interface: The software provides an intuitive visual design interface that allows users to select and arrange various components by dragging and dropping. Components can be buttons, text boxes, sliders, charts, etc. Users can freely adjust their size, position and style according to actual needs. The design interface provides a wealth of editing functions, including alignment, hierarchy, grouping, magnetism, etc., to meet all user editing needs and improve design efficiency. At the same time, the design interface supports real-time preview, and users can view the effect of the interface at any time;

[0052] Modular components: The software provides a modular component library, which contains various commonly used drawing components, display components and functional components. These components have configurable properties, such as text, borders, background color, etc. Users can select components that suit their needs from the library and drag them to the design interface for positioning and adjustment;

[0053] Event-driven programming: The software adopts an event-driven programming model. Each functional element provides a trigger event, and the user can define an event handler for each functional element. For example, the user can define a click event handler for a button and a value change event handler for a slider. When an event is triggered, the device will automatically call the corresponding processing function to perform specific operations, such as displaying a specific interface, sending control instructions, etc.

[0054] Simplified interactive settings: The software introduces a simplified interactive setting method to reduce the programming technology requirements for users. Users only need to add execution actions to the trigger events provided by the components through a simple pop-up window selection method. For example, users can add execution actions under the click trigger event provided by the button component, that is, click Add and select the action to be executed after the event is triggered in the pop-up window. When downloading, the software will automatically complete the association setting between events and actions, generate the corresponding project files, and then download them to the device for execution;

[0055] Global advanced programming: The software supports the function of global advanced programming, which is to combine the status of interface components with multiple logic interaction functions to realize the required logic under special needs. For example, users can create a delay or timer logic interaction function, and then combine the logic interaction function that needs to be executed after the delay or timing time is reached to realize the special needs that require delay or timing loop. The software provides a rich function library, including basic functions, analog functions, digital functions, etc. These logic interaction functions are sufficient to meet all special needs;

[0056] Device adaptation: The software supports the adaptation of multiple devices. Users can select the corresponding device model according to the actual device when creating a new project and perform simple parameter configuration. The software will generate an editing interface according to the corresponding device model, including the actual device resolution canvas, the component library available for the actual device, the logical interaction function available for the actual device, etc. After the user designs the interface and interaction logic, click the download button, and the software will automatically convert the designed interface and interaction logic into a project file that can be recognized by the device, and download it to the target device;

[0057] Project download: The software supports project download via network and serial port. For Android devices, you only need to connect to the same LAN, and the software will automatically search for all devices in the LAN for downloading. For uCOS system devices, you can connect to the corresponding device through a customized downloader for downloading, which is very convenient and fast.

[0058] According to the overall system requirements and the architecture analysis including upstream and downstream parts, the software part of the uCOS system can be divided into 4 levels for design, such as Figure 3 As shown, they are the docking layer, configuration layer, operation layer and hardware layer;

[0059] The docking layer covers the docking content with the upstream application, among which the upstream application is HMIDesigner software. HMIDesigner software is developed based on the web front-end development language HTML and Vue, so it can run on various platforms. The system provides an interface for docking with HMIDesigner software, including connection interface, project file download and protocol verification functions;

[0060] The configuration layer contains all the configuration project files required for the operation of the system, and these project files play an important role in the system. In the upper docking layer, users can use these project files to customize the configuration; in the lower operation layer, these project files are used to initialize and execute the corresponding modules. Specifically, these project files cover multiple aspects, including: display project files, touch project files, component project files, and input method project files related to UI interface display; data-related picture or icon project files, font project files, database project files, initialization project files, and music project files; logical interaction project files related to logical interaction; and hardware configuration project files related to hardware. These configuration project files provide users with a wealth of configuration options, covering aspects such as the system's interface design, data management, logical interaction, and hardware configuration, ensuring that the system can be flexibly configured according to user needs and successfully initialize and execute each module, thereby achieving the integrity and stability of system functions;

[0061] The operation layer focuses on executing according to the configuration engineering files provided by the configuration layer. Thanks to the single-chip dual-core ASIC at the bottom of the system, the entire system can be divided into the GUI core and the OS core according to their different classifications. The GUI core is responsible for parsing and executing the relevant files of the configuration layer, including UI interface display, data-related, and hardware-related. The engineering files related to the UI interface display are displayed through the built-in UI components, component libraries, and input methods. Data-related files are saved in a specified location and called through interfaces for UI interface operation and display. Hardware-related configuration files are configured by the GUI core according to different hardware interface parameters. The GUI core integrates user touch, logic functions, UI interface, and data, triggers interaction through touch or logic functions, and refreshes variable data to achieve UI interface switching. The OS core is mainly responsible for parsing and executing engineering files related to logic interaction, as well as the integration of related hardware drivers. The OS core has a rich built-in logic interaction function library, including input logic functions, functional logic functions, output logic functions, etc. At the same time, the OS core integrates drivers for multiple display interfaces, including RGB, SPI, MIPI, I2C, etc., as well as compatibility with multiple hardware communication interfaces including LAN, 232, 485, IO, etc. The OS core uses the logic interaction engineering file written by the user. When the user actively or passively triggers the defined logic interaction chain, it will execute according to the user-defined interaction form, and finally output the result to the UI for display or communicate through the hardware communication interface;

[0062] The hardware layer covers all the hardware devices required by the system, as well as the parts that interface with these hardware devices. The system has built-in hardware compatibility modules, including display screen, touch screen parameter configuration drivers, buzzer, backlight, PWM, speaker hardware control drivers, and LAN port, 232 serial port, 485 serial port, IO port and other hardware communication interface parameter configuration and data interaction;

[0063] In order to achieve the required functions listed in the above system and to work with the system software, the hardware part of the entire system is pressed Figure 4 The design is based on the hardware architecture diagram, which is an abstract architecture diagram of the hardware part of the system;

[0064] First of all, the core part of the whole architecture is the CPU core module. For scenarios such as human-computer interaction and AIoT, a single-chip dual-core ASIC with low power consumption, high cost performance, high performance and high integration of GUI and OS is highly customized. The chip adopts the most widely used, mature and stable 8051 core, 1T (single instruction cycle) high-speed operation, and the highest main frequency is 250MHz. The independent CPU core runs the system GUI part code, built-in high-speed video memory, 2.4GBytes / S video memory bandwidth, 2D hardware acceleration, external memory 16Mbytes SPI Flash, high-quality voice compression storage and playback, default 128Mbit FLASH, and can be expanded to 384+4Gbit at most. Another independent CPU core runs the system OS part code, 64Kbytes code space, 32Kbytes on-chip RAM, 64bit integer math unit (MDU), including 64bit MAC and 64bit divider, 22 IO, 4 UARTs, 1 CAN interface, up to 8 12bit A / D, 1 16bit PWM with adjustable resolution. The power module is designed with single or dual power supply according to the actual product model requirements. It can be powered by POE interface 44-57V typical value 48V, or DC 5-24V typical value 12V. The memory circuit is an external memory 16Mbytes SPI Flash, which is connected to the GUI core to download and save project files including display, touch, logic interaction, pictures, icons and other files. The auxiliary circuit is mainly a clock circuit, which is used to provide the system with clock signal synchronization and timing control. The buzzer module is connected to the GUI core and can be configured through the hardware configuration file and controlled through the system variable interface. It is mainly used as key sound, prompt sound or alarm reminder. The human-computer interaction module includes a touch screen and an LCD display, which is connected to the GUI core. The touch screen supports multiple driver resistive or capacitive touch screens, the sensitivity can be adjusted, and the fastest touch dot speed is 400Hz. The LCD display supports multiple interface drivers including RGB, MIPI, I2C, etc. The 24-bit color display resolution supports up to 1366*768, and supports frequency and timing settings. The downloader module is connected to the OS core, and the other end is connected to the upstream application through the network or serial port, that is, the configuration HMIDesigner editing software, and then the project file can be downloaded to the system for operation through the docking interface provided by the system. The communication interface module includes Ethernet interface (LAN), IO interface, RS232 serial interface, RS 485 serial interface, etc. These interfaces are used to connect to the device and interact with the device for data. The OS core drives these communication interface modules to send and receive data through the built-in hardware communication interface compatible module;

[0065] According to the system functional requirements, the uCOS system can be decomposed into the following subsystem modules;

[0066] The upstream application docking module is responsible for providing a download interface for the upstream application, receiving and parsing the project files, including processing the parsing of UI interface components and logical interaction functions, and calling the corresponding parsing interface service according to the type of project files; the UI component library module is responsible for encapsulating various types of components, by describing the properties of the corresponding types of components in the project files, calling the corresponding encapsulated components and assigning the properties to display on the interface, so as to achieve the effect corresponding to the interface edited by the upstream application; the logical interaction function module is responsible for encapsulating various types of logical interaction functions, by describing the corresponding function types and their accompanying data in the project files, as well as the connection relationship, calling the corresponding encapsulated functions and their accompanying data, and executing them according to the connection relationship, so as to achieve the logical interaction effect edited by the upstream application; the system compatible interface module is responsible for encapsulating touch screen compatible interfaces with different parameter configurations, resolutions, sizes, and interface functions, including different types of display driver compatible interfaces, different hardware function interface compatible interfaces, etc., and at the same time providing configuration files to the upper layer, which can call the corresponding interfaces for compatible adaptation;

[0067] The UI component library and the logic interaction function library are very important basic components of the system. Their detailed descriptions are as follows;

[0068] The UI component library includes "drawing components" for beautifying UI interface drawing design. This type of component is only used for interface design and has no logical interaction. It also includes "display components" for displaying the various states and parameters of the connected devices. In addition to UI interface decoration, this type of component also provides the function of displaying the various states and parameters fed back by the device, that is, components for displaying logical interactions such as device states and parameters. It also includes "functional components" that can actively or passively trigger logical interaction actions. In addition to its excellent UI design, this type of component also provides the function of actively or passively triggering actions to enable the device to perform related operations. It also provides advanced components such as 3D components, advanced components, common components, container components, etc. to meet the design needs of users;

[0069] The logic interaction function library includes "input type functions" for triggering logic interaction. This type of function is the starting point of a certain logic interaction chain. It is actively triggered by the user or passively triggered according to corresponding conditions to start executing the logic interaction chain below it. It also includes "function type functions" that encapsulate various different logic functions. This type of function is an intermediate component of the logic interaction chain. In order to realize a specific logic, it provides encapsulation of different logic functions. Users can combine and connect different function functions according to the functional logic they need to realize. It also includes "output type functions" for outputting the processing results of the logic interaction chain. This type of function is the end point of a certain logic interaction chain. It outputs the results of the processing of the logic interaction chain to the corresponding interface, such as components on the UI interface, hardware interface, etc., to realize the final output result of the logic interaction set by the user;

[0070] According to all the functional requirements and architecture design of the above system, each module of the uCOS system is designed as follows;

[0071] The upstream application is at the docking layer in the entire system, and as an external interface module of the entire system, it provides interface connection and project file download functions for the upstream application, playing an extremely important role. Figure 5 As shown;

[0072] First, after the system is started, the download module will be started synchronously, and the download interface will be provided to the outside world synchronously. At this time, the upstream application can connect through the download interface; the upstream application can be connected by using our self-developed download box. After the connection is successful, the edited project file can be sent through the defined protocol; when the system receives the project file data sent by the upstream application, it will determine whether the received project file data conforms to the defined protocol format to avoid being cracked or interference unrelated to the application. If it does not conform, it will refuse to receive the sent data and terminate the download, and enter the next module for operation; when it conforms to the defined protocol format, the system starts to receive project files and stores these files in the specified place for use by the next module;

[0073] When the upstream application is connected through the external interface module provided by the system and the edited project file is downloaded to the system, the GUI core and OS core in the system can parse and execute the project file. The GUI core is mainly responsible for processing UI interface display, real-time control, peripherals, data transmission, etc. First, this section introduces the UI interface display function and processing logic of the GUI core, such as Figure 6 As shown;

[0074] First, you need to read the project files, mainly the display project files, touch project files, component project files, and input method project files related to the UI interface display. And data-related picture or icon project files, font project files, database project files, initialization project files, and music project files. Use the system variable interface to read the project files stored in the external Flash. After reading the files, you can parse the files according to the defined format and extract the configuration information, including interface layout, component type, component attributes, component style, touch attributes, address value, etc. After all the parsing is completed, according to the parsed configuration information, the GUI core initializes the interface, loads the UI component library, and sets the interface layout and style. Next, the system will enter an infinite loop to monitor and process system interactions and user interactions. The refresh cycle is 20ms, which means that in every 20ms cycle, all status information will be read and the interface will be refreshed once. To process user interactions, you first need to monitor user operations. The GUI core monitors user touch operations, including single clicks, slides, etc. Through the touch project files defined in the project files and the system's built-in event-driven mechanism, user operations are captured in real time and responded to. Next, it is necessary to process the user's touch operation, determine whether the touch position is on the coordinates defined in the touch engineering file, and determine the touch type, such as button touch, drag touch, etc. Then, perform corresponding interaction processing according to different touch operation types, such as button click, sliding operation, etc. Finally, process other interaction events, such as processing user data entry, gestures, menu selection, etc. To process system interaction, it is necessary to first monitor the triggering of system internal events. The GUI core monitors the triggering of system internal events through the event monitoring mechanism. These events can be predefined by the system or customized by the user according to needs. System internal events include system status changes, device connection status changes, data updates, etc. User-defined interaction events can be events triggered by specific user operations, such as timed interface switching, pop-up notifications, etc., defined according to the logical interaction engineering file. Next, it is necessary to process system internal events. The GUI core performs corresponding operations based on the monitored system internal events. For different event types, the GUI core may need to update the interface display, perform specific logical operations, or trigger other system behaviors. When processing system internal events, the GUI core needs to perform appropriate processing based on the event type and related parameters. Finally, the GUI core also needs to handle other system-level internal events, which may be system exception reports, system updates, or other system operations. Through an effective event handling mechanism, the GUI core can respond to these system-level internal events in a timely manner to ensure the normal operation of the system and user experience. After executing and processing these interactions, the status data saved in the address will be updated, and the interface will be refreshed synchronously when the next refresh cycle comes. The refresh cycle is 20ms;

[0075] After explaining the functions and processing logic displayed on the UI interface of the GUI core, the hardware initialization configuration of the GUI core is explained next. The GUI core can receive hardware parameter configuration project files, including display parameters, touch screen parameters, hardware control configuration, etc., and then parse these corresponding project files and initialize the configuration, such as Figure 7 As shown;

[0076] First, the GUI core needs to read the hardware initialization configuration project file, and then parse the hardware initialization configuration project file. First, the display screen parameter configuration needs to be parsed and driven. The GUI core parses the display screen parameter configuration, including data latch phase setting, pixel clock PCLK frequency setting, display timing, resolution and other parameter settings. The GUI core outputs the display screen parameters according to the configuration settings to ensure that the display screen can correctly display the UI interface content. Next is the touch screen parameter configuration and driving. The GUI core reads the touch screen parameter configuration, including touch screen type, sensitivity, calibration data and other parameter settings. The GUI core sets the touch screen parameters according to the configuration to ensure that the touch screen can accurately respond to user operations. Next is the system hardware configuration and driving. The GUI core configures the buzzer, backlight, PWM, speaker, clock and other hardware devices according to the system hardware configuration parameters. The GUI core controls the switch, brightness, volume and other parameters of the hardware device to ensure that the hardware device works as required. Finally, the extended parameter configuration is reserved for system expansion. The GUI core reads the extended parameter configuration project file reserved by the system, which currently defines the refresh cycle configuration and CRC check setting. The GUI core sets the refresh cycle and CRC check parameters according to the configuration, and reserves the configuration for expansion. The GUI core completes the hardware-related configuration function flow, and all hardware parameters have been configured. The hardware-related configuration is successfully applied to the system operation, ensuring that the system can correctly configure and control the hardware devices;

[0077] After the functional modules and operation logic of the GUI core are described, the OS core is described next. The OS core is mainly responsible for parsing and executing engineering files related to logical interaction, as well as integrating related hardware drivers. First, after the upstream application sends the engineering files, the OS core needs to perform function parsing on the corresponding logical interaction engineering files, where "function" represents a comprehensive description of a logical function. For example, the comprehensive description of the addition logic function is "addition function", and the comprehensive description of the subtraction logic function is "subtraction function", etc. By defining a variety of different functions and how they are connected, the needs of interface logic interaction in different scenarios can be met, such as Figure 8 As shown;

[0078] Since all subsequent operations depend on the content of the project file, we first need to read the downloaded project file by calling the system file reading interface; after reading the content of the function file, we need to verify whether its header is correct and make a judgment based on the pre-defined protocol format, that is, whether the first two bytes of the header are correct and whether the next two bytes of the version number match. If the protocol format is not met, the parsing will fail and output exception information for developers to debug; if it meets the protocol format, start parsing and saving the required information according to the defined protocol format. First, you need to parse and save the file length, which is two bytes. Secondly, you need to parse and save the number of functions, which is also two bytes. Move the pointer position to read and parse; when the number of functions is parsed, all functions will be read and parsed in a loop according to the number of functions. , that is, determine whether there is another function to be parsed. If so, move the pointer to the position of the next function information. First, parse and save the function type, which is one byte. Secondly, parse and save the function data. The length of the information is determined according to different function types, and then parse it according to the corresponding length. Finally, parse and save all the connection relationships of the function, that is, the data output by the function needs to be passed to which function's input end for processing. It is a many-to-many relationship. After one function is parsed, continue to parse the remaining functions in a loop; when all functions are parsed, jump out of the loop and check whether the end of the file is in the correct protocol format. The information is the last two bytes. If it does not meet the defined protocol format, the parsing fails and an exception is output for the developer to debug; if it meets the defined protocol format, the parsing is successful, and the information of all functions is saved for use by the execution module;

[0079] Logical interaction function parsing is a key part of processing function files, and the core part is the parsing process of each function. In the previous section, we described in detail the overall parsing method of logical interaction functions, and in this section, we focus on the parsing method of a single function. Here, we choose the parsing process of the serial port input function to illustrate. The parsing process of this function covers the basic content. Through the parsing of this function, we can better understand the parsing process of other functions, such as Fig. 9 As shown;

[0080] First, you still need to read the contents of the function file, specifically the step of looping and parsing the function information. In this step, you need to check whether it is a serial port input function type. The information is one byte and is checked according to the pre-defined protocol format. If it is found that it does not conform to the protocol format, we will continue to determine whether the function type belongs to other types; if it conforms to the protocol format, the function is a serial port input function, and parsing begins. First, you need to save the specific address of the data, so that in the subsequent function execution process, the serial port can use it when receiving data; next is the parsing and saving of the parity check, which is represented by the high 4 bits of the second byte (00: no parity, 01: odd parity, 02: even parity), and next is the parsing and saving of the serial port number, which is represented by the low 4 bits of the second byte, which is used to select which serial port to receive data and perform logical processing during the function execution process; the next step is to parse and set the baud rate. The byte size of this information is two. Once the baud rate is obtained, the baud rate will be adjusted according to the serial port number; after the serial port-related information is obtained, it is necessary to obtain the information related to the data processed by the serial port, That is, the header, tail, and content information; first, we need to parse and save the header information, which includes a header length of one byte and a header content of the header length bytes, which is read by moving the pointer for the serial port to receive data for header verification when the function is executed; next, we need to parse and save the tail information, which includes a tail length of one byte and a tail content of the tail length bytes, which is read by moving the pointer for the serial port to receive data for tail verification when the function is executed; finally, we need to parse and save the content length, which is one byte. When the function is executed, the serial port needs to know how many bytes of data to receive and how to obtain the subsequent connection relationship; after the information related to the data processed by the serial port is parsed and saved, it is also necessary to parse and save the connection relationship of the serial port input function, which is parsed by reading the content length bytes. The connection relationship is used to pass each byte of the content received by the serial port to the input end of multiple functions for processing, so that the parsing of the serial port input function can be completed; after completing the parsing of this function, we will continue to parse the next function in a loop;

[0081] The data restart recovery module is the module for the entire OS core data persistence processing. Its execution depends on the parsed data information that needs to be persisted. This information includes system-related data, such as backlight, sleep backlight, buzzer, etc., as well as user-defined data that needs to be persisted. By calling the system interface, you can read the information parsed by the parsing module saved in the database, and then call the system interface to perform corresponding recovery according to different information, such as Fig.10 As shown;

[0082] First, you need to call the system interface to read the system-related information that needs to be restored in the database, including backlight, sleep backlight, backlight sleep time, and buzzer information. After obtaining this information, you also need to perform data verification and conversion in a pre-defined format to obtain the real data value, and then restore the actual data value by calling the corresponding system interface, and restore the backlight, sleep backlight, backlight sleep time, and buzzer data respectively; After the system-related information is restored, you need to restore the user-defined data that needs to be persisted. First, you need to determine whether there is custom data that needs to be restored, and make a judgment based on whether the function file contains custom data. If no restoration is required, If the system does not restore the custom data, it will skip the custom data recovery step, thus completing the data recovery work; if custom data needs to be restored, the system will read the number of custom data in the database, and read and restore all custom data in a loop based on this number, that is, determine whether there is the next custom data that needs to be restored. If it does not need to be restored, the system will skip the loop and complete the recovery; if there is still custom data that needs to be restored, the system interface will be called to read the address value and value of the data in the database, and then the value of the data will be written to the address, so that the custom data can be restored, and the next custom data will continue to be read in a loop until it is completed; at this point, all data that needs to be persisted will be read and restored;

[0083] The logic interaction function execution is at the most basic position in the entire OS core, and it continuously executes various functions. Its function is obvious. The operation of this module depends on all the function information parsed from the logic interaction project file. Through the infinite loop mechanism, all parsed function types and corresponding data can be called to execute the system interface according to their functional logic and connection relationship, such as Fig.11 As shown;

[0084] First of all, the workflow of the entire module can be regarded as a never-ending dead loop. In this way, all functions can be executed according to their specific needs, including the logic of the function itself and the logical relationship between them. In the whole cycle, we also introduced an exception mechanism. When a logical exception occurs during system operation, the system will output this exception for developers to debug and re-download new project files in download mode. The system can work normally without exceptions. First, it is necessary to determine whether there is a standby setting to be executed. If it is not necessary to execute, the system will skip it. If it is necessary to execute, the system will obtain the current touch status by calling the interface. If there is no touch response within the preset standby time of the function, the system will jump to the standby page set by the function; after the standby setting is executed, it is determined whether to use PWM0 to control the backlight. If it is not necessary to execute, the system will skip it. If it is necessary to execute, the system will obtain the current touch status by calling the interface. If there is no touch response within 5 minutes, the system will control PWM0 to output 10%; after the execution of using PWM0 to control the backlight is completed, it is necessary to determine whether to execute the connection relationship of the function. Here, we first explain the execution logic of the function. The function is classified into input class function, function class function, and output class function. First, after the input class function responds and executes its own function logic, the output data is transferred to multiple function class functions according to the connection relationship for processing. After the function class function executes its own function logic, the output data can also be transferred to multiple function class functions according to the connection relationship for processing. Finally, it must be connected to the output class function for result output.Therefore, the basis for judging whether the function connection relationship needs to be executed here is whether there is an input class function response. If it needs to be executed, first obtain the function information on the current connection, and then obtain the input port and function type through the function connection relationship parsed by the parsing module. Then execute the corresponding function, by inputting the value of the previous connection output into the function input port, and performing corresponding processing according to different function types. After the processing is completed, the value of the current function output and its connection relationship need to be added to the connection variable of the loop for processing. If there is no connection relationship, it will be ignored; after the connection relationship is executed, the system needs to detect each input function to determine whether there is a change. If there is no change, skip the input function execution and continue the loop operation. If there is a change, obtain the changed value of the current input function, and obtain these changed values ​​by calling the system interface function or using the function's own logical function; then according to the corresponding function type, and through the obtained changed value, perform corresponding processing; after the processing is completed, it is necessary to determine whether the current function still has a connection. If there is a connection, add the output value and connection relationship to the connection variable of the loop for processing; after all processing is completed, it will enter the infinite loop again, and continuously execute the function's own logic and connection relationship logic; this method ensures that the system can continue to work and complete all the functions of the function.

[0085] Example 1

[0086] LAN wired programmable touch screen, such as Fig.13 As shown, the wired programmable touch screen and the router are connected to the POE switch through the LAN cable, the POE switch is connected to the PDU-8C power sequencer through the LAN cable, and the PDU-8C power sequencer is connected to the power-consuming equipment through the wires. The wired programmable touch screen is divided into wall-mounted type and tabletop type;

[0087] The touch screen can intuitively control the video, audio, lighting, curtains, HVAC, security and other systems in various application environments. The LAN wired programmable touch screen series currently has various screen sizes of 7 inches, 10.1 inches, 10.26 inches wide screen, and 21.4 inches. It supports Ethernet power (PoE) and receives power and communicates through a single Ethernet cable. This series of products can be easily installed in a single-unit junction box without the use of additional mounting accessories; it can also be directly magnetically mounted and directly attached, which is very convenient to remove and install;

[0088] The touch screen can quickly edit the UI interactive interface through the configuration HMIDesigner software. The interface is rich and diverse, the interactive experience is very good, the functions are powerful, and it is easy to use. Users can customize the interface online or offline through the design software to meet personalized customization needs and give the product more interactive scene experience;

[0089] The connection between mobile phones and devices can be achieved through the cloud. Users can control devices through their mobile phones anytime and anywhere. Wired touch screens are suitable for conference rooms, hotels, banks, administrative centers, hospitals, homes, offices and other places. Through the Internet of Things technology, various devices such as audio and video equipment, lighting equipment, air-conditioning equipment, security systems, etc. are connected together to realize functions such as button switching, dimming, scene control, etc., and all-round information interaction, making control and operation smarter and simpler.

[0090] Example 2

[0091] RS-232 serial port wired programmable touch screen, such as Fig.14 As shown, the serial port wired programmable touch screen is connected to the PWR series controller through RS-232 or RS-485 data line, and the PWR series controller is connected to the electrical equipment through wires;

[0092] The touch screen can intuitively control the video, audio, lighting, curtains, HVAC, security and other systems in various application environments. The RS-232 serial port wired programmable touch screen series currently has various sizes such as 4 inches and 5 inches. The touch screen can be powered by 12V through the 232 / 485 data line. It can be easily installed in a single-unit junction box without the use of additional mounting accessories; it can also be directly magnetically mounted and directly attached, which is very convenient to remove and install;

[0093] The touch screen can quickly edit the UI interactive interface through the configuration HMIDesigner software. The interface is rich and diverse, the interactive experience is very good, the functions are powerful, and it is easy to use. Users can customize the interface online or offline through the design software to meet personalized customization needs and give the product more interactive scene experience;

[0094] Serial port wired touch screen is suitable for conference rooms, hotels, homes, offices and other places. Through the Internet of Things technology, various devices such as audio and video equipment, lighting equipment, air conditioning equipment, security systems, etc. are connected together to realize key switch, dimming, scene control and other functions. All-round information interaction makes control and operation smarter and simpler.

[0095] Example 3

[0096] The programmable HMI module series products are serial port module screens developed with single-core dual-core, equipped with TFT-LCD screen, uCOS system, capacitive touch support, built-in 2D hardware acceleration, decompression up to 200fps@1280*800, and UI animation display is extremely cool and smooth. Hardware interface 8P PH2.0, two TTL serial ports, two GPIOs, module design hardware adopts module partition design, coupled with shielding cover design, making the board operation more stable and reliable;

[0097] The mainboard is equipped with the configuration HMI designer software to quickly realize UI editing and logic interaction functions, greatly saving user development time, improving efficiency, meeting personalized customization needs, and achieving true "0" programming development;

[0098] The module is widely used in 1U machine display, household appliances, medical equipment, commercial kitchenware, smart home, 3D printers, instruments, charging piles, industrial control and other scenarios. It is installed on the machine as a touch screen for display and control, and the powerful programmable system makes control and operation smarter and simpler. And this series of products currently has various screen sizes such as 2.1 inches, 2.86 inches, 2.99 inches, 4 inches, 4.58 inches, 5 inches, and supports multiple control protocols to meet the needs of different scenarios.

[0099] The above embodiments are all uses of the present system in different fields. It can be seen from the above embodiments that the present system has strong compatibility and is suitable for human-computer interaction touch control screen scenarios in multiple fields that require precise control and management of customized equipment.

[0100] Although the present invention has been described above with reference to the embodiments, various modifications may be made thereto and parts thereof may be replaced with equivalents without departing from the scope of the present invention. In particular, as long as there is no structural conflict, the various features in the embodiments disclosed by the present invention may be used in combination with each other in any manner, and the fact that these combinations are not exhaustively described in this specification is only for the sake of omitting space and saving resources. Therefore, the present invention is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. Zero-code programmable human-computer interaction system, characterized by: include: The front end is used to edit the UI interface and logic interaction and generate project files and connect to the interface for download; uCOS system, the uCOS system is connected to the front end and is used to parse and run the engineering files generated by the front end; Hardware devices, wherein the hardware devices are various touch screen devices equipped with uCOS system, and the devices used to perform docking control communicate through hardware communication interfaces.

2. The zero-code programmable human-computer interaction system according to claim 1, characterized in that: The front end is an upstream application, which serves as a tool for human-computer interface and logic interaction design. It provides a smooth and complete interface design canvas, rich modular UI elements, and very simple logic interaction settings without programming.

3. The zero-code programmable human-computer interaction system according to claim 2, characterized in that: The UI component library module encapsulates various types of components, and is used to execute the property description of the corresponding type of components in the project file, call the corresponding encapsulated components and assign the properties to display on the interface.

4. The zero-code programmable human-computer interaction system according to claim 3 is characterized in that: The logic interaction function module encapsulates various types of logic interaction functions, and is used to execute corresponding function types and their accompanying data, as well as connection relationships in the project file, and calls corresponding encapsulated functions and their accompanying data, and executes them according to the connection relationships.

5. The zero-code programmable human-computer interaction system according to claim 4, characterized in that: The uCOS system is composed of a GUI core and an OS core, and dual-core parallel processing is performed through the GUI core and the OS core.

6. The zero-code programmable human-computer interaction system according to claim 5, characterized in that: The GUI core is used to execute and process UI interface display, real-time control, peripherals and data transmission.

7. The zero-code programmable human-computer interaction system according to claim 6, characterized in that: The OS core is used to perform logical interactive function execution, mathematics and algorithms, and big data processing.

8. The zero-code programmable human-computer interaction system according to claim 7, characterized in that: The core part of the hardware device is the CPU core module, which is a highly customized single-chip dual-core ASIC with low power consumption, high cost performance, high performance, and highly integrated GUI and OS for human-computer interaction and AIoT scenarios.

9. The zero-code programmable human-computer interaction system according to claim 8, characterized in that: The hardware communication interface includes a LAN communication interface, an IO communication interface, an RS232 communication interface and an RS485 communication interface.