Supercharge Your Innovation With Domain-Expert AI Agents!

Method and device for automatically generating code

An automatic generation and code technology, applied in the direction of creating/generating source code, etc., can solve the problem of low efficiency of instruction code, achieve the effect of improving development efficiency, reducing workload, and facilitating unified maintenance

Active Publication Date: 2018-09-04
XIAOMI INC
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to overcome the problems existing in related technologies, the present disclosure provides a method and device for automatically generating codes to solve the technical problem of low efficiency in the development and maintenance of smart device instruction codes

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
  • Method and device for automatically generating code
  • Method and device for automatically generating code
  • Method and device for automatically generating code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0050] figure 1 It is a flow chart of a method for automatically generating codes according to an exemplary embodiment. This method can be used, for example, on a server or a personal computer used by a developer.

[0051] In step S101, the written statement for operating the smart device is obtained, and the statement includes a function point number, and a read operation or a write operation...

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 embodiment of the invention provides a method and a device for automatically generating code, wherein the method comprises the following steps of: obtaining a programmed sentence used for operating intelligent equipment, wherein the sentence includes the function point serial number and read operation or write operation; obtaining a configuration file, wherein the configuration file records the function point serial number of each function point on the intelligent equipment and instruction code respectively used for operating each function point; and converting the read operation or write operation in the sentence into the instruction code used for operating a target function point according to the configuration file, wherein the target function point is a function point, corresponding to the function point serial number in the sentence, on the intelligent equipment. The method and the device provided by the embodiment of the invention have the advantages that a developer only needs to specify the function point serial number and to program the sentence with two simple operations (read operation and write operation), so that the workload of the developer is greatly reduced; the code development efficiency is improved; and the later-stage unified maintenance of the code is also facilitated.

Description

technical field [0001] The present disclosure relates to the field of intelligent terminal control, in particular to a method and device for automatically generating codes. Background technique [0002] With the development of technology and the improvement of living standards, more and more smart devices such as smart sockets and smart fans have begun to enter thousands of households. In order to control these smart devices on mobile terminals such as mobile phones, mobile terminals such as mobile phones usually install corresponding APPs or plug-ins. When developers develop these APPs or plug-ins, due to the wide variety of smart devices, complex functions, and different manufacturers, developers usually need to design or use various command names to distinguish different functional commands, such as the same is to open, open The command for a smart socket may be a command similar to "power: on", while the command for turning on a smart curtain becomes a command similar t...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F8/30
Inventor 侯恩星张彦路王元波
Owner XIAOMI INC
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