CN107800791B - Debugging method and device - Google Patents

Debugging method and device Download PDF

Info

Publication number
CN107800791B
CN107800791B CN201711001479.0A CN201711001479A CN107800791B CN 107800791 B CN107800791 B CN 107800791B CN 201711001479 A CN201711001479 A CN 201711001479A CN 107800791 B CN107800791 B CN 107800791B
Authority
CN
China
Prior art keywords
debugging
network
request
equipment
port number
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
CN201711001479.0A
Other languages
Chinese (zh)
Other versions
CN107800791A (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.)
Hisense Co Ltd
Original Assignee
Hisense 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 Hisense Co Ltd filed Critical Hisense Co Ltd
Priority to CN201711001479.0A priority Critical patent/CN107800791B/en
Publication of CN107800791A publication Critical patent/CN107800791A/en
Application granted granted Critical
Publication of CN107800791B publication Critical patent/CN107800791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • 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

Abstract

The invention discloses a debugging method and equipment, which are used for solving the problems that in the debugging process in the prior art, the debugging equipment cannot be directly debugged by being connected to an intranet, cannot be timely solved and the problem processing efficiency is reduced. In the embodiment of the invention, when the network side equipment determines that the debugging equipment needs to be debugged, the network side equipment sends a debugging request to the relay equipment, and after receiving the debugging request, the relay equipment is connected with the external network debugging server corresponding to the external network port number according to the debugging request and is connected with the internal network debugging server according to the preset internal network address and the internal network port number, so that the relay equipment can forward debugging information to achieve the debugging effect; according to the embodiment of the invention, the relay equipment is additionally arranged between the debugging equipment and the network side equipment, and the relay equipment forwards the debugging information between the outer network debugging server and the inner network debugging server, so that the instruction operation on the inner network gateway is realized, the debugging equipment is directly debugged, the problem is solved in time, and the problem processing efficiency is improved.

Description

Debugging method and device
Technical Field
The present invention relates to the field of wireless communications technologies, and in particular, to a method and an apparatus for performing debugging.
Background
Along with the development of the technology and the improvement of the requirements of human beings on living quality, more and more products are intelligentized, and from wearing electronic products to big and small household appliances at home, people can control the electronic products through the mobile terminal. Currently, these smart devices can be operated and controlled independently through their own APPs, and also can be operated and controlled independently or in conjunction by being integrated into a multi-protocol and function-integrated device like a smart gateway.
Taking the scene of the smart home as an example, the smart home is embodied in an internet-of-things manner under the influence of the internet. The intelligent home connects various devices (such as audio and video devices, a security system, a digital cinema system, network household appliances and the like) in the home together through the internet of things technology, and provides multiple control functions and means.
The intelligent gateway is a central Device of an intelligent home, and a user can easily control electric appliances at home by using terminals such as a mobile phone, a PAD (Portable Android Device) and the like. The intelligent gateway is a device integrating multiple protocols and functions, the protocol environment and the device combination in which the intelligent gateway is located are an infinite set, devices (such as a television, an air conditioner and the like) different from a single protocol are a finite set, and the problems of the single protocol device after internal testing is finished are fewer; however, many problems still occur after the internal test of the multi-protocol and function integrated devices such as the intelligent gateway is completed and brought online, so that the debugging workload of the multi-protocol and function integrated devices such as the intelligent gateway is more than that of a single protocol device.
The debugging equipment uses a miniature embedded operating system, is deployed behind a router, or is connected with the router through Wifi or is directly connected with the router through a network cable, and has no real IP (Internet Protocol) address behind an intranet, so that technical personnel cannot be remotely and actively connected to the debugging equipment in the intranet for debugging. Therefore, when problems occur in the commissioning equipment, technicians must arrive at the site to perform the commissioning. When the debugging equipment has problems, the problems cannot be solved in time; it also requires the technician to spend time going and going between the company and the site, greatly reducing the problem-handling efficiency and increasing the workload of the technician.
In summary, in the prior art, in the process of debugging the debugging device, the debugging device cannot be directly debugged by being connected to the intranet, but technical personnel is required to solve the problem on site, so that the problem cannot be solved in time, and the problem processing efficiency is reduced.
Disclosure of Invention
The invention provides a debugging method and equipment, which are used for solving the problems that in the debugging process in the prior art, the debugging equipment cannot be directly debugged by being connected to an intranet, cannot be timely solved and the problem processing efficiency is reduced.
The embodiment of the invention provides a debugging method, which comprises the following steps:
the relay equipment receives a debugging request from network side equipment;
the relay equipment establishes connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request, and establishes connection with an intranet debugging server in the debugging equipment according to a preset intranet address and an intranet port number;
and the relay equipment forwards debugging information between the outer network debugging server and the inner network debugging server.
The embodiment of the invention provides another debugging method, which comprises the following steps:
the network side equipment determines that debugging equipment needs to be debugged;
the network side equipment sends a debugging request containing an outer network address and an outer network port number to the relay equipment, so that the relay equipment establishes connection with a corresponding outer network debugging server according to the outer network address and the outer network port number in the debugging request, and establishes connection with an inner network debugging server in the debugging equipment according to a preset inner network address and an inner network port number.
An embodiment of the present invention provides a device for performing debugging, where the device includes:
at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
receiving a debugging request from network side equipment;
establishing connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request, and establishing connection with an intranet debugging server in debugging equipment according to a preset intranet address and an intranet port number;
and forwarding the debugging information between the outer network debugging server and the inner network debugging server.
An embodiment of the present invention provides a device for performing debugging, where the device includes:
at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
determining that debugging equipment needs to be debugged;
and sending a debugging request containing an external network address and an external network port number to the relay equipment so that the relay equipment establishes connection with a corresponding external network debugging server according to the external network address and the external network port number in the debugging request, and establishes connection with an internal network debugging server in the debugging equipment according to a preset internal network address and an internal network port number.
An embodiment of the present invention provides a device for performing debugging, where the device includes:
the device comprises a receiving module, a debugging module and a debugging module, wherein the receiving module is used for receiving a debugging request from network side equipment;
the connection module is used for establishing connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request and establishing connection with an intranet debugging server in the debugging equipment according to a preset intranet address and an intranet port number;
and the forwarding module is used for forwarding the debugging information between the outer network debugging server and the inner network debugging server.
An embodiment of the present invention provides a device for performing debugging, where the device includes:
the determining module is used for determining that debugging equipment needs to be debugged;
and the sending module is used for sending a debugging request containing an external network address and an external network port number to the relay equipment so that the relay equipment establishes connection with a corresponding external network debugging server according to the external network address and the external network port number in the debugging request and establishes connection with an internal network debugging server in the debugging equipment according to a preset internal network address and an internal network port number.
An embodiment of the present invention provides a storage medium readable by a computing device, where the storage medium includes a program code, and when the program code runs on the computing device, the program code is configured to enable the computing device to perform the steps of the method for debugging a relay device in an embodiment of the present invention or perform the steps of the method for assisting a relay device in debugging by a network side device in an embodiment of the present invention.
In the embodiment of the invention, the network side equipment determines that the debugging equipment needs to be debugged, sends a debugging request containing an external network address and an external network port number to the relay equipment, the relay equipment receives the debugging request of the network side equipment, is connected with an external network debugging server corresponding to the external network port number according to the external network address in the debugging request, and is connected with an internal network debugging server in the debugging equipment according to the preset internal network address and the internal network port number, so that the relay equipment can forward debugging information between the external network debugging server and the internal network debugging server and achieve the debugging effect; in the embodiment of the invention, the relay equipment is operated between the debugging equipment and the network side equipment, and the relay equipment is connected with the outer network debugging server and the inner network debugging server and forwards the debugging information between the outer network debugging server and the inner network debugging server, so that various instruction operations are carried out on the inner network gateway, the debugging equipment can be directly debugged, the problem is solved in time, and the problem processing efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.
FIG. 1 is a diagram of a system architecture for debugging according to an embodiment of the present invention;
FIG. 2 is a block diagram of another system for debugging according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a principle of connection between a relay device and an extranet debugging server and an intranet debugging server in an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for determining a debug request by a relay device and a network side device through a request channel in an embodiment of the present invention;
fig. 5 is a flowchart illustrating a method for determining whether debugging information is required by a relay device in an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of determining an extranet debugging server in an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a first relay device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a first network-side device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a second relay device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a second network-side device according to an embodiment of the present invention;
FIG. 11 is a flowchart illustrating a method for debugging according to an embodiment of the present invention;
FIG. 12 is a flowchart illustrating another debugging method according to an embodiment of the present invention;
fig. 13 is a flowchart illustrating a complete method for debugging according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The system for debugging according to the embodiment of the present invention shown in fig. 1 includes: the system comprises a relay device 10, a network side device 20 and a debugging device 30;
the relay device 10 is configured to receive a debugging request from a network-side device; establishing connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request, and establishing connection with an intranet debugging server in debugging equipment according to a preset intranet address and an intranet port number; and forwarding the debugging information between the outer network debugging server and the inner network debugging server.
The network side device 20 is configured to determine that the debugging device needs to be debugged; and sending a debugging request containing an external network address and an external network port number to the relay equipment so that the relay equipment establishes connection with a corresponding external network debugging server according to the external network address and the external network port number in the debugging request, and establishes connection with an internal network debugging server in the debugging equipment according to a preset internal network address and an internal network port number.
In the embodiment of the invention, the network side equipment determines that the debugging equipment needs to be debugged, sends a debugging request containing an external network address and an external network port number to the relay equipment, the relay equipment receives the debugging request of the network side equipment, is connected with an external network debugging server corresponding to the external network port number according to the external network address in the debugging request, and is connected with an internal network debugging server in the debugging equipment according to the preset internal network address and the internal network port number, so that the relay equipment can forward debugging information between the external network debugging server and the internal network debugging server and achieve the debugging effect; in the embodiment of the invention, the relay equipment is operated between the debugging equipment and the network side equipment, and the relay equipment is connected with the outer network debugging server and the inner network debugging server and forwards the debugging information between the outer network debugging server and the inner network debugging server, so that various instruction operations are carried out on the inner network gateway, the debugging equipment can be directly debugged, the problem is solved in time, and the problem processing efficiency is improved.
Wherein the relay device 10 may also be located inside the commissioning device 30, as shown in fig. 2.
In a specific implementation process, the network-side device may be a device such as a cloud server.
It should be noted that the debugging device may be any device with an embedded operating system, which is placed in an intranet and has a right to connect to an extranet, and supports SSH (Secure Shell, Secure Shell protocol) debugging and/or Telnet (remote login) debugging, such as various intelligent devices including an intelligent gateway, an intelligent purifier, an intelligent sound box, an intelligent camera, an intelligent robot, and the like.
Wherein, the information in the debugging request includes but is not limited to the following part or all:
the device ID, the debug flag (0 is no requirement, 1 is required), the debug timestamp, the debug content description (e.g., debug reason, alarm trigger or user request for debug), the record save timestamp, etc.
The connection between the relay device and the extranet debugging server and the intranet debugging server is through a TCP (Transmission Control Protocol) channel.
In implementation, as shown in fig. 3, when a relay device receives a debugging request, two TCP connection channels are established, one is that the relay device is connected to a debugging server of an external network or a network-side device, and the other is that the relay device is connected to a debugging server of an internal network or a debugging device, and monitors data on the two TCP connection channels, and when data from the debugging device is found, the relay device forwards the data to the network-side device through the two TCP connection channels; when the relay device finds the data from the network side device, the data from the network side device is forwarded to the debugging device, so that a TCP connection channel from the debugging device to the network side device is established, the network side device and the debugging device transmit the data, and the network side device can control the device in the debugging device and debug the debugging device.
It should be noted that the connection between the relay device and the external network debugging server and the internal network debugging server is only illustrated by a TCP channel, and any connection method that can realize the connection between the relay device and the external network debugging server and the internal network debugging server can be applied to the present invention.
Specifically, in the embodiment of the present invention, when the relay device determines whether the network side device has a debugging request, the method may be performed in the following manner, which is described below:
in the first mode, a request channel is established between the relay device and the network side device for transmitting the debugging request.
Optionally, when the relay device receives a debugging request from a network side device, the relay device establishes a request channel with the network side device according to a preset request address and a preset request port number;
and the relay equipment receives a debugging request from network side equipment through the request channel.
In implementation, a request channel is established between the relay device and the network side device, and the request channel is used for receiving a debugging request from the network side. If the request channel exists, the relay equipment only needs to monitor one port on the gateway, and when a debugging requirement exists, the network side sends the debugging requirement to the relay equipment.
Specifically, when a debugging requirement exists, the debugging server of the external network sends a debugging request to the relay device, and the relay device monitors that the fixed port receives the debugging request and then determines the address and the port number of the debugging server, that is, the relay device receives the debugging request of the network side device. The implementation is shown in fig. 4:
step 400, the network side equipment determines a debugging request and sends the debugging request to the relay equipment through a request channel;
step 401, a request channel receives a debugging message and sends the debugging message to a relay device;
step 402, the relay device monitors the fixed port and receives a debugging message;
the debugging request at least comprises a debugging mark, a debugging server address and a port.
In implementation, the relay device and the network side device establish a request channel, and when a debugging request exists, the network side device sends the debugging request to the relay device, so that network bandwidth resources are saved, processing resources of the network side device are saved, and the network side device has higher safety and timeliness.
Optionally, before the network side device sends a debugging request including an external network address and an external network port number to the relay device, the network side device establishes a request channel with the relay device after receiving a connection establishment request sent by the relay device according to a preset request address and a preset request port number;
and when the network side equipment sends a debugging request containing an external network address and an external network port number to the relay equipment, the network side equipment sends the debugging request containing the external network address and the external network port number to the relay equipment through the request channel.
Specifically, the network side device establishes a request channel with the relay device after receiving a connection establishment request sent by the relay device according to a preset request address and a preset request port number, and sends a debugging request containing an external network address and an external network port number to the relay device through the request channel.
In implementation, a request channel is established between the network side equipment and the relay equipment for transmitting the debugging request, so that the debugging request can be timely sent to the relay equipment when the network side equipment receives the debugging request for determining debugging, data transmission through the request channel cannot cause data loss, and certain safety is achieved.
And in the second mode, the relay equipment periodically sends information whether the debugging request is needed to the network side equipment, and then judges whether the debugging request exists.
Optionally, before the relay device receives a debugging request from a network side device, the relay device periodically sends information on whether debugging is required to the corresponding network side device according to a preset request address and a preset request port number.
Specifically, the information to be debugged is stored in a database of the debugging requirement, the relay device reports the ID of the device according to a preset request address and a preset port number, and when a preset period is reached, the relay device sends information on whether debugging is required to the network side device, the information sent to be debugged also carries the ID of the device, and after the network side device receives the query debugging requirement, the network side device queries the database of the storage debugging requirement and determines whether there is a debugging requirement corresponding to the device ID.
The period may be a certain time set by the user according to the number of times of debugging, or may be a set fixed time.
For example, the number of times of debugging is relatively frequent, the setting can be manually modified according to the subjective consciousness of the user, and the set cycle time can be short, such as one request for 12 hours, one request for one day, and the like. The set fixed time can not be modified, and whether debugging is needed or not is inquired on time.
The network side equipment queries a database with storage requirements and mainly judges whether a debugging mark is 0 or 1 and whether debugging time is up, if the debugging requirement exists, the result is formed into a structure of { tag: debugging mark, ip: debugging server address, port: port number. }, and the structure is returned to the relay equipment, wherein the value of a field except the tag is empty when no requirement exists.
It should be noted that the above-mentioned return result structure may have other forms as long as the information received by the gateway at least includes the debug flag, the debug server address and the port.
And the information whether to be debugged is divided by the network side equipment according to the level of the abnormal information of the debugging equipment.
Specifically, three levels can be classified:
1) level 1, alarm information without debugging: if the equipment alarm triggered by smoke and water immersion is reported by debugging equipment, the information does not need to be debugged, and only the information needs to be pushed to a user;
2) level 2, warning information for prompting whether the user needs network side to assist debugging: if the fault code of the gateway reported by the debugging equipment or the intelligent equipment hung below the gateway is the problem which can not be solved by restarting, the fault information is sent to the user and simultaneously the user is inquired whether the user needs the network side equipment assistance information, and if the fault code is the fault problem which can be solved by restarting, the fault information is only sent to the user;
3) level 3, alarm information to be debugged: i.e. a debug request initiated actively by the debug device.
The relay device periodically sends information whether debugging is required to the corresponding network side device according to a preset request address and a preset request port number, and a specific implementation manner is as shown in fig. 5:
step 500, the relay equipment judges whether the request time is up according to the threshold value of the set request time;
step 501, the relay device sends a request to the network side to inquire whether information needing debugging exists;
step 502, the relay device receives a debugging request from a network side device.
If the request time does not reach, but the debugging requirement exists, the debugging requirement is stored in a database or other cache forms at the moment, and is issued when the next cycle requests the network side equipment.
In implementation, according to a preset request address and a preset port number, information whether debugging is needed or not is periodically sent to corresponding network side equipment, and whether debugging information between the external network debugging server and the internal network debugging server needs to be forwarded by the relay equipment is judged according to the received information whether debugging is needed or not, so that accurate debugging of a gateway needing to be debugged is ensured.
Optionally, when the network side device sends a debugging request including an external network address and an external network port number to the relay device, the network side device receives information whether the debugging is required, which is periodically sent by the relay device according to a preset request address and a preset request port number, and sends a debugging request including the external network address and the external network port number to the relay device after determining that the debugging device needs to be debugged and receiving the information whether the debugging is required.
Specifically, the network side device receives request information whether debugging is required or not, which is periodically sent by the relay device, determines that debugging is required, and sends a debugging request including an external network address and an external network port number to the relay device when the request information whether debugging is required or not, which is sent by the relay device, is received.
If the network side device determines that the debugging device needs debugging information, but does not receive the information which is sent by the relay device and whether the debugging device needs debugging or not, the information which is determined to need debugging is stored or cached, and the information is sent to the relay device when the network side device receives the information which is sent by the relay device and whether the debugging device needs debugging or not.
In implementation, after receiving information which is sent by the relay device and needs to be debugged, if the information needs to be debugged, the network-side device sends debugging requirements to the relay device, and after receiving a debugging request, the relay device can be connected with the extranet debugging server and the intranet debugging server, and first debugging information is transmitted between the extranet debugging server and the intranet debugging server, so that the network-side device can debug the debugging device when debugging requirements appear.
Optionally, after the network side device determines that the debugging device needs to be debugged, before sending a debugging request including an external network address and an external network port number to the relay device, the network side device selects one of the multiple external network debugging servers according to the performance parameters of the external network debugging server, and places the selected external network address and the selected external network port number of the external network debugging server in the debugging request.
Specifically, a plurality of extranet debugging servers are connected to the lower portion of the network-side device, and each extranet debugging server is connected to the relay device, so that data transmission is performed by connecting the relay device to the intranet debugging server, as shown in fig. 6.
In implementation, the network side device selects one of the external network debugging servers 50 with excellent performance according to the performance parameters of the external network debugging server 50, places the selected external network address and external network port number of the external network debugging server 50 in a debugging request, and uses the selected external network debugging server 50 and the internal network debugging server 40 to transmit debugging information when a debugging requirement exists, so as to achieve the purpose of debugging the debugging device.
The performance parameters of the extranet debugging server 50 include, but are not limited to, part or all of the following:
memory, network transmission performance, disk read speed, load.
There are many ways to select the extranet debug server 50 during implementation, which are exemplified below.
In the first mode, when a plurality of extranet debugging servers 50 connected to a network-side device are selected according to one of performance parameters in the extranet debugging servers 50, one extranet debugging server 50 which is more appropriate in the parameters during debugging is selected according to the determined parameters.
Wherein, during the selection, the parameter value with the highest or the lowest value in the same performance parameter can be selected; the threshold value may also be set according to the value of the parameter, and during the selection, the extranet debug server 50 corresponding to the parameter value higher than the threshold value may be selected, or the extranet debug server 50 corresponding to the parameter value lower than the threshold value may be selected.
Specifically, when the extranet debugging server 50 is selected according to the parameter values, if the determined parameter is better or more suitable for being used as the extranet debugging server 50, the extranet debugging server 50 with the determined performance parameter lower is selected to debug the debugging equipment; if the determined performance parameters are better suited for the extranet debug server 50 at a higher level, the extranet debug server 50 with the determined performance parameters at a higher level is selected to debug the debug device.
For example, the network transmission performance is selected as the determined performance parameter from the performance parameters of the external network debug server 50, and at this time, the external network debug server 50 connected to the network side device is selected according to the excellence of the network transmission performance, where the higher the network transmission performance parameter is, the better the transmission performance is, the network side device selects the external network debug server 50 with the higher network transmission performance parameter to debug the debug device; when selecting a load as a determined performance parameter from the performance parameters of the extranet debugging server 50, selecting the extranet debugging server 50 connected under the network side device according to the load, wherein the lower the load is, the better the performance of the extranet debugging server 50 is, and the network side device selects the extranet debugging server 50 with the lower load to debug the debugging device.
The principle of setting the threshold according to the value of the parameter and selecting the extranet debugging server 50 according to the set threshold is the same as above, and will not be described here again.
The threshold may be set according to values of the same parameter in a plurality of extranet debugging servers 50 connected to the network side device.
For example, the parameters of the network transmission performance in the plurality of extranet debugging servers 50 are respectively: 85. 80, 70, 60, 50, the threshold value may be set to 70.
In the second mode, when a plurality of extranet debugging servers 50 connected to the network-side device are selected according to a plurality of performance parameters in the extranet debugging servers 50, all the performance parameters are comprehensively evaluated, and a suitable extranet debugging server 50 is selected according to the result of the comprehensive evaluation.
When the appropriate extranet debugging server 50 is selected according to the comprehensive evaluation result, the comprehensive evaluation result may be selected to be higher or lower, and a corresponding threshold may be set according to the comprehensive evaluation result, and the threshold higher or lower than the threshold may be selected.
The principle of the specific implementation is similar to that of the first implementation and will not be illustrated here.
The comprehensive evaluation of all performance parameters is to synthesize all parameters in the same extranet debugging server 50 together for summary evaluation.
In implementation, one of the plurality of external network debugging servers is selected according to the performance parameters of the external network debugging server, so that the external network debugging server has excellent performance, and meanwhile, the speed and the safety of transmitted debugging information, namely data cannot be lost.
As shown in fig. 7, a relay device according to a first embodiment of the present invention includes:
at least one processing unit 700 and at least one memory unit 701, wherein the memory unit 701 stores program code which, when executed by the processing unit 700, causes the processing unit 700 to perform the following:
receiving a debugging request from network side equipment;
establishing connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request, and establishing connection with an intranet debugging server in debugging equipment according to a preset intranet address and an intranet port number;
and forwarding the debugging information between the outer network debugging server and the inner network debugging server.
Optionally, the processing unit 700 is specifically configured to:
establishing a request channel with the network side equipment according to a preset request address and a preset request port number;
and receiving a debugging request from the network side equipment through the request.
Optionally, the processing unit 700 is further configured to:
and periodically sending information whether debugging is needed or not to the corresponding network side equipment according to the preset request address and the preset request port number.
As shown in fig. 8, a first network-side device according to an embodiment of the present invention includes:
at least one processing unit 800 and at least one memory unit 801, wherein the memory unit 801 stores program code that, when executed by the processing unit 800, causes the processing unit 800 to perform the following:
determining that debugging equipment needs to be debugged;
and sending a debugging request containing an external network address and an external network port number to the relay equipment so that the relay equipment establishes connection with a corresponding external network debugging server according to the external network address and the external network port number in the debugging request, and establishes connection with an internal network debugging server in the debugging equipment according to a preset internal network address and an internal network port number.
Optionally, the processing unit 800 is specifically configured to:
after receiving a connection establishment request sent by the relay equipment according to a preset request address and a request port number, establishing a request channel with the relay equipment;
and sending a debugging request containing an external network address and an external network port number to the relay equipment through the request channel.
Optionally, the processing unit 800 is specifically configured to:
and receiving information whether debugging is needed or not, which is periodically sent by the relay equipment according to a preset request address and a preset request port number, and sending a debugging request containing an external network address and an external network port number to the relay equipment after determining that the debugging equipment needs to be debugged and then receiving the information whether debugging is needed or not.
Optionally, the processing unit 800 is further configured to:
and selecting one of the plurality of external network debugging servers according to the performance parameters of the external network debugging servers, and placing the selected external network address and the external network port number of the external network debugging server in the debugging request.
As shown in fig. 9, a relay device according to a second embodiment of the present invention includes:
a receiving module 900, configured to receive a debugging request from a network-side device;
a connection module 901, configured to establish a connection with a corresponding extranet debugging server according to the extranet address and extranet port number in the debugging request, and establish a connection with an intranet debugging server in the debugging device according to a preset intranet address and intranet port number;
a forwarding module 902, configured to forward the debugging information between the extranet debugging server and the intranet debugging server.
Optionally, the receiving module 900 is specifically configured to:
establishing a request channel with the network side equipment according to a preset request address and a preset request port number;
and receiving a debugging request from the network side equipment through the request.
Optionally, the receiving module 900 is further configured to:
and periodically sending information whether debugging is needed or not to the corresponding network side equipment according to the preset request address and the preset request port number.
As shown in fig. 10, a second network-side device according to the embodiment of the present invention includes:
a determining module 1000, configured to determine that debugging equipment needs to be debugged;
the sending module 1001 is configured to send a debugging request including an extranet address and an extranet port number to the relay device, so that the relay device establishes a connection with a corresponding extranet debugging server according to the extranet address and the extranet port number in the debugging request, and establishes a connection with an intranet debugging server in the debugging device according to a preset intranet address and an intranet port number.
Optionally, the sending module 1001 is further configured to:
after receiving a connection establishment request sent by the relay equipment according to a preset request address and a request port number, establishing a request channel with the relay equipment;
the sending module 1001 is specifically configured to:
and sending a debugging request containing an external network address and an external network port number to the relay equipment through the request channel.
Optionally, the sending module 1001 is specifically configured to:
and receiving information whether debugging is needed or not, which is periodically sent by the relay equipment according to a preset request address and a preset request port number, and sending a debugging request containing an external network address and an external network port number to the relay equipment after determining that the debugging equipment needs to be debugged and then receiving the information whether debugging is needed or not.
Optionally, the determining module 1000 is further configured to:
and selecting one of the plurality of external network debugging servers according to the performance parameters of the external network debugging servers, and placing the selected external network address and the external network port number of the external network debugging server in the debugging request.
In some possible implementations, various aspects of the processing of the terminal path provided in the embodiments of the present invention may also be implemented in the form of a program product including program code for causing a computer device to perform the steps in the method for processing the terminal path according to various exemplary implementations of the present invention described in this specification when the program code runs on the computer 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.
A program product for data forwarding control according to an embodiment of the present invention may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a server device. However, the program product of the present invention is not limited thereto, and in this document, the readable storage medium may be any tangible medium containing or storing the program, which can be used by or in connection with an information transmission, apparatus, or device.
A readable signal 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 any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the periodic network action system, apparatus, or device.
Program code embodied on a readable 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 server. 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.
The method for debugging in the embodiment of the invention also provides a readable storage medium of the computing equipment, namely, the content is not lost after power failure. The storage medium stores therein a software program comprising program code which, when executed on a computing device, when read and executed by one or more processors, implements any of the above aspects of embodiments of the present invention for commissioning a relay device.
The method for debugging in the embodiment of the invention also provides a readable storage medium of the computing equipment, namely, the content is not lost after power failure. The storage medium stores therein a software program, which includes program code, and when the program code runs on a computing device, the software program is read and executed by one or more processors, so as to implement any of the above schemes of the embodiments of the present invention in which a network side device assists a relay device in debugging.
Based on the same inventive concept, the embodiment of the present invention further provides a method for debugging, and since the device corresponding to the method is the method corresponding to the device for debugging in the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the device, the method can be implemented by referring to the device, and repeated details are not repeated.
As shown in fig. 11, a method for debugging according to an embodiment of the present invention includes the following steps:
1100, a relay device receives a debugging request from a network side device;
step 1101, the relay device establishes connection with a corresponding extranet debugging server according to the extranet address and extranet port number in the debugging request, and establishes connection with an intranet debugging server in the debugging device according to a preset intranet address and intranet port number;
step 1102, the relay device forwards the debugging information between the extranet debugging server and the intranet debugging server.
Optionally, the receiving, by the relay device, a debugging request from a network side device includes:
the relay equipment establishes a request channel with the network side equipment according to a preset request address and a preset request port number;
the relay device receives the debugging request from the network side device through the request.
Optionally, before the relay device receives the debugging request from the network side device, the method further includes:
and the relay equipment periodically sends information whether debugging is needed to the corresponding network side equipment according to the preset request address and the preset request port number.
Based on the same inventive concept, the embodiment of the present invention further provides a method for debugging, and since the device corresponding to the method is the method corresponding to the device for debugging in the embodiment of the present invention, and the principle of the method for solving the problem is similar to that of the device, the method can be implemented by referring to the device, and repeated details are not repeated.
As shown in fig. 12, another debugging method according to the embodiment of the present invention specifically includes the following steps:
step 1200, a network side device determines that a debugging device needs to be debugged;
step 1201, the network side device sends a debugging request containing an external network address and an external network port number to the relay device, so that the relay device establishes connection with a corresponding external network debugging server according to the external network address and the external network port number in the debugging request, and establishes connection with an internal network debugging server in the debugging device according to a preset internal network address and an internal network port number.
Optionally, before the network side device sends the debug request including the external network address and the external network port number to the relay device, the method further includes:
after receiving a connection establishment request sent by the relay equipment according to a preset request address and a request port number, the network side equipment establishes a request channel with the relay equipment;
the network side device sends a debugging request containing an external network address and an external network port number to the relay device, and the method comprises the following steps:
and the network side equipment sends a debugging request containing an external network address and an external network port number to the relay equipment through the request channel.
Optionally, the sending, by the network side device, the debug request including the external network address and the external network port number to the relay device includes:
the network side equipment receives the information whether debugging is needed or not which is periodically sent by the relay equipment according to the preset request address and the preset request port number, and sends a debugging request containing an external network address and an external network port number to the relay equipment after the information whether debugging is needed or not is received after the debugging equipment is determined to be needed.
Optionally, after the network side device determines that the debugging device needs to be debugged, before sending a debugging request including an external network address and an external network port number to the relay device, the method further includes:
and the network side equipment selects one of the external network debugging servers according to the performance parameters of the external network debugging servers, and places the external network address and the external network port number of the selected external network debugging server in a debugging request.
As shown in fig. 13, a complete method for debugging according to an embodiment of the present invention includes the following steps:
step 1300, the relay device and the network side device establish a request channel;
step 1301, network side equipment determines that debugging equipment needs to be debugged;
step 1302, the network side device selects an extranet debugging server;
step 1303, the network side device sends a debugging request containing the external network address and the external network port number to the relay device;
step 1304, the relay device receives a debugging request from the network side device through the request channel;
step 1305, the relay device establishes connection with an external network debugging server in the corresponding network side device according to the external network address and the external network port number in the debugging request;
step 1306, establishing connection with an intranet debugging server in debugging equipment according to a preset intranet address and an intranet port number;
step 1307, the relay equipment forwards the debugging information between the external network debugging server and the internal network debugging server;
step 1308, the network side device debugs the debugging device through the debugging information forwarded by the relay device.
When the network side device debugs the gateway through the debugging information forwarded by the relay device, the adopted debugging method includes, but is not limited to, the following part or all of:
SSH (Secure Shell, Secure Shell protocol) debugging, Telnet (Telnet) debugging, and the like.
The complete scheme that the external network debugging server of the network side equipment debugs the debugging equipment is similar to the scheme after the relay equipment periodically sends the information whether the debugging request is needed to the network side equipment and further judges whether the debugging request exists, and explanation is not repeated here.
The present application is described above with reference to block diagrams and/or flowchart illustrations of methods, apparatus (systems) and/or computer program products according to embodiments of the application. It will be understood that one block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, and/or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer and/or other programmable data processing apparatus, create means for implementing the functions/acts specified in the block diagrams and/or flowchart block or blocks.
Accordingly, the subject application may also be embodied in hardware and/or in software (including firmware, resident software, micro-code, etc.). Furthermore, the present application may take the form of a computer program product on a computer-usable or computer-readable storage medium having computer-usable or computer-readable program code embodied in the medium for use by or in connection with an instruction execution system. In the context of this application, a computer-usable or computer-readable medium may be any medium that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (9)

1. A method of performing debugging, the method comprising:
the relay equipment receives a debugging request from network side equipment;
the relay equipment establishes connection with a corresponding outer network debugging server through a first TCP channel according to an outer network address and an outer network port number in the debugging request, and establishes connection with an inner network debugging server in the debugging equipment through a second TCP channel according to a preset inner network address and an inner network port number, wherein the outer network address and the outer network port number correspond to one outer network debugging server selected from a plurality of outer network debugging servers by the network side equipment according to performance parameters of the outer network debugging servers;
the relay device monitors the first TCP channel and the second TCP channel, and forwards monitored debugging information between the outer network debugging server and the inner network debugging server.
2. The method of claim 1, wherein the relay device receives a commissioning request from a network-side device, comprising:
the relay equipment establishes a request channel with the network side equipment according to a preset request address and a preset request port number;
and the relay equipment receives a debugging request from network side equipment through the request channel.
3. The method of claim 1, wherein before the relay device receives the commissioning request from the network-side device, further comprising:
and the relay equipment periodically sends information whether debugging is needed to the corresponding network side equipment according to the preset request address and the preset request port number.
4. A method of performing debugging, the method comprising:
the network side equipment determines that debugging equipment needs to be debugged;
the network side equipment sends a debugging request containing an external network address and an external network port number to the relay equipment, so that the relay equipment establishes connection with a corresponding external network debugging server through a first TCP channel according to the external network address and the external network port number in the debugging request, establishes connection with an internal network debugging server in the debugging equipment through a second TCP channel according to a preset internal network address and an internal network port number, and forwards debugging information obtained by monitoring the first TCP channel and the second TCP channel between the external network debugging server and the internal network debugging server;
after the network side device determines that the debugging device needs to be debugged, before sending a debugging request containing an external network address and an external network port number to the relay device, the method further includes:
and the network side equipment selects one of the external network debugging servers according to the performance parameters of the external network debugging servers, and places the external network address and the external network port number of the selected external network debugging server in a debugging request.
5. The method of claim 4, wherein before the network-side device sends the debug request including the extranet address and the extranet port number to the relay device, the method further comprises:
after receiving a connection establishment request sent by the relay equipment according to a preset request address and a request port number, the network side equipment establishes a request channel with the relay equipment;
the network side device sends a debugging request containing an external network address and an external network port number to the relay device, and the method comprises the following steps:
and the network side equipment sends a debugging request containing an external network address and an external network port number to the relay equipment through the request channel.
6. The method of claim 4, wherein the network side device sending a debug request containing an extranet address and an extranet port number to a relay device comprises:
the network side equipment receives the information whether the relay equipment needs to be debugged or not according to the preset request address and the preset request port number, and after the fact that whether the information whether the debugging equipment needs to be debugged or not is determined to be needed, the network side equipment sends a debugging request containing the external network address and the external network port number to the relay equipment.
7. An apparatus for commissioning, the apparatus comprising:
at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
receiving a debugging request from network side equipment;
establishing connection with a corresponding outer network debugging server through a first TCP channel according to an outer network address and an outer network port number in the debugging request, and establishing connection with an inner network debugging server in debugging equipment through a second TCP channel according to a preset inner network address and an inner network port number, wherein the outer network address and the outer network port number correspond to one outer network debugging server selected from a plurality of outer network debugging servers by the network side equipment according to performance parameters of the outer network debugging servers;
and monitoring the first TCP channel and the second TCP channel, and forwarding the monitored debugging information between the outer network debugging server and the inner network debugging server.
8. An apparatus for commissioning, the apparatus comprising:
at least one processing unit and at least one memory unit, wherein the memory unit stores program code that, when executed by the processing unit, causes the processing unit to perform the following:
determining that debugging equipment needs to be debugged; sending a debugging request containing an external network address and an external network port number to relay equipment, so that the relay equipment establishes connection with a corresponding external network debugging server through a first TCP channel according to the external network address and the external network port number in the debugging request, establishes connection with an internal network debugging server in the debugging equipment through a second TCP channel according to a preset internal network address and an internal network port number, and forwards debugging information obtained by monitoring the first TCP channel and the second TCP channel between the external network debugging server and the internal network debugging server;
after determining that the debugging device needs to be debugged, and before sending a debugging request including an external network address and an external network port number to the relay device, the processor is further configured to:
and selecting one of the plurality of external network debugging servers according to the performance parameters of the external network debugging servers, and placing the selected external network address and the external network port number of the external network debugging server in the debugging request.
9. A computer-readable storage medium comprising program code means for causing a computing device to carry out the steps of the method as claimed in any one of claims 1 to 3 or the steps of the method as claimed in any one of claims 4 to 6 when said program code means is run on the computing device.
CN201711001479.0A 2017-10-24 2017-10-24 Debugging method and device Active CN107800791B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711001479.0A CN107800791B (en) 2017-10-24 2017-10-24 Debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711001479.0A CN107800791B (en) 2017-10-24 2017-10-24 Debugging method and device

Publications (2)

Publication Number Publication Date
CN107800791A CN107800791A (en) 2018-03-13
CN107800791B true CN107800791B (en) 2021-08-17

Family

ID=61533660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711001479.0A Active CN107800791B (en) 2017-10-24 2017-10-24 Debugging method and device

Country Status (1)

Country Link
CN (1) CN107800791B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB201905835D0 (en) * 2019-04-26 2019-06-12 Ibm On-premise and off-premise debugging
CN110311970B (en) * 2019-06-27 2022-05-10 乐安县云智易联科技有限公司 Remote debugging system and method thereof
CN110457171A (en) * 2019-08-08 2019-11-15 浙江大华技术股份有限公司 A kind of embedded apparatus debugging method and system
CN110661691A (en) * 2019-10-21 2020-01-07 山东浪潮人工智能研究院有限公司 Remote debugging system and method for embedded Linux equipment
CN110827969B (en) * 2019-11-01 2022-11-15 江苏赛诺格兰医疗科技有限公司 Equipment and method for remotely debugging PET-CT system
CN111309543A (en) * 2020-02-11 2020-06-19 广州视源电子科技股份有限公司 Debugging method and device, electronic equipment and storage medium
CN112235417B (en) * 2020-11-09 2022-06-10 北京百度网讯科技有限公司 Method and device for sending debugging instruction
CN113709163A (en) * 2021-08-30 2021-11-26 高维亮 Method and system for realizing remote operation of computer based on wireless terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856361A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Method and system for realizing remote debugging
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6782386B1 (en) * 1998-11-09 2004-08-24 Unisys Corporation Method and apparatus for remotely debugging applications via a user terminal
CN104635705A (en) * 2015-02-04 2015-05-20 西安交通大学 Method for remotely programming and debugging industrial field equipment
CN105141484B (en) * 2015-10-12 2017-03-22 天津市普迅电力信息技术有限公司 Android equipment remote debugging method based on cloud server

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856361A (en) * 2012-11-29 2014-06-11 腾讯科技(深圳)有限公司 Method and system for realizing remote debugging
CN105703947A (en) * 2016-01-18 2016-06-22 深圳创维数字技术有限公司 Method for remotely debugging router, server, and router

Also Published As

Publication number Publication date
CN107800791A (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN107800791B (en) Debugging method and device
CN105871671B (en) Method and device for controlling and acquiring uploading data of intelligent household equipment
CN109525540B (en) Intelligent device binding method and device
US9774642B2 (en) Method and device for pushing multimedia resource and display terminal
CN108989136B (en) Business end-to-end performance monitoring method and device
CN104113458A (en) Mobile terminal and intelligent household appliance interconnecting method and device
CN105262979A (en) Method and device for multi-channel video playback
CN109873728A (en) A kind of terminal test method, device and storage medium
CN103096038B (en) The method for supervising of the fusion video monitoring system of multi-protocol video watch-dog access
CN103439934A (en) Intelligent electrical appliance control method, server and system
CN106992893A (en) The management method and device of router
CN107846609B (en) Real-time transmission method, device and system for control room data
CN107231275B (en) Method for connection configuration of user equipment and household equipment
CN106130787B (en) Service processing system based on software defined network
CN105721231B (en) A kind of quality of service perception detection method and device
US11196686B2 (en) Chatbot context setting using packet capture
CN110087281A (en) The method, apparatus and system of network insertion
CN113596089B (en) Distribution network binding method and device of equipment, storage medium and electronic device
CN109831335A (en) A kind of data monitoring method, monitor terminal, storage medium and data monitoring system
CN104270431A (en) Method and device for concurrency control
CN107360065B (en) Information pushing method and device
CN111781848A (en) Server connection method, device and system based on intelligent household equipment
KR101627796B1 (en) Device Indicator Data Transmitting Method for Network based AV System
KR101760630B1 (en) Method and apparatus for processing interactions between devices
CN114051133B (en) Operation detection method, device, medium and equipment of video monitoring terminal

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