Unlock instant, AI-driven research and patent intelligence for your innovation.

Loading method of LUA script, terminal and computer readable storage medium

A script and loading logo technology, applied in computer control, instruments, simulators, etc., can solve problems such as low loading efficiency, inability to control smart home appliances, and inability to guarantee the latest version of LUA scripts, etc., to achieve high loading efficiency and improve loading efficiency Effect

Active Publication Date: 2018-06-01
MIDEA INTELLIGENT LIGHTING & CONTROLS TECH CO LTD
View PDF6 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] With the continuous update of smart home appliances, LUA scripts must also be updated in time, otherwise it will lead to failure to control smart home appliances
However, at present, the update and loading of LUA scripts are two independent processes. For the update of LUA scripts, this process generally requires user participation, such as the command to check for updates that needs to be triggered by the user, and ordinary users lack basic knowledge of LUA scripts. , this can easily lead to the LUA script not being updated in time, and it cannot guarantee that the subsequent loaded LUA script is the latest version. For the loading of the LUA script, there is currently an obvious loading process in the process of terminal control of smart home appliances, and the loading efficiency is not high. high

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
  • Loading method of LUA script, terminal and computer readable storage medium
  • Loading method of LUA script, terminal and computer readable storage medium
  • Loading method of LUA script, terminal and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0040] The main solution of the embodiment of the present invention is: when receiving the smart home appliance control instruction triggered by the smart home appliance APP, detecting whether there is a loading identifier in the memory cache for identifying that the LUA script after the latest update has been loaded, wherein, The LUA script is used to parse the smart home appliance control instruction; if the loading identifier exists in the memory cache, it is detected whether there is a LUA script corresponding to the loading identifier in the disk cache; If the loading identifier corresponds to the LUA script, then load the LUA script in the disk cache.

[0041] The update and loading of existing LUA scripts are two independent processes. For the update of LUA scripts, this process generally requires user particip...

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 loading method of an LUA script. The method comprises the following steps of upon receiving an intelligent household appliance control instruction triggered based on an intelligent household appliance APP, detecting whether a loading identifier already loaded by a last updated LUA script exists in a memory cache or not, wherein the LUA script is used for analyzing the intelligent household appliance control instruction; if the loading identifier exists in the memory cache, detecting whether a LUA script corresponding to the loading identifier exists in a disk cache ornot; if the LUA script corresponding to the loading identifier exists in the disk cache, loading the LUA script in the disk cache. The invention further discloses a terminal and a computer readable storage medium. According to the invention, the LUA script loaded by the terminal can be ensured to be the latest version. The high loading efficiency can be guaranteed.

Description

technical field [0001] The invention relates to the technical field of software, in particular to a method for loading LUA scripts, a terminal and a computer-readable storage medium. Background technique [0002] LUA is a small scripting language that can be embedded in applications to provide flexible expansion and customization functions for applications. At present, in the field of smart home, by embedding LUA scripts in smart home appliance APP, the data transmitted to smart home appliances through the network can be converted into data types that can be recognized by smart home appliances, thereby realizing the analysis of related smart home appliance control protocols. [0003] With the continuous update of smart home appliances, the LUA script must also be updated in time, otherwise it will lead to failure to control the smart home appliances. However, at present, the update and loading of LUA scripts are two independent processes. For the update of LUA scripts, this...

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): G05B19/042
CPCG05B19/0423G05B2219/25257
Inventor 袁秀东
Owner MIDEA INTELLIGENT LIGHTING & CONTROLS TECH CO LTD