Check patentability & draft patents in minutes with Patsnap Eureka AI!

Lua script-based development method for human-computer interface of cooking machine

A machine interface and scripting technology, applied in the field of smart home, can solve the problems of huge code volume and complex code logic design, and achieve the effect of easy transplantation and shortened development cycle

Inactive Publication Date: 2021-03-30
SICHUAN CHANGHONG ELECTRIC CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In order to solve the problems existing in the prior art, the purpose of the invention is to provide a development method of a man-machine interface of a cooking machine based on Lua script, so as to satisfy the huge amount of codes and code logic of man-machine interface development in the prior art. Problems such as design complexity; by introducing Lua script into development, product functions are divided into business logic and abstract interface, business logic uses Lua programming to realize product specific logic and UI component design, and abstract interface completes the control of hardware interface

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Lua script-based development method for human-computer interface of cooking machine
  • Lua script-based development method for human-computer interface of cooking machine

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0021] Such as figure 1 Shown, a kind of development method of man-machine interface of cooking machine based on Lua script, comprises:

[0022] 1. Divide the functional modules into UI, business logic, and abstract interface layer; call the Lua and C interface abstraction layer according to the Lua script to call the standard packaged C language function library; the Lua script is encapsulated by calling the interface, and the business logic calls back the interface, via The Lua engine parses and executes hardware operations.

[0023] 2. The abstract interface layer includes providing various hardware-related call interfaces such as UART, RTC, HTTP, TCP / UDP, GPIO, timer and other operation interfaces.

[0024] 3. The Lua business logic layer is the product logic business application program.

[0025] 4. The UI layer is a customizable UI component that can be provided to users for design.

[0026] 5. The above-mentioned functional modules also include an embedded real-time ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a Lua script-based development method for a human-computer interface of a cooking machine. The method comprises the following steps: dividing a functional module into an abstract interface layer of UI design, business logic and a C interface; calling a standard packaged C language function library for the abstract interface layer of the Lua script according to the Lua script; and encapsulating the Lua script through a calling interface, calling back the interface by the service logic, and analyzing and executing hardware operation through a Lua engine. A Lua script is introduced into development, product functions are divided into service logic and an abstract interface, the service logic adopts Lua programming to realize specific logic and UI component design of aproduct, and the abstract interface completes control of a hardware interface. Modular design is carried out on common requirements so that the reusability is improved, and common product developmentis simplified.

Description

technical field [0001] The invention relates to the technical field of smart home, in particular to a method for developing a man-machine interface of a cooking machine based on Lua script. Background technique [0002] At present, the development of the man-machine interface on the intelligent cooking machine is realized based on traditional Java and C / C++. A common disadvantage of the above technologies is that the amount of code developed is huge and the code logic design is complicated. This is a huge bottleneck for quickly launching personalized products in a highly competitive market. [0003] Lua is a small scripting language designed to provide flexible extension and custom UI functions for embedded applications. Lua is written based on standard C, and can be compiled and run on almost all operating systems and platforms; therefore, the existing interface development technology needs to be improved. Contents of the invention [0004] In order to solve the proble...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/38G06F8/30
CPCG06F8/38G06F8/313
Inventor 李楠
Owner SICHUAN CHANGHONG ELECTRIC CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More