CN210983375U - Debugging device and remote debugging system - Google Patents
Debugging device and remote debugging system Download PDFInfo
- Publication number
- CN210983375U CN210983375U CN201921738375.2U CN201921738375U CN210983375U CN 210983375 U CN210983375 U CN 210983375U CN 201921738375 U CN201921738375 U CN 201921738375U CN 210983375 U CN210983375 U CN 210983375U
- Authority
- CN
- China
- Prior art keywords
- debugging
- parameter setting
- control unit
- interface
- module
- 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
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The utility model discloses a debugging device and remote debugging system. The debugging device comprises a communication module, a debugging interface module and an interface parameter setting module, wherein the control unit is electrically connected with the control unit; the communication module is used for connecting the remote debugging equipment, sending the debugging command to the control unit and sending the debugging data to the remote debugging equipment; the debugging interface module is used for connecting the equipment to be debugged, sending the debugging command and the debugging interface parameter to the equipment to be debugged and sending the debugging data to the control unit; the interface parameter setting module is electrically connected with the control unit and matched with the control unit to form debugging interface parameters; the control unit is used for receiving the debugging command and the debugging interface parameters, sending the debugging command and the debugging interface parameters to the equipment to be debugged through the debugging interface module, and sending debugging data returned by the debugging interface module to the communication module. The debugging device can effectively improve the debugging efficiency and reduce the communication cost.
Description
Technical Field
The utility model relates to a debugging equipment technical field especially relates to a debugging device and remote debugging system.
Background
At present, in the detection and maintenance process of electronic products, remote engineer remote guidance and field engineer debugging and analysis debugging modes are generally adopted, and specifically, the remote engineer and the field engineer communicate and cooperate through telephone, QQ, WeChat, remote control and other modes to complete the debugging purpose. The remote engineer and the field engineer communicate with each other in communication modes such as telephone, QQ and WeChat, so that the problems of low communication efficiency, repeated copying and sending of debugging data and the like exist, and the debugging efficiency is low. The remote control mode is a mode that a remote engineer controls a computer carried by a field engineer to complete debugging of an electronic product connected with the computer, and the problems of slow control reaction, need of the field engineer to carry the computer and the like exist in the process, so that the debugging process is inconvenient to operate and the debugging efficiency is low.
SUMMERY OF THE UTILITY MODEL
An embodiment of the utility model provides a debugging device and debug system to solve the lower problem of debugging efficiency that exists among the current remote debugging process.
The embodiment of the utility model provides a debugging device, which comprises a control unit, a communication module, a debugging interface module and an interface parameter setting module;
the communication module is electrically connected with the control unit and is used for connecting remote debugging equipment so as to send a debugging command sent by the remote debugging equipment to the control unit and send debugging data sent by the control unit to the remote debugging equipment;
the debugging interface module is electrically connected with the control unit and is used for connecting equipment to be debugged, so as to send debugging commands and debugging interface parameters sent by the control unit to the equipment to be debugged and send debugging data formed by the equipment to be debugged to the control unit;
the interface parameter setting module is electrically connected with the control unit and matched with the control unit to form debugging interface parameters so that the control unit can acquire the debugging interface parameters;
and the control unit is used for receiving a debugging command sent by the communication module and debugging interface parameters formed by matching with the interface parameter setting module, sending the debugging command and the debugging interface parameters to the equipment to be debugged through the debugging interface module, and sending debugging data returned by the debugging interface module to the communication module.
Preferably, the interface parameter setting module comprises an interface setting component and a parameter setting component which are connected with the control unit, and the parameter setting component comprises at least one parameter setting unit.
Preferably, each of the parameter setting units includes a parameter setting circuit and a selection control switch, a first connection end of the selection control switch is connected to the control unit, and a second connection end of the selection control switch is connected to the parameter setting circuit or a ground end.
Preferably, the selection control switch is a toggle selection switch, each of the parameter setting units includes at least two parameter setting circuits and at least two toggle selection switches, and each of the toggle selection switches is arranged opposite to one of the parameter setting circuits and is used for controlling the connection or disconnection between the parameter setting circuit and the control unit.
Preferably, the interface parameter setting module comprises at least one parameter setting unit, each parameter setting unit comprises at least two parameter setting circuits and a sliding selection switch arranged between the at least two parameter setting circuits, one side of each parameter setting circuit is connected with the control unit, and the other end of each parameter setting circuit is connected with one parameter setting circuit; when the sliding selection switch slides on the parameter setting circuit, the parameter setting circuit corresponding to the parameter setting circuit is electrically connected with the control unit.
Preferably, the debugging device further comprises a storage module connected to the control unit and used for caching data.
Preferably, the communication module includes a mobile communication unit and a mobile communication antenna electrically connected to the mobile communication unit, and/or a WIFI communication unit and a WIFI communication antenna electrically connected to the WIFI communication unit.
Preferably, the mobile communication units include a 2G mobile communication unit, a 3G mobile communication unit, a 4G mobile communication unit, and a 5G mobile communication unit.
An embodiment of the utility model provides a remote debugging system include above-mentioned debugging device, with debugging server that debugging device communication links to each other, with the remote debugging terminal that debugging server communication links to each other.
Preferably, the debugging server is provided with a first storage area for storing debugging commands and a second storage area for storing debugging data.
According to the debugging device and the remote debugging system, the debugging command sent by the remote debugging equipment can be received through the communication module, the debugging data is sent to the remote debugging equipment, the communication cost between a remote engineer and a field engineer is saved in the process, the repeated copying and sending of the debugging command and the debugging data are avoided, and therefore the debugging efficiency and the debugging effect are improved. The control unit sends the debugging command and the debugging interface parameter formed by matching with the interface parameter setting module to the equipment to be debugged through the debugging interface module so as to quickly acquire debugging data returned by the equipment to be debugged through the debugging interface module, the debugging interface parameter set by the interface parameter setting module for one time can be used for debugging for multiple times, the debugging command triggered each time is prevented from needing to be independently configured with the debugging interface parameter, and the debugging efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive labor.
Fig. 1 is a schematic diagram of a debugging apparatus according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an interface parameter setting module according to an embodiment of the present invention;
fig. 3 is a schematic diagram of a remote debugging system according to an embodiment of the present invention.
100, debugging device; 110. a control unit; 120. a communication module; 121. a mobile communication unit; 122. a mobile communication antenna; 123. a WIFI communication unit; 124. a WIFI communication antenna; 130. debugging the interface module; 140. an interface parameter setting module; 141. a baud rate selection unit; 142. a data bit selection unit; 143. a stop bit selection unit; 144. a check bit selection unit; 150. a storage module; 200. equipment to be debugged; 300. remote debugging equipment; 310. remote debugging terminal; 320. debugging a server; 321. a first storage area; 322. a second storage area.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, of the embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by a person skilled in the art without creative efforts belong to the protection scope of the present invention.
Fig. 1 shows a debugging apparatus 100 in the present embodiment. As shown in fig. 1, the debugging apparatus 100 includes a control unit 110, a communication module 120, a debugging interface module 130, and an interface parameter setting module 140.
And a communication module 120 electrically connected to the control unit 110, configured to connect to the remote debugging device 300, so as to send the debugging command sent by the remote debugging device 300 to the control unit 110, and send the debugging data sent by the control unit 110 to the remote debugging device 300.
The debug interface module 130 is electrically connected to the control unit 110, and is configured to connect to the device to be debugged 200, so as to send the debug command and the debug interface parameter sent by the control unit 110 to the device to be debugged 200, and send debug data formed by the device to be debugged 200 to the control unit 110.
The interface parameter setting module 140 is electrically connected to the control unit 110 to form a debug interface parameter, so that the control unit 110 obtains the debug interface parameter.
The control unit 110 is configured to receive a debug command sent by the communication module 120 and a debug interface parameter formed by matching with the interface parameter setting module 140, send the debug command and the debug interface parameter to the device to be debugged 200 through the debug interface module 130, and send debug data returned by the debug interface module 130 to the communication module 120.
The communication module 120 is a functional module in the debugging apparatus 100, which can implement communication with the remote debugging device 300. The communication module 120 is connected to the control unit 110, and is configured to implement information transmission between the remote debugging device 300 and the control unit 110, and specifically, may send a debugging command sent by the remote debugging device 300 to the control unit 110, and send debugging data acquired by the control unit 110 to the remote debugging device 300.
The remote debugging apparatus 300 is an apparatus that can be communicatively connected to the communication module 120 via a network. The remote engineer may communicate with the communication module 120 on the debugging apparatus 100 through the remote debugging device 300, that is, the remote debugging device 300 may receive a debugging command input by the remote engineer and send the debugging command to the communication module 120 of the debugging apparatus 100 through the network, so that the communication module 120 sends the received debugging command to the control unit 110, and the control unit 110 may debug the device 200 to be debugged according to the debugging command.
The debug command is a command triggered by the remote debug apparatus 300 to implement a debug function. The debugging command may be a command input by a remote engineer through the remote debugging device 300 to control the device to be debugged 200 to perform debugging. As an example, the debug command may be a linux command line, so that the device to be debugged 200 executes the linux command line to obtain the debug data according to the execution result. As another example, the debug command may also be a command including a debug function name, so that the device to be debugged 200 calls a debug function corresponding to the debug function name to obtain debug data according to the execution result. Accordingly, the debug data is data related to the execution result formed after the device to be debugged 200 executes the debug command.
The debugging interface module 130 is a functional module in the debugging apparatus 100, which can implement communication with the device to be debugged 200. The debug interface module 130 is connected to the control unit 110, and is configured to implement information transmission between the control unit 110 and the device 200 to be debugged, and specifically, the debug command and the debug interface parameter acquired by the control unit 110 may be sent to the device 200 to be debugged through the debug interface module 130, so that the device 200 to be debugged executes the received debug command, completes debugging, acquires debug data corresponding to the debug interface parameter, and returns the debug data to the control unit 110 through the debug interface module 130, so that the control unit 110 may acquire the corresponding debug data. As an example, the debugging interface module 130 includes, but is not limited to, a serial port, a USB interface, and a network port, and may be electrically connected to the device to be debugged 200 through corresponding connection lines.
The device to be debugged 200 refers to a device that needs to be debugged, and may be, but is not limited to, a television, a display device, a consumer electronics product, a communication product, and other devices mentioned in this embodiment. The device to be debugged 200 is provided with a debugging hole for realizing interface debugging. In the debugging process, a connecting line may be used to connect the debugging hole on the device 200 to be debugged and the debugging interface module 130 on the debugging apparatus 100, so that the debugging apparatus 100 communicates with the device 200 to be debugged, and a technical basis is provided for implementing remote debugging.
The interface parameter setting module 140 is a functional module in the debugging apparatus 100, which can implement the autonomous configuration of the interface parameters. The interface parameter setting module 140 is electrically connected to the control unit 110, and the debugging interface parameters can be formed by electrically connecting and matching the interface parameter setting module 140 and the control unit 110. As an example, the interface parameter setting module 140 is electrically connected to the control unit 110, and different level signals are formed during the connection process, and the corresponding debug interface parameters are determined according to the different level signals, so that the control unit 110 can obtain the debug interface parameters that are set autonomously.
The debug interface parameters are related parameters for defining the communication of debug data through the debug interface module 130. For example, if the debug interface module 130 is a serial port, when the serial port is used for communication, parameters such as a baud rate, a data bit, a stop bit, and a check bit need to be considered, so when the debug interface module 130 is a serial port, the corresponding debug interface parameters include, but are not limited to, interface parameters such as a baud rate, a data bit, a stop bit, and a check bit. Baud rate is a parameter used to measure the rate of transmission of symbols during communication. The data bits are parameters used to measure the actual data bits during communication. The stop bit is the last parameter used to indicate a single packet and may be used to indicate the end of the transmission and also to improve the chance of the computer correcting the clock synchronization. The check bits are parameters used for error correction in the communication process.
It is understood that the debug interface parameters are used to set relevant parameters for communication between the debug interface module 130 and the device to be debugged 200, so that after the device to be debugged 200 executes the debug command, debug data corresponding to the debug interface parameters is formed, so as to perform communication based on the debug interface parameters, so as to send the debug data from the device to be debugged 200 to the control unit 110 through the debug interface module 130.
Each debugging apparatus 100 further corresponds to a current apparatus ID, which is an identifier for identifying a different debugging apparatus 100, and may be a factory equipment number or other unique identifier of the debugging apparatus 100. The current device ID may be fixed on the control unit 110, so that after the control unit 110 obtains a debug command carrying a target device ID matching the current device ID, the debug command and the obtained debug interface parameters are sent to the device to be debugged 200 through the debug interface module 130, so that the device to be debugged 200 executes the debug command to form debug data corresponding to the debug interface parameters, and the debug data is sent to the control unit 110 through the debug interface module 130. The target device ID is the device ID corresponding to the commissioning device 100 that is set by the remote engineer when inputting the commissioning command and used for defining the control required by the commissioning command, and before starting the remote commissioning, the field engineer may notify the corresponding remote engineer to complete the corresponding commissioning process.
As an example, the debugging process of the device to be debugged 200 by using the debugging apparatus 100 includes the following steps:
(1) the field debugging operation specifically comprises the following steps: the debugging apparatus 100 is electrically connected with the device 200 to be debugged, the debugging apparatus 100 is connected with the remote debugging device 300 through network communication, and the interface parameter setting module 140 is adopted to set debugging interface parameters. For example, a field engineer connects the debugging apparatus 100 and the device 200 to be debugged by using a connecting wire, specifically, connects the debugging interface module 130 on the debugging apparatus 100 and the debugging hole on the device 200 to be debugged by using a connecting wire. Then, the debugging apparatus 100 and the remote debugging device 300 are connected via a network, so that the debugging apparatus 100 and the remote debugging device 300 can communicate with each other, so that the remote debugging device 300 can send a debugging command to the debugging apparatus 100, and the debugging apparatus 100 can send debugging data to the remote debugging device 300, so that the transmission process of the debugging command and the debugging data does not need a remote engineer and a field engineer to communicate and cooperate, and does not need to repeatedly copy corresponding debugging data, which is beneficial to improving debugging efficiency and debugging effect. Finally, the field engineer may autonomously operate the interface parameter setting module 140 to set the debug interface parameters so that the control unit 110 may acquire the debug interface parameters.
(2) And (5) remote debugging operation. The remote debugging operation comprises the following steps: (A) the remote debugging apparatus 300 receives a debugging command input by a remote engineer, and sends the debugging command to the communication module 120 through a network, where the debugging command carries a target device ID so as to determine the debugging device 100 to be controlled by the debugging command, and as an example, the field engineer may inform the remote engineer in advance. (B) The communication module 120 transmits the received debug command to the control unit 110. (C) The control unit 110 sends the received debug command and the debug interface parameters formed by cooperating with the interface parameter setting module 140 to the device to be debugged 200 through the debug interface module 130. (D) The device to be debugged 200 receives the debug command and the debug interface parameters, executes the debug command to form debug data corresponding to the debug interface parameters, and transmits the debug data to the control unit 110 through the debug interface module 130. (E) The control unit 110 transmits the acquired debug data to the remote debugging apparatus 300 through the communication module 120. (F) The remote debugging device 300 receives the debugging data, so that a remote engineer can view and analyze the corresponding debugging data through the remote debugging device 300 to complete operations such as detection and maintenance of the device to be debugged 200. It can be understood that, in the process of performing remote debugging by using the debugging apparatus 100, the remote debugging device 300 can be directly operated by a remote engineer, and the debugging apparatus 100 can be controlled to complete the debugging process of the device 200 to be debugged, so that the process control is fast in response, a field engineer is not required to carry a computer, the time cost for communication between the remote engineer and the field engineer can be effectively reduced, the problem of low debugging efficiency caused by repeated copying and sending of debugging commands and debugging data can be avoided, and the debugging efficiency can be improved.
The debugging apparatus 100 provided in this embodiment can receive the debugging command sent by the remote debugging device 300 through the communication module 120 and send the debugging data to the remote debugging device 300, which helps to save the communication cost between the remote engineer and the field engineer and avoid the repeated copying and sending of the debugging command and the debugging data, thereby helping to improve the debugging efficiency and the debugging effect. The control unit 110 sends the debug command and the debug interface parameter formed by matching with the interface parameter setting module 140 to the device 200 to be debugged through the debug interface module 130, so as to quickly acquire the debug data returned by the device 200 to be debugged through the debug interface module 130, the debug interface parameter set once by the interface parameter setting module 140 can be used for debugging for multiple times, the debug command triggered each time is prevented from independently configuring the debug interface parameter, and the debugging efficiency is improved.
As an example, the control unit 110 may be a microprocessor, which is a central processing unit composed of one or a few large scale integrated circuits. The microprocessor can complete the operations of reading instruction, executing instruction, exchanging information with external memory and logic component, etc., and is the operation control part of microcomputer and may constitute microcomputer with memory and peripheral circuit chip. As an example, the memory may store a debugging program for completing a debugging function in a matching manner, when the microprocessor executes the debugging program, the debugging command sent by the communication module 120 and the debugging interface parameter formed in a matching manner with the interface parameter setting module 140 may be sent to the device to be debugged 200 through the debugging interface module 130, so that after the device to be debugged 200 completes debugging based on the debugging command, the debugging data corresponding to the debugging interface parameter is obtained, and the debugging data is sent to the microprocessor through the debugging interface module 130, so that the microprocessor sends the received debugging data to the remote debugging device 300 through the communication module 120, so as to implement the remote debugging function. It can be understood that, by executing the debugging program autonomously by the microprocessor, after the field engineer electrically connects the debugging apparatus 100 with the device 200 to be debugged and completes the setting of the debugging interface parameters by the interface parameter setting module 140, when the remote debugging device 300 communicates with the communication module 120, the remote engineer only needs to input the debugging command by the remote debugging device 300, and the microprocessor can execute the debugging program to complete the subsequent debugging process, which is helpful to simplify the debugging operation and ensure the debugging efficiency.
As an example, in order to realize that the control unit 110 is electrically connected to the communication module 120, the interface parameter setting module 140, the debug interface module 130 and the memory module 150, the control unit 110 needs to support GPIO or GPIO extension, that is, a GPIO interface or other bus interface electrically connected to the communication module 120, the interface parameter setting module 140, the debug interface module 130 and the memory module 150 needs to be provided on the control unit 110.
In an embodiment, the debug interface module 130 is a functional module for connecting the device to be debugged 200. The debugging interface module 130 includes, but is not limited to, a power supply interface, a serial port, a USB interface, and a network port, and may be electrically connected to the device to be debugged 200 through a corresponding connection line.
The power supply interface is electrically connected to the device 200 to be debugged through a connection line, so that the debugging apparatus 100 can take power from the device 200 to be debugged, and the debugging apparatus 100 does not need to be configured with an independent power supply module, thereby facilitating simplification of the structure of the debugging apparatus 100 and reducing the manufacturing cost of the debugging apparatus 100. The power supply interface can be an independently arranged power supply interface; or the power supply interface can be integrated in a serial port, a USB interface and a network port. That is, when the device 200 to be debugged is connected to the serial port, the USB port, and the network port, the debugging apparatus 100 is powered by the power supply interface integrated with the serial port, the USB port, and the network port. For example, the device to be debugged 200 may provide 5V power, 3.3V power, or other power to the debugging apparatus 100 through the power supply interface.
In one embodiment, the communication module 120 includes a mobile communication unit 121 and a mobile communication antenna 122 electrically connected to the mobile communication unit 121. Among them, the mobile communication unit 121 is a processing unit for implementing remote communication using a mobile communication technology, and the mobile communication antenna 122 is an antenna for implementing a signal transceiving function connected to the mobile communication unit 121. When the communication module 120 is the mobile communication unit 121 and the mobile communication antenna 122, a field engineer is not required to perform networking operation during the field debugging operation, so that the debugging process is simplified, and the debugging efficiency is improved.
In one embodiment, the mobile communication unit 121 includes a 2G mobile communication unit 121, a 3G mobile communication unit 121, a 4G mobile communication unit 121, and a 5G mobile communication unit 121. As an example, an appropriate mobile communication unit 121 may be selected according to the data size of the debugging data to ensure the efficiency of the mobile communication unit 121 in transmitting the debugging data.
As an example, the commissioning apparatus 100 is provided with a mounting slot for mounting the mobile communication unit 121, and different mobile communication units 121 are autonomously selected to be mounted on the mounting slot according to the data volume size of the commissioning data, so that the commissioning apparatus 100 can implement the mobile communication function. For example, when the mobile communication unit 121 is embodied as a SIM card that can implement a mobile communication function, the SIM card can be mounted on the mounting slot of the debugging apparatus 100, and the mobile communication unit 121 can be automatically replaced based on the data size of the debugging data.
In an embodiment, the communication module 120 includes a WIFI communication unit 123 and a WIFI communication antenna 124 electrically connected to the WIFI communication unit 123. The WIFI communication unit 123 is a processing unit that utilizes WIFI communication technology to realize remote communication, and the WIFI communication antenna 124 is an antenna that is connected to the WIFI communication unit 123 and is used for realizing a signal transceiving function. When the communication module 120 is the WIFI communication unit 123 and the WIFI communication antenna 124, the WIFI networking operation needs to be completed in the field debugging operation process, but it can ensure the realization of the communication function between the remote debugging device 300 and the debugging apparatus 100, and especially can ensure the realization of the remote debugging function when the mobile communication network is limited.
In an embodiment, the debugging apparatus 100 further includes a storage module 150 connected to the control unit 110 for caching data. The memory module 150 is a functional module of the debugging apparatus 100 for caching debugging data, debugging commands, debugging interface parameters, or other data.
As an example, when the debugging apparatus 100 is connected to the device 200 to be debugged through a connection line, the interface parameter setting module 140 is electrically connected to the control unit 110, so that the control unit 110 can obtain the debugging interface parameters and cache the debugging interface parameters in the storage module 150; after receiving the debug command sent by the communication module 120, the control unit 110 may cache the debug command in the storage module 150; the control unit 110 may cache the debug data in the storage module 150 after obtaining the debug data formed by the device to be debugged 200 through the debug interface module 130. It is understood that the transmission rate of the control unit 110 for transceiving data through the debug interface module 130 may be consistent with or inconsistent with the transmission rate of the control unit 110 for transceiving data through the communication module 120, and data (including but not limited to debug commands and debug data) received and transmitted by the control unit 110 is cached in the storage module 150, so as to avoid data loss caused by inconsistent transmission rates, thereby ensuring the security of data transmission.
In order to avoid that the debug data and the debug command cached in the memory module 150 occupy too much memory space and affect the implementation of the function of the debug apparatus 100, the debug data and the debug command cached in the memory module 150 may be automatically cleared when the debug apparatus 100 is powered off (e.g., the debug apparatus 100 is not electrically connected to the device 200 to be debugged), so that the debug apparatus 100 has enough memory space to cache the debug command and the debug data when being powered on next time (e.g., the debug apparatus 100 is electrically connected to the device 200 to be debugged), thereby ensuring the implementation of the remote debug function.
As an example, each debugging device 100 further corresponds to a current device ID, the current device ID may be set in the storage module 150, when the debugging device 100 is electrically connected to the apparatus 200 to be debugged, the control unit 110 may read the current device ID from the storage module 150, so that the control unit 110 may receive a debugging command carrying a target device ID matching the current device ID, send the debugging command and the debugging interface parameters to the apparatus 200 to be debugged through the debugging interface module 130, so that the apparatus 200 to be debugged executes the debugging command to form debugging data corresponding to the debugging interface parameters, and send the debugging data to the control unit 110 through the debugging interface module 130.
As an example, the memory module 150 includes, but is not limited to, F L ASH memory, DDR-F L ASH memory group, DDR-F L ASH-EEPROM memory group, F L ASH memory also known as flash memory, is a long-lived non-volatile (maintaining stored Data information in case of power failure) memory, is low cost, DDR (double Data rate) double rate synchronous DRAM, and has fast transmission efficiency.DDR-F L ASH memory group refers to a memory group that uses DDR memory to store volatile Data (such as debug command and debug Data) and F L ASH memory to store non-volatile Data (such as current device ID), and takes transmission efficiency and cost into account.DDR-F L ASH-EEPROM memory group refers to a memory group that uses DDR memory to store volatile Data (such as debug command and debug Data), DDR-F L ASH memory to store non-volatile Data (such as current device ID) and uses EEPROM memory to store write Data (such as interface parameter configuration table), and can ensure transmission efficiency and improve scalability of the device 100 by modifying the scalability parameters.
In an embodiment, the interface parameter setting module 140 is a functional module disposed at the periphery of the control unit 110 for implementing the autonomous configuration of the debug interface parameters, and is specifically a peripheral circuit for implementing the autonomous configuration of the debug interface parameters. The interface parameter setting module 140 includes an interface setting component and a parameter setting component connected to the control unit 110, and the parameter setting component includes at least one parameter setting unit.
The interface setting component is a component in the interface parameter setting module 140 for setting a debugging interface that needs to be remotely debugged. The parameter setting component is a component in the interface parameter setting module 140 for setting a debug interface parameter corresponding to a debug interface that needs to be remotely debugged. In this embodiment, the interface setting component and the parameter setting component are both connected to the control unit 110, a field engineer can set a debugging interface to be remotely debugged through the operation interface setting component, and the operation parameter setting component sets a debugging interface parameter to be remotely debugged, so that the control unit 110 can obtain the debugging interface parameter.
As an example, the debugging interface module 130 includes, but is not limited to, a serial port, a USB port, and a network port, and a field engineer may select any interface that needs to be remotely debugged by operating an interface setup component to complete interface setup. For example, the interface setting component is a single-pole multi-throw switch that a field engineer can operate to autonomously set the interface so that the control unit 110 can obtain the interface that needs to be remotely debugged.
Each parameter setting unit is a processing unit for completing setting of an interface parameter, and is specifically a hardware processing unit. If the interface configured by the field engineer operation interface setting component is a serial port, the corresponding debugging interface parameters include but are not limited to interface parameters such as baud rate, data bit, stop bit and check bit, and at this time, the parameter setting unit of the parameter setting component includes but is not limited to a baud rate selection unit 141 for setting the baud rate, a data bit selection unit 142 for setting the data bit, a stop bit selection unit 143 for setting the stop bit and a check bit selection unit 144 for setting the check bit.
In this embodiment, a field engineer may independently set a debugging interface to be remotely debugged through the operation interface setting module, and operate each parameter setting unit in the parameter setting module to rapidly configure corresponding debugging interface parameters, thereby completing the process of autonomously configuring the debugging interface parameters.
In one embodiment, each of the parameter setting units includes a parameter setting circuit and a selection control switch, a first connection terminal of the selection control switch is connected to the control unit 110, and a second connection terminal of the selection control switch is connected to the parameter setting circuit or the ground terminal.
Wherein the selection control switch is a switch provided in each of the parameter setting units for selecting different parameters. The parameter setting circuit is a circuit which is arranged in each parameter setting unit and is used for determining certain interface parameters in cooperation with the selection control switch. Each selection control switch comprises a first connecting end and a second connecting end, the first connecting end is connected with the control unit 110, the second connecting end can be connected with a certain parameter setting circuit, and can also be connected with a grounding end, so that the level signal input into the control unit 110 by the first connecting end is determined according to the connecting position of the second connecting end. As an example, when the second connection terminal of the selection control switch is connected to the parameter setting circuit, the GPIO state of the first connection terminal input control unit 110 is made high; correspondingly, when the second connection end of the selection control switch is connected to the ground end, the GPIO state input by the first connection end to the control unit 110 is at a low level, so that the control unit 110 can determine the corresponding debug interface parameters according to the obtained high level and low level.
As an example, the selection control switch may be a toggle selection switch or a jumper connected to the control unit 110, that is, a field engineer may independently adjust the toggle selection switch or the jumper according to actual requirements to select different parameter setting circuits to connect the GPIO interface or other bus interfaces of the control unit 110, so that the GPIO states corresponding to the different parameter setting circuits are high levels or low levels, and the debug interface parameters are determined according to the high levels or the low levels, so as to achieve the purpose of rapidly configuring the debug interface parameters. In this example, when the field engineer connects the debugging interface module 130 of the debugging apparatus 100 with the device 200 to be debugged and the debugging hole by using the connecting line, the debugging apparatus 100 can get power from the device 200 to be debugged, so as to ensure the function of the debugging apparatus 100 to be realized; at this time, the control unit 110 may select a connection position of the second connection end of the control switch according to the interface parameter setting module 140, acquire a level signal corresponding to the connection position of the second connection end, so as to acquire a corresponding debugging interface parameter according to the level signal, and cache the debugging interface parameter in the storage module 150, which facilitates to implement one-time setting and call the function implementation of the debugging interface parameter for multiple times, thereby avoiding a remote engineer from needing to configure the debugging interface parameter correspondingly when inputting a debugging command, facilitating to simplify the debugging operation, and improving the debugging efficiency.
As an example, an interface parameter configuration table for storing a data table of correspondence between level signals and debug interface parameters is stored in the storage module 150 in advance. After receiving the level signal input by the interface parameter setting module 140, the control unit 110 calls the interface parameter configuration table pre-stored in the storage module 150 to obtain the debug interface parameters corresponding to the received level signal, so as to cache the debug interface parameters in the storage module 150, so as to send each received debug command and the debug interface parameters to the device to be debugged 200 through the debug interface module 130, so as to obtain the debug data corresponding to the debug interface parameters.
In one embodiment, the selection control switch is a toggle selection switch, each parameter setting unit includes at least two parameter setting circuits and at least two toggle selection switches, and each toggle selection switch is arranged opposite to one parameter setting circuit.
The toggle selection switch is a switch capable of realizing toggle selection. In this embodiment, each of the parameter setting units includes at least two parameter setting circuits and at least two toggle selection switches, and each of the toggle selection switches is disposed opposite to one of the parameter setting circuits, which means that a first connection end of each of the toggle selection switches is connected to the control unit 110, and a second connection end of each of the toggle selection switches is connected to one of the parameter setting circuits or a ground end, so as to determine the level signal input to the control unit 110 according to a connection position of the second connection end. For example, when the second connection terminal of a toggle selection switch is connected to its corresponding parameter setting circuit, the level signal input to the control unit 110 by the first connection terminal is at a high level; when the second connection terminal of a toggle selection switch is connected to a ground terminal, the level signal input to the control unit 110 from the first connection terminal is at a low level. That is, the field engineer can autonomously select to toggle the second connection terminal of the selection switch to connect with the parameter setting circuit or the ground terminal according to actual needs, so as to determine whether the level signal input from the first connection terminal to the control unit 110 is at a high level or a low level.
As an example, let the interface parameter setting module 140 include N parameter setting units, where N ≧ 1; accordingly, each parameter setting unit sets MiIndividual parameter setting circuit and MiThe toggle selection switches are arranged, wherein i is more than or equal to 1 and less than or equal to N; if the level signal input to the control unit 110 by each toggle selection switch is 1 or 0, the interface parameter setting module 140 includes S toggle selection switches, wherein,which can form 2SDebugging interface parameters, each parameter setting unit existsAnd (4) selecting one of the plants.
As shown in fig. 2, the parameter setting unit includes a baud rate selection unit 141, a data bit selection unit 142, a stop bit selection unit 143, and a check bit selection unit 144. The baud rate selection unit 141 is provided with 4 parameter setting circuits (such as circuits corresponding to R1-R4 in fig. 2) and toggle selection switches (such as switches corresponding to SW1-SW4 in fig. 2) capable of realizing baud rate selection, and can be correspondingly set to 2416 selectable baud rates; the data bit selection unit 142 includes 2 parameter setting circuits (e.g., circuits corresponding to R5-R6 in FIG. 2) and toggle selection switches (e.g., switches corresponding to SW5-SW6 in FIG. 2) for selecting the selection bits, and can correspondingly set the selection bits to 224 selectable data bits; the stop bit selection unit 143 includes 2 parameter setting circuits for realizing the stop bit selection(corresponding to the circuits R7-R8 in FIG. 2) and toggle selection switches (corresponding to the switches SW7-SW8 in FIG. 2), corresponding to setting 224 selectable stop bits; the check bit selecting unit 144 includes 2 parameter setting circuits (e.g., circuits corresponding to R9-R10 in fig. 2) capable of realizing check bit selection and toggle selection switches (e.g., switches corresponding to SW9-SW10 in fig. 2), and can be set to 2 correspondingly24 selectable check bits. As shown in fig. 2, the 10 parameter setting circuits are all 10k Ω circuits, each parameter setting circuit is correspondingly provided with a toggle selection switch, and the debugging interface parameters accessed to the control unit 110 can be determined according to actual requirements. As an example, when the connection positions of 10 toggle selection switches are shown in fig. 2, the control unit 110 may receive the set of level signals 1111111111, and query the interface parameter configuration table according to the 1 st to 4 th level signals 1111 to determine the corresponding baud rate; inquiring an interface parameter configuration table according to the 5 th to 6 th level signals 11 to obtain corresponding data bits; inquiring an interface parameter configuration table according to the 7 th to 8 th level signals to obtain corresponding stop bits; and inquiring an interface parameter configuration table according to the 9 th to 10 th level signals to obtain corresponding check bits.
In one embodiment, the interface parameter setting module 140 includes at least one parameter setting unit, each parameter setting unit includes at least two parameter setting circuits and a sliding selection switch disposed between the at least two parameter setting circuits, one side of each parameter setting circuit is connected to the control unit 110, and the other side is connected to one parameter setting circuit; when the sliding selection switch slides on the parameter setting circuit, the parameter setting circuit corresponding to the parameter setting circuit is electrically connected to the control unit 110.
The slide selection switch is a switch capable of realizing slide selection. As an example, the parameter setting unit includes, but is not limited to, a baud rate selecting unit 141, a data bit selecting unit 142, a stop bit selecting unit 143, and a check bit selecting unit 144, and then four sliding selection switches are provided on the interface parameter setting module 140, each sliding selection switch corresponds to at least two parameter setting circuits, one side of each parameter setting circuit is connected to a control unit 110, and the other end is connected to a parameter setting circuit, so that when the sliding selection switch slides to a certain parameter setting circuit, the parameter setting circuit corresponding to the parameter setting circuit can be connected to the control unit 110, so that the control unit 110 obtains a debugging interface parameter corresponding to the parameter setting circuit, so that the setting process of the debugging interface parameter is simple and convenient to operate, and the debugging efficiency is improved.
Fig. 3 shows a remote debugging system in the present embodiment, and as shown in fig. 3, the remote debugging system includes the debugging apparatus 100 shown in fig. 1, a debugging server 320 communicatively connected to the debugging apparatus 100, and a remote debugging terminal 310 communicatively connected to the debugging server 320. That is, the remote debugging apparatus 300 in the above embodiment specifically includes the remote debugging terminal 310 and the debugging server 320 connected to the remote debugging terminal 310 through network communication.
The remote debugging terminal 310 is a terminal capable of performing human-computer interaction with a remote engineer. The debugging server 320 is a server for connecting the remote debugging terminal 310 and the debugging apparatus 100, and specifically, a server for assisting in completing remote debugging.
As an example, the debugging process of the remote debugging system includes the following steps:
(1) the remote debug terminal 310 receives the debug command carrying the target device ID and sends the debug command carrying the target device ID to the debug server 320. That is, after the remote engineer communicates with the field engineer and determines the current device ID corresponding to the test device, the remote debug terminal 310 inputs a debug command corresponding to the ID of the portable target device, and sends the debug command to the debug server 320. It is understood that, at this time, the current device ID is the device ID of the commissioning device 100 that the field engineer informs the remote engineer, and the device ID input by the remote engineer at the remote commissioning terminal 310 at the target device ID generally needs to be the same to implement remote commissioning by the commissioning device 100 corresponding to the current device ID.
(2) The debug server 320 receives the debug command carrying the target device ID and sends the debug command to the debug device 100 corresponding to the current device ID corresponding to the target device ID, so that the debug device 100 completes debugging according to the debug command.
(3) The debug server 320 receives debug data transmitted by the debug device 100 corresponding to the current device ID corresponding to the target device ID, and transmits the debug data to the remote debug terminal 310.
(4) The remote debugging terminal 310 receives debugging data so that a remote engineer can perform debugging analysis based on the received debugging data.
In the remote debugging system provided by this embodiment, the remote debugging terminal 310 can send the debugging command to the debugging apparatus 100 through the debugging server 320, and receive the debugging data returned by the debugging apparatus 100 from the debugging server 320, so as to perform debugging analysis, which is helpful to save the communication cost between the remote engineer and the field engineer, and avoid the repeated copying and sending of the debugging command and the debugging data, thereby being helpful to improve the debugging efficiency and the debugging effect.
In an embodiment, the debug server 320 is provided with a first storage area 321 for storing debug commands and a second storage area 322 for storing debug data. As can be appreciated, storing the debug commands and debug data in a partitioned manner helps to improve the efficiency of subsequent data accesses and reads.
As an example, the debugging server 320 stores the debugging commands uploaded by all remote engineers through the remote debugging terminal 310, so that other subsequent remote engineers can directly read or call the debugging commands in the first storage area 321 without inputting the debugging commands themselves, which helps to improve the debugging efficiency.
As an example, all the debugging data is stored in the second storage area 322 of the debugging server 320, so that a subsequent remote engineer performs unified debugging analysis based on all the collected debugging data, so as to perform summary analysis on the devices 200 to be debugged of the same type.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions.
The above-mentioned embodiments are only used for illustrating the technical solution 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 should be understood by those skilled 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 (10)
1. A debugging device is characterized by comprising a control unit, a communication module, a debugging interface module and an interface parameter setting module;
the communication module is electrically connected with the control unit and is used for connecting remote debugging equipment so as to send a debugging command sent by the remote debugging equipment to the control unit and send debugging data sent by the control unit to the remote debugging equipment;
the debugging interface module is electrically connected with the control unit and is used for connecting equipment to be debugged, so as to send debugging commands and debugging interface parameters sent by the control unit to the equipment to be debugged and send debugging data formed by the equipment to be debugged to the control unit;
the interface parameter setting module is electrically connected with the control unit and matched with the control unit to form debugging interface parameters so that the control unit can acquire the debugging interface parameters;
and the control unit is used for receiving a debugging command sent by the communication module and debugging interface parameters formed by matching with the interface parameter setting module, sending the debugging command and the debugging interface parameters to the equipment to be debugged through the debugging interface module, and sending debugging data returned by the debugging interface module to the communication module.
2. The debugging apparatus in accordance with claim 1, wherein the interface parameter setting module comprises an interface setting component and a parameter setting component connected to the control unit, the parameter setting component comprising at least one parameter setting unit.
3. The debugging apparatus according to claim 2, wherein each of the parameter setting units comprises a parameter setting circuit and a selection control switch, a first connection terminal of the selection control switch is connected to the control unit, and a second connection terminal of the selection control switch is connected to the parameter setting circuit or a ground terminal.
4. The debugging apparatus according to claim 3, wherein the selection control switches are toggle selection switches, each of the parameter setting units comprises at least two parameter setting circuits and at least two toggle selection switches, and each of the toggle selection switches is disposed opposite to one of the parameter setting circuits, and is configured to control the parameter setting circuits to be turned on or off with the control unit.
5. The debugging apparatus according to claim 2, wherein each of said parameter setting units comprises at least two parameter setting circuits and a slide selection switch provided between at least two of said parameter setting circuits, each of said parameter setting circuits having one side connected to said control unit and the other side connected to a parameter setting circuit; when the sliding selection switch slides on the parameter setting circuit, the parameter setting circuit corresponding to the parameter setting circuit is electrically connected with the control unit.
6. The debugging apparatus according to claim 1, wherein the debugging apparatus further comprises a storage module connected to the control unit for caching data.
7. The debugging device of claim 1 wherein the communication module comprises a mobile communication unit and a mobile communication antenna electrically connected to the mobile communication unit, and/or a WIFI communication unit and a WIFI communication antenna electrically connected to the WIFI communication unit.
8. The debugging apparatus in accordance with claim 7 wherein the mobile communication units comprise 2G mobile communication units, 3G mobile communication units, 4G mobile communication units, and 5G mobile communication units.
9. A remote debugging system comprising the debugging apparatus according to any one of claims 1 to 8, a debugging server communicatively connected to the debugging apparatus, and a remote debugging terminal communicatively connected to the debugging server.
10. The remote debugging system of claim 9 wherein the debugging server is provided with a first memory area for storing debugging commands and a second memory area for storing debugging data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921738375.2U CN210983375U (en) | 2019-10-16 | 2019-10-16 | Debugging device and remote debugging system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201921738375.2U CN210983375U (en) | 2019-10-16 | 2019-10-16 | Debugging device and remote debugging system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN210983375U true CN210983375U (en) | 2020-07-10 |
Family
ID=71422004
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201921738375.2U Active CN210983375U (en) | 2019-10-16 | 2019-10-16 | Debugging device and remote debugging system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN210983375U (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750402A (en) * | 2019-10-16 | 2020-02-04 | 深圳安时达电子服务有限公司 | Debugging device and remote debugging system |
CN114446380A (en) * | 2022-02-09 | 2022-05-06 | 绿晶半导体科技(北京)有限公司 | Debugging board for realizing SSD remote debugging and SSD remote debugging method |
-
2019
- 2019-10-16 CN CN201921738375.2U patent/CN210983375U/en active Active
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110750402A (en) * | 2019-10-16 | 2020-02-04 | 深圳安时达电子服务有限公司 | Debugging device and remote debugging system |
CN114446380A (en) * | 2022-02-09 | 2022-05-06 | 绿晶半导体科技(北京)有限公司 | Debugging board for realizing SSD remote debugging and SSD remote debugging method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110750402A (en) | Debugging device and remote debugging system | |
CN210983375U (en) | Debugging device and remote debugging system | |
EP3171484B1 (en) | Mobile terminal, power supply adapter, and upgrading method thereof | |
CN103559053A (en) | Board system and FPGA (Field Programmable Logic Array) online update method of communication interface cards | |
CN106774038B (en) | Environment monitoring or monitoring data acquisition and transmission instrument | |
CN104516751A (en) | Server system | |
US20180357193A1 (en) | Computing device and operation method | |
CN104181836B (en) | Signal switching apparatus | |
CN110568946B (en) | Port control method, device and medium | |
CN1972143A (en) | Communications device single board active/standby changeover apparatus and implementation method | |
CN112187303B (en) | SIM card expansion equipment, SIM card switching method and device | |
CN1972142A (en) | Communications device single board active/standby changeover apparatus and implementation method | |
CN211015473U (en) | Upgrade configuration logic circuit, programmable logic device and upgrade configuration system | |
CN112306937A (en) | Setting selection circuit, method, apparatus and medium for mainboard device in server | |
CN102375099A (en) | Portable-type electronic device testing system | |
CN107577574B (en) | Debugging switching circuit and debugging circuit board | |
CN114422613A (en) | Edge computing equipment for heating system | |
CN215769714U (en) | Program upgrading circuit | |
KR20070076747A (en) | Apparatus of data processing and method of setting program data thereof | |
CN115422110B (en) | Port configuration method of electronic equipment and PCIE Switch chip | |
CN210804400U (en) | Communication management machine and system | |
CN215337615U (en) | Control panel of desiccator autonomous configuration | |
CN211264151U (en) | Programmable controller capable of displaying remote multi-communication interface | |
CN219872573U (en) | Remote control network equipment | |
CN221748649U (en) | Disassembly-free upgradeable circuit board |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee after: Shenzhen anshida Technical Service Co.,Ltd. Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.) Patentee before: Shenzhen Anshida Electronic Service Co.,Ltd. |