CN110661691A - Remote debugging system and method for embedded Linux equipment - Google Patents

Remote debugging system and method for embedded Linux equipment Download PDF

Info

Publication number
CN110661691A
CN110661691A CN201910998256.9A CN201910998256A CN110661691A CN 110661691 A CN110661691 A CN 110661691A CN 201910998256 A CN201910998256 A CN 201910998256A CN 110661691 A CN110661691 A CN 110661691A
Authority
CN
China
Prior art keywords
debugging
embedded linux
handheld
communication module
public network
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.)
Pending
Application number
CN201910998256.9A
Other languages
Chinese (zh)
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.)
Shandong Inspur Artificial Intelligence Research Institute Co Ltd
Original Assignee
Shandong Inspur Artificial Intelligence Research Institute 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 Shandong Inspur Artificial Intelligence Research Institute Co Ltd filed Critical Shandong Inspur Artificial Intelligence Research Institute Co Ltd
Priority to CN201910998256.9A priority Critical patent/CN110661691A/en
Publication of CN110661691A publication Critical patent/CN110661691A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • 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 remote debugging system and method of embedded Linux equipment, belonging to the field of Linux equipment debugging, aiming at solving the technical problem that how to overcome the defect that the embedded Linux equipment which runs in an intranet environment or has no network interface can not be remotely debugged, the technical scheme is as follows: the system comprises a personal computer, a public network server, a handheld debugging terminal and embedded Linux equipment, wherein the personal computer is connected with the public network server, the handheld debugging terminal is connected with the embedded Linux equipment through a serial port SSH, and the public network server is connected with the handheld debugging terminal through an SSH reverse tunnel. The method comprises the following steps: s1, debugging personnel use a personal computer to operate the public network server through a remote desktop or SSH; s2, the public network server logs in the handheld debugging terminal through the SSH reverse tunnel; and S3, operating the serial port of the handheld debugging terminal through the built-in minicom software of the handheld debugging terminal, and debugging the embedded Linux equipment through the serial port.

Description

Remote debugging system and method for embedded Linux equipment
Technical Field
The invention relates to the technical field of embedded Linux equipment debugging, in particular to a remote debugging system and method for embedded Linux equipment.
Background
If the embedded Linux equipment is abnormal during field operation, operation and maintenance personnel usually need to use a personal computer to connect the embedded equipment through a serial port or an Ethernet for debugging. Due to the reasons of equipment installation environment and the like, operation and maintenance personnel often cannot carry out on-site debugging and need to carry out remote debugging. At present, remote debugging is usually performed by means of a public network Ethernet, but remote debugging difficulty of intranet equipment or equipment without a network interface is high.
SSH reverse tunneling is commonly used to access local area network internal devices over a public network. Local area network equipment accessed to a public network can directly access public network equipment, but the public network equipment can not directly access the local area network equipment through SSH (secure Shell), at the moment, the intranet equipment is required to actively establish SSH (secure Shell) connection with the public network equipment, and the public network equipment realizes reverse SSH access through a port mapping function.
Therefore, how to overcome the problem that the embedded Linux device which runs in an intranet environment or has no network interface cannot be remotely debugged is an urgent need in the prior art.
Patent document CN104503907B discloses a remote debugging system for application programs based on linux system. The system comprises local debugging equipment and remote display debugging data terminal equipment, wherein the debugging equipment runs a debugging server program and a debugged application program. When the debugging server program starts the debugging equipment, the shared circular queue data buffer area is created, and the debugging server program is provided for other application programs to access, manage various function interfaces of the shared circular queue data buffer area and start a TCP/IP service function. And the application program writes the generated debugging data into the annular queue data buffer area through the write interface unit and updates the write data position information in the buffer space management unit. The remote display debugging data terminal equipment is connected with the debugging equipment according to the IP address and the port number provided by the debugging server program, and receives the equipment running state, the fault information and the debugging data transmitted back by the debugging equipment so as to achieve the aim of remotely diagnosing the debugging equipment. However, the technical scheme cannot overcome the defect that the embedded Linux equipment which runs in an intranet environment or has no network interface cannot be remotely debugged.
Patent document CN109861950A discloses a method, an apparatus, a device and a storage medium for remote debugging of a device, so as to improve the debugging efficiency of the device. The method comprises the following steps: establishing a mapping relation with debugged equipment; determining debugging request data, packaging the debugging request data according to a Secure Shell (SSH) protocol and forwarding the debugging request data to the debugged equipment; and receiving the debugging response data encapsulated by the SSH protocol, and decapsulating and displaying the encapsulated debugging response data. The cross-platform interaction can be realized, the debugged equipment can be remotely regulated and controlled, and the debugging efficiency is effectively improved. However, the technical scheme cannot overcome the defect that the embedded Linux equipment which runs in an intranet environment or has no network interface cannot be remotely debugged.
Disclosure of Invention
The technical task of the invention is to provide a remote debugging system and method for embedded Linux equipment, so as to solve the problem that how to overcome the problem that the embedded Linux equipment which runs in an intranet environment or has no network interface can not be remotely debugged.
The technical task of the invention is realized in the following way, the embedded Linux equipment remote debugging system comprises a personal computer, a public network server, a handheld debugging terminal and embedded Linux equipment, wherein the personal computer is connected with the public network server through WIFI/Ethernet, the handheld debugging terminal is connected with the public network server through an operator 4G network, the handheld debugging terminal is connected with the embedded Linux equipment through a serial port SSH, and the public network server is connected with the handheld debugging terminal through an SSH reverse tunnel.
Preferably, the handheld debugging terminal runs the Linux system and built-in minicom software, and checks the printing information of the embedded Linux device by operating the serial port of the handheld debugging terminal or logs in the embedded Linux device through the serial port SSH to check the running information of the embedded Linux device.
Preferably, the handheld debugging terminal comprises an ARM core board, a 4G communication module and a serial port communication module, the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial port communication module, and the serial port communication module is connected with the embedded Linux equipment through a serial port SSH;
the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel.
Preferably, the handheld debugging terminal further comprises a lithium battery charging and discharging module, and the lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by a lithium battery without an external power supply;
the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
A remote debugging method for embedded Linux equipment comprises the following steps:
s1, debugging personnel use a personal computer to operate the public network server through a remote desktop or SSH;
s2, the public network server logs in the handheld debugging terminal through the SSH reverse tunnel;
and S3, operating the serial port of the handheld debugging terminal through the built-in minicom software of the handheld debugging terminal, and debugging the embedded Linux equipment through the serial port.
Preferably, the handheld debugging terminal checks the printing information of the embedded Linux equipment through a serial port of the handheld debugging terminal or logs in the embedded Linux equipment through a serial port SSH to check the running information of the embedded Linux equipment, so that remote debugging is realized.
Preferably, the handheld debugging terminal comprises an ARM core board, a 4G communication module and a serial port communication module, the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial port communication module, and the serial port communication module is connected with the embedded Linux equipment through a serial port SSH;
the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel.
Preferably, the handheld debugging terminal further comprises a lithium battery charging and discharging module, and the lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by a lithium battery without an external power supply;
the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
The embedded Linux equipment remote debugging system and the method have the following advantages that:
the method does not depend on a field power supply and a network, does not need to additionally develop debugging software, is simple and easy to implement, can carry out remote debugging on the field embedded Linux equipment, and improves the debugging efficiency;
the invention overcomes the problem that the embedded Linux equipment which runs in an intranet environment or has no network interface can not be remotely debugged, and realizes remote debugging;
the built-in lithium battery charge-discharge module does not depend on an external power supply, and can better adapt to the running environment of equipment;
and fourthly, the embedded Linux equipment can be remotely debugged by means of the SSH reverse tunnel and the open-source minicom software, the remote debugging software does not need to be developed, and the method is simple and easy to implement.
Drawings
The invention is further described below with reference to the accompanying drawings.
FIG. 1 is a block diagram of a remote debugging system of an embedded Linux device;
fig. 2 is a flow chart of a remote debugging method of an embedded Linux device.
Detailed Description
The embedded Linux device remote debugging system and method of the present invention are described in detail below with reference to the drawings and the embodiments of the present invention.
Example 1:
as shown in fig. 1, the embedded Linux device remote debugging system of the present invention structurally includes a personal computer, a public network server, a handheld debugging terminal and an embedded Linux device, wherein the personal computer is connected with the public network server through a WIFI/ethernet, the handheld debugging terminal is connected with the public network server through an operator 4G network, the handheld debugging terminal is connected with the embedded Linux device through a serial port SSH, and the public network server is connected with the handheld debugging terminal through an SSH reverse tunnel. The handheld debugging terminal operates the Linux system and built-in minicom software, the printing information of the embedded Linux equipment is checked by operating the serial port of the handheld debugging terminal or the embedded Linux equipment is logged in through the serial port SSH, and the operation information of the embedded Linux equipment is checked. The handheld debugging terminal comprises a lithium battery charging and discharging module, an ARM core board, a 4G communication module and a serial port communication module, wherein the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial port communication module, and the serial port communication module is connected with the embedded Linux equipment through a serial port SSH; the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel. The lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by the lithium battery without an external power supply; the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
Example 2:
as shown in fig. 2, the embedded Linux device remote debugging method of the present invention includes the following steps:
s1, debugging personnel use a personal computer to operate the public network server through a remote desktop or SSH;
s2, the public network server logs in the handheld debugging terminal through the SSH reverse tunnel;
and S3, operating the serial port of the handheld debugging terminal through the built-in minicom software of the handheld debugging terminal, and debugging the embedded Linux equipment through the serial port.
In the step S3, the handheld debugging terminal checks the printing information of the embedded Linux device through the serial port of the handheld debugging terminal or logs in the embedded Linux device through the serial port SSH to check the running information of the embedded Linux device, thereby implementing remote debugging.
The handheld debugging terminal comprises a lithium battery charging and discharging module, an ARM core board, a 4G communication module and a serial port communication module, wherein the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial port communication module, and the serial port communication module is connected with the embedded Linux equipment through a serial port SSH; the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel. The lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by the lithium battery without an external power supply; the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. The embedded Linux equipment remote debugging system is characterized by comprising a personal computer, a public network server, a handheld debugging terminal and embedded Linux equipment, wherein the personal computer is connected with the public network server through a WIFI/Ethernet, the handheld debugging terminal is connected with the public network server through an operator 4G network, the handheld debugging terminal is connected with the embedded Linux equipment through a serial port SSH, and the public network server is connected with the handheld debugging terminal through an SSH reverse tunnel.
2. The embedded Linux device remote debugging system of claim 1, wherein the handheld debugging terminal runs the Linux system and built-in minicom software, and checks the printing information of the embedded Linux device by operating a serial port of the handheld debugging terminal or logs in the embedded Linux device through a serial port SSH to check the running information of the embedded Linux device.
3. The embedded Linux device remote debugging system of claim 1 or 2, wherein the handheld debugging terminal comprises an ARM core board, a 4G communication module and a serial communication module, the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial communication module, and the serial communication module is connected with the embedded Linux device through a serial SSH;
the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel.
4. The embedded remote Linux equipment debugging system of claim 3, wherein the handheld debugging terminal further comprises a lithium battery charging and discharging module, the lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by a lithium battery without an external power supply;
the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
5. A remote debugging method for embedded Linux equipment is characterized by comprising the following steps:
s1, debugging personnel use a personal computer to operate the public network server through a remote desktop or SSH;
s2, the public network server logs in the handheld debugging terminal through the SSH reverse tunnel;
and S3, operating the serial port of the handheld debugging terminal through the built-in minicom software of the handheld debugging terminal, and debugging the embedded Linux equipment through the serial port.
6. The embedded Linux device remote debugging method of claim 5, wherein the handheld debugging terminal checks printing information of the embedded Linux device through a serial port of the handheld debugging terminal or logs in the embedded Linux device through a serial port SSH to check running information of the embedded Linux device, thereby realizing remote debugging.
7. The embedded Linux device remote debugging system of claim 5 or 6, wherein the handheld debugging terminal comprises an ARM core board, a 4G communication module and a serial communication module, the 4G communication module is connected with the ARM core board, the ARM core board is connected with the serial communication module, and the serial communication module is connected with the embedded Linux device through a serial SSH;
the 4G communication module is connected with the public network server through an operator 4G network, and the public network server is connected with the ARM core board through an SSH reverse tunnel.
8. The embedded remote Linux equipment debugging system of claim 7, wherein the handheld debugging terminal further comprises a lithium battery charging and discharging module, the lithium battery charging and discharging module is used for supplying power to the handheld debugging terminal by a lithium battery without an external power supply;
the lithium battery charging and discharging module is respectively and electrically connected with the 4G communication module, the ARM core board and the serial port communication module to supply power to the ARM core board.
CN201910998256.9A 2019-10-21 2019-10-21 Remote debugging system and method for embedded Linux equipment Pending CN110661691A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910998256.9A CN110661691A (en) 2019-10-21 2019-10-21 Remote debugging system and method for embedded Linux equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910998256.9A CN110661691A (en) 2019-10-21 2019-10-21 Remote debugging system and method for embedded Linux equipment

Publications (1)

Publication Number Publication Date
CN110661691A true CN110661691A (en) 2020-01-07

Family

ID=69041463

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910998256.9A Pending CN110661691A (en) 2019-10-21 2019-10-21 Remote debugging system and method for embedded Linux equipment

Country Status (1)

Country Link
CN (1) CN110661691A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101170438A (en) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 A remote serial port debugging method and its system
CN203038096U (en) * 2013-01-30 2013-07-03 陈海波 Device for wireless adjustment of failure diagnosis
US8898638B1 (en) * 2003-06-27 2014-11-25 American Megatrends, Inc. Method and system for remote software debugging
CN106371958A (en) * 2016-08-31 2017-02-01 浪潮电子信息产业股份有限公司 Server fault diagnosis system and method
CN106528308A (en) * 2016-11-25 2017-03-22 济南浪潮高新科技投资发展有限公司 Server sensor information collection method
CN107528892A (en) * 2017-08-08 2017-12-29 深圳创维数字技术有限公司 A kind of remote debugging method, server end and set top box
CN107800791A (en) * 2017-10-24 2018-03-13 海信集团有限公司 A kind of method and apparatus debugged
CN108337146A (en) * 2018-01-29 2018-07-27 深圳创维数字技术有限公司 Terminal debugging apparatus, system and method
US10049029B1 (en) * 2016-05-05 2018-08-14 American Megatrends, Inc. Networked multi-interface host debugger
CN208284091U (en) * 2018-06-15 2018-12-25 吉林大学 A kind of full spectrum seismograph wireless setting system
CN109246120A (en) * 2018-09-29 2019-01-18 中国船舶重工集团公司第七〇九研究所 A kind of remote debugging method and its system of embedded device
CN109286654A (en) * 2018-08-01 2019-01-29 深圳市德卡科技股份有限公司 Remote equipment debugging system and method based on serial ports

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8898638B1 (en) * 2003-06-27 2014-11-25 American Megatrends, Inc. Method and system for remote software debugging
CN101170438A (en) * 2007-11-13 2008-04-30 中兴通讯股份有限公司 A remote serial port debugging method and its system
CN203038096U (en) * 2013-01-30 2013-07-03 陈海波 Device for wireless adjustment of failure diagnosis
US10049029B1 (en) * 2016-05-05 2018-08-14 American Megatrends, Inc. Networked multi-interface host debugger
CN106371958A (en) * 2016-08-31 2017-02-01 浪潮电子信息产业股份有限公司 Server fault diagnosis system and method
CN106528308A (en) * 2016-11-25 2017-03-22 济南浪潮高新科技投资发展有限公司 Server sensor information collection method
CN107528892A (en) * 2017-08-08 2017-12-29 深圳创维数字技术有限公司 A kind of remote debugging method, server end and set top box
CN107800791A (en) * 2017-10-24 2018-03-13 海信集团有限公司 A kind of method and apparatus debugged
CN108337146A (en) * 2018-01-29 2018-07-27 深圳创维数字技术有限公司 Terminal debugging apparatus, system and method
CN208284091U (en) * 2018-06-15 2018-12-25 吉林大学 A kind of full spectrum seismograph wireless setting system
CN109286654A (en) * 2018-08-01 2019-01-29 深圳市德卡科技股份有限公司 Remote equipment debugging system and method based on serial ports
CN109246120A (en) * 2018-09-29 2019-01-18 中国船舶重工集团公司第七〇九研究所 A kind of remote debugging method and its system of embedded device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚蓝: "嵌入式系统远程调试软件的设计与实现", 《工业控制计算机》 *

Similar Documents

Publication Publication Date Title
CN101216800B (en) LINUX log controller and method
CN110320891B (en) Railway vehicle braking system CAN bus message maintenance monitoring system and monitoring method
CN103117879B (en) A kind of computer hardware operational factor network monitoring system
CN101540694A (en) Method for monitoring server and server adopting same
CN111865710A (en) Remote equipment debugging system based on public network environment
CN112198858B (en) Electric vehicle motor controller wireless diagnosis method, device, medium and equipment based on UDS protocol
CN104618501A (en) Wireless monitoring management device of server cluster system
CN112101589B (en) Ship remote technical support system based on cloud computing
WO2022100540A1 (en) Unmanned aerial vehicle system fault diagnosis method and apparatus, electronic device, and storage medium
CN109086192B (en) IPMI-based onboard SATA hard disk lighting system and method
CN111244806B (en) Power equipment safety debugging monitoring system and processing method
WO2013020386A1 (en) System and method for remote debugging and upgrading of software
CN104734904A (en) Automatic detection method and system of by-pass equipment
CN109240889A (en) A kind of server visualization control device and method
CN107026759A (en) The firmware and its development approach of a kind of remote management BBU modules based on BMC
CN110661691A (en) Remote debugging system and method for embedded Linux equipment
CN103457996B (en) A kind of Protocol Conformance Test System internal data store method and system
CN111949456A (en) Serial port protocol automatic test system and method based on configuration updating
WO2023125702A1 (en) Cloud management method and system for battery swapping station, server, and storage medium
CN103235763A (en) Caching method and system for data interface of wind turbine generator
KR20130040080A (en) The management device for wind power generator
CN113722211B (en) BMC debugging method, device, system and embedded equipment
CN105242283A (en) Excavator GPS terminal fault detection system
CN109495302A (en) Link monitoring method, cloud server and computer readable storage medium
CN110763927A (en) In-situ equipment debugging method based on wireless communication

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200107

RJ01 Rejection of invention patent application after publication