Disclosure of Invention
The invention provides an application program issuing method and device for industrial Internet, which at least solve at least one technical problem in the prior art.
As one aspect of the present invention, the present invention provides an application distribution method for an industrial internet, comprising:
sending an encapsulation request to a server, wherein the encapsulation request comprises the type of a program to be encapsulated;
when the response of the server is received, the program to be packaged is sent to the server;
acquiring a packaging result generated after the server packages the program to be packaged;
and releasing the application program generated after the packaging in an application store.
Preferably, the type of the program to be packaged comprises a script program or an installation package program.
Preferably, when the type of the program to be packaged is a script program, when the response of the server is received, sending the program to be packaged to the server includes:
sending the script program to the server;
and sending the variables required by running the script program to the server.
Preferably, when the type of the program to be packaged is an installation package program, when a response of the server is received, the sending the program to be packaged to the server includes:
and sending the installation package program to the server.
Preferably, the obtaining of the encapsulation result generated by the server after encapsulating the program to be encapsulated includes:
acquiring a packaging progress from the server;
and acquiring a verification result of the application program generated after the packaging.
Preferably, the publishing the application program generated after the packaging in the application store includes:
acquiring an application link for publishing the application program from a server;
sending a publication request to the electronic application store;
and sending information of the application program to a server corresponding to the application store, wherein the information of the application program comprises the application link.
The embodiment of the invention also provides an application program issuing method for the industrial internet, which comprises the following steps:
receiving an encapsulation request sent by a client, wherein the encapsulation request comprises the type of a program to be encapsulated;
sending a response to the client, and receiving the program to be packaged sent by the client;
and sending a packaging result generated after packaging the program to be packaged to the client according to the request of the client.
Preferably, the type of the program to be packaged comprises a script program or an installation package program.
Preferably, when the type of the program to be packaged is a script program, sending a response to the client, and receiving the program to be packaged sent by the client includes:
receiving the script program sent by the client;
and receiving variables required by the running of the script program.
Preferably, when the type of the program to be packaged is an installation package program, sending a response to the client, and receiving the program to be packaged sent by the client includes:
and receiving the installation package program sent by the client.
Preferably, sending a packaging result generated after packaging the program to be packaged to the client according to a request of the client, includes:
sending a packaging progress to the client according to the request of the client;
sending a verification result of the application program generated after encapsulation to the client according to the request of the client;
and sending an application link corresponding to the application program to the client according to the request of the client so as to be convenient for the client to publish the application program.
An embodiment of the present invention further provides an application publishing apparatus for an industrial internet, including:
the first sending module is used for sending a packaging request to the server, and the packaging request comprises the type of a program to be packaged;
the second sending module is used for sending the program to be packaged to the server when receiving the response of the server;
the acquisition module is used for acquiring a packaging result generated after the server packages the program to be packaged;
and the release module is used for releasing the generated application program after packaging in an application store.
An embodiment of the present invention further provides an application publishing apparatus for an industrial internet, including:
the first receiving module is used for receiving an encapsulation request sent by a client, and the encapsulation request comprises the type of a program to be encapsulated;
the second receiving module is used for sending a response to the client and receiving the program to be packaged sent by the client;
and the sending module is used for sending a packaging result generated after packaging the program to be packaged to the client according to the request of the client.
By adopting the technical scheme, the invention has the following advantages: the method and the device for packaging the application program package enable the server to package the program to be packaged and generate a packaging result by sending the packaging request and the type of the program to be packaged to the server, and then release the generated application program after packaging in an application store according to the request of the client. The technical scheme of the embodiment of the invention can realize that:
(1) by the application program provided by the embodiment, the algorithm, the model and the program accumulated in the working process can be quickly packaged into an industrial internet APP product, so that the reusability of industrial knowledge is improved, and meanwhile, the commercialization liquidity is improved;
(2) in the industrial intellectual productization process, the intellectual property of the product is effectively protected;
(3) the application program of the embodiment provides a universal functional module, can be quickly integrated into an industrial internet platform, and reduces the workload of developing an industrial internet APP;
(4) the embodiment can release the industrial internet APP to the application store, is convenient for popularization and transaction, and improves the industrial internet APP propagation efficiency;
(5) the method supports the simultaneous operation of a plurality of clients and reduces the occupation of local resources.
The foregoing summary is provided for the purpose of description only and is not intended to be limiting in any way. In addition to the illustrative aspects, embodiments, and features described above, further aspects, embodiments, and features of the present invention will be readily apparent by reference to the drawings and following detailed description.
Detailed Description
In the following, only certain exemplary embodiments are briefly described. As those skilled in the art will recognize, the described embodiments may be modified in various different ways, all without departing from the spirit or scope of the present invention. Accordingly, the drawings and description are to be regarded as illustrative in nature, and not as restrictive.
In the description of the present invention, it is to be understood that the terms "central," "longitudinal," "lateral," "length," "width," "thickness," "upper," "lower," "front," "rear," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," "outer," "clockwise," "counterclockwise," "axial," "radial," "circumferential," and the like are used in the orientations and positional relationships indicated in the drawings for convenience in describing the invention and to simplify the description, and are not intended to indicate or imply that the referenced device or element must have a particular orientation, be constructed and operated in a particular orientation, and are not to be considered limiting of the invention.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present invention, "a plurality" means two or more unless specifically defined otherwise.
In the present invention, unless otherwise expressly stated or limited, the terms "mounted," "connected," "secured," and the like are to be construed broadly and can, for example, be fixedly connected, detachably connected, or integrally formed; the connection can be mechanical connection, electrical connection or communication; either directly or indirectly through intervening media, either internally or in any other relationship. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the present invention, unless otherwise expressly stated or limited, "above" or "below" a first feature means that the first and second features are in direct contact, or that the first and second features are not in direct contact but are in contact with each other via another feature therebetween. Also, the first feature being "on," "square," and "over" the second feature includes the first feature being directly above and obliquely above the second feature, or merely indicating that the first feature is at a higher level than the second feature. A first feature being "under," "below," and "beneath" a second feature includes the first feature being directly above and obliquely above the second feature, or simply meaning that the first feature is at a lesser level than the second feature.
The following disclosure provides many different embodiments or examples for implementing different features of the invention. To simplify the disclosure of the present invention, the components and arrangements of specific examples are described below. Of course, they are merely examples and are not intended to limit the present invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, such repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and/or configurations discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art may recognize applications of other processes and/or uses of other materials.
The existing industrial internet APP mainly has two types: the client side uses the system application program of the B/S architecture online and downloads the application program to the client side for local use. The combination point of the system application program of the B/S architecture and the industrial Internet platform is mainly as follows: the industrial internet platform provides a deployment environment, an operation and maintenance tool, an operation support resource and a popularization channel for system application of the B/S architecture. The combination point of the industrial software of the C/S architecture and the industrial Internet platform is mainly as follows: the industrial internet provides a popularization channel for industrial software of a C/S architecture. However, at present, the industrial internet APPs under two architectures have the following key problems: (1) the industrial APP is the evolution of the traditional software and system, the degree of combination with the industrial Internet is not deep, and the industrial Internet platform does not play a role in promoting the conversion of industrial knowledge into the APP; (2) developers of industrial APP are companies mainly managing informatization services, the core function universality of industrial APP products is strong, and specific industrial problems are not focused; (3) industrial APP services and technologies provided by the industrial Internet are concentrated in a bottom deployment environment and an operation environment, and the requirement for rapid and convenient APP development cannot be supported; (4) the industrial internet platform does not provide sufficient intellectual property protection for industrial APPs.
The following embodiments mainly disclose a system application program publishing method under a B/S architecture.
Example one
The embodiment of the invention provides an application program issuing method for industrial Internet. As shown in fig. 1, the application program publishing method according to the embodiment of the present invention includes the following steps:
s101, sending a packaging request to a server, wherein the packaging request comprises the type of a program to be packaged.
The execution subject of the present embodiment is a client. In some embodiments of the invention, the server may be an industrial internet platform that includes a packaging tool that may be used by developers to package actions.
The industrial internet platform can also perform load balancing on resources, for example, the industrial internet platform controls ten virtual machines simultaneously, the ten virtual machines can be assembled with 20 CPUs, 1T memories and a plurality of software, and when the industrial internet platform executes a plurality of tasks, the resources can be allocated, so that the workload of each device is balanced.
And an industrial internet platform is adopted for packaging, so that the simultaneous use of a plurality of developers can be supported. For example, a plurality of clients simultaneously send packaging requests to the industrial Internet platform or upload programs to be packaged. Even after the application program is uploaded to the application store, the simultaneous use of multiple users can be supported.
S102, when the response of the server is received, the program to be packaged is sent to the server.
Normally, when a client sends an encapsulation request to a server, the server will respond indicating that the server can receive the encapsulation task. And then the client uploads the program to be packaged to the server so as to facilitate the packaging of the server. The occupation of local resources of the client is reduced due to the encapsulation of the server.
S103, obtaining a packaging result generated after the server packages the program to be packaged.
For example, the client may receive visual information of the packaging progress sent by the server, may receive a notification of the packaging completion sent by the server, may receive a notification that verification may be performed sent by the server, may receive a notification that publication may be performed at an application store, and the like, which may all be regarded as the packaging result.
And S104, releasing the generated application program after packaging in an application store.
Specifically, at the time of encapsulation, the application has been uploaded to the server. When the application program passes the verification after the packaging is finished, an application link of the application program is generated, and then the information of the application program is published in an application store.
Wherein the information of the application program comprises: name, version information, environment, system, manufacturer, service provider, industry, domain, rights, role, application profile, and application link.
Further, the type of the program to be packaged comprises a script program or an installation package program.
For example, when the program to be packaged is a script program, the script program includes 100 lines of code, and the 100 lines of code may be uploaded to a server for packaging when packaging.
Further, the program to be packaged is used for testing hardware of the terminal equipment.
The embodiment is different from the APP used by the mobile terminal in the traditional sense, and the APP related to the embodiment can be used for development of industrial products. For example, a device is tested for failure, performance, etc. For example, the mobile phone drop test can test the damage condition of the mobile phone hardware after the mobile phone drops from 1 meter, or the damage condition of the mobile phone hardware after the mobile phone drops from 2 meters, and the like.
The technical scheme of the embodiment of the invention can realize that:
(1) by the application program provided by the embodiment, the algorithm, the model and the program accumulated in the working process can be quickly packaged into an industrial internet APP product, so that the reusability of industrial knowledge is improved, and meanwhile, the commercialization liquidity is improved;
(2) in the industrial intellectual productization process, the intellectual property of the product is effectively protected;
(3) the application program of the embodiment provides a universal functional module, can be quickly integrated into an industrial internet platform, and reduces the workload of developing an industrial internet APP;
(4) the embodiment can release the industrial internet APP to the application store, is convenient for popularization and transaction, and improves the industrial internet APP propagation efficiency;
(5) the method supports the simultaneous operation of a plurality of clients and reduces the occupation of local resources.
Example two
On the basis of the first embodiment, the embodiment of the invention also provides an application program issuing method for the industrial Internet. As shown in fig. 2, the application program publishing method according to the embodiment of the present invention includes the following steps:
s201, sending a packaging request to a server, wherein the packaging request comprises the type of a program to be packaged.
The above step S201 corresponds to the above step S101.
S202, judging whether the type of the program to be packaged is a script program, if so, executing the step S203; otherwise, step S205 is executed.
As shown in fig. 3, the user can select the type to be packaged on the packaging interface according to the requirements of the program. And then the server judges whether the type of the program to be packaged is a script program.
S203, the script program is sent to the server.
And S204, sending variables required by running the script program to the server.
When the user uses the application program, the scene is different. The developer and the user can not communicate at any time, and the developer can not know the requirements of the user, so that the developer and the user can not communicate at any time, and the developer can not know the requirements of the user, thereby
For example, when the program to be packaged is a script program, the script program includes 100 lines of representatives, and the 100 lines of codes can be uploaded to a server for packaging when packaging.
It should be noted that when uploading the script program, the core part variables need to be identified by using identifiers, so that the user can define the variables autonomously when using the application program. For example, 100 lines of original scripts are uploaded, the variable is height, the identifier is%, an initial value can be defined, for example, the height of a certain element is 1 cm, when the original script is uploaded, a "%" is added before and after 1, namely "% 1%" respectively, to indicate that the position is the variable, and the developer or the user can modify the variable. When using the application, a corresponding text box pops up in the user interface, and the user directly accesses the data desired to be entered, i.e., for example, enter 2, and confirms. At this time, the server receives a new variable, a set of new scripts is formed, then calculation is carried out, and a user can obtain a calculation result after calculation is completed.
The client side does not need to install plug-ins or any installation packages and the like, and can directly use the application program on line for testing, so that the occupation of local resources is reduced.
According to the embodiment, the corresponding scene test can be completed only by modifying the corresponding variable under different scenes according to the test of different products under different scenes.
In addition, when the type of the program to be packaged is an installation package program, the following steps are executed:
s205, sending the installation package program to the server.
The above steps S202 to S205 correspond to the step S102.
Two methods may be included as to how to determine the type of program to be packaged: firstly, the server automatically judges which type is according to the received program to be packaged, and then packages the program; secondly, options can be added on a display interface of the client, a developer can select the type of the program to be packaged when uploading the program to be packaged, and then type information is sent
S206, obtaining the packaging progress from the server.
When a user waits for packaging, the user is in a hurry when not knowing the packaging progress, and the packaging progress can be displayed on the user interface of the client in the embodiment for the convenience of the user to know the packaging progress in time. The display may actively send the package progress to the client, or may send the package progress to the client according to a request from the client. For example, a progress bar may be displayed on the user interface, and text such as "packaged 70%", "packaged complete," etc. may be displayed on the progress bar.
And S207, acquiring a verification result of the application program generated after packaging.
In this embodiment, after the program to be packaged is packaged, the preliminarily packaged application program needs to be fully verified. The purpose of the verification mainly comprises two aspects: the method comprises the steps of firstly, verifying whether the packaged application program accords with the grammar specification, and secondly, verifying whether the packaged application program has semantic errors, namely verifying the correctness of the application program.
S208, acquiring the application link for publishing the application program from the server.
The above steps S206 to S208 correspond to the step S103.
If the verification passes in the last step, the client may send a request to the server to obtain the application link. The application link is used to fill in when the application program is published to the application store.
S209, sending a publishing request to the electronic application store.
Sending information of the application to the electronic application store, wherein the information of the application includes the application link. The application link indicates the address where the application is stored, and when the client requests the application, the actual address is linked to.
When the application program is released to the application store, the user can pay by himself according to the transaction rule and run the APP, so that the application program can be conveniently popularized, and the convenience of use of the user is guaranteed.
The above steps S208 to S209 correspond to the step S104.
The embodiment of the invention can set the variables under different scenes according to the requirements of users, and has universality; in addition, the embodiment can also display the real-time packaging progress to the user, thereby improving the user experience; in addition, the embodiment uploads to the electronic application store.
EXAMPLE III
The embodiment of the invention provides an application program issuing method for industrial Internet. As shown in fig. 4, the application program publishing method according to the embodiment of the present invention includes the following steps:
s301, receiving an encapsulation request sent by a client, wherein the encapsulation request comprises the type of a program to be encapsulated.
The execution subject of the present embodiment is a server. The server is configured with tools for encapsulation, such as some encapsulation software. The server may be an industrial internet platform, and please refer to the description of the industrial internet platform in the embodiment, which is not described herein again.
S302, sending a response to the client and receiving the program to be packaged sent by the client.
And S303, sending a packaging result generated after packaging the program to be packaged to the client according to the request of the client.
The type of the program to be packaged comprises a script program or an installation package program.
The technical scheme of the embodiment of the invention can realize that:
(1) by the application program provided by the embodiment, the algorithm, the model and the program accumulated in the working process can be quickly packaged into an industrial internet APP product, so that the reusability of industrial knowledge is improved, and meanwhile, the commercialization liquidity is improved;
(2) in the industrial intellectual productization process, the intellectual property of the product is effectively protected;
(3) the application program of the embodiment provides a universal functional module, can be quickly integrated into an industrial internet platform, and reduces the workload of developing an industrial internet APP;
(4) the embodiment can release the industrial internet APP to the application store, is convenient for popularization and transaction, and improves the industrial internet APP propagation efficiency;
(5) the method supports the simultaneous operation of a plurality of clients and reduces the occupation of local resources.
Example four
On the basis of the third embodiment, the embodiment of the invention also provides an application program issuing method for the industrial internet. As shown in fig. 5, the application program publishing method according to the embodiment of the present invention includes the following steps:
s401, receiving a packaging request sent by a client, wherein the packaging request comprises the type of a program to be packaged.
The step S401 corresponds to the step S301 described above.
S402, judging whether the type of the program to be packaged is a script program, if so, executing a step S403; otherwise, step S405 is performed.
S403, receiving the script program sent by the client.
S404, receiving variables required by the running of the script program.
For the variables, reference is made to the description of the second embodiment, which is not repeated here.
S405, receiving the installation package program sent by the client.
The steps S402 to S405 correspond to the above step S302.
S406, sending the packaging progress to the client according to the request of the client.
S407, sending the verification result of the application program generated after encapsulation to the client according to the request of the client.
S408, sending the application link corresponding to the application program to the client according to the request of the client, so that the client can conveniently release the application program.
The steps S406 to S408 correspond to the above step S303.
And the program to be packaged is used for testing the hardware of the terminal equipment.
In addition, the embodiment of the invention also has a background management function. The administrator has the management authority to see the packaging condition and the configuration condition of all the script programs and the installation package programs. For example, whether the software used to package the script program supports packaging the script program or whether the software supports packaging the installation package program. The administrator can also monitor and control background resources, configure resources and the like.
In addition, when the script program and the installation package program are not successfully packaged, the packaging result can be manually returned to the developer by an administrator so that the developer can modify the program. When the server-side package is completed, the administrator can manually verify the application generated by the package and determine that the application can be used. The administrator may also handle other maintenance issues that arise when using the application.
The embodiment can set variables under different scenes according to the requirements of users, and has universality; in addition, the embodiment can also display real-time packaging progress to a user, so that the user experience is increased; in addition, the embodiment uploads to the electronic application store.
EXAMPLE five
The embodiment of the invention provides an application program issuing device for industrial Internet. Fig. 6 is a schematic diagram of an application issuing apparatus according to an embodiment of the present invention. The application program issuing device of the embodiment of the invention comprises:
a first sending module 501, configured to send an encapsulation request to a server, where the encapsulation request includes a type of a program to be encapsulated;
a second sending module 502, configured to send the program to be packaged to the server when receiving a response from the server;
an obtaining module 503, configured to obtain a packaging result generated after the server packages the program to be packaged;
and the publishing module 504 is configured to publish the generated application program after the packaging in the application store.
The technical scheme of the embodiment can realize online packaging of the industrial internet APP, and the packaged application program can be released in an application store, and the technical effect of the method is the same as that of the first embodiment, and is not described herein again.
EXAMPLE six
The embodiment of the invention provides an application program issuing device for industrial Internet. Fig. 7 is a schematic diagram of an application issuing apparatus according to an embodiment of the present invention. The application program issuing device of the embodiment of the invention comprises:
a first receiving module 601, configured to receive an encapsulation request sent by a client, where the encapsulation request includes a type of a program to be encapsulated;
a second receiving module 602, configured to send a response to the client, and receive the program to be packaged sent by the client;
the sending module 603 is configured to send, to the client, a package result generated after the package is performed on the program to be packaged according to a request of the client.
The technical scheme of the embodiment can realize online packaging of the industrial internet APP, and the packaged application program can be released in an application store, and the technical effect of the method is the same as that of the third embodiment, and is not described herein again.
The above description is only for the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various changes or substitutions within the technical scope of the present invention, and these should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.