CN105677365B - A kind of online software development approach and system - Google Patents
A kind of online software development approach and system Download PDFInfo
- Publication number
- CN105677365B CN105677365B CN201610105486.4A CN201610105486A CN105677365B CN 105677365 B CN105677365 B CN 105677365B CN 201610105486 A CN201610105486 A CN 201610105486A CN 105677365 B CN105677365 B CN 105677365B
- Authority
- CN
- China
- Prior art keywords
- equipment
- information
- development
- target
- script
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000013515 script Methods 0.000 claims abstract description 65
- 238000000034 method Methods 0.000 claims abstract description 39
- 230000004044 response Effects 0.000 claims abstract description 7
- 238000004891 communication Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000008569 process Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/10—Requirements analysis; Specification techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of online software development approach and systems, comprising: development equipment is requested by development module to target device sending device description information;The request of target device response apparatus description information, describes return information to development equipment sending device according to the device descriptive information stored in device information storage unit;It include objective browser in target device;Objective browser is used to drive target device by script;Development equipment describes return information according to equipment and obtains the facility information of target device, and is shown.The method and system provided through the invention, the detailed description information that can directly can see target device in developing instrument go to search various data without oneself on the net, thus greatly reduce the difficulty of exploitation.
Description
Technical Field
The invention belongs to the field of software development, and particularly relates to an online software development method and system.
Background
Various devices including a PC, a mobile phone, an Internet of things and the like need software support. Software is typically developed for a device by first knowing what functions and interfaces the device has, and then developing it. Since the PC and the mobile phone are relatively standardized, the functions and the interfaces are relatively standard. However, because the difference between the devices of the internet of things is usually large, the difference between the functions and the interfaces of each device is also large, and as a software developer, it is often necessary to take great effort to find various data to develop software after taking a piece of hardware device, and then the software can be developed for the hardware. Due to the fact that the types of the devices of the internet of things are numerous, the time spent on finding materials is also quite large.
Aiming at the problem frequently encountered in the development of the Internet of things software, the invention provides the method and the system for online software development, which can greatly reduce the difficulty of searching data.
Disclosure of Invention
The invention mainly aims to solve the problems in the prior art and provide an online software development method and system, so that the difficulty of searching data in online software development is greatly reduced.
According to a first aspect of the embodiments of the present invention, there is provided an online software development method applied to an online software development system, the online software development system including: development equipment and target equipment communicatively linked to each other, the method comprising:
the development equipment sends an equipment description information request to the target equipment through a development module;
the target equipment responds to the equipment description information request and sends equipment description return information to the development equipment according to the equipment description information stored in the equipment information storage unit; the target equipment comprises a target browser; the target browser is used for driving the target equipment through a script;
and the development equipment acquires the equipment information of the target equipment according to the equipment description return information and displays the equipment information.
The device description return information at least comprises a device ID and a device information storage address;
the developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
and the development equipment sends the equipment ID to the equipment information storage address, and acquires the equipment information of the target equipment according to the equipment ID.
The device description return information at least comprises a device ID;
the developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
and the development equipment sends the equipment ID to a preset equipment information acquisition address, and acquires the equipment information of the target equipment according to the equipment ID.
The development equipment comprises a script template library; at least one script template is stored in the script template library;
and the development equipment calls a script template matched with the equipment information in the script template library according to the equipment information.
The development equipment sends a development script to the target equipment through a development module;
the target equipment runs the development script through the target browser and generates debugging information;
and the target equipment sends the debugging information to the development equipment through a web socket.
According to a second aspect of the embodiments of the present invention, there is provided an online software development system, including: development equipment and target equipment which are mutually communicated and linked;
the development device comprises a development module; the development module at least comprises: the device comprises a request sending unit, a device information acquiring unit and a display unit;
the request sending unit is used for sending a device description information request to the target device;
the device information acquiring unit is used for acquiring the device information of the target device according to the device description return information sent by the target device;
the display unit is used for displaying the equipment information;
the target device includes: the device comprises a request response unit, a device information storage unit and a target browser;
the request response unit is used for responding to the device description information request and sending device description return information to the development device;
the device information storage unit is used for storing the device description information;
and the target browser is used for driving the target equipment through a script.
The device description return information at least comprises a device ID and a device information storage address;
the device information obtaining unit is further configured to send the device ID to the device information storage address, and obtain the device information of the target device according to the device ID.
The device description return information at least comprises a device ID;
the device information obtaining unit is further configured to send the device ID to a preset device information obtaining address, and obtain the device information of the target device according to the device ID.
The development equipment also comprises a script template library; at least one script template is stored in the script template library;
the development module also comprises a script template calling unit; and the script template calling unit is used for calling a script template matched with the equipment information in the script template library according to the equipment information.
The development module also comprises a script sending unit; the script sending unit is used for sending a development script to the target equipment;
the target browser is also used for running the development script and generating debugging information;
the target device also comprises a debugging information returning module; and the debugging information returning module is used for sending the debugging information to the development equipment through the websocket.
According to the embodiment of the invention, the online software development method and the system can use the universal browser as a development tool, so that the trouble of installing various special development tools for different devices is avoided; the detailed description information of the target equipment can be directly seen in the development tool without searching various data on the network, so that the development difficulty is greatly reduced; the target browser can be realized through browser extension besides the functions of a standard browser.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is a first flow chart of an online software development method;
FIG. 2 is a flow chart diagram II of an online software development method;
FIG. 3 is a flow diagram of a third method of online software development;
FIG. 4 is a fourth flowchart illustration of an online software development method;
FIG. 5 is a first schematic diagram of the structure of an online software development system;
FIG. 6 is a second schematic structural diagram of an online software development system;
fig. 7 is a schematic structural diagram three of the online software development system.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
FIG. 1 is a first flowchart of an online software development method. As shown in the figure, the online software development method includes:
in step 101, the development device sends a device description information request to the target device through a development module.
The online software development method is applied to an online software development system. The online software development system comprises development equipment and target equipment which are in communication link with each other. And the development device runs a development module and is used for carrying out online software development on the target device. The development module has a web page display capability, and is used for displaying the detailed description information of the target device and editing codes. The development module may be a general-purpose browser running on a development device for web browsing.
In step 102, the target device sends device description return information to the development device according to the device description information stored in the device information storage unit in response to the device description information request; the target equipment comprises a target browser; the target browser is used for driving the target equipment through scripts.
The target device is a device for the online software development and is an operation carrier of the developed software. For example, the target device may be a camera, a temperature sensor, an infrared sensor, and the like. The target device is provided with a device information storage unit. The device information storage unit stores therein device description information.
The device description information may contain some of the following information: device attributes and device methods. The device attributes may contain the following information: attribute name, literal description of the attribute, attribute type (numeric, string, enumerated, etc.), value range of the attribute, input/output direction of the attribute (e.g., read-only or writable). The device method may contain some information as follows: the name of the method, the description of the return value of the method (the type of the return value, the value range, etc.), and several parameters. The parameter may contain some information as follows: parameter names, literal descriptions of parameters, attribute types (numeric, string, enumerated, etc.), value ranges of attributes, input/output directions of attributes (e.g., read-only or writable), and so on.
The target device also comprises a target browser. The target browser is a browser running on the target device. The target browser may process web page languages including HTML, CSS, JavaScript, LUA, etc. Unlike a standard browser running on a PC: the target browser also has the capability of directly underlying device hardware through scripts. The script extension of how to implement the browser is well known to the browser developer and will not be described in detail herein.
In step 103, the development device obtains the device information of the target device according to the device description return information, and displays the device information.
According to the online software development method, in the development process, the target device is firstly connected with the development device, and the connection can be completed through various means such as WIFI, Ethernet and Bluetooth.
And after the development equipment is connected with the target equipment, sending an equipment description information request to the target equipment through a development module. And after receiving the request, the target device sends device description return information to the development device according to the device description information stored in the device information storage unit.
And after receiving the device description return information sent by the target device, the development device acquires the device information of the target device according to the device description return information and displays the device information. Therefore, the method and the system facilitate developers to search equipment information data, avoid the trouble of installing a special development environment, and can directly develop by using the browser, so that the developers can directly develop software according to the equipment information, and the development efficiency is greatly improved.
In step 103, the manner in which the development device obtains the device information of the target device according to the device description return information is different according to different situations.
As shown in fig. 2, in this embodiment, the device description return information includes at least a device ID and a device information storage address. The device information storage address may be a network address URL storing the device information.
The developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
in step 103a, the development device sends the device ID to the device information storage address, and obtains the device information of the target device according to the device ID.
Or,
as shown in fig. 3, in the present embodiment,
the device description return information includes at least a device ID.
The developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
in step 103b, the development device sends the device ID to a preset device information obtaining address, and obtains the device information of the target device according to the device ID. The preset device information obtaining address may search for a network address URL of the device information corresponding to the query device according to the device ID.
In addition, the device ID and the device description information of the target device may be returned simultaneously in one message, or may be returned separately in two times. The invention is not limited in this respect.
Furthermore, the development device further comprises a script template library. At least one script template is stored in the script template library.
And the development equipment calls a script template matched with the equipment information in the script template library according to the equipment information. Therefore, the system guides and assists developers to more conveniently develop software for the target equipment, and greatly reduces the difficulty of software development.
FIG. 4 is a fourth flowchart illustration of an online software development method. As shown in the figure, the online software development method further includes:
in step 104, the development device sends a development script to the target device through a development module.
In step 105, the target device runs the development script through the target browser and generates debugging information.
In step 106, the target device sends the debugging information to the development device through a web socket.
After the target device is connected with the development device, the software developer can develop software for the target device in a development module of the development device. The developer may use scripting languages such as HTML, CSS, JavaScript, LUA, etc.
After the development is completed, the development device can directly upload the developed codes to the target device through the development module. And after receiving the codes, the target equipment hands the codes to the target browser, and the target browser runs the development script and generates debugging information.
In addition, the development equipment has a web socket function, and after the target equipment is connected with the development equipment, the target equipment is connected with the development equipment through the web socket. Therefore, the target device can send the debugging information to the development device at any time. Through the function, the development equipment can be used as debugging information output equipment of the target equipment, and no separate external serial port line or USB line is needed like traditional hardware debugging.
The following are embodiments of systems of the present invention that may be used to perform embodiments of methods of the present invention. For details which are not disclosed in the embodiments of the system of the present invention, reference is made to the embodiments of the method of the present invention.
FIG. 5 is a first schematic diagram of the structure of an online software development system. As shown, the online software development system includes: the development device 100 and the target device 200 communicatively linked to each other;
the development device includes a development module 110; the development module 110 at least includes: a request transmission unit 111, a device information acquisition unit 112, and a display unit 113;
the request sending unit 111 is configured to send a device description information request to the target device 200;
the device information obtaining unit 112 is configured to obtain the device information of the target device 200 according to the device description return information sent by the target device 200;
the display unit 113 is configured to display the device information;
the target apparatus 200 includes: a request response unit 201, a device information storage unit 202, and a target browser 203;
the request responding unit 201 is configured to respond to the device description information request and send device description return information to the development device 100;
the device information storage unit 202 is configured to store device description information;
the target browser 203 is configured to drive the target device through a script.
And after receiving the device description return information sent by the target device, the development device acquires the device information of the target device according to the device description return information and displays the device information. Therefore, the method and the system facilitate developers to search equipment information data, avoid the trouble of installing a special development environment, and can directly develop by using the browser, so that the developers can directly develop software according to the equipment information, and the development efficiency is greatly improved.
The manner in which the device information acquiring unit 112 acquires the device information of the target device from the device description return information is different according to different situations.
Scheme one
The device description return information at least comprises a device ID and a device information storage address.
The device information obtaining unit 112 is further configured to send the device ID to the device information storage address, and obtain the device information of the target device according to the device ID.
Scheme two
The device description return information at least comprises a device ID;
the device information obtaining unit 112 is further configured to send the device ID to a preset device information obtaining address, and obtain the device information of the target device according to the device ID.
In addition, as shown in fig. 6, the development device 100 in this embodiment further includes a script template library 120; the script template library 120 stores at least one script template.
The development module 110 further includes a script template calling unit 114; the script template invoking unit 114 is configured to invoke a script template in the script template library 120, where the script template is matched with the device information, according to the device information.
In addition, as shown in fig. 7, in the present embodiment, the development module 110 further includes a script sending unit 115; the script sending unit 115 is configured to send a development script to the target device 200;
the target browser 203 is further configured to run the development script and generate debugging information;
the target device 200 further comprises a debugging information returning module 204; the debugging information returning module 204 is configured to send the debugging information to the development device 100 through a web socket.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.
Claims (8)
1. An online software development method is applied to an online software development system, and the online software development system comprises development equipment and target equipment which are in communication link with each other; the development equipment comprises a script template library, wherein at least one script template is stored in the script template library; the method is characterized by comprising the following steps:
the development equipment sends an equipment description information request to the target equipment through a development module;
the target equipment responds to the equipment description information request and sends equipment description return information to the development equipment according to the equipment description information stored in the equipment information storage unit; the target equipment comprises a target browser; the target browser is used for driving the target equipment through a script;
the development equipment acquires the equipment information of the target equipment according to the equipment description return information and displays the equipment information;
and the development equipment calls a script template matched with the equipment information in the script template library according to the equipment information.
2. The online software development method of claim 1, wherein:
the device description return information at least comprises a device ID and a device information storage address;
the developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
and the development equipment sends the equipment ID to the equipment information storage address, and acquires the equipment information of the target equipment according to the equipment ID.
3. The online software development method of claim 1, wherein:
the device description return information at least comprises a device ID;
the developing device obtains the device information of the target device according to the device description return information, and the method comprises the following steps:
and the development equipment sends the equipment ID to a preset equipment information acquisition address, and acquires the equipment information of the target equipment according to the equipment ID.
4. The online software development method according to any one of claims 1 to 3, further comprising:
the development equipment sends a development script to the target equipment through a development module;
the target equipment runs the development script through the target browser and generates debugging information;
and the target equipment sends the debugging information to the development equipment through a web socket.
5. An online software development system is characterized by comprising development equipment and target equipment which are in communication link with each other; the development equipment comprises a script template library, wherein at least one script template is stored in the script template library;
the development device comprises a development module; the development module at least comprises: the device comprises a request sending unit, a device information acquiring unit and a display unit; the development module also comprises a script template calling unit; the script template calling unit is used for calling a script template matched with the equipment information in the script template library according to the equipment information;
the request sending unit is used for sending a device description information request to the target device;
the device information acquiring unit is used for acquiring the device information of the target device according to the device description return information sent by the target device;
the display unit is used for displaying the equipment information;
the target device includes: the device comprises a request response unit, a device information storage unit and a target browser;
the request response unit is used for responding to the device description information request and sending device description return information to the development device;
the device information storage unit is used for storing the device description information;
and the target browser is used for driving the target equipment through a script.
6. The online software development system of claim 5, wherein:
the device description return information at least comprises a device ID and a device information storage address;
the device information obtaining unit is further configured to send the device ID to the device information storage address, and obtain the device information of the target device according to the device ID.
7. The online software development system of claim 5, wherein:
the device description return information at least comprises a device ID;
the device information obtaining unit is further configured to send the device ID to a preset device information obtaining address, and obtain the device information of the target device according to the device ID.
8. The online software development system according to any one of claims 5 to 7, characterized in that:
the development module also comprises a script sending unit; the script sending unit is used for sending a development script to the target equipment;
the target browser is also used for running the development script and generating debugging information;
the target device also comprises a debugging information returning module; and the debugging information returning module is used for sending the debugging information to the development equipment through the websocket.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610105486.4A CN105677365B (en) | 2016-02-25 | 2016-02-25 | A kind of online software development approach and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610105486.4A CN105677365B (en) | 2016-02-25 | 2016-02-25 | A kind of online software development approach and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677365A CN105677365A (en) | 2016-06-15 |
CN105677365B true CN105677365B (en) | 2019-04-12 |
Family
ID=56306084
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610105486.4A Active CN105677365B (en) | 2016-02-25 | 2016-02-25 | A kind of online software development approach and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105677365B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108345449A (en) * | 2017-12-25 | 2018-07-31 | 海尔优家智能科技(北京)有限公司 | A kind of information processing method, device, storage medium and computer equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102902536A (en) * | 2012-09-14 | 2013-01-30 | 杭州泛和科技有限公司 | Computer system of Internet of things |
CN103176785A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Widget application online implement system and method |
CN103365686A (en) * | 2003-09-25 | 2013-10-23 | 费舍-柔斯芒特系统股份有限公司 | Method and apparatus for providing automatic software updates |
CN104142824A (en) * | 2014-07-08 | 2014-11-12 | 北京彩云动力教育科技有限公司 | Code generator based on class library and realization method of code generator |
CN104954371A (en) * | 2015-06-09 | 2015-09-30 | 小米科技有限责任公司 | Equipment information display method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7219304B1 (en) * | 2000-06-19 | 2007-05-15 | International Business Machines Corporation | System and method for developing and administering web applications and services from a workflow, enterprise, and mail-enabled web application server and platform |
-
2016
- 2016-02-25 CN CN201610105486.4A patent/CN105677365B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103365686A (en) * | 2003-09-25 | 2013-10-23 | 费舍-柔斯芒特系统股份有限公司 | Method and apparatus for providing automatic software updates |
CN103176785A (en) * | 2011-12-26 | 2013-06-26 | 中国电信股份有限公司 | Widget application online implement system and method |
CN102902536A (en) * | 2012-09-14 | 2013-01-30 | 杭州泛和科技有限公司 | Computer system of Internet of things |
CN104142824A (en) * | 2014-07-08 | 2014-11-12 | 北京彩云动力教育科技有限公司 | Code generator based on class library and realization method of code generator |
CN104954371A (en) * | 2015-06-09 | 2015-09-30 | 小米科技有限责任公司 | Equipment information display method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105677365A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11188310B2 (en) | Automatically generating an interface description in an interface description language | |
US8375362B1 (en) | Wizard for web service search adapter | |
CN109862064B (en) | Configuration method and device for remote monitoring of equipment | |
TW201835841A (en) | Automated constructing method of cloud manufacturing service, computer program product, and cloud manufacturing system | |
KR101340780B1 (en) | Data sharing system and method | |
KR101908162B1 (en) | Live browser tooling in an integrated development environment | |
US9594802B2 (en) | Graphical modeling of database query statements | |
US11907734B2 (en) | Dynamic linking of content elements to development tool resources | |
KR101494844B1 (en) | System for Transforming Chart Using Metadata and Method thereof | |
EP3259679B1 (en) | An automatically invoked unified visualization interface | |
US20130132422A1 (en) | System and method for creating and controlling an application operating on a plurality of computer platform types | |
CN106997298A (en) | A kind of application resource acquisition methods and device | |
CN107622006B (en) | Mobile device testing system and method for testing mobile device | |
CN109460546A (en) | List generation method, device and electronic equipment | |
CN103873918A (en) | Picture processing method, device and terminal | |
US12079298B2 (en) | Methods and systems for browser extension used to generate relative XPath, absolute XPath and/or CSS selectors | |
US9606525B2 (en) | Remote accessory for generating customized and synchronized reference notes for a programmable metrology system | |
US20120151321A1 (en) | System for Generating Websites for Products with an Embedded Processor | |
US20140188916A1 (en) | Combining odata and bpmn for a business process visibility resource model | |
CN103544271B (en) | Load Image in a kind of browser the method and apparatus for processing window | |
CN111367802A (en) | Web automatic testing method and device and computer readable storage medium | |
CN105677365B (en) | A kind of online software development approach and system | |
CN112463261B (en) | Interface calling method, device, electronic equipment, medium and product | |
US9152388B2 (en) | Tailored language sets for business level scripting | |
KR20180058561A (en) | Hybrid app development platform and the developing method using the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |