CN112995197A - Remote access method, system, equipment and storage medium of monitoring equipment - Google Patents

Remote access method, system, equipment and storage medium of monitoring equipment Download PDF

Info

Publication number
CN112995197A
CN112995197A CN202110326334.8A CN202110326334A CN112995197A CN 112995197 A CN112995197 A CN 112995197A CN 202110326334 A CN202110326334 A CN 202110326334A CN 112995197 A CN112995197 A CN 112995197A
Authority
CN
China
Prior art keywords
service module
monitoring equipment
proxy service
monitoring device
monitoring
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
CN202110326334.8A
Other languages
Chinese (zh)
Other versions
CN112995197B (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.)
Suzhou Keda Technology Co Ltd
Original Assignee
Suzhou Keda 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 Suzhou Keda Technology Co Ltd filed Critical Suzhou Keda Technology Co Ltd
Priority to CN202110326334.8A priority Critical patent/CN112995197B/en
Publication of CN112995197A publication Critical patent/CN112995197A/en
Application granted granted Critical
Publication of CN112995197B publication Critical patent/CN112995197B/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
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0884Network architectures or network communication protocols for network security for authentication of entities by delegation of authentication, e.g. a proxy authenticates an entity to be authenticated on behalf of this entity vis-à-vis an authentication entity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • 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/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The invention provides a remote access method, a system, equipment and a storage medium of monitoring equipment, wherein the method comprises the following steps: a user login service module receives a monitoring equipment access request sent by a user side; the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module and the accessed monitoring equipment establish a communication link; the user login service module sends the information of the webpage proxy service module to a user side, and the user side is configured to redirect the access request of the monitoring equipment to the corresponding webpage proxy service module; the webpage proxy service module receives a monitoring equipment access request from a user side and sends access data in the monitoring equipment access request to accessed monitoring equipment; and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side. By adopting the invention, the monitoring equipment can be remotely accessed without being limited by a network.

Description

Remote access method, system, equipment and storage medium of monitoring equipment
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a remote access method, system, device, and storage medium for a monitoring device.
Background
In general, the monitoring device is in a local area Network or a 4G Network, and cannot normally monitor a port due to the obstruction of NAT (Network Address Translation), a firewall, and the like. The user cannot directly access the monitoring device. When a user needs to access, maintain and update the monitoring equipment, the user needs to go to the site where the monitoring equipment is located to operate, which is very inconvenient.
Disclosure of Invention
In view of the problems in the prior art, an object of the present invention is to provide a method, a system, a device and a storage medium for remote access of a monitoring device, which can remotely access the monitoring device without being limited by a network.
The embodiment of the invention provides a remote access method of monitoring equipment, which comprises the following steps:
a user login service module receives a monitoring equipment access request sent by a user side;
the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module and the accessed monitoring equipment establish a communication link;
the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the monitoring equipment access request to the corresponding webpage proxy service module;
the webpage proxy service module receives a monitoring equipment access request from the user side and sends access data in the monitoring equipment access request to accessed monitoring equipment;
and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side.
The remote access method of the monitoring equipment provides the query service of the webpage proxy service module based on the monitoring equipment through the user login service module and the domain name service module, so that a user can conveniently acquire the information of the webpage proxy service module when needing to access the monitoring equipment through a user side, and the webpage proxy service module can provide access proxy service between the user side and the monitoring equipment when receiving the access request of the monitoring equipment of the user side, so that the user side can conveniently and remotely access the monitoring equipment without network limitation and acquire response data.
In some embodiments, the method further comprises establishing a communication link between the monitoring device and the web proxy service module by:
the domain name service module receives a first registration request of the monitoring equipment;
the domain name service module records the incidence relation between the monitoring equipment and the webpage proxy service module and sends the information of the corresponding webpage proxy service module to the monitoring equipment;
the webpage proxy service module receives a second registration request of the monitoring equipment;
and a communication link is established between the webpage proxy service module and the monitoring equipment.
In some embodiments, the sending of the information of the corresponding web proxy service module to the monitoring device by the user login service module includes sending an address and a proxy port number of the corresponding web proxy service module to the monitoring device by the user login service module, and the setting of the proxy address of the monitoring device by the web proxy service module according to the address and the proxy port number of the web proxy service module
In some embodiments, the web proxy service module receives a monitoring device access request from the user side, and sends access data in the monitoring device access request to an accessed monitoring device, including the following steps:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user side;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the monitoring equipment access request and the monitoring equipment.
In some embodiments, the user side is configured to send the monitoring device access request to the proxy port through a tcp link, and a communication link between the web proxy server side and the monitoring device is a websocket link.
In some embodiments, sending access data to the corresponding monitoring device over the communication link includes the steps of:
the webpage proxy service module allocates a link number according to the received monitoring equipment access request;
the webpage proxy service module sends the access data and the link number to the monitoring equipment through one message in the communication link;
the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side, and the method comprises the following steps:
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link;
and the webpage proxy service module sends the response data to the corresponding user side according to the received link number.
In some embodiments, the monitoring device comprises a monitoring device agent and a device network port;
and the monitoring equipment agent terminal is configured to send the access data to the equipment network port and send response data returned by the equipment network port and the link number to the webpage agent service module when receiving the access data and the link number.
In some embodiments, after the communication link is established between the web proxy service module and the monitoring device, the method further includes the following steps:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
The embodiment of the invention also provides a remote access system of the monitoring equipment, which is applied to the remote access method of the monitoring equipment, and the system comprises the following steps:
the domain name service module is used for recording the association relationship between the monitoring equipment and the webpage proxy service module;
the system comprises a user login service module, a domain name service module, a web proxy service module and a monitoring device, wherein the user login service module is used for receiving a monitoring device access request sent by a user side, inquiring information of the web proxy service module corresponding to the accessed monitoring device from the domain name service module, the web proxy service module establishes a communication link with the accessed monitoring device, and sends the information of the web proxy service module to the user side, and the user side is configured to redirect the monitoring device access request to the corresponding web proxy service module;
the webpage proxy service module is used for receiving a monitoring equipment access request from the user side, sending access data in the monitoring equipment access request to the accessed monitoring equipment, and acquiring response data from the accessed monitoring equipment and sending the response data to the user side.
The remote access system of the monitoring equipment provides the query service of the webpage proxy service module based on the monitoring equipment through the user login service module and the domain name service module, so that a user can conveniently acquire the information of the webpage proxy service module when needing to access the monitoring equipment through a user side, and the webpage proxy service module can provide the access proxy service between the user side and the monitoring equipment when receiving the access request of the monitoring equipment of the user side, so that the user side can conveniently and remotely access the monitoring equipment without network limitation and acquire response data.
An embodiment of the present invention further provides a remote access device for a monitoring device, including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the remote access method of the monitoring device via execution of the executable instructions.
By adopting the remote access device of the monitoring device provided by the invention, the processor executes the remote access method of the monitoring device when executing the executable instruction, thereby obtaining the beneficial effect of the remote access method of the monitoring device.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed by a processor, the method for remotely accessing a monitoring device is implemented.
By adopting the computer-readable storage medium provided by the invention, the stored program realizes the steps of the remote access method of the monitoring device when being executed, thereby the beneficial effects of the remote access method of the monitoring device can be obtained.
Drawings
Other features, objects and advantages of the present invention will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, with reference to the accompanying drawings.
FIG. 1 is a flow chart of a remote access method of a monitoring device according to an embodiment of the invention;
fig. 2 is a schematic diagram of a cloud server and a monitoring device in a remote access method of the monitoring device according to an embodiment of the present invention;
FIG. 3 is a timing diagram of a remote access method of a monitoring device according to an embodiment of the invention;
FIG. 4 is a schematic diagram of an access process of an embodiment of the present invention;
FIG. 5 is a schematic diagram of a remote access system of a monitoring device of an embodiment of the present invention;
FIG. 6 is a schematic diagram of a remote access device of a monitoring device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a computer storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The same reference numerals in the drawings denote the same or similar structures, and thus their repetitive description will be omitted.
As shown in fig. 1, in an embodiment, the present invention provides a remote access method for a monitoring device, including the following steps:
s100: the user login service module receives a monitoring device access request sent by a user side, wherein in the embodiment, the user side is a client browser used by a user needing to access the monitoring device;
s200: the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module and the accessed monitoring equipment establish a communication link;
s300: the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the monitoring equipment access request to the corresponding webpage proxy service module;
s400: the webpage proxy service module receives a monitoring equipment access request from the user side and sends access data in the monitoring equipment access request to accessed monitoring equipment;
s500: and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side.
In the remote access method of the monitoring device, the user login service module and the domain name service module provide query service of the web proxy service module based on the monitoring device through the steps S100 to S300, so that a user can conveniently obtain information of the web proxy service module when needing to access the monitoring device through a user side, and the web proxy service module can provide access proxy service between the user side and the monitoring device through the steps S400 and S500 when receiving an access request of the monitoring device of the user side, so that the user side can conveniently and remotely access the monitoring device without network limitation and obtain response data.
By adopting the remote access method of the monitoring equipment, the monitoring equipment can be accessed without limit through a public Network environment, the remote configuration, remote upgrade and maintenance and even the remote Video browsing function are realized, and a typical scene is to remotely access a webpage client of IPC (IP-CAMERA) or NVR (Network digital Recorder) in NAT (Network Address Translation).
As shown in fig. 2, the remote access method of the monitoring device of the present invention mainly involves two parts: cloud server and supervisory equipment. The cloud service end comprises a user login service module, a domain name service module and a webpage proxy service module. The user login service module is used for providing a management page for the user side to access the monitoring equipment. The user can access the management page provided by the user login service module through the user side. The management page may display a monitoring device number input box and a device access button, and the user may input a monitoring device number to the monitoring device number input box in the browser and press the device access button to send a monitoring device access request. In another embodiment, a list of accessible monitoring devices may also be displayed in the user interface, and a user may send a monitoring device access request by directly clicking one of the monitoring devices in the list of monitoring devices. The user login service module is further configured to execute steps S100 to S300 in the remote access method, that is, redirection of user side access is achieved.
In this embodiment, the domain name service module is a PDNS service module, where PDNS refers to Passive DNS (Passive domain name system) or Power DNS (Power domain name system), which may be implemented by using a DNS server supporting mysql database. Because the access of the mysql database only allows local ip query based on security considerations, the ip of the user side can be added to the related white list in advance to avoid query failure.
The remote access method of the monitoring equipment further comprises the step of establishing a communication link between the monitoring equipment and the webpage proxy service module. As shown in fig. 2, the monitoring device includes a device network port and a monitoring device agent, and the monitoring device agent includes a PDNS agent server and a web proxy link server. Because of the NAT characteristic, it is possible that the intranet of the monitoring device actively initiates a connection to the outside, and therefore, when the communication link is established, the monitoring device actively initiates a registration to the outside. Two links are arranged between the cloud service and the monitoring equipment, one is a PDNS link, and the other is a webpage proxy link, and both are initiated by the monitoring equipment actively.
Specifically, as shown in fig. 3, the remote access method of the monitoring device further includes establishing a communication link between the monitoring device and the web proxy service module by using the following steps:
the domain name service module receives a first registration request sent by a PDNS proxy server (monitoring equipment proxy) of the monitoring equipment, and establishes a PDNS link with the monitoring equipment, wherein the first registration request comprises an SN (serial number) of the monitoring equipment and a PDNS registration request;
the domain name service module records the incidence relation between the monitoring equipment and the webpage proxy service module, namely binding the SN serial number of the monitoring equipment and the proxy information of the webpage proxy service module, and sending the information of the corresponding webpage proxy service module to the monitoring equipment, wherein the information of the webpage proxy service module is the proxy information and at least comprises the IP address of the webpage proxy service module and the access port of the monitoring equipment; the PDNS link can then be broken, the link being a short link;
the webpage proxy service module receives a second registration request sent by a webpage proxy link service end (monitoring equipment proxy end) of the monitoring equipment, and requests to establish a webpage proxy link with the webpage proxy service module;
the webpage proxy service module receives a request for establishing a webpage proxy link and establishes a communication link with a webpage proxy link server of the monitoring equipment, wherein the webpage proxy link is a long link.
When the monitoring equipment is disconnected with the webpage proxy service module, the webpage proxy service module informs the domain name server of the information related to the monitoring equipment. Before the monitoring device is on-line again, the user cannot acquire the proxy address of the monitoring device.
In this embodiment, the step S300: and the user login service module sends the information of the corresponding webpage proxy service module to the monitoring equipment, and the information comprises the address and a proxy port number of the corresponding webpage proxy service module which are sent to the monitoring equipment. And the webpage proxy service module sets the proxy address of the monitoring equipment according to the address of the webpage proxy service module and the proxy port number. Specifically, before accessing the monitoring device, the web proxy service module needs to monitor a tcp local port as a proxy port, where the proxy port and the monitoring device to be accessed have a one-to-one correspondence, and then sets the proxy address of the monitoring device to "127.0.0.1: proxy port".
In this embodiment, the user side is configured to send the monitoring device access request to the proxy port through a TCP link, a communication link between the web proxy server and the monitoring device is a websocket link, and the websocket is an upgraded version of an http protocol, and is a protocol for performing full-duplex communication on a single TCP connection, which is initially provided by HTML 5.
Fig. 3 is a schematic diagram illustrating a process of accessing a monitoring device by using the remote access method of the present invention. In this embodiment, the step S400: the webpage proxy service module receives a monitoring equipment access request from the user side and sends access data in the monitoring equipment access request to accessed monitoring equipment, and the method comprises the following steps:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user side;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the monitoring equipment access request and the monitoring equipment.
In this embodiment, sending access data to the corresponding monitoring device through the communication link includes the following steps:
the webpage proxy service module allocates a link number according to the received monitoring equipment access request;
and the webpage proxy service module sends the access data and the link number to the monitoring equipment through one message in the communication link.
That is, the web proxy service module allocates a unique link number to each tcp link (http protocol is based on tcp) received by the proxy port, and the link numbers and the tcp links are in a one-to-one correspondence relationship. And then, all the data received on the link are packed together with the link number and are sent to the equipment end through a message in the websocket link.
And the monitoring equipment agent terminal is configured to send the access data to the equipment network port and send response data returned by the equipment network port and the link number to the webpage agent service module when receiving the access data and the link number.
That is, after receiving the websocket message, the monitoring device agent analyzes the link number and the data, establishes a tcp connection connected to a device network port (http port) for the link number (if the link number has a corresponding tcp connection, the tcp connection is directly multiplexed), and sends the data to the tcp connection. And then the monitoring equipment agent end packs all response data (namely http response of the equipment network port) received on the tcp connection with the link number, and sends the response data to the webpage agent service module through the websocket link.
In step S500, the web proxy service module obtains response data from the accessed monitoring device and sends the response data to the user side, including the following steps:
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link;
and the webpage proxy service module sends the response data to the corresponding user side according to the received link number. That is, after receiving the message from the websocket link, the web proxy service module analyzes the link number and the data, finds the corresponding tcp connection according to the link number, and sends the data to the tcp connection.
In the application process, when any party between the monitoring equipment and the webpage proxy service module detects tcp broken link, the link number and 0 byte data are packaged and sent to the opposite end, and then all resources (including tcp link resources) related to the link number are cleaned. And after the opposite end receives the 0 byte data, cleaning all resources (including tcp connection resources) related to the corresponding link number.
As shown in fig. 2, in this embodiment, acquisition of monitored data may also be implemented between the web proxy service module and the monitoring device. Listening to data refers to video streams, image data, audio data or other types of real-time collected data that are listened to in real-time from the monitoring device in view of the monitoring device's multimedia applications, such as video capture, image capture, etc.
In this embodiment, after the communication link is established between the web proxy service module and the monitoring device, a monitoring data channel is further established between the web proxy service module and the monitoring device. The monitoring devices access and obtain the monitored data in different ways. When the monitoring device accesses and the user side page jumps, an extension needs to be made to the url, and when the url carries? And the user terminal page script can know the proxy mode at the moment, and if the monitoring data channel needs to be acquired through an extra http request, the user terminal page script can know the proxy mode. Only one tcp link (through a websocket protocol) is arranged between the monitoring equipment proxy end and the webpage proxy service module, and the http request and the data monitoring request are simultaneously considered in the link. Specifically, the method comprises the following steps:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link, and a monitoring data channel is established between the webpage proxy service module and the monitoring equipment;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
The above-mentioned channel for sending the access request and the response data is a proxy channel between the web proxy service module and the monitoring device, and the message channel and the proxy channel may adopt different channel numbers. The message channel and the proxy channel can adopt the same websocket link, and a monitoring device proxy end of the monitoring device can judge whether the data message is a standard http request message or a monitored data message according to the channel number of the received data.
As shown in fig. 5, an embodiment of the present invention further provides a remote access system for a monitoring device, where the system is disposed at a cloud server and is applied to the remote access method for the monitoring device, and the system includes:
the domain name service module M100 is used for recording the association relationship between the monitoring equipment and the webpage proxy service module;
the user login service module M200 is used for receiving a monitoring device access request sent by a user side, inquiring information of a webpage proxy service module corresponding to the accessed monitoring device from a domain name service module, establishing a communication link between the webpage proxy service module and the accessed monitoring device, and sending the information of the webpage proxy service module to the user side, wherein the user side is configured to redirect the monitoring device access request to the corresponding webpage proxy service module;
the web proxy service module M300 is configured to receive a monitoring device access request from the user, send access data in the monitoring device access request to an accessed monitoring device, and obtain response data from the accessed monitoring device and send the response data to the user.
In the remote access system of the monitoring equipment, the query service of the webpage proxy service module based on the monitoring equipment is provided through the user login management module and the domain name service module, so that a user can conveniently acquire the information of the webpage proxy service module when needing to access the monitoring equipment through a user side, and the webpage proxy service module can provide access proxy service between the user side and the monitoring equipment when receiving an access request of the monitoring equipment of the user side, so that the user side can conveniently and remotely access the monitoring equipment without network limitation and acquire response data.
The domain name service module M100, the user login service module M200, and the web proxy service module M300 of the present invention may be disposed on the same server, or may be disposed on different servers, respectively. The domain name service module M100 adopts a domain name server supporting a mysql database, where the mysql records domain name information of the monitoring device, and the information to be recorded is as follows:
Figure BDA0002994797450000101
Figure BDA0002994797450000111
wherein, some fields are explained as follows:
query: and the equipment SN code is unique in the whole network, and the index value of the equipment information is inquired.
Proxyip, proxyport: the web proxy service module (dnspropy) provides a spare port for the domain name service module, and the web proxy service module and the domain name service module can be in one-to-one or many-to-one relation, so that proxyip is not necessarily the address of the web proxy service module. If the access quantity is small, the domain name service module and the webpage proxy service module can be provided with one server. When the number of the access devices is increased, a plurality of servers corresponding to the web proxy service module can be arranged, and all the servers are managed by the servers corresponding to the domain name service module. The user can access the mapped monitoring device by accessing the ip and the port.
websocketport: proxy access port (for monitor access)
proxywebsocketport: the monitoring equipment monitors the service port, and considering that multimedia applications of the monitoring equipment, such as image transmission, real-time data (such as intelligent data reporting and the like), a single http port does not necessarily meet requirements, so that a websocket port is expanded and used for the multimedia applications of the monitoring equipment and a user side, the port is mapped through DNSPproxy, a user accesses an ip + websocket port of a webpage proxy service module, only one data connection exists between the webpage proxy service module and the monitoring equipment, and the http application or the websocket application can be distinguished through a channel number by the connection.
devicename, devicetype, version: the monitoring equipment reports the equipment information to the domain name service module, and the domain name service module only records the equipment information. The data is provided to the user login service module for use.
The embodiment of the invention also provides remote access equipment of the monitoring equipment, which comprises a processor; a memory having stored therein executable instructions of the processor; wherein the processor is configured to perform the steps of the remote access method of the monitoring device via execution of the executable instructions.
As will be appreciated by one skilled in the art, aspects of the present invention may be embodied as a system, method or program product. Thus, various aspects of the invention may be embodied in the form of: an entirely hardware embodiment, an entirely software embodiment (including firmware, microcode, etc.) or an embodiment combining hardware and software aspects that may all generally be referred to herein as a "circuit," module "or" system.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 6. The electronic device 600 shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 6, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 that connects the various system components (including the storage unit 620 and the processing unit 610), a display unit 640, and the like.
Wherein the storage unit stores program code executable by the processing unit 610 to cause the processing unit 610 to perform steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of the present specification. For example, the processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
By adopting the remote access device of the monitoring device provided by the invention, the processor executes the remote access method of the monitoring device when executing the executable instruction, thereby obtaining the beneficial effect of the remote access method of the monitoring device.
An embodiment of the present invention further provides a computer-readable storage medium, which is used for storing a program, and when the program is executed by a processor, the method for remotely accessing a monitoring device is implemented. In some possible embodiments, aspects of the present invention may also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above-mentioned electronic prescription flow processing method section of this specification, when the program product is run on the terminal device.
Referring to fig. 7, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or cluster. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
By adopting the computer-readable storage medium provided by the invention, the stored program realizes the steps of the remote access method of the monitoring device when being executed, thereby the beneficial effects of the remote access method of the monitoring device can be obtained.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (11)

1. A remote access method for a monitoring device, comprising the steps of:
a user login service module receives a monitoring equipment access request sent by a user side;
the user login service module inquires information of a webpage proxy service module corresponding to the accessed monitoring equipment from the domain name service module, and the webpage proxy service module and the accessed monitoring equipment establish a communication link;
the user login service module sends the information of the webpage proxy service module to the user side, and the user side is configured to redirect the monitoring equipment access request to the corresponding webpage proxy service module;
the webpage proxy service module receives a monitoring equipment access request from the user side and sends access data in the monitoring equipment access request to accessed monitoring equipment;
and the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side.
2. The method of claim 1, further comprising establishing a communication link between the monitoring device and the web proxy service module by:
the domain name service module receives a first registration request of the monitoring equipment;
the domain name service module records the incidence relation between the monitoring equipment and the webpage proxy service module and sends the information of the corresponding webpage proxy service module to the monitoring equipment;
the webpage proxy service module receives a second registration request of the monitoring equipment;
and a communication link is established between the webpage proxy service module and the monitoring equipment.
3. The remote access method of the monitoring device according to claim 2, wherein the user login service module sends the information of the corresponding web proxy service module to the monitoring device, and the method includes the step that the user login service module sends the address and a proxy port number of the corresponding web proxy service module to the monitoring device, and the web proxy service module sets the proxy address of the monitoring device according to the address and the proxy port number of the web proxy service module.
4. The remote access method for the monitoring device according to claim 3, wherein the web proxy service module receives a monitoring device access request from the user terminal, and sends access data in the monitoring device access request to the accessed monitoring device, comprising the following steps:
a proxy port of the webpage proxy service module receives a monitoring equipment access request from the user side;
and the webpage proxy service module sends the access data to the corresponding monitoring equipment through the communication link according to the corresponding relation between the proxy port receiving the monitoring equipment access request and the monitoring equipment.
5. The remote access method for the monitoring device according to claim 4, wherein the user side is configured to send the monitoring device access request to the agent port through a tcp link, and a communication link between the web agent server and the monitoring device is a websocket link.
6. The remote access method for the monitoring device according to claim 4, wherein the step of sending access data to the corresponding monitoring device via the communication link comprises the steps of:
the webpage proxy service module allocates a link number according to the received monitoring equipment access request;
the webpage proxy service module sends the access data and the link number to the monitoring equipment through one message in the communication link;
the webpage proxy service module acquires response data from the accessed monitoring equipment and sends the response data to the user side, and the method comprises the following steps:
the webpage proxy service module receives response data and a corresponding link number sent by the monitoring equipment through the communication link;
and the webpage proxy service module sends the response data to the corresponding user side according to the received link number.
7. The remote access method for the monitoring device according to claim 6, wherein the monitoring device comprises a monitoring device agent terminal and a device network port;
and the monitoring equipment agent terminal is configured to send the access data to the equipment network port and send response data returned by the equipment network port and the link number to the webpage agent service module when receiving the access data and the link number.
8. The remote access method for the monitoring device according to claim 3, further comprising the following steps after the communication link is established between the web proxy service module and the monitoring device:
the webpage proxy service module sends a data monitoring request to the monitoring equipment through the communication link;
and the webpage proxy service module sends the monitoring data to the user side when receiving the monitoring data from the monitoring equipment through the data monitoring port.
9. A remote access system of a monitoring device, applied to the remote access method of the monitoring device according to any one of claims 1 to 8, the system comprising:
the domain name service module is used for recording the association relationship between the monitoring equipment and the webpage proxy service module;
the system comprises a user login service module, a domain name service module, a web proxy service module and a monitoring device, wherein the user login service module is used for receiving a monitoring device access request sent by a user side, inquiring information of the web proxy service module corresponding to the accessed monitoring device from the domain name service module, the web proxy service module establishes a communication link with the accessed monitoring device, and sends the information of the web proxy service module to the user side, and the user side is configured to redirect the monitoring device access request to the corresponding web proxy service module;
the webpage proxy service module is used for receiving a monitoring equipment access request from the user side, sending access data in the monitoring equipment access request to the accessed monitoring equipment, and acquiring response data from the accessed monitoring equipment and sending the response data to the user side.
10. A remote access device for a monitoring device, comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the remote access method of the monitoring device of any of claims 1 to 8 via execution of the executable instructions.
11. A computer-readable storage medium for storing a program, characterized in that the program, when being executed by a processor, carries out the steps of the remote access method of a monitoring device according to any one of claims 1 to 8.
CN202110326334.8A 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment Active CN112995197B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110326334.8A CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110326334.8A CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Publications (2)

Publication Number Publication Date
CN112995197A true CN112995197A (en) 2021-06-18
CN112995197B CN112995197B (en) 2023-05-02

Family

ID=76333864

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110326334.8A Active CN112995197B (en) 2021-03-26 2021-03-26 Remote access method, system, equipment and storage medium of monitoring equipment

Country Status (1)

Country Link
CN (1) CN112995197B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473090A (en) * 2021-07-09 2021-10-01 苏州万店掌网络科技有限公司 Method, device and storage medium for remotely configuring IPC (inter-process control) parameters
CN114286054A (en) * 2021-12-27 2022-04-05 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN114500527A (en) * 2021-12-27 2022-05-13 天翼云科技有限公司 Out-of-band management system and method for edge device
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI
CN115048267A (en) * 2022-06-20 2022-09-13 东土科技(宜昌)有限公司 Webpage service monitoring method, webpage service monitoring device, program running method, program running device, equipment and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220356A (en) * 2013-04-22 2013-07-24 南通大学 Remote monitoring device based on embedded web
CN103442224A (en) * 2013-09-09 2013-12-11 杭州巨峰科技有限公司 NAT penetration-based video monitoring access strategy and realization method
CN103905568A (en) * 2013-04-22 2014-07-02 南通大学 Remote monitoring device capable of guaranteeing system stability and based on embedded Web
CN104506802A (en) * 2014-12-17 2015-04-08 浙江宇视科技有限公司 Video monitoring system, and method for monitoring video data through traversing NAT (Network Address Translation)

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220356A (en) * 2013-04-22 2013-07-24 南通大学 Remote monitoring device based on embedded web
CN103905568A (en) * 2013-04-22 2014-07-02 南通大学 Remote monitoring device capable of guaranteeing system stability and based on embedded Web
CN103442224A (en) * 2013-09-09 2013-12-11 杭州巨峰科技有限公司 NAT penetration-based video monitoring access strategy and realization method
CN104506802A (en) * 2014-12-17 2015-04-08 浙江宇视科技有限公司 Video monitoring system, and method for monitoring video data through traversing NAT (Network Address Translation)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113473090A (en) * 2021-07-09 2021-10-01 苏州万店掌网络科技有限公司 Method, device and storage medium for remotely configuring IPC (inter-process control) parameters
CN113473090B (en) * 2021-07-09 2022-05-03 苏州万店掌网络科技有限公司 Method, device and storage medium for remotely configuring IPC (inter-process control) parameters
CN114286054A (en) * 2021-12-27 2022-04-05 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN114500527A (en) * 2021-12-27 2022-05-13 天翼云科技有限公司 Out-of-band management system and method for edge device
CN114286054B (en) * 2021-12-27 2023-10-27 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN114938342A (en) * 2022-01-27 2022-08-23 浙江浩瀚能源科技有限公司 Automatic testing and monitoring method capable of remotely triggering local UI
CN115048267A (en) * 2022-06-20 2022-09-13 东土科技(宜昌)有限公司 Webpage service monitoring method, webpage service monitoring device, program running method, program running device, equipment and medium

Also Published As

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

Similar Documents

Publication Publication Date Title
CN112995197B (en) Remote access method, system, equipment and storage medium of monitoring equipment
EP1535445B1 (en) Remote dynamic configuration of a web server to provide capacity on demand
US9342620B2 (en) Loading of web resources
CN102292955B (en) Systems and methods for load balancing real time streaming protocol
US5996010A (en) Method of performing a network management transaction using a web-capable agent
US20020046268A1 (en) Method of performing a network management transaction using a web-capable agent
CN110365779B (en) Communication control method and device, electronic equipment and storage medium
CN103716398A (en) Method and system for monitoring CDN server
CN110351379B (en) Communication control method and device, electronic equipment and storage medium
KR20200102328A (en) Method and device for processing data
KR100823269B1 (en) Method and Apparatus for managing a State Information of Remote User Interface
CN1631018B (en) Method and apparatus to retrieve information in a network
CN116150513A (en) Data processing method, device, electronic equipment and computer readable storage medium
JP3017089B2 (en) Network management apparatus and method
KR20030005422A (en) Peer distributed embedded web server system
JP4341071B2 (en) Application time-out time adjusting system and method, server apparatus and program thereof
CN113079055B (en) AGV operation data dynamic acquisition method and device
CN110365778B (en) Communication control method and device, electronic equipment and storage medium
CN109660573B (en) Data transmission method and device
JP2000308152A (en) Building group managing system
CN113542412B (en) Data transmission method, device, electronic equipment and storage medium
CN114827197B (en) Service communication method, device, equipment and medium based on Internet of things
TWI802153B (en) The method of managing a storage
CN116055555B (en) Proxy server setting method, proxy server setting device, electronic equipment and readable storage medium
WO2021049120A1 (en) Computer program, information processing method, information processing device, and information processing system

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