CN112887362A - Equipment access method, equipment access device and server - Google Patents

Equipment access method, equipment access device and server Download PDF

Info

Publication number
CN112887362A
CN112887362A CN202110022568.3A CN202110022568A CN112887362A CN 112887362 A CN112887362 A CN 112887362A CN 202110022568 A CN202110022568 A CN 202110022568A CN 112887362 A CN112887362 A CN 112887362A
Authority
CN
China
Prior art keywords
static
static resource
resource
equipment
acquisition instruction
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
CN202110022568.3A
Other languages
Chinese (zh)
Other versions
CN112887362B (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.)
Chongqing Ruiming Information Technology Co ltd
Original Assignee
Chongqing Ruiming Information 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 Chongqing Ruiming Information Technology Co ltd filed Critical Chongqing Ruiming Information Technology Co ltd
Priority to CN202110022568.3A priority Critical patent/CN112887362B/en
Publication of CN112887362A publication Critical patent/CN112887362A/en
Application granted granted Critical
Publication of CN112887362B publication Critical patent/CN112887362B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application is applicable to the technical field of internet, and provides a device access method, a device access device and a server, wherein the method comprises the following steps: when receiving an access request for accessing equipment sent by a user terminal, acquiring static resources of a setting page of the equipment from local; issuing a data acquisition instruction to the equipment, and receiving dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction; and sending the static resource and the dynamic data to the user terminal so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data. By the method, the access flow consumed by the user for accessing the setting page of the equipment through the user terminal can be reduced, and the response speed of the setting page is improved.

Description

Equipment access method, equipment access device and server
Technical Field
The present application relates to the field of internet technologies, and in particular, to an apparatus access method, an apparatus access device, a server, and a computer-readable storage medium.
Background
In the using process of the embedded device (such as a router and a vehicle-mounted device), a user often needs to access the embedded device, for example, when the user sets parameters of the embedded device, the user needs to access a setting page of the embedded device through a user terminal. Currently, an embedded device needs to send data to a user terminal for access. Since the embedded device usually has no WIreless FIdelity (WIFI) network available when accessing the network, when the amount of data that the embedded device needs to send is too large, excessive access traffic is consumed, extra cost is generated, and the response speed of setting the page is very slow due to the limitation of the network speed and the processor performance of the embedded device.
Disclosure of Invention
In view of this, the present application provides a device access method, a device access apparatus, a server, and a computer-readable storage medium, which can reduce an access flow consumed by a user accessing a setup page of a device through a user terminal and improve a response speed of the setup page.
In a first aspect, the present application provides a device access method, including:
when receiving an access request for accessing equipment sent by a user terminal, acquiring static resources of a setting page of the equipment from local;
issuing a data acquisition instruction to the equipment, and receiving dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction;
and sending the static resource and the dynamic data to the user terminal so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data.
In a second aspect, the present application provides a device access apparatus, including:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the static resource of a setting page of the device from local when receiving an access request which is sent by a user terminal and used for accessing the device;
a receiving unit, configured to issue a data acquisition instruction to the device, and receive dynamic data of the setting page uploaded by the device in response to the data acquisition instruction;
and a sending unit, configured to send the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data.
In a third aspect, the present application provides a server, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method provided in the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium storing a computer program which, when executed by a processor, implements the method as provided in the first aspect.
As can be seen from the above, in the present application, when receiving an access request for accessing a device sent by a user terminal, first obtaining a static resource of a setting page of the device from a local location, then issuing a data obtaining instruction to the device, receiving dynamic data of the setting page uploaded by the device in response to the data obtaining instruction, and finally sending the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data. According to the technical scheme, the static resources with high multiplexing rate are stored locally based on the characteristic that the webpage comprises the static resources and the dynamic data, the static resources can be directly obtained locally for each access, only a small amount of dynamic data need to be received from the equipment, so that the data volume required to be sent by the equipment is reduced, the access flow consumed by a user for accessing the setting page of the equipment through the user terminal is reduced, and the response speed of the setting page is improved. It is understood that the beneficial effects of the second to fourth aspects can be seen from the description of the first aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a schematic flowchart of a device access method provided in an embodiment of the present application;
fig. 2 is a block diagram of a device access apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to" determining "or" in response to detecting ". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
Furthermore, in the description of the present application and the appended claims, the terms "first," "second," "third," and the like are used for distinguishing between descriptions and not necessarily for describing or implying relative importance.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise.
Fig. 1 shows a flowchart of a device access method provided in an embodiment of the present application, where the device access method is applied to a server, and is detailed as follows:
step 101, when receiving an access request for accessing a device sent by a user terminal, obtaining static resources of a setting page of the device from local.
In the embodiment of the application, if a user needs to set a parameter of a certain device (such as an in-vehicle device), a setting page of the device can be accessed, and then the parameter is set through the setting page. Specifically, the user may send an access request for accessing the device to the server through a user terminal held by the user, and when the server receives the access request, the server may locally acquire the static resource of the setting page of the device. That is, the server may locally store static resources of the setting page, where the static resources may include resources such as hypertext Markup Language (HTML), JavaScript, Cascading Style Sheets (CSSs), and pictures. For example, an access platform may be run on the server, and a user may open a web page provided by the access platform in a browser through the user terminal, and an access request may be generated through the web page.
Optionally, the obtaining the static resource of the setting page of the device from the local includes:
detecting whether static resources are stored locally;
and if the static resources are locally stored, acquiring the static resources from the local.
In the embodiment of the application, when the server receives the access request, it may be detected whether the static resource of the setting page of the device is stored locally in the server, and if the static resource is stored locally, the static resource is obtained locally.
As a possible implementation manner, a plurality of devices may be registered on the server, and each device corresponds to its own setting page and static resources of the setting page. Different devices can correspond to different static resources and also can correspond to the same static resource, and when two devices correspond to the same static resource, the two devices show the same appearance of the setting page. Because a plurality of devices are registered on the server, in order to meet the requirements of users for accessing different devices, static resources corresponding to the plurality of devices can be stored on the server. Based on this, in order to distinguish different static resources, the file name of each static resource may be set as the version number of each static resource, where the version number is used to indicate the version of the static resource, and the version numbers of different static resources are different. Optionally, the access request includes a version number of the static resource, and after extracting the version number from the access request, the server may search for the static resource with the file name of the version number from all the locally stored static resources, where the static resource with the file name of the version number is the static resource acquired in response to the access request.
For example, three devices, namely device 1, device 2 and device 3, are registered on the server; the version number of the static resource corresponding to the device 1 is V1, the version number of the static resource corresponding to the device 2 is V2, and the version number of the static resource corresponding to the device 3 is also V2; if the user needs to access the setting page of the device 1, the version number V1 can be included in the access request, and based on this, the server can obtain the static resource with the file name V1 from the local.
Optionally, after the detecting whether the static resource is locally stored, the method further includes:
if the static resources are not stored locally, issuing a resource acquisition instruction to the equipment, and receiving the static resources uploaded by the equipment in response to the resource acquisition instruction;
and storing the received static resource to the local.
In this embodiment of the present application, if the server detects that the static resource is not stored locally, the server may not download the static resource from the device, or the static resource may be deleted by mistake, and in this case, the server may issue a resource obtaining instruction to the device, where the resource obtaining instruction is used to request the static resource from the device. The device responds to the resource acquisition instruction, establishes HTTP connection with the server through a HyperText Transfer Protocol (HTTP), uploads the static resource to the server through the HTTP connection, and sends uploading completion information to the server after uploading is completed so as to prompt the server that the uploading of the static resource is completed. After receiving the static resource uploaded by the device, the server may store the received static resource locally. Alternatively, if the device fails to establish an HTTP connection with the server, the device may send a failure message to the server to alert the server that the HTTP connection was not successfully established.
In the case where a plurality of devices are registered on the server, the access request may include a serial number of the device, which is used to uniquely identify the device. The server may extract the sequence number from the access request, and then issue a resource acquisition instruction to the device identified by the extracted sequence number, which uploads the complete static resource to the server in response to the resource acquisition instruction. Or, after extracting the serial number from the access request, the server may determine, from the multiple devices, a homologous device of the device identified by the serial number, where the homologous device refers to a device whose corresponding static resource is the same as the device identified by the serial number, and each homologous device and the device identified by the serial number store the same static resource (i.e., the static resource with the same version number). The server may then issue a segmented resource acquisition instruction to the device identified by the serial number and each of the homologous devices, and the device that receives the segmented resource acquisition instruction may upload a part of the static resources, called segmented static resources, to the server, where the segmented static resources uploaded by different devices are different. After receiving the device identified by the serial number and the segmented static resources uploaded by each homologous device, the server can splice each segmented static resource to obtain complete static resources. By means of the method for uploading the static resources in a segmented mode, the speed of uploading the static resources can be increased.
Further, when detecting that the static resource is not stored locally, the server may further send a retry-after reminding message to the user terminal, where the retry-after reminding message is used to prompt the user that the static resource is currently being downloaded, and ask the user to resend the access request at a later time.
Optionally, the detecting whether the static resource is locally stored specifically includes:
and detecting whether the static resources are stored in the local specified file directory.
In an embodiment of the present application, the server may store the static resource in a local specified file directory, where the specified file directory may be a web resource directory specified by a web server (such as a nginx server) on the server, so as to implement the deployment of the static resource on the web server.
The storing the received static resource to the local specifically includes:
and storing the received static resources into a local specified file directory.
In this embodiment of the present application, if the server does not locally store the static resource, the server may receive the static resource uploaded by the device, and then store the received static resource in a local specified file directory. If the subsequent server receives the access request again, whether the static resource is stored in the local specified file directory can be detected, and the static resource is obtained from the specified file directory under the condition that the static resource is detected to be stored in the specified file directory.
Optionally, the receiving device responds to the static resource uploaded by the resource obtaining instruction, and specifically includes:
receiving a compressed packet of a static resource uploaded by a device in response to a resource acquisition instruction;
correspondingly, the storing the received static resource to the local includes:
decompressing the received compressed packet of the static resource to obtain the static resource;
and storing the static resource obtained by decompression to the local.
In the embodiment of the application, the device responds to the resource acquisition instruction, the static resource in the device can be compressed to obtain the compression packet of the static resource, the compression packet is named by the version number of the static resource, and then the compression packet of the static resource is uploaded to the server, so that the occupation of network resources is reduced. Correspondingly, after receiving the compressed packet of the static resource uploaded by the device, the server can decompress the received compressed packet of the static resource to obtain the static resource. Finally, the server may store the decompressed static resource locally to the server, where the static resource is named by the version number of the static resource.
And 102, issuing a data acquisition instruction to the equipment, and receiving dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction.
In the embodiment of the application, the setting page includes static resources and dynamic data, where the dynamic data may include data such as current state information and configuration parameters of the device. When receiving an access request, the server can acquire static resources from the local and simultaneously issue a data acquisition instruction to the device, wherein the data acquisition instruction is used for requesting the device to set dynamic data of a page. In the case that the access request includes the serial number of the device, the server may extract the serial number from the access request, and then issue a data acquisition instruction to the device identified by the serial number.
Illustratively, the server runs a nginx server and a Fast Common Gateway Interface (FCGI) program, and through a distribution mechanism of the nginx server, the server can directly obtain static resources from the local, and meanwhile, the FCGI program establishes connection with the device, so that the server can communicate with the device. The FCGI program may analyze the meaning of the access request, then generate a data acquisition instruction corresponding to the access request according to the meaning, and issue the data acquisition instruction to the device through the connection between the server and the device. After receiving the data acquisition instruction, the device may acquire the dynamic data pointed by the data acquisition instruction, return the acquired dynamic data to the FCGI program, and transmit the dynamic data to the nginx server by the FCGI program. The data format of the dynamic data may be json (javascript Object notification) format.
And 103, sending the static resources and the dynamic data to the user terminal so as to instruct the user terminal to display a setting page according to the static resources and the dynamic data.
In the embodiment of the application, the server can send the static resource and the dynamic data to the user terminal. After receiving the static resource and the dynamic data, the user terminal can load the static resource, fill the dynamic data, and finally display a setting page of the equipment in the browser according to the loaded static resource and the filled dynamic data. By the method, the flow consumed by accessing the setting page and the time for the browser to enter the setting page can be reduced.
As can be seen from the above, in the present application, when receiving an access request for accessing a device sent by a user terminal, first obtaining a static resource of a setting page of the device from a local location, then issuing a data obtaining instruction to the device, receiving dynamic data of the setting page uploaded by the device in response to the data obtaining instruction, and finally sending the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data. According to the technical scheme, the static resources with high multiplexing rate are stored locally based on the characteristic that the webpage comprises the static resources and the dynamic data, the static resources can be directly obtained locally for each access, only a small amount of dynamic data need to be received from the equipment, so that the data volume required to be sent by the equipment is reduced, the access flow consumed by a user for accessing the setting page of the equipment through the user terminal is reduced, and the response speed of the setting page is improved. In addition, the scheme of the application adopts the server to proxy the access service of the embedded equipment, and the processor performance of the server is stronger than that of the embedded equipment, so that the response speed of setting the page is further improved.
It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Fig. 2 shows a block diagram of a device access apparatus provided in an embodiment of the present application, and for convenience of description, only a part related to the embodiment of the present application is shown.
The device access apparatus 200 includes:
an obtaining unit 201, configured to obtain, when receiving an access request for accessing a device sent by a user terminal, a static resource of a setting page of the device from a local location;
a receiving unit 202, configured to issue a data acquisition instruction to the device, and receive dynamic data of the setting page uploaded by the device in response to the data acquisition instruction;
a sending unit 203, configured to send the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data.
Optionally, the obtaining unit 201 includes:
the detecting subunit is used for detecting whether the static resources are stored locally;
and the resource acquisition subunit is used for acquiring the static resource from the local area if the static resource is locally stored.
Optionally, the device access apparatus 200 further includes:
a first instruction issuing unit, configured to issue a resource acquisition instruction to the device if the static resource is not stored locally, and receive the static resource uploaded by the device in response to the resource acquisition instruction;
and the resource storage unit is used for storing the received static resources to the local.
Optionally, the resource storage unit is specifically configured to store the received static resource in a local specified file directory.
Optionally, the first instruction issuing unit is specifically configured to receive a compressed packet of the static resource, which is uploaded by the device in response to the resource obtaining instruction.
Accordingly, the resource storage unit includes:
a compressing subunit, configured to decompress the received compressed packet of the static resource to obtain the static resource;
and the decompression storage sub-unit is used for storing the static resource obtained by decompression to the local.
Optionally, the access request includes a version number of the static resource, and the detecting subunit is specifically configured to detect whether the static resource is locally stored according to the version number of the static resource, where a file name of the static resource is the version number of the static resource.
Optionally, the receiving unit 202 includes:
a connection establishing subunit, configured to establish a connection with the device through a fast public gateway interface program;
and the data receiving subunit is used for issuing the data acquisition instruction to the equipment by using the connection and receiving the dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction.
As can be seen from the above, in the present application, when receiving an access request for accessing a device sent by a user terminal, first obtaining a static resource of a setting page of the device from a local location, then issuing a data obtaining instruction to the device, receiving dynamic data of the setting page uploaded by the device in response to the data obtaining instruction, and finally sending the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data. According to the technical scheme, the static resources with high multiplexing rate are stored locally based on the characteristic that the webpage comprises the static resources and the dynamic data, the static resources can be directly obtained locally for each access, only a small amount of dynamic data need to be received from the equipment, so that the data volume required to be sent by the equipment is reduced, the access flow consumed by a user for accessing the setting page of the equipment through the user terminal is reduced, and the response speed of the setting page is improved. In addition, the scheme of the application adopts the server to proxy the access service of the embedded equipment, and the processor performance of the server is stronger than that of the embedded equipment, so that the response speed of setting the page is further improved.
Fig. 3 is a schematic structural diagram of a server according to an embodiment of the present application. As shown in fig. 3, the server 3 of this embodiment includes: at least one processor 30 (only one is shown in fig. 3), a memory 31, and a computer program 32 stored in the memory 31 and executable on the at least one processor 30, wherein the processor 30 executes the computer program 32 to perform the following steps:
when receiving an access request for accessing equipment sent by a user terminal, acquiring static resources of a setting page of the equipment from local;
issuing a data acquisition instruction to the equipment, and receiving dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction;
and sending the static resource and the dynamic data to the user terminal so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data.
Assuming that the above is the first possible implementation manner, in a second possible implementation manner provided on the basis of the first possible implementation manner, the obtaining the static resource of the setting page of the device from the local includes:
detecting whether the static resources are stored locally;
and if the static resource is locally stored, acquiring the static resource from the local.
In a third possible implementation manner provided on the basis of the second possible implementation manner, after the detecting whether the static resource is locally stored, the processor 30 executes the computer program 32 to further implement the following steps:
if the static resources are not stored locally, issuing a resource acquisition instruction to the equipment, and receiving the static resources uploaded by the equipment in response to the resource acquisition instruction;
and storing the received static resources to the local.
In a fourth possible implementation manner provided on the basis of the third possible implementation manner, the storing the received static resource to the local includes:
and storing the received static resources into a local specified file directory.
In a fifth possible implementation manner provided on the basis of the third possible implementation manner, the receiving the static resource uploaded by the device in response to the resource acquisition instruction includes:
receiving a compressed packet of the static resource uploaded by the equipment in response to the resource acquisition instruction;
correspondingly, the storing the received static resource to the local includes:
decompressing the received compressed packet of the static resource to obtain the static resource;
and storing the decompressed static resources to the local.
In a sixth possible embodiment based on the second possible embodiment, the detecting whether the static resource is locally stored includes:
and detecting whether the static resource is stored locally according to the version number of the static resource, wherein the file name of the static resource is the version number of the static resource.
In a seventh possible implementation manner provided on the basis of the first possible implementation manner, the second possible implementation manner, the third possible implementation manner, the fourth possible implementation manner, the fifth possible implementation manner, or the sixth possible implementation manner, the issuing of the data acquisition instruction to the device and the receiving of the dynamic data of the setup page uploaded by the device in response to the data acquisition instruction includes:
establishing connection with the equipment through a quick public gateway interface program;
and issuing the data acquisition instruction to the equipment by using the connection, and receiving the dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction.
The server 3 may include, but is not limited to, a processor 30 and a memory 31. Those skilled in the art will appreciate that fig. 3 is merely an example of the server 3, and does not constitute a limitation of the server 3, and may include more or less components than those shown, or combine some components, or different components, such as input and output devices, network access devices, etc.
The Processor 30 may be a Central Processing Unit (CPU), and the Processor 30 may be other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 31 may be an internal storage unit of the server 3 in some embodiments, for example, a hard disk or a memory of the server 3. The memory 31 may be an external storage device of the server 3 in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, which are provided on the server 3. Further, the memory 31 may include both an internal storage unit and an external storage device of the server 3. The memory 31 is used for storing an operating system, an application program, a BootLoader (BootLoader), data, other programs, and the like, such as program codes of the computer programs. The above-mentioned memory 31 may also be used to temporarily store data that has been output or is to be output.
As can be seen from the above, in the present application, when receiving an access request for accessing a device sent by a user terminal, first obtaining a static resource of a setting page of the device from a local location, then issuing a data obtaining instruction to the device, receiving dynamic data of the setting page uploaded by the device in response to the data obtaining instruction, and finally sending the static resource and the dynamic data to the user terminal, so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data. According to the technical scheme, the static resources with high multiplexing rate are stored locally based on the characteristic that the webpage comprises the static resources and the dynamic data, the static resources can be directly obtained locally for each access, only a small amount of dynamic data need to be received from the equipment, so that the data volume required to be sent by the equipment is reduced, the access flow consumed by a user for accessing the setting page of the equipment through the user terminal is reduced, and the response speed of the setting page is improved. In addition, the scheme of the application adopts the server to proxy the access service of the embedded equipment, and the processor performance of the server is stronger than that of the embedded equipment, so that the response speed of setting the page is further improved.
It should be noted that, for the information interaction, execution process, and other contents between the above-mentioned devices/units, the specific functions and technical effects thereof are based on the same concept as those of the embodiment of the method of the present application, and specific reference may be made to the part of the embodiment of the method, which is not described herein again.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned functions may be distributed as different functional units and modules according to needs, that is, the internal structure of the apparatus may be divided into different functional units or modules to implement all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The embodiments of the present application further provide a computer-readable storage medium, where a computer program is stored, and the computer program, when executed by a processor, implements the steps in the above method embodiments.
Embodiments of the present application provide a computer program product, which, when running on a server, causes the server to perform the steps in the above-mentioned method embodiments.
The integrated unit may be stored in a computer-readable storage medium if it is implemented in the form of a software functional unit and sold or used as a separate product. Based on such understanding, all or part of the processes in the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium and can implement the steps of the embodiments of the methods described above when the computer program is executed by a processor. The computer program includes computer program code, and the computer program code may be in a source code form, an object code form, an executable file or some intermediate form. The computer-readable medium may include at least: any entity or device capable of carrying computer program code to a server, recording medium, computer Memory, Read-Only Memory (ROM), Random-Access Memory (RAM), electrical carrier wave signals, telecommunications signals, and software distribution medium. Such as a usb-disk, a removable hard disk, a magnetic or optical disk, etc. In certain jurisdictions, computer-readable media may not be an electrical carrier signal or a telecommunications signal in accordance with legislative and patent practice.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus/network device and method may be implemented in other ways. For example, the above-described apparatus/network device embodiments are merely illustrative, and for example, the division of the above modules or units is only one logical function division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present application and are intended to be included within the scope of the present application.

Claims (10)

1. A device access method, comprising:
when receiving an access request for accessing equipment sent by a user terminal, acquiring static resources of a setting page of the equipment from local;
issuing a data acquisition instruction to the equipment, and receiving dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction;
and sending the static resource and the dynamic data to the user terminal so as to instruct the user terminal to display the setting page according to the static resource and the dynamic data.
2. The device access method according to claim 1, wherein the locally obtaining static resources of the device's setup page comprises:
detecting whether the static resources are stored locally;
and if the static resources are locally stored, acquiring the static resources from the local.
3. The device access method according to claim 2, wherein after the detecting whether the static resource is stored locally, the device access method further comprises:
if the static resources are not stored locally, issuing a resource acquisition instruction to the equipment, and receiving the static resources uploaded by the equipment in response to the resource acquisition instruction;
and storing the received static resource to the local.
4. The device access method of claim 3, wherein the storing the received static resource locally comprises:
and storing the received static resources into a local specified file directory.
5. The device access method of claim 3, wherein the receiving the static resource uploaded by the device in response to the resource acquisition instruction comprises:
receiving a compressed packet of the static resource uploaded by the device in response to the resource acquisition instruction;
accordingly, the storing the received static resource to the local includes:
decompressing the received compressed packet of the static resource to obtain the static resource;
and storing the static resource obtained by decompression to the local.
6. The device access method according to claim 2, wherein the access request includes a version number of the static resource, and the detecting whether the static resource is stored locally comprises:
and detecting whether the static resource is stored locally or not according to the version number of the static resource, wherein the file name of the static resource is the version number of the static resource.
7. The device access method according to any one of claims 1 to 6, wherein the issuing of the data acquisition instruction to the device, and the receiving of the dynamic data of the setup page uploaded by the device in response to the data acquisition instruction, includes:
establishing a connection with the device through a fast public gateway interface program;
and issuing the data acquisition instruction to the equipment by using the connection, and receiving the dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction.
8. A device access apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring the static resource of a setting page of the device from local when receiving an access request which is sent by a user terminal and used for accessing the device;
the receiving unit is used for issuing a data acquisition instruction to the equipment and receiving the dynamic data of the setting page uploaded by the equipment in response to the data acquisition instruction;
and the sending unit is used for sending the static resources and the dynamic data to the user terminal so as to instruct the user terminal to display the setting page according to the static resources and the dynamic data.
9. A server comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the method according to any of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202110022568.3A 2021-01-08 2021-01-08 Equipment access method, equipment access device and server Active CN112887362B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110022568.3A CN112887362B (en) 2021-01-08 2021-01-08 Equipment access method, equipment access device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110022568.3A CN112887362B (en) 2021-01-08 2021-01-08 Equipment access method, equipment access device and server

Publications (2)

Publication Number Publication Date
CN112887362A true CN112887362A (en) 2021-06-01
CN112887362B CN112887362B (en) 2023-03-10

Family

ID=76047237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110022568.3A Active CN112887362B (en) 2021-01-08 2021-01-08 Equipment access method, equipment access device and server

Country Status (1)

Country Link
CN (1) CN112887362B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205347A (en) * 2021-12-13 2022-03-18 平安证券股份有限公司 File downloading method, device, equipment and storage medium based on FTP (file transfer protocol)

Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
CN104243210A (en) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 Method and system for remotely having access to administrative web pages of routers
US20150117255A1 (en) * 2013-10-25 2015-04-30 Xiaomi Inc. Method and networking device for setting network connection parameters
WO2015154488A1 (en) * 2014-09-09 2015-10-15 中兴通讯股份有限公司 Method and device for accessing router
CN105306244A (en) * 2014-07-31 2016-02-03 腾讯科技(深圳)有限公司 Router management method, router management system and router management device
WO2016045595A2 (en) * 2014-09-28 2016-03-31 北京奇虎科技有限公司 Router adaptation method and device, and terminal device
CN105824909A (en) * 2016-03-15 2016-08-03 腾讯科技(深圳)有限公司 Page generation method and device
CN105975559A (en) * 2016-05-03 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for login to background page of router
CN106202322A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page generation method and device
WO2017088509A1 (en) * 2015-11-24 2017-06-01 华讯方舟科技有限公司 Page customization method and device
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN108123970A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 Method for exhibiting data and relevant apparatus
CN108334562A (en) * 2018-01-09 2018-07-27 阿里巴巴集团控股有限公司 A kind of page display method and device
CN108429648A (en) * 2018-03-14 2018-08-21 深圳市菲菱科思通信技术股份有限公司 A kind of wireless router and its method of intelligentized control online
CN108733372A (en) * 2018-05-17 2018-11-02 厦门二五八网络科技集团股份有限公司 A kind of customization pattern website accomplishing method
CN109933737A (en) * 2019-03-22 2019-06-25 中国工商银行股份有限公司 Webpage processing method, apparatus and system
CN110365521A (en) * 2019-06-18 2019-10-22 上海电器科学研究所(集团)有限公司 Equipment remote debugging method based on cloud gateway in a kind of novel maintenance system
CN110990736A (en) * 2019-12-05 2020-04-10 秒针信息技术有限公司 Page loading method and device, terminal equipment and storage medium

Patent Citations (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110029641A1 (en) * 2009-08-03 2011-02-03 FasterWeb, Ltd. Systems and Methods Thereto for Acceleration of Web Pages Access Using Next Page Optimization, Caching and Pre-Fetching Techniques
US20150117255A1 (en) * 2013-10-25 2015-04-30 Xiaomi Inc. Method and networking device for setting network connection parameters
CN105306244A (en) * 2014-07-31 2016-02-03 腾讯科技(深圳)有限公司 Router management method, router management system and router management device
WO2015154488A1 (en) * 2014-09-09 2015-10-15 中兴通讯股份有限公司 Method and device for accessing router
CN104243210A (en) * 2014-09-17 2014-12-24 湖北盛天网络技术股份有限公司 Method and system for remotely having access to administrative web pages of routers
WO2016045595A2 (en) * 2014-09-28 2016-03-31 北京奇虎科技有限公司 Router adaptation method and device, and terminal device
WO2017088509A1 (en) * 2015-11-24 2017-06-01 华讯方舟科技有限公司 Page customization method and device
CN105824909A (en) * 2016-03-15 2016-08-03 腾讯科技(深圳)有限公司 Page generation method and device
CN107229633A (en) * 2016-03-24 2017-10-03 北京神州泰岳软件股份有限公司 Static page generation method, Web access method and device
CN105975559A (en) * 2016-05-03 2016-09-28 浪潮电子信息产业股份有限公司 Method and system for login to background page of router
CN106202322A (en) * 2016-06-30 2016-12-07 乐视控股(北京)有限公司 A kind of page generation method and device
CN108123970A (en) * 2016-11-28 2018-06-05 北京神州泰岳软件股份有限公司 Method for exhibiting data and relevant apparatus
CN107465722A (en) * 2017-07-04 2017-12-12 阿里巴巴集团控股有限公司 The implementation method and device of web access
CN107423394A (en) * 2017-07-25 2017-12-01 北京小米移动软件有限公司 Page display method and device
CN108334562A (en) * 2018-01-09 2018-07-27 阿里巴巴集团控股有限公司 A kind of page display method and device
CN108429648A (en) * 2018-03-14 2018-08-21 深圳市菲菱科思通信技术股份有限公司 A kind of wireless router and its method of intelligentized control online
CN108733372A (en) * 2018-05-17 2018-11-02 厦门二五八网络科技集团股份有限公司 A kind of customization pattern website accomplishing method
CN109933737A (en) * 2019-03-22 2019-06-25 中国工商银行股份有限公司 Webpage processing method, apparatus and system
CN110365521A (en) * 2019-06-18 2019-10-22 上海电器科学研究所(集团)有限公司 Equipment remote debugging method based on cloud gateway in a kind of novel maintenance system
CN110990736A (en) * 2019-12-05 2020-04-10 秒针信息技术有限公司 Page loading method and device, terminal equipment and storage medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
ANONYMOUS: ""NETGEAR LAUNCHES NEW SERIES OF NEXT-GENERATION WIRELESS ROUTERS"", 《MODEM USERS NEWS》 *
刘洪波: ""局域网中无线路由器的设置方法"", 《数字通信世界》 *
李亚鹏: "企业局域网本地路由的配置", 《吉林农业科技学院学报》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205347A (en) * 2021-12-13 2022-03-18 平安证券股份有限公司 File downloading method, device, equipment and storage medium based on FTP (file transfer protocol)
CN114205347B (en) * 2021-12-13 2023-11-14 平安证券股份有限公司 File downloading method, device, equipment and storage medium based on FTP protocol

Also Published As

Publication number Publication date
CN112887362B (en) 2023-03-10

Similar Documents

Publication Publication Date Title
CN108845816B (en) Application program updating method, system, computer device and storage medium
US9571556B2 (en) Browser kernel adaptation method and browser therefor
CN107015870B (en) Method and device for realizing communication between web page and local application and electronic equipment
CN102457565B (en) The method of mobile terminal network visiting and proxy server
CN109391673B (en) Method, system and terminal equipment for managing update file
CN104965848A (en) Front-end resource loading method and apparatus
CN113382083B (en) Webpage screenshot method and device
CN113438628B (en) Method and device for data interaction
CN101771928B (en) Method and system and proxy server for Webpage transmitting
US20150006681A1 (en) Mobile device and method for controlling transmission to web server in mobile device
CN110781437A (en) Method and device for acquiring webpage image loading duration and electronic equipment
CN112328413A (en) Application service calling method, device and system
CN112887362B (en) Equipment access method, equipment access device and server
CN113259494B (en) File storage method and device, electronic equipment and storage medium
CN109788251B (en) Video processing method, device and storage medium
CN115208951A (en) Request processing method and device, electronic equipment and computer readable storage medium
US20140157104A1 (en) Dynamic sharing and updating of a web page
CN102377793A (en) Flash interaction method and device based on mobile communication equipment terminal
EP2003852A1 (en) Method for improving output of data from a remote gateway at a mobile device and download management unit
CN111783010A (en) Webpage blank page monitoring method, device, terminal and storage medium
CN115878226A (en) H5 offline package loading method and device
CN113467776B (en) Method and device for accessing equipment, storage medium and electronic device
CN114285774A (en) Flow recording method and device, electronic equipment and storage medium
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN103457980A (en) Terminal device and data acquisition method

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