CN109286654B - Remote equipment debugging system and method based on serial port - Google Patents

Remote equipment debugging system and method based on serial port Download PDF

Info

Publication number
CN109286654B
CN109286654B CN201810862135.7A CN201810862135A CN109286654B CN 109286654 B CN109286654 B CN 109286654B CN 201810862135 A CN201810862135 A CN 201810862135A CN 109286654 B CN109286654 B CN 109286654B
Authority
CN
China
Prior art keywords
debugging
debugged
party
terminal
network server
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
CN201810862135.7A
Other languages
Chinese (zh)
Other versions
CN109286654A (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.)
Shenzhen Decard Smartcard Tech Co ltd
Original Assignee
Shenzhen Decard Smartcard Tech 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 Shenzhen Decard Smartcard Tech Co ltd filed Critical Shenzhen Decard Smartcard Tech Co ltd
Priority to CN201810862135.7A priority Critical patent/CN109286654B/en
Publication of CN109286654A publication Critical patent/CN109286654A/en
Application granted granted Critical
Publication of CN109286654B publication Critical patent/CN109286654B/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • H04L67/125Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks involving control of end-device applications over a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Abstract

The invention is suitable for the technical field of communication, and provides a remote equipment debugging system and a method based on a serial port, wherein the system comprises: the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with a serial port of the device to be debugged; carrying out debugging mode identification on equipment to be debugged; if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server; the public network server sends the debugging request to a debugging terminal of a debugging party; the debugging side debugging terminal sends a debugging instruction to the equipment to be debugged for debugging, and the public network server transmits a debugging request and the debugging instruction in a remote control mode, so that the remote debugging of the equipment to be debugged can be realized, and the application range is wider.

Description

Remote equipment debugging system and method based on serial port
Technical Field
The invention belongs to the technical field of communication, and particularly relates to a remote equipment debugging system and method based on a serial port.
Background
After electronic product equipment with serial port connection such as a card reader, a POS machine and the like is provided for a customer, a technical engineer needs to debug the product equipment through a serial port to provide guidance for the customer, and the experience of the customer in using the product equipment is directly influenced accurately and quickly in equipment debugging.
At present, the traditional method for debugging equipment through a serial port is mainly to connect a local PC with equipment to be debugged through the serial port, but the method needs the local PC to be closer to the equipment to be debugged, and the application range is limited. Therefore, a method for debugging a remote device according to different application scenarios is needed.
Disclosure of Invention
In view of this, embodiments of the present invention provide a serial port-based remote device debugging method and a terminal device, so as to solve the problem that in the prior art, a local PC is connected to a device to be debugged through a serial port, but this method requires that the local PC is closer to the device to be debugged, and the application range is limited.
A first aspect of an embodiment of the present invention provides a serial port-based remote device debugging system, including:
the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with equipment to be debugged through a serial port;
debugging equipment carries out debugging mode identification;
if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server;
the public network server sends the debugging request to a debugging terminal of a debugging party;
and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and debugs the equipment to be debugged.
The second aspect of the embodiment of the invention provides a remote equipment debugging method based on a serial port, which is used for remote equipment debugging based on the serial port, the system comprises a debugging party debugging terminal and a public network server, wherein the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with equipment to be debugged through the serial port; the method comprises the following steps:
debugging equipment carries out debugging mode identification;
if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server;
the public network server sends the debugging request to a debugging terminal of a debugging party;
and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and debugs the equipment to be debugged.
Compared with the prior art, the embodiment of the invention has the following beneficial effects: the method comprises the steps that firstly, debugging equipment carries out debugging mode identification, if the debugging mode is detected to be a remote control mode, the equipment to be debugged detects whether a built-in debugging program exists, if the equipment to be debugged has the built-in debugging program, the equipment to be debugged sends a debugging request to a public network server, and then the public network server sends the debugging request to a debugging party debugging terminal; and finally, the debugging side debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request, debugs the equipment to be debugged, can recognize according to the debugging mode of the equipment to be debugged, and transmits the debugging request and the debugging instruction by the public network server in a remote control mode, so that the remote debugging of the equipment to be debugged can be realized, the application range is wide, and the requirement of remote, quick, simple and convenient debugging of a user is met.
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 embodiments or the prior art descriptions will be briefly described 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 schematic structural diagram of a serial port-based remote device debugging system according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a serial port-based remote device debugging system according to another embodiment of the present invention;
fig. 3 is a schematic flowchart of a serial port-based remote device debugging method according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a serial port-based remote device debugging method according to another embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
As used in this specification and the appended claims, the term "if" may be interpreted contextually as "when", "upon" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if it is determined" or "if a [ described condition or event ] is detected" may be interpreted contextually to mean "upon determining" or "in response to determining" or "upon detecting [ described condition or event ]" or "in response to detecting [ described condition or event ]".
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a serial port-based remote device debugging system according to an embodiment of the present invention. The remote device debugging system based on the serial port of the embodiment comprises:
the debugging party debugging terminal 100 is connected with the public network server 200 through the Internet, a remote debugging program is configured on the debugging party debugging terminal 100, and the public network server 200 is connected with a serial port of the device 300 to be debugged.
And the equipment to be debugged carries out debugging mode identification.
And if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server.
And the public network server sends the debugging request to a debugging terminal of a debugging party.
And the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and sends a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
In this embodiment, the device 300 to be debugged includes, but is not limited to, a card reader, a POS machine, and other electronic products with a serial port connection. Generally, the device 300 to be debugged can configure the debugging program, but some devices 300 to be debugged cannot configure the debugging program due to the limitation of the device itself.
The public network server 200 may be one or more. The debugger debugging terminal 100 may be a PC (Personal Computer) configured with a remote debugging program.
The serial port of the device 300 to be debugged includes, but is not limited to, a COM interface, a USB interface, and an ethernet interface.
In this embodiment, the Boost Asio is run on the public network server, and efficient network forwarding is realized through the Proactor mode.
As can be seen from the above embodiments, first, the debugging device performs debugging mode identification, if it is detected that the debugging mode is the remote control mode, the device to be debugged detects whether a built-in debugging program exists, if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server, and then the public network server sends the debugging request to the debugging terminal of the debugging party; and finally, the debugging side debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request, debugs the equipment to be debugged, can recognize according to the debugging mode of the equipment to be debugged, and transmits the debugging request and the debugging instruction by the public network server in a remote control mode, so that the remote debugging of the equipment to be debugged can be realized, the application range is wide, and the requirement of remote, quick, simple and convenient debugging of a user is met.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a serial port-based remote device debugging system according to another embodiment of the present invention. On the basis of the above embodiment, the remote device debugging system based on the serial port in this embodiment further includes a to-be-debugged debugging terminal 400, the public network server 200 is connected to the to-be-debugged debugging terminal 400, a remote debugging program is configured on the to-be-debugged debugging terminal 400, and the to-be-debugged debugging terminal 400 is connected to the serial port of the to-be-debugged device 300.
And if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether the built-in debugging program exists, and if the device to be debugged does not have the built-in debugging program, the debugging request is sent to the debugging terminal of the party to be debugged.
And the debugging terminal of the party to be debugged sends a debugging request to the public network server.
And the public network server sends the debugging request to a debugging terminal of a debugging party.
And the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and sends a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
It can be known from the above embodiments that, if the device to be debugged does not have the built-in debugging program, by adding the debugging terminal of the party to be debugged to connect with the device to be debugged, serial port debugging of the device to be debugged which does not have the built-in debugging program can be realized.
In an embodiment of the present invention, if the debugging mode is identified as the remote log uploading mode, after the debugger debugging terminal establishes the serial port connection with the device to be debugged according to the debugging request, the method further includes:
the device to be debugged prohibits the debugging side debugging terminal from debugging the device to be debugged, and the debugging side debugging terminal receives device log information of the device to be debugged.
In this embodiment, the device log information may include configuration information of the device to be debugged. The remote log uploading mode means that the debugging terminal of the debugging party cannot control the device to be debugged, and the configuration information can be checked through receiving the device log information to further guide the user to debug.
It can be known from the above embodiments that, for the case of limited debugging, the configuration information is checked by receiving the device log information, and the user is further guided to debug
In one embodiment of the invention, if the debugging mode is identified to be a built-in program log uploading mode, the device to be debugged sends a login request to a public network server through a network, and the public network server sends the login request to a debugging terminal of a debugging party to establish connection;
the debugging terminal of the debugging party verifies the login request, and the login request carries a login key;
and if the login key passes the verification, the debugging side debugging terminal receives port configuration information sent by the equipment to be debugged.
In this embodiment, the built-in program log uploading mode refers to that the device to be debugged triggers the built-in program of the device to be debugged to be connected to the public network server through a network connection module of the device to be debugged, a WiFi, or the like, when the device to be debugged is outdoors or a debugging terminal of a debugger is not used. The device to be debugged can be a device supporting two operating systems, namely Linux and Android.
It can be known from the above embodiments that, through the built-in program log uploading mode, the device to be debugged can be debugged even when the device is outdoors or the debugging terminal of the debugging party is not used.
In an embodiment of the present invention, a debugging party debugging terminal establishes a serial port connection with a device to be debugged according to a debugging request, and sends a debugging instruction to the device to be debugged to debug the device to be debugged, including:
the device to be debugged sends configuration information to a public network server;
the public network server sends the configuration information to a debugging terminal of a debugging party;
the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server;
and the public network server sends the debugging instruction to the equipment to be debugged for debugging.
In this embodiment, the configuration information may include port information and baud rate information of the device to be debugged.
In the foregoing embodiment, the debugging processing of the device to be debugged is completed through the public network server and the debugging terminal of the debugger.
In an embodiment of the present invention, a debugging party debugging terminal establishes a serial port connection with a device to be debugged according to a debugging request, and sends a debugging instruction to the device to be debugged to debug the device to be debugged, including:
the debugging terminal of the party to be debugged acquires the configuration information of the equipment to be debugged and sends the configuration information to the public network server;
the public network server sends the configuration information to a debugging terminal of a debugging party;
the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server;
the public network server sends the debugging instruction to a debugging terminal of a party to be debugged;
and the debugging terminal sends the debugging instruction to the equipment to be debugged for debugging.
In the above embodiment, the debugging process of the device to be debugged is completed through the public network server, the debugging party debugging terminal, and the debugging terminal of the party to be debugged.
Referring to fig. 3, fig. 3 is a schematic flowchart of a serial port-based remote device debugging method according to an embodiment of the present invention. The method is used for remote equipment debugging based on a serial port, the system comprises a debugging party debugging terminal and a public network server, the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with the serial port of equipment to be debugged; the method is detailed as follows:
s301: and the equipment to be debugged carries out debugging mode identification.
S302: if the debugging mode is identified as the remote control mode, the device to be debugged detects whether the device has a built-in debugging program,
s303: and if the equipment to be debugged has the built-in debugging program, the equipment to be debugged sends a debugging request to the public network server.
S304: and the public network server sends the debugging request to a debugging terminal of a debugging party.
S305: and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request.
S306: and sending a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
As can be seen from the above embodiments, first, the debugging device performs debugging mode identification, if it is detected that the debugging mode is the remote control mode, the device to be debugged detects whether a built-in debugging program exists, if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server, and then the public network server sends the debugging request to the debugging terminal of the debugging party; and finally, the debugging side debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request, debugs the equipment to be debugged, can recognize according to the debugging mode of the equipment to be debugged, and transmits the debugging request and the debugging instruction by the public network server in a remote control mode, so that the remote debugging of the equipment to be debugged can be realized, the application range is wide, and the requirement of remote, quick, simple and convenient debugging of a user is met.
Referring to fig. 4, in an embodiment of the present invention, the system further includes a to-be-debugged debugging terminal, the public network server is connected to the to-be-debugged debugging terminal, and the to-be-debugged debugging terminal is connected to a serial port of the to-be-debugged device; the method further comprises the following steps:
s401: and if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists.
S402: and if the equipment to be debugged does not have the built-in debugging program, sending a debugging request to the debugging terminal of the party to be debugged.
S403: and the debugging terminal of the party to be debugged sends a debugging request to the public network server.
S404: and the public network server sends the debugging request to a debugging terminal of a debugging party.
S405: and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request.
S406: and sending a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
In an embodiment of the present invention, if it is identified that the debugging mode is the remote log uploading mode, after the debugging party debugging terminal establishes a serial port connection with the device to be debugged according to the debugging request, the method further includes:
the device to be debugged prohibits a debugging side debugging terminal from debugging the device to be debugged, and the debugging side debugging terminal receives device log information of the device to be debugged.
In an embodiment of the invention, if the debugging mode is identified to be a built-in program log uploading mode, the device to be debugged sends a login request to the public network server through a network, and the public network server sends the login request to a debugging terminal of a debugging party to establish connection;
the debugging terminal of the debugging party verifies the login request, and the login request carries a login key;
and if the login key passes the verification, the debugging side debugging terminal receives port configuration information sent by the equipment to be debugged.
In an embodiment of the present invention, the establishing of a serial port connection between the debugging party debugging terminal and the device to be debugged according to the debugging request, and sending a debugging instruction to the device to be debugged to debug the device to be debugged includes:
the equipment to be debugged sends configuration information to the public network server;
the public network server sends the configuration information to the debugging party debugging terminal;
the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server;
and the public network server sends the debugging instruction to the equipment to be debugged for debugging.
In an embodiment of the present invention, the establishing of a serial port connection between the debugging party debugging terminal and the device to be debugged according to the debugging request, and sending a debugging instruction to the device to be debugged to debug the device to be debugged includes:
the debugging terminal of the party to be debugged acquires the configuration information of the equipment to be debugged and sends the configuration information to a public network server;
the public network server sends the configuration information to the debugging party debugging terminal;
the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server;
the public network server sends the debugging instruction to the debugging terminal of the party to be debugged;
and the debugging terminal sends the debugging instruction to the equipment to be debugged for debugging.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. . Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (9)

1. The utility model provides a remote equipment debugging system based on serial ports which characterized in that includes: the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with a serial port of equipment to be debugged;
the equipment to be debugged carries out debugging mode identification;
if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server;
the public network server sends the debugging request to a debugging terminal of a debugging party;
the device to be debugged sends configuration information to the public network server, the public network server sends the configuration information to the debugging party debugging terminal, the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server, and the public network server sends the debugging instruction to the device to be debugged for debugging.
2. The remote device debugging system based on the serial port of claim 1, further comprising a debugging terminal of a party to be debugged, wherein the public network server is connected with the debugging terminal of the party to be debugged, the debugging terminal of the party to be debugged is configured with a remote debugging program, and the debugging terminal of the party to be debugged is connected with the serial port of the device to be debugged;
if the debugging mode is identified to be a remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged does not have the built-in debugging program, a debugging request is sent to a debugging terminal of a party to be debugged;
the debugging terminal of the party to be debugged sends a debugging request to the public network server;
the public network server sends a debugging request to a debugging party debugging terminal;
and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and sends a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
3. The serial-based remote device debugging system of claim 1 or 2,
if the debugging mode is identified to be a remote log uploading mode, after the debugging party debugging terminal establishes serial port connection with the device to be debugged according to the debugging request, the method further comprises the following steps:
the device to be debugged prohibits a debugging side debugging terminal from debugging the device to be debugged, and the debugging side debugging terminal receives device log information of the device to be debugged.
4. The serial-based remote device debugging system of claim 1 or 2,
if the debugging mode is identified to be a built-in program log uploading mode, the device to be debugged sends a login request to the public network server through the network, and the public network server sends the login request to a debugging terminal of a debugging party to establish connection;
the debugging terminal of the debugging party verifies the login request, and the login request carries a login key;
and if the login key passes the verification, the debugging side debugging terminal receives port configuration information sent by the equipment to be debugged.
5. The remote device debugging system based on the serial port of claim 1, wherein the debugging party debugging terminal establishes a serial port connection with the device to be debugged according to the debugging request and sends a debugging instruction to the device to be debugged to debug the device to be debugged, comprising:
a debugging terminal of a party to be debugged acquires configuration information of the equipment to be debugged and sends the configuration information to a public network server;
the public network server sends the configuration information to the debugging party debugging terminal;
the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server;
the public network server sends the debugging instruction to the debugging terminal of the party to be debugged;
and the debugging terminal of the party to be debugged sends the debugging instruction to the equipment to be debugged for debugging.
6. A remote equipment debugging method based on a serial port is characterized in that the method is used for a remote equipment debugging system based on the serial port, the system comprises a debugging party debugging terminal and a public network server, the debugging party debugging terminal is connected with the public network server through the Internet, a remote debugging program is configured on the debugging party debugging terminal, and the public network server is connected with the serial port of equipment to be debugged; the method comprises the following steps:
the equipment to be debugged carries out debugging mode identification;
if the debugging mode is identified to be the remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged has the built-in debugging program, the device to be debugged sends a debugging request to the public network server;
the public network server sends a debugging request to a debugging party debugging terminal;
the device to be debugged sends configuration information to the public network server, the public network server sends the configuration information to the debugging party debugging terminal, the debugging party debugging terminal generates a debugging instruction according to the configuration information and sends the debugging instruction to the public network server, and the public network server sends the debugging instruction to the device to be debugged for debugging.
7. The remote device debugging method based on the serial port of claim 6, wherein the system further comprises a debugging terminal of a party to be debugged, the public network server is connected with the debugging terminal of the party to be debugged, and the debugging terminal of the party to be debugged is connected with the serial port of the device to be debugged; the method further comprises the following steps:
if the debugging mode is identified to be a remote control mode, the device to be debugged detects whether a built-in debugging program exists, and if the device to be debugged does not have the built-in debugging program, a debugging request is sent to a debugging terminal of a party to be debugged;
the debugging terminal of the party to be debugged sends a debugging request to the public network server;
the public network server sends a debugging request to a debugging party debugging terminal;
and the debugging party debugging terminal establishes serial port connection with the equipment to be debugged according to the debugging request and sends a debugging instruction to the equipment to be debugged to debug the equipment to be debugged.
8. The serial port based remote device debugging method of claim 6 or 7,
if the debugging mode is identified to be a remote log uploading mode, after the debugging party debugging terminal establishes serial port connection with the device to be debugged according to the debugging request, the method further comprises the following steps:
the device to be debugged prohibits a debugging side debugging terminal from debugging the device to be debugged, and the debugging side debugging terminal receives device log information of the device to be debugged.
9. The serial port based remote device debugging method of claim 6 or 7,
if the debugging mode is identified to be a built-in program log uploading mode, the device to be debugged sends a login request to the public network server through the network, and the public network server sends the login request to a debugging terminal of a debugging party to establish connection;
the debugging terminal of the debugging party verifies the login request, and the login request carries a login key;
and if the login key passes the verification, the debugging side debugging terminal receives port configuration information sent by the equipment to be debugged.
CN201810862135.7A 2018-08-01 2018-08-01 Remote equipment debugging system and method based on serial port Active CN109286654B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810862135.7A CN109286654B (en) 2018-08-01 2018-08-01 Remote equipment debugging system and method based on serial port

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810862135.7A CN109286654B (en) 2018-08-01 2018-08-01 Remote equipment debugging system and method based on serial port

Publications (2)

Publication Number Publication Date
CN109286654A CN109286654A (en) 2019-01-29
CN109286654B true CN109286654B (en) 2021-08-06

Family

ID=65183349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810862135.7A Active CN109286654B (en) 2018-08-01 2018-08-01 Remote equipment debugging system and method based on serial port

Country Status (1)

Country Link
CN (1) CN109286654B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086889B (en) * 2019-05-16 2022-02-18 北京字节跳动网络技术有限公司 Terminal device debugging method and device
CN112327675A (en) * 2019-09-30 2021-02-05 上海华兴数字科技有限公司 Engineering mechanical equipment debugging method and system
CN110661691A (en) * 2019-10-21 2020-01-07 山东浪潮人工智能研究院有限公司 Remote debugging system and method for embedded Linux equipment
CN111309543A (en) * 2020-02-11 2020-06-19 广州视源电子科技股份有限公司 Debugging method and device, electronic equipment and storage medium
CN111526043B (en) * 2020-04-13 2023-06-30 深圳市博实结科技股份有限公司 Embedded equipment, embedded system and maintenance method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7543277B1 (en) * 2003-06-27 2009-06-02 American Megatrends, Inc. Method and system for remote software debugging
CN101576742A (en) * 2009-06-19 2009-11-11 西安交通大学 Remote monitoring and fault diagnosing system for numerical control slitter and method for realizing same
CN102916833A (en) * 2012-09-20 2013-02-06 瑞斯康达科技发展股份有限公司 Remote debugging method, remote debugging system and debugging target equipment
CN106708489A (en) * 2015-11-17 2017-05-24 杭州海康威视数字技术股份有限公司 Debugging method and system of equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7543277B1 (en) * 2003-06-27 2009-06-02 American Megatrends, Inc. Method and system for remote software debugging
CN101576742A (en) * 2009-06-19 2009-11-11 西安交通大学 Remote monitoring and fault diagnosing system for numerical control slitter and method for realizing same
CN102916833A (en) * 2012-09-20 2013-02-06 瑞斯康达科技发展股份有限公司 Remote debugging method, remote debugging system and debugging target equipment
CN106708489A (en) * 2015-11-17 2017-05-24 杭州海康威视数字技术股份有限公司 Debugging method and system of equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于Linux的串口服务器设计与实现;王天昊等;《电子科技》;20170615;全文 *

Also Published As

Publication number Publication date
CN109286654A (en) 2019-01-29

Similar Documents

Publication Publication Date Title
CN109286654B (en) Remote equipment debugging system and method based on serial port
US11509505B2 (en) Method and apparatus for operating smart network interface card
US20070113133A1 (en) System and method for testing a serial port
US7971110B2 (en) System and method for testing a serial attached small computer system interface
CN111538539A (en) Storage system starting method and device and computer readable storage medium
WO2020019485A1 (en) Simulator identification method, identification device, and computer readable medium
CN111211929A (en) Fault positioning method, fault positioning device, control equipment and intelligent equipment
CN108111364B (en) Service system testing method and device
TW201327134A (en) Method and system for testing the function of SOL
CN102768561B (en) Design method for twinbridge piece mainboard redundancy
CN107707571A (en) A kind of method and apparatus for managing network external connection
CN111203869B (en) Robot system maintenance method and device, robot and readable storage medium
WO2017054307A1 (en) Recognition method and apparatus for user information
CN104113853A (en) Detection method for interface between mobile terminal and SIM card and detection device thereof
CN111338951A (en) Wireless intelligent household appliance detection method and system
CN112948224A (en) Data processing method, device, terminal and storage medium
CN108536479A (en) Method and apparatus for restarting Android device
CN113132522A (en) Test method, device, server and medium
CN107864204B (en) Self-adaptive vehicle parameter automatic identification and sharing method
CN107065660B (en) Test method and system
CN205050186U (en) Real -time automatic system of booking rooms
CN112650557B (en) Command execution method and device
CN115150300A (en) Management system and method for vehicle safety attack and defense
CN109194541B (en) Network testing method and system
CN103294837A (en) Method and system for verifying and debugging integrated circuit

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