CN111831499B - Remote debugging method, device, server, readable storage medium and system - Google Patents

Remote debugging method, device, server, readable storage medium and system Download PDF

Info

Publication number
CN111831499B
CN111831499B CN202010704223.1A CN202010704223A CN111831499B CN 111831499 B CN111831499 B CN 111831499B CN 202010704223 A CN202010704223 A CN 202010704223A CN 111831499 B CN111831499 B CN 111831499B
Authority
CN
China
Prior art keywords
intelligent hardware
debugged
instruction
debugging
hardware equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010704223.1A
Other languages
Chinese (zh)
Other versions
CN111831499A (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.)
Beijing Qding Interconnection Technology Co ltd
Original Assignee
Beijing Qding Interconnection 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 Beijing Qding Interconnection Technology Co ltd filed Critical Beijing Qding Interconnection Technology Co ltd
Priority to CN202010704223.1A priority Critical patent/CN111831499B/en
Publication of CN111831499A publication Critical patent/CN111831499A/en
Application granted granted Critical
Publication of CN111831499B publication Critical patent/CN111831499B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2294Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by remote test
    • 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]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications

Abstract

The embodiment of the invention discloses a remote debugging method, a device, a server, a readable storage medium and a system, wherein the method comprises the steps of connecting intelligent hardware equipment to be debugged when a remote debugging starting command is received; when a reverse port mapping instruction is received, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form; and receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port. According to the technical scheme, when the debugging is needed, the intranet port corresponding to the intelligent hardware equipment to be debugged is mapped to the appointed public network port, so that the intelligent hardware equipment is remotely debugged by shell commands, and the dependence of remote debugging on networks and flow is reduced.

Description

Remote debugging method, device, server, readable storage medium and system
Technical Field
The present invention relates to the field of hardware device debugging, and in particular, to a remote debugging method, device, server, readable storage medium and system.
Background
The existing remote control scheme utilizes a remote desktop with visible control interfaces such as TEAMVIEWER, WINDOWS to carry out remote debugging, and can control the desktop to be visible and obtain all control authorities, but utilizes the remote desktop to carry out remote debugging, so that a large amount of data traffic is needed to be used, high requirements are provided for network bandwidth, and phenomena such as delay and blocking easily occur in the debugging process.
Disclosure of Invention
In view of the above, the present invention proposes a remote debugging method, device, server, readable storage medium and system.
One embodiment of the invention provides a remote debugging method, which comprises the following steps:
when a remote debugging starting command is received, connecting intelligent hardware equipment to be debugged;
When a reverse port mapping instruction is received, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form;
Receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port;
receiving an ssh connection request connected with the appointed public network port, and obtaining root permission for debugging the intelligent hardware equipment to be debugged through the appointed public network port.
The remote debugging method further comprises the following steps:
When a debugging instruction is received, the debugging instruction is sent to the intelligent hardware equipment to be debugged through the designated public network port, wherein the debugging instruction comprises a debugging instruction with root authority and/or a debugging instruction without root authority;
and receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction.
According to the remote debugging method, after the intelligent hardware equipment to be debugged is connected, the method further comprises the following steps:
when a debug instruction without root permission is received, forwarding the debug instruction without root permission to the intelligent hardware equipment to be debugged in a message form;
And receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction without the root permission.
The remote debugging method further comprises the following steps:
Monitoring all intelligent hardware devices accessed in real time;
and receiving the device information and the corresponding state information uploaded by all intelligent hardware devices.
In the remote debugging method, the message is an MQTT message.
Another embodiment of the present invention proposes a remote debugging device, the device comprising:
the hardware equipment connection module is used for connecting intelligent hardware equipment to be debugged when a remote debugging starting command is received;
the reverse port mapping module is used for forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form when receiving the reverse port mapping instruction;
the return result receiving module is used for receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port;
the connection request receiving module is used for receiving the ssh connection request connected with the appointed public network port so as to obtain root permission for debugging the intelligent hardware equipment to be debugged through the appointed public network port.
Embodiments of the present invention relate to a server comprising a memory for storing a computer program and a processor that runs the computer program to enable the server to perform the remote debugging method described above.
Embodiments of the present invention relate to a readable storage medium storing a computer program which, when run on a processor, performs the remote debugging method described above.
Yet another embodiment of the present invention is directed to a remote debugging system comprising the server and intelligent hardware device described above, the server and intelligent hardware device being connected via a TCP protocol.
The remote debugging system further comprises a maintenance terminal, wherein the maintenance terminal is connected with the server through an SSH protocol, and the maintenance terminal is used for remotely debugging the intelligent hardware equipment through the server by maintenance personnel.
When receiving a remote debugging starting command, the intelligent hardware equipment to be debugged is connected; when a reverse port mapping instruction is received, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form; and receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port. According to the technical scheme, when the debugging is needed, the intranet port corresponding to the intelligent hardware equipment to be debugged is mapped to the appointed public network port, so that the intelligent hardware equipment is remotely debugged by shell commands, and the dependence of remote debugging on networks and flow is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are required for the embodiments will be briefly described, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope of the present invention. Like elements are numbered alike in the various figures.
Fig. 1 shows a flow diagram of a remote debugging method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a remote debugging device according to an embodiment of the present invention;
FIG. 3 is a system diagram of a remote debugging system according to an embodiment of the present invention;
Fig. 4 is a schematic flow chart of another remote debugging method according to an embodiment of the present invention.
Description of main reference numerals:
1-remote debugging device; 100-a hardware device connection module; 200-a reverse port mapping module; 300-returning to a result receiving module; 400-a connection request receiving module; 2-remote debugging system; 20-a server; 10-maintaining the terminal; 31-a first intelligent hardware device; 32-a second intelligent hardware device; 33-nth intelligent hardware devices.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to be within the scope of the present invention.
The terms "comprises," "comprising," "including," or any other variation thereof, are intended to cover a specific feature, number, step, operation, element, component, or combination of the foregoing, which may be used in various embodiments of the present invention, and are not intended to first exclude the presence of or increase the likelihood of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing.
Furthermore, the terms "first," "second," "third," and the like are used merely to distinguish between descriptions and should not be construed as indicating or implying relative importance.
Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which various embodiments of the invention belong. The terms (such as those defined in commonly used dictionaries) will be interpreted as having a meaning that is the same as the context of the relevant art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein in connection with the various embodiments of the invention.
The remote debugging method disclosed by the invention is used for remotely debugging intelligent hardware equipment, the intelligent hardware equipment distributed in different geographic positions and different local area networks is connected with a server for remote debugging, and the server for remote debugging is provided with a public network IP or a domain name. The maintenance personnel can be remotely connected with the public network server through the maintenance terminal, and the public network server transmits a system operation instruction through the shell interface, and forwards the received operation instruction to the intelligent hardware equipment to be debugged in a message mode.
Example 1
In this embodiment, referring to fig. 1, a remote debugging method is shown that includes the following steps:
step S100: and when a remote debugging starting command is received, connecting the intelligent hardware equipment to be debugged.
The public network server is provided with a remote debugging program for debugging the intelligent hardware equipment, a maintainer can establish ssh connection between the maintenance terminal and the public network server, and a remote debugging starting command is sent to the public network server through the maintenance terminal. And after the public network server receives the remote debugging starting command sent by the maintenance terminal, starting the remote debugging program to execute remote debugging.
Ssh is an abbreviation of Secure Shell, and ssh is a security protocol established at the application layer and the transport layer. ssh is a protocol that is specific to providing security for telnet sessions and other network services. The ssh protocol can be utilized to effectively prevent the information leakage problem in the remote management process. ssh is initially a program on the UNIX system that later expands rapidly to other operating platforms.
It should be understood that the public network server is accessed into a plurality of intelligent hardware devices in advance, and when a certain intelligent hardware device is debugged, a designated connection needs to be established with the intelligent hardware device to be debugged through a designated connection instruction so as to realize that the debugging instruction is sent to the intelligent hardware device to be debugged in a directed manner. After the public network server starts the remote debugging program, the maintenance terminal can send a connection instruction for connecting the specified intelligent hardware device to the public network server, the specified intelligent hardware device is used as the intelligent hardware device to be debugged, and the public network server forwards the connection instruction to the intelligent hardware device to be debugged in a message form so as to establish the specified connection between the intelligent hardware device to be debugged and the public network server. After the public network server establishes appointed connection with the intelligent hardware equipment to be debugged, the public network server can forward the debug instruction without the root authority to the intelligent hardware equipment to be debugged in the form of a message when receiving the debug instruction without the root authority; after the intelligent hardware equipment to be debugged receives the message, executing the debugging instruction without the root permission corresponding to the message, and returning the execution result to the public network server in the form of the message, wherein the public network server receives the debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction without the root permission, so that maintenance personnel can acquire the corresponding debugging result through the public network server.
Exemplary, root authority-free debug instructions include cd, ls, cat, ifconfig, nvidia-smi, and the like.
Step S200: and when receiving the reverse port mapping instruction, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form.
After the public network server establishes appointed connection with the intelligent hardware equipment to be debugged, if the public network server receives the reverse port mapping instruction, the reverse port mapping instruction is forwarded to the intelligent hardware equipment to be debugged in a message form.
After the intelligent hardware device to be debugged executes the reverse port mapping instruction, the internal network port corresponding to the intelligent hardware device to be debugged can be mapped to the appointed public network port of the public network server.
The format of the reverse port mapping instruction is exemplified by an internal network port corresponding to the ssh-R (intelligent hardware equipment to be debugged: the internal network port corresponding to the intelligent hardware equipment to be debugged: a public network server: an appointed public network port of the public network server).
Step S300: and receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port.
After the intelligent hardware device to be debugged executes the reverse port mapping instruction, the public network server can receive a return result after the intelligent hardware device to be debugged executes the reverse port mapping instruction, and it is understood that the return result comprises a mapping result of mapping an internal network port corresponding to the intelligent hardware device to be debugged to a designated public network port.
Step S400: receiving an ssh connection request connected with the appointed public network port, and obtaining root permission for debugging the intelligent hardware equipment to be debugged through the appointed public network port.
When a debugging instruction is received, the debugging instruction is sent to the intelligent hardware equipment to be debugged through the designated public network port, wherein the debugging instruction comprises a debugging instruction with root authority and/or a debugging instruction without root authority; and receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction.
Further, after the intranet port corresponding to the intelligent hardware device to be debugged is mapped to the designated public network port, when the public network server receives the debug instruction with the root authority sent by the maintenance terminal, the debug instruction with the root authority can be sent to the intelligent hardware device to be debugged through the designated public network port; after the intelligent hardware to be debugged executes the debugging instruction with the root authority, the public network server can directly receive the debugging result after the intelligent hardware device to be debugged executes the debugging instruction with the root authority.
Exemplary debug instructions with root authority include sudo jtop, git, vim, sudo chown, and the like.
It should be understood that root authority, one of SYSTEM authorities, also called root authority, and SYSTEM authority can be understood as a concept, but above Administrator authorities, root is a super manager account in Linux and unix SYSTEMs, which has the authority of the whole SYSTEM to a high level, and can operate all objects. After the root authority is obtained, the highest authority of the system is obtained, and all operations of adding, deleting, modifying and checking can be performed on any file (including system files) in the system.
According to the embodiment, when a remote debugging starting command is received, intelligent hardware equipment to be debugged is connected; when a reverse port mapping instruction is received, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form; and receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port. According to the technical scheme, when debugging is needed, the intranet ports corresponding to the intelligent hardware equipment to be debugged are mapped to the appointed public network ports, so that the intelligent hardware equipment is remotely debugged by shell commands, and dependence of remote debugging on networks and flow is reduced.
Example 2
Further, the remote debugging method further comprises the following steps: monitoring all intelligent hardware devices accessed in real time; and receiving the device information and the corresponding state information uploaded by all intelligent hardware devices.
The public network server can monitor all the accessed intelligent hardware devices in real time and receive the device information and the corresponding state information uploaded by all the intelligent hardware devices. It should be understood that the public network server is accessed into a plurality of intelligent hardware devices in advance, and when a certain intelligent hardware device is debugged, a specified connection needs to be established with the intelligent hardware device to be debugged through a specified connection instruction.
Exemplary device information for the intelligent hardware device includes: mac address, device serial number, etc.; the corresponding state information of each intelligent hardware device comprises related information of current normal operation or current abnormal operation. According to the corresponding state information of each intelligent hardware device, when an abnormality occurs in one intelligent hardware device, abnormal data can be timely obtained, and maintenance personnel can conveniently analyze and process the abnormal intelligent hardware device.
Further, the maintenance terminal can end the mapping relation between the internal network port corresponding to the intelligent hardware device to be debugged and the appointed public network port through the ps-aux|grep ssh instruction and the kill-9 related instruction, and at the moment, the public network server can send the debugging instruction without root authority to the intelligent hardware device to be debugged in a message form. The maintenance terminal can completely disconnect the public network server from the hardware equipment to be debugged by inputting a built-in instruction for disconnecting.
Further, the message in the embodiment of the application is an MQTT message.
It should be appreciated that MQTT (Message Queuing Telemetry Transport, message queue telemetry transport) is an instant messaging protocol, an important component of the internet of things. The MQTT protocol supports all platforms, and can connect almost all networking items to the outside. The information is transmitted by the MQTT information, so that the safe and stable transmission of the information can be realized.
Example 3
Further, after executing step S100 to connect the intelligent hardware device to be debugged, the method further includes:
When a debug instruction without root permission is received, forwarding the debug instruction without root permission to the intelligent hardware equipment to be debugged in a message form; and receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction without the root permission.
Example 4
Referring to fig. 2, a remote debugging device 1 is shown comprising: the device comprises a hardware device connection module 100, a reverse port mapping module 200, a return result receiving module 300 and a connection request receiving module 400.
The hardware device connection module 100 is used for connecting the intelligent hardware device to be debugged when receiving the remote debugging starting command; the reverse port mapping module 200 is configured to forward, when receiving a reverse port mapping instruction, the reverse port mapping instruction to the intelligent hardware device to be debugged in a message form; the return result receiving module 300 is configured to receive a return result after the intelligent hardware device to be debugged executes the reverse port mapping instruction, where the return result includes a mapping result of an intranet port corresponding to the intelligent hardware device to be debugged mapped to a specified public network port; the connection request receiving module 400 is configured to receive a ssh connection request for connecting the designated public network port, so as to obtain, through the designated public network port, root permission for debugging the intelligent hardware device to be debugged.
The remote debugging device 1 in this embodiment is configured to execute the remote debugging method described in the embodiment of the present application through the cooperation of the hardware device connection module 100, the reverse port mapping module 200, the return result receiving module 300 and the connection request receiving module 400, and the implementation and beneficial effects related to the embodiment of the present application are also applicable in this embodiment, and are not described herein again.
Example 5
Referring to fig. 3, a remote debugging system 2 includes a server 20, an intelligent hardware device and a maintenance terminal 10 according to the embodiment of the present application, where the server 20 and the intelligent hardware device are connected by a TCP protocol; the maintenance terminal 10 and the server are connected through an SSH protocol, and the maintenance terminal 10 is used for a maintenance person to remotely debug the intelligent hardware device through the server 20. It should be appreciated that the remote debugging system comprises a plurality of intelligent hardware devices, e.g. a first intelligent hardware device 31, a second intelligent hardware device 32, … …, an nth intelligent hardware device 33.
Further, referring to fig. 4, the process of remote debugging using the remote debugging system is as follows:
S10: the server receives a request for establishing the ssh connection by the maintenance terminal, and establishes the ssh connection with the maintenance terminal.
S20: and the server receives a remote debugging starting command sent by the maintenance terminal.
S30: and the server receives the inquiry using method instruction sent by the maintenance terminal.
S40: and the server receives an instruction for maintaining information of intelligent hardware equipment in the query system sent by the terminal.
S50: and the server receives a connection instruction which is sent by the maintenance terminal and used for connecting the designated intelligent hardware equipment.
S60: the server receives a debug instruction without the root permission sent by the maintenance terminal, and sends the debug instruction without the root permission to the appointed intelligent hardware equipment in a message form.
S70: and the server receives a disconnection instruction without root permission sent by the maintenance terminal so as to disconnect the designated intelligent hardware equipment.
It should be understood that, in steps S10-S70, remote debugging of the specified intelligent hardware device using the debug instruction without root authority may be implemented.
Further, after S60, S80-S91 are further included, which are configured to implement remote debugging of the specified intelligent hardware device by using the debug instruction with root authority.
S80: and when receiving a reverse port mapping instruction sent by the maintenance terminal, the server forwards the reverse port mapping instruction to the designated intelligent hardware equipment in the form of a message.
S90: and the designated intelligent hardware equipment executes the reverse port mapping instruction and maps the intranet port corresponding to the designated intelligent hardware equipment to the designated public network port.
S91: the server receives a debug instruction with root authority sent by the maintenance terminal, and sends the debug instruction with root authority to a designated public network port to a designated intelligent hardware device.
S92: and finishing the mapping relation between the intranet port corresponding to the appointed intelligent hardware equipment and the appointed public network port.
After the execution of S92 is completed, S60 can be executed, and remote debugging of the appointed intelligent hardware device can still be realized by utilizing the debug instruction without root permission.
The remote debugging system of this embodiment is used for executing the remote debugging method of this embodiment, and the implementation manners and beneficial effects related to this embodiment of the present application are applicable to this embodiment as well, and are not described herein.
It should be appreciated that embodiments of the present application relate to a server comprising a memory for storing a computer program and a processor that runs the computer program to enable the server to perform the remote debugging method according to embodiments of the present application.
It should be appreciated that embodiments of the present application relate to a readable storage medium storing a computer program which, when run on a processor, performs the remote debugging method described in the previous embodiments.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, of the flow diagrams and block diagrams in the figures, which illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules or units in various embodiments of the invention may be integrated together to form a single part, or the modules may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a smart phone, a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing is merely illustrative of the present invention, and the present invention is not limited thereto, and any person skilled in the art will readily recognize that variations or substitutions are within the scope of the present invention.

Claims (8)

1. A method of remote debugging, the method comprising:
when a remote debugging starting command is received, connecting intelligent hardware equipment to be debugged;
When a reverse port mapping instruction is received, forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form;
Receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port;
receiving an ssh connection request connected with the appointed public network port to obtain root permission for debugging the intelligent hardware equipment to be debugged through the appointed public network port;
When a debugging instruction is received, the debugging instruction is sent to the intelligent hardware equipment to be debugged through the designated public network port, wherein the debugging instruction comprises a debugging instruction with root authority and/or a debugging instruction without root authority;
receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction;
after the intelligent hardware equipment to be debugged is connected, the method further comprises the following steps:
when a debug instruction without root permission is received, forwarding the debug instruction without root permission to the intelligent hardware equipment to be debugged in a message form;
And receiving a debugging result after the intelligent hardware equipment to be debugged executes the debugging instruction without the root permission.
2. The remote debugging method of claim 1, further comprising:
Monitoring all intelligent hardware devices accessed in real time;
and receiving the device information and the corresponding state information uploaded by all intelligent hardware devices.
3. A remote debugging method according to any one of claims 1 or 2, wherein the message is an MQTT message.
4. A remote debugging device, the device comprising:
the hardware equipment connection module is used for connecting intelligent hardware equipment to be debugged when a remote debugging starting command is received;
the reverse port mapping module is used for forwarding the reverse port mapping instruction to the intelligent hardware equipment to be debugged in a message form when receiving the reverse port mapping instruction;
the return result receiving module is used for receiving a return result after the intelligent hardware equipment to be debugged executes the reverse port mapping instruction, wherein the return result comprises a mapping result of an intranet port corresponding to the intelligent hardware equipment to be debugged to a designated public network port;
A connection request receiving module, configured to receive a ssh connection request for connecting the designated public network port, so as to obtain root permission for debugging the intelligent hardware device to be debugged through the designated public network port;
The reverse port mapping module is further configured to send a debug instruction to the intelligent hardware device to be debugged through the designated public network port when the debug instruction is received, where the debug instruction includes a debug instruction with root authority and/or a debug instruction without root authority;
the return result receiving module is further configured to receive a debug result after the intelligent hardware device to be debugged executes the debug instruction;
the reverse port mapping module is further configured to forward the debug instruction without root authority to the intelligent hardware device to be debugged in a message form when the debug instruction without root authority is received;
the return result receiving module is further configured to receive a debug result after the intelligent hardware device to be debugged executes the debug instruction without the root permission.
5. A server comprising a memory for storing a computer program and a processor that runs the computer program to enable the server to perform the remote debugging method of any of claims 1 or 2.
6. A readable storage medium, characterized in that it stores a computer program which, when run on a processor, performs the remote debugging method of any of claims 1 or 2.
7. A remote debugging system comprising the server of claim 5 and an intelligent hardware device, the server and intelligent hardware device being connected via a TCP protocol.
8. The remote debugging system of claim 7, further comprising a maintenance terminal, the maintenance terminal and the server being connected by an SSH protocol, the maintenance terminal being configured to remotely debug the intelligent hardware device by a maintenance person through the server.
CN202010704223.1A 2020-07-21 2020-07-21 Remote debugging method, device, server, readable storage medium and system Active CN111831499B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010704223.1A CN111831499B (en) 2020-07-21 2020-07-21 Remote debugging method, device, server, readable storage medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010704223.1A CN111831499B (en) 2020-07-21 2020-07-21 Remote debugging method, device, server, readable storage medium and system

Publications (2)

Publication Number Publication Date
CN111831499A CN111831499A (en) 2020-10-27
CN111831499B true CN111831499B (en) 2024-04-23

Family

ID=72923795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010704223.1A Active CN111831499B (en) 2020-07-21 2020-07-21 Remote debugging method, device, server, readable storage medium and system

Country Status (1)

Country Link
CN (1) CN111831499B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565458B (en) * 2020-12-25 2021-11-16 北京安华金和科技有限公司 Platform remote control method and device, storage medium and electronic equipment
CN113347044B (en) * 2021-06-28 2022-11-29 积成电子股份有限公司 Method and system for remotely maintaining STM32 equipment based on LwIP protocol stack
CN114286054B (en) * 2021-12-27 2023-10-27 苏州万店掌网络科技有限公司 Remote debugging method, system, equipment and storage medium for network camera
CN115314541A (en) * 2022-10-12 2022-11-08 阿里巴巴(中国)有限公司 Remote debugging method, communication system, electronic device, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207774A (en) * 2014-05-30 2015-12-30 北京奇虎科技有限公司 Key negotiation method and device of verification information
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
CN106941519A (en) * 2017-03-03 2017-07-11 上海亿位信息技术有限公司 Device and implementation method that a kind of cloud platform Based Intelligent Control media are delivered
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN111277872A (en) * 2020-02-11 2020-06-12 深圳康佳电子科技有限公司 Smart television visual remote debugging method, system and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7299304B2 (en) * 2001-11-20 2007-11-20 Intel Corporation Method and architecture to support interaction between a host computer and remote devices
US20170270157A1 (en) * 2016-03-21 2017-09-21 Virtual Network Element, Inc. TCP/IP Network Automation and Orchestration Tools

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105207774A (en) * 2014-05-30 2015-12-30 北京奇虎科技有限公司 Key negotiation method and device of verification information
CN106412639A (en) * 2016-10-14 2017-02-15 深圳Tcl数字技术有限公司 Smart television remote debugging method and smart television remote debugging system
CN106941519A (en) * 2017-03-03 2017-07-11 上海亿位信息技术有限公司 Device and implementation method that a kind of cloud platform Based Intelligent Control media are delivered
CN107040777A (en) * 2017-06-08 2017-08-11 深圳市创维软件有限公司 A kind of remote debugging method, set top box and server
CN111277872A (en) * 2020-02-11 2020-06-12 深圳康佳电子科技有限公司 Smart television visual remote debugging method, system and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于VPN技术的工业设备远程监控;陈县;夏挺;郭正平;徐亚平;;电子世界(第03期);106-107 *

Also Published As

Publication number Publication date
CN111831499A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN111831499B (en) Remote debugging method, device, server, readable storage medium and system
US8650277B2 (en) Method, system, and computer readable medium for gathering usage statistics
US20070260721A1 (en) Physical server discovery and correlation
US20080301143A1 (en) Automatic Update System and Method for Using a Meta Mib
CN110166547B (en) Terminal remote access control method
CN104243589A (en) Operation service platform system and method based on Big Dipper RDSS/RNSS
EP3579501A1 (en) Message transmission method and device in cluster file system
KR100489849B1 (en) Resource management system and resource management method
CN112804202A (en) Multi-internetwork data security interaction method and device, server and storage medium
JP2008071197A (en) Device information acquisition method for acquiring information from device by snmp message, and information processor
CN105119772B (en) IPMI function test method for C/S framework
JP4673532B2 (en) Comprehensive alignment process in a multi-manager environment
CN112039749B (en) Node js-based Internet of things equipment management method, system and storage medium
KR100484492B1 (en) Network management system for managing of state and problem in router system and method thereof
CN113873041A (en) Message transmission method, device, network equipment and computer readable storage medium
US7007094B1 (en) Object oriented communications system over the internet
CN111858433A (en) SSH (secure Shell) serial port redirection-based method, system, equipment and medium
CN112583932A (en) Service processing method, device and network architecture
US20030163556A1 (en) Management apparatus, interconnecting device, communication system, program and management method
KR100671789B1 (en) Method for Synchronizing and Transmitting Data Between Distributed Spatial Data and System therefor
KR100198963B1 (en) Initial management object data sharing method between communication management network agent system and manager system
KR100333553B1 (en) Method for remotely maintaining and administrating of switching systems
KR102618291B1 (en) Client asset management system and client asset management method
CN101964726B (en) SNMP-based reliable data transmission method
CN113992732B (en) Terminal management control method, device, server and storage medium

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