CN111506846A - Web page generation method and device, electronic equipment and storage medium - Google Patents

Web page generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111506846A
CN111506846A CN201910091536.1A CN201910091536A CN111506846A CN 111506846 A CN111506846 A CN 111506846A CN 201910091536 A CN201910091536 A CN 201910091536A CN 111506846 A CN111506846 A CN 111506846A
Authority
CN
China
Prior art keywords
equipment
control package
web control
web
stored
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.)
Granted
Application number
CN201910091536.1A
Other languages
Chinese (zh)
Other versions
CN111506846B (en
Inventor
徐生强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201910091536.1A priority Critical patent/CN111506846B/en
Publication of CN111506846A publication Critical patent/CN111506846A/en
Application granted granted Critical
Publication of CN111506846B publication Critical patent/CN111506846B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the application provides a Web page generation method, a Web page generation device, electronic equipment and a storage medium, wherein the method comprises the following steps: establishing communication connection with equipment to be configured; judging whether a Web control package is stored in the equipment to be configured; when the device to be configured does not store the Web control package, acquiring an identifier of the device to be configured; determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the equipment identification stored in advance and the Web control package; and generating a Web page of the equipment to be configured in a browser of the management equipment through the target Web control package. The Web page generation method of the embodiment of the application realizes the online configuration of the Web function embedded in the terminal equipment, does not occupy the flash memory of the singlechip of the terminal equipment, and increases the probability of the success of the Web configuration of the terminal equipment.

Description

Web page generation method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for generating a Web page, an electronic device, and a storage medium.
Background
With the development of internet technology, applications based on Web pages are increasing, and more terminal devices can implement functions of remote configuration, update, control and the like of the terminal devices through the Web pages.
In a scheme of embedding a Web page in a related CS (Client/Server) Client, a configuration page of a Web is embedded in a CS Client of a management device and a terminal device. The specific method of the terminal equipment side is that the terminal equipment carries out Web configuration on the terminal equipment through a Web control package in a flash memory of a singlechip of the terminal equipment, so that a Web page embedded in a CS client side is realized.
However, the inventor finds that in an actual application scenario, a situation that the Web control package cannot be stored due to insufficient flash memory of the single chip of the terminal device exists, so that the Web configuration of the terminal device fails.
Disclosure of Invention
The embodiment of the application aims to provide a method and a device for generating a Web page, electronic equipment and a storage medium, so as to increase the probability of successful generation of the Web page of terminal equipment. The specific technical scheme is as follows:
in a first aspect, an embodiment of the present application provides a Web page generation method, which is applied to a management device, where the management device includes a Web control package, and the method includes:
establishing communication connection with equipment to be configured;
judging whether a Web control package is stored in the equipment to be configured;
when the Web control package is not stored in the equipment to be configured, acquiring the identifier of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the equipment identification stored in advance and the Web control package;
and generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the establishing a communication connection with a device to be configured includes:
sending login information to a device to be configured;
and after the device to be configured successfully verifies the login information, establishing single sign-on (SSO) communication between the management device and the device to be configured.
Optionally, the determining whether the device to be configured stores the Web control package includes:
sending a capability set acquisition instruction to the equipment to be configured;
receiving a capability set message returned by the equipment to be configured, wherein the capability set message represents whether a Web control packet is stored in the equipment to be configured;
and judging whether the Web control package is stored in the equipment to be configured or not according to the capability set message.
Optionally, the obtaining the identifier of the device to be configured includes:
acquiring the identifier of the device to be configured attached in the uniform resource locator UR L of the dispatch.
Optionally, the determining, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package includes:
searching a predetermined identification address mapping table according to the identification of the equipment to be configured, and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and acquiring a target Web control package corresponding to the device to be configured in the target storage path.
Optionally, after determining whether the device to be configured stores the Web control package, the method further includes:
when the Web control package is stored in the device to be configured, sending a configuration page request message to the device to be configured so that the device to be configured generates page configuration information;
and acquiring the page configuration information, and loading the page configuration information in a browser of the management equipment to generate a Web page of the equipment to be configured.
In a second aspect, an embodiment of the present application provides a Web page generation apparatus, which is applied to a management device, where the management device includes a Web control package, and the apparatus includes:
the communication establishing module is used for establishing communication connection with the equipment to be configured;
the capability set judging module is used for judging whether the equipment to be configured stores the Web control package;
the device identifier acquisition module is used for acquiring the identifier of the device to be configured when the Web control package is not stored in the device to be configured;
a control package determining module, configured to determine, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package;
and the first page generation module is used for generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the communication establishing module includes:
the login information sending submodule is used for sending login information to the device to be configured;
and the SSO login sub-module is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured successfully verifies the login information.
Optionally, the capability set determining module includes:
the instruction sending submodule is used for sending a capability set acquisition instruction to the device to be configured;
the message receiving submodule is used for receiving a capability set message returned by the device to be configured, wherein the capability set message represents whether a Web control packet is stored in the device to be configured;
and the message analysis submodule is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
Optionally, the device identifier obtaining module is specifically configured to:
and when the to-be-configured device does not store the Web control package, acquiring the identifier of the to-be-configured device attached to the UR L of the dispatch.
Optionally, the control package determining module includes:
the path determining submodule is used for searching a predetermined identification address mapping table according to the identification of the equipment to be configured and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and the control package obtaining sub-module is used for obtaining a target Web control package corresponding to the device to be configured in the target storage path.
Optionally, the Web page generating apparatus in the embodiment of the present application further includes:
the device comprises a configuration page request module, a configuration page request module and a configuration page processing module, wherein the configuration page request module is used for sending a configuration page request message to the device to be configured when the Web control package is stored in the device to be configured so as to enable the device to be configured to generate page configuration information;
and the second page generation module is used for acquiring the page configuration information and loading the page configuration information in a browser of the management equipment to generate the Web page of the equipment to be configured.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to implement the method for generating a Web page according to any one of the first aspect described above when executing the program stored in the memory.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for generating a Web page according to any one of the first aspect is implemented.
The method, the device, the electronic equipment and the storage medium for generating the Web page are used for establishing communication connection with the equipment to be configured; judging whether a Web control package is stored in the equipment to be configured; when the device to be configured does not store the Web control package, acquiring an identifier of the device to be configured; determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the equipment identification stored in advance and the Web control package; and generating a Web page of the equipment to be configured in a browser of the management equipment through the target Web control package. The Web control package is stored in the management equipment, and the Web control package corresponding to the equipment to be configured is determined through the identifier of the equipment to be configured, so that Web configuration is performed on the equipment to be configured on line, online configuration of a Web function embedded in the terminal equipment is realized, a flash memory of a singlechip of the terminal equipment is not occupied, and the probability of successful Web configuration of the terminal equipment is increased. Of course, not all advantages described above need to be achieved at the same time in the practice of any one product or method of the present application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a first schematic diagram of a Web page generation method according to an embodiment of the present application;
fig. 2 is a second schematic diagram of a Web page generation method according to an embodiment of the present application;
fig. 3 is a third schematic diagram of a Web page generation method according to an embodiment of the present application;
fig. 4 is a schematic diagram of a Web page generation apparatus according to an embodiment of the present application;
fig. 5 is a schematic diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
First, terms in the embodiments of the present application are explained.
A single chip microcomputer: an integrated circuit chip is a small and perfect microcomputer system formed by integrating a central processing unit with data processing capacity, a random access memory, a read only memory, various Input/Output (I/O) ports, an interrupt system, a timer/counter and other functions on a silicon chip by adopting a super large scale integrated circuit technology.
CS Client/Server architecture, i.e., Client/Server architecture. The method is a well-known software system architecture, and reduces the communication overhead of the system by reasonably distributing tasks to a Client terminal and a Server terminal, and management operation can be performed only by installing a Client terminal.
In a related scheme based on the Web page embedded in the CS client, the terminal equipment stores the Web control package in a flash memory of a singlechip of the terminal equipment, and Web configuration of the terminal equipment is carried out through the Web control package in the flash memory, so that the Web page embedded in the CS client is realized. However, in an actual scene, the flash memory space of some terminal device singlechips is limited, and the Web control package cannot be stored, and in the application and use process, along with the update of the program version, when the data volume of the new version program is larger than that of the original version, the situation that the Web control package cannot be stored due to insufficient flash memory of the terminal device singlechips exists, so that the Web configuration of the terminal device fails.
In view of this, an embodiment of the present application provides a method for generating a Web page, which is applied to a management device, where the management device includes a Web control package, and the method includes:
s101, establishing communication connection with the equipment to be configured.
The method for generating the Web page is applied to the management device, and therefore can be specifically realized through the management device. The management device is used for managing at least one terminal device, and the management device can communicate with the terminal device.
Before the management device browser loads the Web page, the management device needs to first establish communication with the device to be configured (terminal device). For example, the device to be configured verifies the identity of the management device, and after the identity of the management device is verified, the device to be configured allows the management device to log in, so as to establish a communication connection between the management device and the device to be configured. The management device can send login information to the device to be configured so as to perform identity authentication, and when the login information obtained by the device to be configured meets a preset login rule, communication connection with the device to be configured is established. For example, the login information may include a brand and a model of the device, and when the brand and the model of the device to be configured are the brand and the model in the login information, the communication connection between the management device and the device to be configured is established. Or when the product serial number of the equipment included in the login information belongs to the preset product serial number, establishing communication connection between the management equipment and the equipment to be configured.
Optionally, the establishing of the communication connection with the device to be configured includes:
and S1011, sending login information to the device to be configured.
The management equipment acquires equipment information of the equipment to be configured, for example, one or more of information such as an address, a name, a product serial number, a model number, a software version number and the like of the equipment to be configured, and sends login information to the equipment to be configured, wherein the login information of the equipment to be configured comprises a user name and a password.
S1012, after the device to be configured successfully verifies the login information, establishing an SSO (Single Sign On) communication between the management device and the device to be configured.
And after the user name and the password of the equipment to be configured pass the verification, the equipment to be configured allows the management equipment to perform SSO login and establish communication connection with the equipment to be configured. And if the user name and the password of the equipment to be configured are not verified, returning error prompt information to the management equipment by the equipment to be configured. In the embodiment of the application, after the user name and the password of the device to be configured are successfully verified, the SSO communication between the management device and the device to be configured is established, so that the device to be configured can conveniently access each mutually trusted application.
And S102, judging whether the Web control package is stored in the equipment to be configured.
The management device determines whether the to-be-configured device stores the Web control package, for example, the management device obtains a capability set of the to-be-configured device, and determines whether the to-be-configured device stores the Web control package according to the capability set of the to-be-configured device, where the capability set of the to-be-configured device indicates whether the to-be-configured device stores the Web control package.
Optionally, the determining whether the device to be configured stores the Web control package includes:
and S1021, sending a capability set acquisition instruction to the equipment to be configured.
The management equipment sends a capability set acquisition instruction to the configuration equipment, wherein the capability set acquisition instruction is used for inquiring whether the Web control package is stored in the equipment to be configured. And after receiving the capability set acquisition instruction, the device to be configured sends a capability set message of the device to be configured to the management device.
And S1022, receiving a capability set message returned by the device to be configured, where the capability set message indicates whether the Web control package is stored in the device to be configured.
And S1023, judging whether the Web control package is stored in the equipment to be configured or not according to the capability set message.
And the management equipment analyzes the capability set message of the equipment to be configured and determines whether the Web control package is stored in the equipment to be configured.
And S103, when the Web control package is not stored in the equipment to be configured, acquiring the identifier of the equipment to be configured.
The identifier of the device to be configured can be a product serial number, a product single chip microcomputer model or a number configured for the product in advance. Different models can exist for the terminal equipment released by the same type, the Web control package corresponding to the equipment to be configured cannot be accurately matched through the master control version and the product model, and optionally, one Device ID can be configured for each type of single chip microcomputer. The terminal Device version iterates, and the Device ID iterates.
The management device may send an identifier obtaining message to the device to be configured, so that the device to be configured returns the identifier of the device to be configured according to the identifier obtaining message. Or the identifier of the device to be configured can be added to the login information of the device to be configured.
Optionally, the obtaining the identifier of the device to be configured includes obtaining an identifier of the device to be configured attached to UR L (Uniform Resource L adapter) of the dispatch.asp file in the management device, where the identifier of the device to be configured served in UR L may return along with a capability set message, that is, when a Web control package is not stored in the device to be configured, the capability set message returned by the device to be configured and the identifier of the device to be configured may be attached to UR L, and in this embodiment of the present application, obtaining the identifier of the device to be configured attached to UR L is simple and fast.
And S104, determining a target Web control package corresponding to the device to be configured in each Web control package of the management device according to the identifier of the device to be configured and the corresponding relationship between the pre-stored device identifier and the Web control package.
Different Web control packages may be required for different models or different software versions of terminal devices. The management device needs to determine a Web control package corresponding to the device to be configured according to the identifier of the device to be configured.
Optionally, the determining, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package includes:
s1041, according to the identifier of the device to be configured, searching a predetermined identifier address mapping table, and determining a target storage path corresponding to the identifier of the device to be configured, wherein the identifier address mapping table stores a corresponding relationship between the device identifier and the storage path.
And S1042, acquiring a target Web control package corresponding to the device to be configured in the target storage path.
The identification address mapping table stores the corresponding relationship between the device identification of each terminal device and the storage path, and for any terminal device, the storage path corresponding to the device identification of the terminal device stores the Web control package corresponding to the terminal device. The management equipment searches the identifier address mapping table according to the identifier of the equipment to be configured, determines a target storage path corresponding to the identifier of the equipment to be configured, and reads a target Web control package corresponding to the equipment to be configured from the target path.
And S105, generating a Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
And the management equipment generates a Web page of the equipment to be configured in a browser of the management equipment by using the target Web control package. For example, the management device obtains a Web control calling message of the device to be configured, wherein the Web control calling message is used for calling a specified Web control; and the management equipment calls the corresponding Web control from the target Web control package according to the Web control calling message, and loads the corresponding Web control in a browser of the management equipment, so that a Web page of the equipment to be configured is generated in the browser.
In the embodiment of the application, the Web control package is stored in the management device, and the Web control package corresponding to the device to be configured is determined through the identifier of the device to be configured, so that the Web configuration is performed on the device to be configured on line, the online configuration of the Web function embedded in the terminal device is realized, the flash memory of the singlechip of the terminal device is not occupied, and the probability of the success of the Web configuration of the terminal device is increased.
Optionally, referring to fig. 2, after determining whether the device to be configured stores the Web control package according to the capability set, the method further includes:
and S201, when the Web control package is stored in the device to be configured, sending a configuration page request message to the device to be configured so that the device to be configured generates page configuration information.
When the Web control package is stored in the device to be configured, the management device sends a configuration page request message to the device to be configured. And after receiving the configuration page request message, the device to be configured calls a Web control package in the flash memory of the device to be configured to generate page configuration information.
S202, obtaining the page configuration information, and loading the page configuration information in the browser of the management device to generate a Web page of the device to be configured.
The management equipment acquires page configuration information and loads the page configuration information in the browser to generate a Web page of the equipment to be configured.
In the embodiment of the application, when the Web control package is stored in the device to be configured, the Web configuration of the device to be configured is performed by using the Web control package in the device to be configured, so that the condition that the device to be configured comprises the Web control package is compatible.
Specifically, the method for generating a Web page according to the embodiment of the present application may be as shown in fig. 3. The management device is installed with a client (specifically, 4200 client), and the client of the management device stores a Web control package. The client starts a browser casing program, opens a scheduling configuration file (such as a dispatch configuration. html file), starts an SSO interface, and sends login information to the terminal device, wherein the login information comprises a user name, a password and the like of the terminal device. After the login information passes the verification, the terminal device SSO is allowed to log in, the device information of the terminal device is obtained, and the information of the terminal device is recorded, for example, the user information is set in the session object userinfo, the device information is set in the session object deviceinfo, and the like.
In order to be compatible with the scheme that the Web control package is stored in the terminal device, a new command needs to be added before the browser casing program requests to load a Web page: and acquiring a capability set from the terminal equipment to judge whether the terminal equipment does not support storing the Web control package (a reverse capability set, if the request returns an error, the Web package is stored on behalf of the support equipment, and if the equipment returns the capability set as true, the Web file is requested from the client locally).
Because the client can add and manage multiple types of terminal equipment, if the single-chip equipment and the non-single-chip equipment exist at the same time, in order to distinguish different Web control packages corresponding to the multiple types of equipment, a concept of a Web configuration package (WebCfgPackage) is provided in the embodiment of the application. The Web configuration package stores the Web control packages corresponding to all the terminal equipment in corresponding paths according to specific formats according to different product line branches and versions, and judges the storage positions of the Web control packages corresponding to the terminal equipment in the Web configuration package according to the device ID returned by the equipment. And acquiring the position of the Web control package corresponding to the current equipment in the Web configuration package, and jumping to the Web control package under the target path.
An embodiment of the present application further provides a Web page generation apparatus, see fig. 4, which is applied to a management device, where the management device includes a Web control package, and the apparatus includes:
a communication establishing module 401, configured to establish a communication connection with a device to be configured;
a capability set determining module 402, configured to determine whether the device to be configured stores a Web control package;
an apparatus identifier obtaining module 403, configured to obtain an identifier of the apparatus to be configured when the apparatus to be configured does not store the Web control package;
a control package determining module 404, configured to determine, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package;
a first page generating module 405, configured to generate, in the browser of the management device, a Web page of the device to be configured through the target Web control package.
Optionally, the communication establishing module 401 includes:
the login information sending submodule is used for sending login information to the device to be configured;
and the SSO login submodule is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured successfully verifies the login information.
Optionally, the capability set determining module 402 includes:
the instruction sending submodule is used for sending an ability set acquisition instruction to the equipment to be configured;
the message receiving submodule is used for receiving a capability set message returned by the equipment to be configured, wherein the capability set message represents whether a Web control packet is stored in the equipment to be configured;
and the message analysis submodule is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
Optionally, the device identifier obtaining module 403 is specifically configured to:
and when the to-be-configured device does not store the Web control package, acquiring the identifier of the to-be-configured device attached to the UR L of the dispatch.
Optionally, the control package determining module 404 includes:
a path determining submodule, configured to search a predetermined identifier address mapping table according to the identifier of the device to be configured, and determine a target storage path corresponding to the identifier of the device to be configured, where a correspondence between the device identifier and the storage path is stored in the identifier address mapping table;
and the control package obtaining submodule is used for obtaining a target Web control package corresponding to the device to be configured in the target storage path.
Optionally, the Web page generating apparatus in the embodiment of the present application further includes:
a configuration page request module, configured to send a configuration page request message to the device to be configured when the Web control package is stored in the device to be configured, so that the device to be configured generates page configuration information;
and the second page generation module is used for acquiring the page configuration information and loading the page configuration information in a browser of the management device to generate a Web page of the device to be configured.
The embodiment of the application also provides an electronic device, which comprises a processor and a memory;
the memory is used for storing computer programs;
the processor is configured to implement the following steps when executing the program stored in the memory:
establishing communication connection with equipment to be configured;
judging whether the equipment to be configured stores a Web control package;
when the Web control package is not stored in the equipment to be configured, acquiring the identifier of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the equipment identification stored in advance and the Web control package;
and generating a Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
Optionally, the processor is configured to implement any one of the above-mentioned Web page generation methods when executing the program stored in the memory.
Optionally, as shown in fig. 5, the electronic device according to the embodiment of the present application further includes a communication interface 502 and a communication bus 504, where the processor 501, the communication interface 502, and the memory 503 complete communication with each other through the communication bus 504.
The communication bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The communication bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
An embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, the method for generating a Web page is implemented.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
All the embodiments in the present specification are described in a related manner, and the same and similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the embodiments of the apparatus, the electronic device, and the storage medium, since they are substantially similar to the method embodiments, the description is relatively simple, and for the relevant points, reference may be made to the partial description of the method embodiments.
The above description is only for the preferred embodiment of the present application, and is not intended to limit the scope of the present application. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application are included in the protection scope of the present application.

Claims (12)

1. A world wide Web Web page generation method is applied to a management device, the management device comprises a Web control package, and the method comprises the following steps:
establishing communication connection with equipment to be configured;
judging whether a Web control package is stored in the equipment to be configured;
when the Web control package is not stored in the equipment to be configured, acquiring the identifier of the equipment to be configured;
determining a target Web control package corresponding to the equipment to be configured in each Web control package of the management equipment according to the identification of the equipment to be configured and the corresponding relation between the equipment identification stored in advance and the Web control package;
and generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
2. The method of claim 1, wherein the establishing a communication connection with a device to be configured comprises:
sending login information to a device to be configured;
and after the device to be configured successfully verifies the login information, establishing single sign-on (SSO) communication between the management device and the device to be configured.
3. The method according to claim 1, wherein the determining whether the device to be configured stores the Web control package comprises:
sending a capability set acquisition instruction to the equipment to be configured;
receiving a capability set message returned by the equipment to be configured, wherein the capability set message represents whether a Web control packet is stored in the equipment to be configured;
and judging whether the Web control package is stored in the equipment to be configured or not according to the capability set message.
4. The method of claim 1, wherein the obtaining the identifier of the device to be configured comprises:
acquiring the identifier of the device to be configured attached in the uniform resource locator UR L of the dispatch.
5. The method according to claim 1, wherein determining a target Web control package corresponding to the device to be configured in each Web control package of the management device according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package comprises:
searching a predetermined identification address mapping table according to the identification of the equipment to be configured, and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and acquiring a target Web control package corresponding to the device to be configured in the target storage path.
6. The method according to claim 1, wherein after the determining whether the Web control package is stored in the device to be configured, the method further comprises:
when the Web control package is stored in the device to be configured, sending a configuration page request message to the device to be configured so that the device to be configured generates page configuration information;
and acquiring the page configuration information, and loading the page configuration information in a browser of the management equipment to generate a Web page of the equipment to be configured.
7. A Web page generation device is applied to a management device, the management device comprises a Web control package, and the device comprises:
the communication establishing module is used for establishing communication connection with the equipment to be configured;
the capability set judging module is used for judging whether the equipment to be configured stores the Web control package;
the device identifier acquisition module is used for acquiring the identifier of the device to be configured when the Web control package is not stored in the device to be configured;
a control package determining module, configured to determine, in each Web control package of the management device, a target Web control package corresponding to the device to be configured according to the identifier of the device to be configured and a correspondence between a pre-stored device identifier and the Web control package;
and the first page generation module is used for generating the Web page of the equipment to be configured in the browser of the management equipment through the target Web control package.
8. The apparatus of claim 7, wherein the communication establishment module comprises:
the login information sending submodule is used for sending login information to the device to be configured;
and the SSO login sub-module is used for establishing single sign-on SSO communication between the management equipment and the equipment to be configured after the equipment to be configured successfully verifies the login information.
9. The apparatus of claim 7, wherein the capability set determination module comprises:
the instruction sending submodule is used for sending a capability set acquisition instruction to the device to be configured;
the message receiving submodule is used for receiving a capability set message returned by the device to be configured, wherein the capability set message represents whether a Web control packet is stored in the device to be configured;
and the message analysis submodule is used for judging whether the Web control package is stored in the equipment to be configured according to the capability set message.
10. The apparatus according to claim 7, wherein the device identifier obtaining module is specifically configured to:
and when the to-be-configured device does not store the Web control package, acquiring the identifier of the to-be-configured device attached to the UR L of the dispatch.
11. The apparatus of claim 7, wherein the control package determination module comprises:
the path determining submodule is used for searching a predetermined identification address mapping table according to the identification of the equipment to be configured and determining a target storage path corresponding to the identification of the equipment to be configured, wherein the identification address mapping table stores the corresponding relation between the equipment identification and the storage path;
and the control package obtaining sub-module is used for obtaining a target Web control package corresponding to the device to be configured in the target storage path.
12. The apparatus of claim 7, further comprising:
the device comprises a configuration page request module, a configuration page request module and a configuration page processing module, wherein the configuration page request module is used for sending a configuration page request message to the device to be configured when the Web control package is stored in the device to be configured so as to enable the device to be configured to generate page configuration information;
and the second page generation module is used for acquiring the page configuration information and loading the page configuration information in a browser of the management equipment to generate the Web page of the equipment to be configured.
CN201910091536.1A 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium Active CN111506846B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910091536.1A CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910091536.1A CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111506846A true CN111506846A (en) 2020-08-07
CN111506846B CN111506846B (en) 2023-05-02

Family

ID=71864597

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910091536.1A Active CN111506846B (en) 2019-01-30 2019-01-30 Web page generation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111506846B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532703A (en) * 2020-11-20 2021-03-19 杭州海康威视数字技术股份有限公司 Page configuration request method and device and electronic equipment

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034511A (en) * 2009-08-05 2011-02-17 Nec Corp Message transmitting and receiving system, message transmitting and receiving method, message relay server, and message transmission and reception program
CN103024574A (en) * 2012-12-17 2013-04-03 青岛海信宽带多媒体技术有限公司 Digital television receiving terminal and method for interaction with user side
CN104378435A (en) * 2014-11-20 2015-02-25 北京安奇智联科技有限公司 Method for transmitting file between browser of computing device and mobile terminal
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108363792A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108647240A (en) * 2018-04-04 2018-10-12 沈文策 A kind of method, apparatus, electronic equipment and the storage medium of statistics visit capacity
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2011034511A (en) * 2009-08-05 2011-02-17 Nec Corp Message transmitting and receiving system, message transmitting and receiving method, message relay server, and message transmission and reception program
CN103024574A (en) * 2012-12-17 2013-04-03 青岛海信宽带多媒体技术有限公司 Digital television receiving terminal and method for interaction with user side
CN104378435A (en) * 2014-11-20 2015-02-25 北京安奇智联科技有限公司 Method for transmitting file between browser of computing device and mobile terminal
CN105553959A (en) * 2015-12-11 2016-05-04 Tcl集团股份有限公司 Remote control method and system capable of dynamically generating intelligent device operation interface
CN108021583A (en) * 2016-10-28 2018-05-11 阿里巴巴集团控股有限公司 Page loading method, the processing method and client of page operation instruction
CN107870989A (en) * 2017-10-17 2018-04-03 平安科技(深圳)有限公司 webpage generating method and terminal device
CN108228305A (en) * 2018-02-02 2018-06-29 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108334608A (en) * 2018-02-02 2018-07-27 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108363792A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Link generation method, device, storage medium and the electronic equipment of five application page
CN108391009A (en) * 2018-02-13 2018-08-10 广东欧珀移动通信有限公司 Display methods, device, storage medium and the electronic equipment of five application page
CN108647240A (en) * 2018-04-04 2018-10-12 沈文策 A kind of method, apparatus, electronic equipment and the storage medium of statistics visit capacity
CN108763525A (en) * 2018-05-31 2018-11-06 康键信息技术(深圳)有限公司 electronic device, terminal page loading method and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112532703A (en) * 2020-11-20 2021-03-19 杭州海康威视数字技术股份有限公司 Page configuration request method and device and electronic equipment
CN112532703B (en) * 2020-11-20 2022-05-27 杭州海康威视数字技术股份有限公司 Page configuration request method and device and electronic equipment

Also Published As

Publication number Publication date
CN111506846B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
CN107786621B (en) User information management method, access processing method, device and system
CN109391673B (en) Method, system and terminal equipment for managing update file
CN106105154B (en) The method, apparatus and system of data upload
EP1435719A2 (en) Request processing swtich
CN108804399B (en) Form verification method and device
CN113612686A (en) Traffic scheduling method and device and electronic equipment
CN114398176A (en) Service access method, device, electronic equipment and storage medium
CN112468540B (en) Cloud platform-based data distribution method, equipment and medium
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN113986835A (en) Management method, device, equipment and storage medium for FastDFS distributed files
CN108289080B (en) Method, device and system for accessing file system
CN115004666A (en) Registration method, device, equipment and storage medium of Internet of things equipment
CN111506846B (en) Web page generation method and device, electronic equipment and storage medium
CN113378095A (en) Dynamic loading method, device and equipment of signature algorithm and storage medium
CN114885024B (en) Routing method, device, equipment and medium of application instance
CN115412294A (en) Platform service-based access method and device, storage medium and electronic equipment
CN111064675B (en) Access flow control method, device, network equipment and storage medium
CN114978748A (en) Login control method and device, readable storage medium and electronic equipment
CN114356456A (en) Service processing method, device, storage medium and electronic equipment
CN107566211B (en) Method, device and system for accessing test equipment
CN112346888A (en) Data communication method and device based on software application and server equipment
CN113746918A (en) Hypertext transfer protocol proxy method and system
US9313272B2 (en) Information processor and information processing method
WO2015192497A1 (en) Communication link sending method and apparatus, and terminal
CN111988298A (en) Data processing method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant