CN111026662A - Remote debugging method, system and medium for terminal equipment of Internet of things - Google Patents

Remote debugging method, system and medium for terminal equipment of Internet of things Download PDF

Info

Publication number
CN111026662A
CN111026662A CN201911241703.2A CN201911241703A CN111026662A CN 111026662 A CN111026662 A CN 111026662A CN 201911241703 A CN201911241703 A CN 201911241703A CN 111026662 A CN111026662 A CN 111026662A
Authority
CN
China
Prior art keywords
terminal equipment
server
command
local
execution result
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
CN201911241703.2A
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.)
Lianlu Intelligent Transportation Technology Shanghai Co ltd
Original Assignee
Lianlu Intelligent Transportation Technology Shanghai 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 Lianlu Intelligent Transportation Technology Shanghai Co ltd filed Critical Lianlu Intelligent Transportation Technology Shanghai Co ltd
Priority to CN201911241703.2A priority Critical patent/CN111026662A/en
Publication of CN111026662A publication Critical patent/CN111026662A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a remote debugging method for terminal equipment of the Internet of things, which comprises the following steps: the terminal equipment executes the steps of: connecting the server, and executing the command after receiving the command of the server; the server executes the steps of: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local; the local execution step: and sending a command to the server and waiting for an execution result. The remote debugging method and the remote debugging device solve the problem of remote debugging of massive terminal equipment of the Internet of things, can remotely debug the terminal equipment of the Internet of things without going out of home, avoid frequent trips of research and development personnel to an installation site for debugging, and save considerable time cost and economic cost.

Description

Remote debugging method, system and medium for terminal equipment of Internet of things
Technical Field
The invention relates to the technical field of software algorithms, in particular to a remote debugging method, a remote debugging system and a remote debugging medium for terminal equipment of the Internet of things. In particular to a method for remotely executing a command of a terminal device of the internet of things by using a transit server.
Background
Under the current mainstream network communication IPV4 protocol, the IP address of the public network is limited and precious. Generally, a large amount of terminal devices of the internet of things use the modes of Ethernet, WIFI, 4G and the like to indirectly access the internet through a gateway, and the terminal devices are IP addresses of a local area network and cannot be directly remotely logged in and debugged. One possible remote login method is to map the ssh login port 22 of an internet of things terminal device with a port of a transit server using a port mapping method, and log in to device debugging using the port of the server. The method has the disadvantages that the port mapping configuration needs to be carried out on the terminal equipment in advance, each equipment is configured and mapped with different ports, the workload is huge, and the method is only suitable for a small amount of equipment; for the terminals of the internet of things which can be increased at any time, the ports of the server may be insufficient.
Patent document CN107544465A (application number: 201710823465.0) discloses a system and method for remotely debugging a control device. The system comprises a local control device to be debugged, a local debugging computer, a first internet access device, a second internet access device and a remote debugging computer. The local debugging computer which accesses the Internet through the first Internet access device is in communication connection with the local control device. The remote debugging computer which is accessed to the internet through the second internet access device logs in the on-site debugging computer through the remote control software and takes over the operation control right of the on-site debugging computer. The remote debugging computer realizes remote debugging, maintenance and software upgrading of the local control device through the local debugging computer.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide a remote debugging method, a remote debugging system and a remote debugging medium for terminal equipment of the Internet of things.
The remote debugging method for the terminal equipment of the Internet of things provided by the invention comprises the following steps:
the terminal equipment executes the steps of: connecting the server, and executing the command after receiving the command of the server;
the server executes the steps of: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local;
the local execution step: and sending a command to the server and waiting for an execution result.
Preferably, the terminal device performs the steps including: connecting a server when the terminal equipment is started, and registering the server by using the ID of the terminal equipment;
the terminal equipment creates a pipeline and a subprocess when receiving the command, the subprocess executes the command and outputs the execution result through the pipeline; and the parent process receives the execution result from the pipeline and returns the execution result to the server.
Preferably, the server executes the steps including: the server monitors the terminal equipment, and stores the registration information of the terminal equipment when the server receives the registration information of the terminal equipment; and binding the file descriptor and the equipment ID, finding out the corresponding file descriptor according to the equipment ID, and forwarding the command message of the local command program.
Preferably, the server executes the steps including: the server side transmits the local command to the corresponding terminal equipment, and transmits the execution result of the terminal equipment to the local.
Preferably, the locally performing step includes: inquiring all terminal equipment which is connected to the server and registered;
and sending the terminal equipment ID and the command to the server side and waiting for an execution result.
The remote debugging system for the terminal equipment of the Internet of things provided by the invention comprises:
the terminal equipment executes the module: connecting the server, and executing the command after receiving the command of the server;
the server side execution module: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local;
a local execution module: and sending a command to the server and waiting for an execution result.
Preferably, the terminal device execution module includes: connecting a server when the terminal equipment is started, and registering the server by using the ID of the terminal equipment;
the terminal equipment creates a pipeline and a subprocess when receiving the command, the subprocess executes the command and outputs the execution result through the pipeline; and the parent process receives the execution result from the pipeline and returns the execution result to the server.
Preferably, the server execution module includes: the server monitors the terminal equipment, and stores the registration information of the terminal equipment when the server receives the registration information of the terminal equipment; binding the file descriptor and the equipment ID, finding out the corresponding file descriptor according to the equipment ID, and forwarding a command message of a local command program;
the server side execution module comprises: the server side transmits the local command to the corresponding terminal equipment, and transmits the execution result of the terminal equipment to the local.
Preferably, the local execution module includes: inquiring all terminal equipment which is connected to the server and registered;
and sending the terminal equipment ID and the command to the server side and waiting for an execution result.
Compared with the prior art, the invention has the following beneficial effects:
1. the problem of remote debugging of massive terminal equipment of the Internet of things is solved, and the terminal equipment of the Internet of things can be remotely debugged without going out of a home;
2. the frequent business trip of research and development personnel to the installation site for debugging is avoided, and considerable time cost and economic cost are saved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
FIG. 1 is a flow chart of terminal device program execution;
FIG. 2 is a schematic overall framework of the present invention;
FIG. 3 is a flow chart of server side program execution;
FIG. 4 is a flow chart of a local command program.
Detailed Description
The present invention will be described in detail with reference to specific examples. The following examples will assist those skilled in the art in further understanding the invention, but are not intended to limit the invention in any way. It should be noted that it would be obvious to those skilled in the art that various changes and modifications can be made without departing from the spirit of the invention. All falling within the scope of the present invention.
The remote debugging method for the terminal equipment of the Internet of things provided by the invention comprises the following steps:
step 1: a server program is deployed on an airy cloud server ECS, and as shown in fig. 1, is a terminal device program execution flowchart;
step 2: the terminal device execution program is deployed on the terminal of the internet of things, and the 4G module is used for communicating with the server program, as shown in fig. 3, which is a server program execution flow chart;
and step 3: a local command program deployment developer can access the internet to connect to a server program on a PC used by the server program, can query the ID of a connected terminal device, and can send a message containing the device ID and a command to the server program, as shown in fig. 4, which is a flow chart of the local command program;
as shown in fig. 2, which is a schematic view of an overall framework of the present invention, the remote debugging system for terminal devices of the internet of things provided by the present invention includes:
the terminal equipment executes the module: connecting the server, and executing the command after receiving the command of the server;
the server side execution module: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local;
a local execution module: and sending a command to the server and waiting for an execution result.
Preferably, the terminal device execution module includes: connecting a server when the terminal equipment is started, and registering the server by using the ID of the terminal equipment;
the terminal equipment creates a pipeline and a subprocess when receiving the command, the subprocess executes the command and outputs the execution result through the pipeline; and the parent process receives the execution result from the pipeline and returns the execution result to the server.
Preferably, the server execution module includes: the server monitors the terminal equipment, and stores the registration information of the terminal equipment when the server receives the registration information of the terminal equipment; binding the file descriptor and the equipment ID, finding out the corresponding file descriptor according to the equipment ID, and forwarding a command message of a local command program;
the server side execution module comprises: the server side transmits the local command to the corresponding terminal equipment, and transmits the execution result of the terminal equipment to the local.
Preferably, the local execution module includes: inquiring all terminal equipment which is connected to the server and registered;
and sending the terminal equipment ID and the command to the server side and waiting for an execution result.
Those skilled in the art will appreciate that, in addition to implementing the systems, apparatus, and various modules thereof provided by the present invention in purely computer readable program code, the same procedures can be implemented entirely by logically programming method steps such that the systems, apparatus, and various modules thereof are provided in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Therefore, the system, the device and the modules thereof provided by the present invention can be considered as a hardware component, and the modules included in the system, the device and the modules thereof for implementing various programs can also be considered as structures in the hardware component; modules for performing various functions may also be considered to be both software programs for performing the methods and structures within hardware components.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes or modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention. The embodiments and features of the embodiments of the present application may be combined with each other arbitrarily without conflict.

Claims (10)

1. A remote debugging method for terminal equipment of the Internet of things is characterized by comprising the following steps:
the terminal equipment executes the steps of: connecting the server, and executing the command after receiving the command of the server;
the server executes the steps of: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local;
the local execution step: and sending a command to the server and waiting for an execution result.
2. The remote debugging method of the terminal equipment of the internet of things of claim 1, wherein the terminal equipment executes the steps of: connecting a server when the terminal equipment is started, and registering the server by using the ID of the terminal equipment;
the terminal equipment creates a pipeline and a subprocess when receiving the command, the subprocess executes the command and outputs the execution result through the pipeline; and the parent process receives the execution result from the pipeline and returns the execution result to the server.
3. The remote debugging method of the terminal equipment of the internet of things of claim 1, wherein the server executes the steps of: the server monitors the terminal equipment, and stores the registration information of the terminal equipment when the server receives the registration information of the terminal equipment; and binding the file descriptor and the equipment ID, finding out the corresponding file descriptor according to the equipment ID, and forwarding the command message of the local command program.
4. The remote debugging method of the terminal equipment of the internet of things of claim 1, wherein the server executes the steps of: the server side transmits the local command to the corresponding terminal equipment, and transmits the execution result of the terminal equipment to the local.
5. The remote debugging method of the terminal equipment of the internet of things of claim 1, wherein the locally executing step comprises: inquiring all terminal equipment which is connected to the server and registered;
and sending the terminal equipment ID and the command to the server side and waiting for an execution result.
6. The utility model provides a thing networking terminal equipment remote debugging system which characterized in that includes:
the terminal equipment executes the module: connecting the server, and executing the command after receiving the command of the server;
the server side execution module: monitoring the terminal equipment, forwarding a local command to the terminal equipment, and returning an execution result of the command to the local;
a local execution module: and sending a command to the server and waiting for an execution result.
7. The remote debugging system of the terminal equipment of the internet of things of claim 1, wherein the terminal equipment executing module comprises: connecting a server when the terminal equipment is started, and registering the server by using the ID of the terminal equipment;
the terminal equipment creates a pipeline and a subprocess when receiving the command, the subprocess executes the command and outputs the execution result through the pipeline; and the parent process receives the execution result from the pipeline and returns the execution result to the server.
8. The remote debugging system of the terminal device of the internet of things of claim 1, wherein the server executing module comprises: the server monitors the terminal equipment, and stores the registration information of the terminal equipment when the server receives the registration information of the terminal equipment; binding the file descriptor and the equipment ID, finding out the corresponding file descriptor according to the equipment ID, and forwarding a command message of a local command program;
the server side execution module comprises: the server side transmits the local command to the corresponding terminal equipment, and transmits the execution result of the terminal equipment to the local.
9. The remote debugging method for the terminal equipment of the internet of things of claim 1, wherein the local execution module comprises: inquiring all terminal equipment which is connected to the server and registered;
and sending the terminal equipment ID and the command to the server side and waiting for an execution result.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 5.
CN201911241703.2A 2019-12-06 2019-12-06 Remote debugging method, system and medium for terminal equipment of Internet of things Pending CN111026662A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911241703.2A CN111026662A (en) 2019-12-06 2019-12-06 Remote debugging method, system and medium for terminal equipment of Internet of things

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911241703.2A CN111026662A (en) 2019-12-06 2019-12-06 Remote debugging method, system and medium for terminal equipment of Internet of things

Publications (1)

Publication Number Publication Date
CN111026662A true CN111026662A (en) 2020-04-17

Family

ID=70207414

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911241703.2A Pending CN111026662A (en) 2019-12-06 2019-12-06 Remote debugging method, system and medium for terminal equipment of Internet of things

Country Status (1)

Country Link
CN (1) CN111026662A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726261A (en) * 2020-06-02 2020-09-29 北京时代凌宇科技股份有限公司 Internet of things debugging terminal, system and method
CN116132490A (en) * 2023-01-13 2023-05-16 支付宝(杭州)信息技术有限公司 Remote debugging method and device of equipment and equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035904A (en) * 2010-12-10 2011-04-27 北京中科大洋科技发展股份有限公司 Method for converting TCP network communication server into client
CN105808399A (en) * 2016-03-14 2016-07-27 百度在线网络技术(北京)有限公司 Method and device for remote debugging
CN105871670A (en) * 2016-05-20 2016-08-17 珠海格力电器股份有限公司 Control method, device and system of terminal equipment
CN106708489A (en) * 2015-11-17 2017-05-24 杭州海康威视数字技术股份有限公司 Debugging method and system of equipment
CN106899547A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of apparatus operation method and server based on Internet of Things
CN110011823A (en) * 2019-01-18 2019-07-12 阿里巴巴集团控股有限公司 The long-range management implementation method and device of internet of things equipment
CN110062054A (en) * 2019-05-28 2019-07-26 中信梧桐港供应链管理有限公司 Internet of things equipment long-range control method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035904A (en) * 2010-12-10 2011-04-27 北京中科大洋科技发展股份有限公司 Method for converting TCP network communication server into client
CN106708489A (en) * 2015-11-17 2017-05-24 杭州海康威视数字技术股份有限公司 Debugging method and system of equipment
CN106899547A (en) * 2015-12-18 2017-06-27 阿里巴巴集团控股有限公司 A kind of apparatus operation method and server based on Internet of Things
CN105808399A (en) * 2016-03-14 2016-07-27 百度在线网络技术(北京)有限公司 Method and device for remote debugging
CN105871670A (en) * 2016-05-20 2016-08-17 珠海格力电器股份有限公司 Control method, device and system of terminal equipment
CN110011823A (en) * 2019-01-18 2019-07-12 阿里巴巴集团控股有限公司 The long-range management implementation method and device of internet of things equipment
CN110062054A (en) * 2019-05-28 2019-07-26 中信梧桐港供应链管理有限公司 Internet of things equipment long-range control method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111726261A (en) * 2020-06-02 2020-09-29 北京时代凌宇科技股份有限公司 Internet of things debugging terminal, system and method
CN116132490A (en) * 2023-01-13 2023-05-16 支付宝(杭州)信息技术有限公司 Remote debugging method and device of equipment and equipment

Similar Documents

Publication Publication Date Title
CN106487589B (en) Terminal automatic access and configuration management method
CN108847979B (en) Self-adaptive configuration system and method based on SCADA
CN110049014B (en) OpenAPI conversion system and method based on multiple Modbus bus protocols
CN105024855B (en) Distributed type assemblies manage system and method
Cornel-Cristian et al. Smart home automation with MQTT
CN109194617A (en) The automatically parsing of XML message, packaging method and device
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN103064382A (en) Optical proximity correction (OPC) embedded-type remote data collecting system and method based on ARM framework
WO2012088905A1 (en) Polling sub-system and polling method for communication network system and communication apparatus
CN102857381A (en) Medical device intelligent cloud management and maintenance system and method
CN104993947A (en) Method for upgrading firmware in batches
CN104167822B (en) A kind of method for parameter configuration for distribution automation terminal device
CN111026662A (en) Remote debugging method, system and medium for terminal equipment of Internet of things
CN109361585A (en) A kind of method that child node baud rate and address is arranged in host node automatically
CN105376101A (en) Method and system for enabling physical device to be connected into virtual network
CN111949456A (en) Serial port protocol automatic test system and method based on configuration updating
CN103731663A (en) Method and device for testing smart television
CN113794775A (en) Robot control management method and system
CN115174621A (en) Edge internet-of-things agent device for intelligent patrol of hydropower station
CN110519387A (en) A kind of management method of Internet of things system and Intelligent terminal for Internet of things
CN202918312U (en) Medical equipment intelligent cloud management and maintenance system
CN114095343A (en) Disaster recovery method, device, equipment and storage medium based on double-active system
CN116170337B (en) Method, device and system for testing reliability of network equipment
CN115348199B (en) Vehicle-mounted network debugging system and method based on MVB bus
CN104022901A (en) Method of configuring and managing ONU (Optical Network Unit) module of state grid concentrator by utilizing PLC (Programmable Logic Controller)

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: 20200417