A telephone debugging system and equipment

By using the USB-OTG interface connected to the MCU controller in the phone debugging system to enumerate and authenticate the USB-HID and Serial Gadget communication modes, the device debugging and troubleshooting are realized, and the problem of difficult debugging during mass production of the device is solved. , improve efficiency and reduce costs.

CN110808876BActive Publication Date: 2024-09-06YEALINK (XIAMEN) NETWORK TECHNOLOGY CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN201911042580.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-10-30
Publication Date
2024-09-06
Estimated Expiration
2039-10-30

AI Technical Summary

Technical Problem

During the mass production stage of the equipment, the equipment cannot be disassembled for serial port debugging, and cannot be logged in through the network when the network is abnormal, resulting in low troubleshooting efficiency and the inability to solve the problem in a timely manner.

Method used

Provides a phone debugging system, including a first USB-OTG interface and a second USB-OTG interface connected to an MCU controller. Device debugging is performed through USB-HID and Serial Gadget communication modes to achieve bidirectional USB-OTG interface login and real-time Listen and forward debugging information.

Benefits of technology

It improves the efficiency of equipment debugging and troubleshooting, reduces costs, meets practical application requirements, and enables debugging and information acquisition through the bidirectional USB-OTG interface when the equipment fails.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN110808876B
    Figure CN110808876B
Patent Text Reader

Abstract

The present invention discloses a telephone debugging system and equipment, including a first USB-OTG interface, a second USB-OTG interface and a network port connected to an MCU controller, wherein the first USB-OTG interface enumerates USB-HID and Serial Gadget communication modes to a telephone device to be debugged, and after the device to be debugged passes the communication authentication of the USB-HID mode, the device debugging of the telephone device is performed through the Serial Gadget mode; the second USB-OTG interface enumerates USB-HID and Serial Gadget communication modes to a debugging terminal, and after the debugging system passes the device authentication of the debugging terminal, the debugging terminal issues debugging information through a corresponding debugging window; and the MCU controller monitors the debugging data of the first USB-OTG interface and the second USB-OTG interface in real time and forwards the data. The present invention solves the problem that the existing telephone device debugging needs to disassemble the whole machine and then weld the serial port for debugging when the whole machine is tested or fails, which leads to the problem that when the equipment has problems, it cannot be solved effectively, timely and safely, and meets the actual application needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of communication networks, and in particular to a telephone debugging system and equipment. Background Art

[0002] With the development of the times and the continuous improvement of people's living standards, the production of various intelligent devices is becoming more and more rapid. In the production process of intelligent devices, developers generally reserve some special debugging programs in the product to configure and generate corresponding debugging tools. The debugging tools are used for functional debugging and whole machine testing after the product is produced.

[0003] As we all know, debugging is a necessary procedure to ensure that the equipment provided can operate normally. Program debugging is the process of testing the compiled program manually or by compiling the program to correct syntax errors and logic errors before putting it into actual operation. After the computer program is compiled, it must be sent to the computer for testing. According to the errors found during the test, further diagnosis is carried out to find out the cause and specific location for correction.

[0004] Among them, during the equipment development stage, the hardware can weld serial ports on the equipment, or log in to the phone through the network for development and debugging, or log in to view relevant information when problems occur. However, when the equipment is mass-produced, the production generally performs a whole machine stress test. Since the equipment at this stage is a complete machine, it is not convenient to disassemble the whole machine and then weld the serial port for debugging. In addition, if the equipment has a network anomaly, it is impossible to log in to the phone through the network for debugging, and it is impossible to obtain useful information from the device to locate the anomaly, resulting in the inability to effectively, promptly and safely solve the problem when the equipment has a problem. Summary of the invention

[0005] In order to solve the above problems, the purpose of the present invention is to provide a telephone debugging system and equipment that can improve the efficiency and time of equipment debugging and ensure the safety of the equipment.

[0006] The telephone debugging system provided by the present invention comprises a first USB-OTG interface, a second USB-OTG interface and a network port connected to an MCU controller.

[0007] The first USB-OTG interface is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode of the phone device to be debugged, and when the phone device to be debugged passes the communication authentication of the USB-HID communication mode, the device debugging of the phone device to be debugged is performed through the Serial Gadget communication mode;

[0008] The second USB-OTG interface is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode to the debugging terminal. When the debugging system passes the device authentication of the debugging terminal, the debugging terminal sends the debugging information through the corresponding debugging window;

[0009] The MCU controller is used to monitor the debugging information of the first USB-OTG interface and the second USB-OTG interface in real time and forward the debugging information.

[0010] The telephone debugging system provided by the present invention comprises a first USB-OTG interface, a second USB-OTG interface and a network port connected to an MCU controller. The first USB-OTG interface enumerates USB-HID and Serial Gadget communication modes for a telephone device to be debugged. When the device to be debugged passes the communication authentication of the USB-HID mode, the device debugging of the telephone device is performed through the Serial Gadget mode; the second USB-OTG interface enumerates USB-HID and Serial Gadget communication modes for a debugging terminal. When the debugging system passes the device authentication of the debugging terminal, the debugging terminal sends debugging information through a corresponding debugging window; the MCU controller monitors the debugging data of the first USB-OTG interface and the second USB-OTG interface in real time and forwards the debugging data, thereby realizing the debugging of the telephone device; since the device can be logged in through the bidirectional USB-OTG interface to debug the device when a fault occurs in the telephone device, the efficiency of debugging and troubleshooting is improved, the cost of debugging and troubleshooting is reduced, and the actual application requirements are met.

[0011] In addition, the telephone debugging system according to the present invention may also have the following additional technical features:

[0012] Furthermore, the telephone debugging system also includes a power module and a storage module, the power module includes a first regulation circuit, a second regulation circuit and a third regulation circuit, the first regulation circuit, the second regulation circuit and the third regulation circuit are respectively connected to the MCU controller, the storage module and the network port, and the first regulation circuit, the second regulation circuit and the third regulation circuit are all used to output a 3.3V voltage.

[0013] Furthermore, the first regulating circuit and the second regulating circuit each include a TLV62569 buck converter; the second regulating circuit includes a tlv70433dbvr regulator.

[0014] Furthermore, the storage module includes a first storage area and a second storage area, and the MCU controller includes a storage selection circuit connected to the storage module, and the storage selection circuit is used to select a storage area through a corresponding startup mode.

[0015] Furthermore, the first USB-OTG interface and the second USB-OTG interface include:

[0016] A main control chip, used to control the transmission of signals on the anti-surge circuit of the telephone debugging system;

[0017] A filter circuit is electrically connected to the signal output terminal of the main control chip, and the filter circuit is used to filter the output signal of the main control chip;

[0018] An anti-surge circuit is electrically connected to the power input terminal of the USB-OTG interface, wherein a MOS tube is provided in the anti-surge circuit, and the anti-surge circuit is used to control the power supply voltage delivered to the USB-OTG interface within a preset voltage range;

[0019] The rectifier circuit is electrically connected to the output end of the main control chip, the input end of the filter circuit and the input end of the surge protection circuit respectively, and is used to convert the alternating current transmitted from the main control chip to the surge protection circuit into unidirectional pulsating direct current.

[0020] Furthermore, the surge protection circuit also includes a damping diode electrically connected to the power input end of the USB-OTG interface, the output end of the damping diode is electrically connected through an RC circuit composed of a voltage-dividing resistor and a first capacitor, a transient suppression diode is connected in parallel between the front end of the first capacitor and the rear end of the voltage-dividing resistor, and the gate, source and drain of the MOS tube are electrically connected to the positive power input end, the negative power input end and the input end of the filter circuit respectively.

[0021] Furthermore, the filtering circuit includes a second capacitor and a third capacitor whose input ends are electrically connected to the main control chip and the input end of the rectifier circuit respectively, and the output ends of the second capacitor and the third capacitor are grounded.

[0022] Furthermore, the rectification circuit includes a rectification resistor and a rectification diode connected in series with the rectification resistor, and the rectification diode is electrically connected to the positive pole of the power supply.

[0023] Furthermore, the filter circuit also includes a fourth capacitor and a fifth capacitor whose input end is electrically connected to the main control chip and whose output end is grounded.

[0024] Another embodiment of the present invention proposes a telephone debugging device, which is applied to the above-mentioned telephone debugging system, solving the problem that the telephone device is usually not connected to the serial port or the serial port cannot be opened during mass production, so that debugging or effective information cannot be obtained in time when the device is abnormal or fails, thereby meeting the actual application needs.

[0025] The phones used in device trials or mass production generally do not have serial ports, or have serial ports but they are not enabled, or the device itself only has a USB-HOST but no OTG interface. This results in the inability to debug or obtain valid information when the device is abnormal, especially when encountering probabilistic problems, which are sometimes difficult to solve and lead to low efficiency in problem solving.

[0026] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description or will be learned through embodiments of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A structural block diagram of a telephone debugging system proposed in an embodiment of the present invention;

[0028] Figure 2 for Figure 1 The structural block diagram of the USB-OTG interface;

[0029] Figure 3 This is a structural block diagram of a telephone device debugging device proposed in an embodiment of the present invention.

[0030] Description of main component symbols:

[0031]

[0032] The following specific implementation manner will further illustrate the present invention in conjunction with the above-mentioned drawings. DETAILED DESCRIPTION

[0033] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0034] See also Figures 1 to 3A telephone debugging system is proposed in the first embodiment of the present invention, which includes a first USB-OTG interface 20, a second USB-OTG interface 30, a network port 40 and a storage module 50 connected to an MCU controller 10, and a power module 60 for powering the telephone debugging system.

[0035] The network port 40 uses the RTL8201 100M phy network card chip. Since the network is only used for debugging when developing the tool, such as copying files, 100M is sufficient. The MCU controller uses the MIMXRT1052 chip, which can provide a 2-way OTG interface and can connect to the IO port to connect each module for communication.

[0036] Furthermore, the first USB-OTG interface 20 is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode of the telephone device to be debugged. When the telephone device to be debugged passes the communication authentication of the USB-HID communication mode, the device debugging of the telephone device to be debugged is performed through the Serial Gadget communication mode. The second USB-OTG interface 30 is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode to the debugging terminal. When the debugging system passes the device authentication of the debugging terminal, the debugging terminal sends the debugging information through the corresponding debugging window. The MCU controller 10 is used to monitor the debugging information of the first USB-OTG interface 20 and the second USB-OTG interface 30 in real time and forward it.

[0037] It can be understood that when the first USB-OTG interface and the second USB-OTG interface are connected to the telephone device to be debugged and the debugging terminal respectively, the debugging system works, has serial port function and network port function, and can use standard USB-HID and Serial Gadget functions, so as to realize the detection and forwarding of data of the two USB-OTG interfaces. Among them, when the first USB-OTG interface passes the authentication, the Serial Gadget mode is used to debug the device of the telephone device; when the second USB-OTG interface passes the authentication, the debugging terminal sends the debugging information through the corresponding debugging window such as SecureCRT to realize the debugging of the telephone device to be debugged; when the debugging system fails, the fault detection of the debugging system can be realized through the network port 40. In addition, the first USB-OTG interface and the second USB-OTG interface can be bidirectional interfaces, that is, the first USB-OTG interface and the second USB-OTG interface can receive both the debugging device and the debugging terminal.

[0038] Furthermore, the first USB-OTG interface and the second USB-OTG interface include:

[0039] The main control chip 100 is used to control the transmission of signals on the anti-surge circuit of the telephone debugging system. In this embodiment, the model of the main control chip is ESD3v3u4ulc.

[0040] The filter circuit 101 is electrically connected to the signal output terminal of the main control chip, and is used for filtering the output signal of the main control chip.

[0041] The filter circuit 101 includes a second capacitor and a third capacitor whose input ends are electrically connected to the main control chip and the input end of the rectifier circuit respectively, and the output ends of the second capacitor and the third capacitor are grounded. The filter circuit also includes a fourth capacitor and a fifth capacitor whose input end is electrically connected to the main control chip and whose output end is grounded. The second capacitor, the third capacitor, the fourth capacitor and the fifth capacitor are all super capacitors.

[0042] The surge protection circuit 103 is electrically connected to the power input terminal of the USB-OTG interface, and is used to control the power supply voltage delivered to the USB-OTG interface within a preset voltage range.

[0043] The surge protection circuit 103 includes a damping diode electrically connected to the power input end of the USB-OTG interface, the output end of the damping diode is electrically connected through an RC circuit composed of a voltage-dividing resistor and a first capacitor, a transient suppression diode is connected in parallel between the front end of the first capacitor and the rear end of the voltage-dividing resistor, and the gate, source and drain of the MOS tube are electrically connected to the positive end of the power input, the negative end of the power input and the input end of the filter circuit respectively, so as to avoid the surge condition when the debugging system is powered on, and realize the soft start of the circuit of the system. Among them, the model of the damping diode is SF5L60U, the first capacitor is a disassembly capacitor, the model of the transient suppression diode is MDJ36A / CA, and the model of the MOS tube gate is VIC1132DI.

[0044] The rectifier circuit 104 is electrically connected to the output end of the main control chip, the input end of the filter circuit and the input end of the surge protection circuit respectively, and is used to convert the alternating current transmitted from the main control chip to the surge protection circuit into unidirectional pulsating direct current.

[0045] The rectifier circuit 104 includes a rectifier resistor and a rectifier diode connected in series with the rectifier resistor, and the rectifier diode is electrically connected to the positive electrode of the power supply. The model of the rectifier diode is 1N4007.

[0046] The storage module 50 includes a first storage area and a second storage area. The MCU controller includes a storage selection circuit connected to the storage module. The storage selection circuit is used to select a storage area according to a corresponding startup mode.

[0047] The storage module 50 uses a DDR / FLASH circuit to provide the memory and storage required for system operation. The Flash part is mainly composed of two parts: SDcard and SPI flash. The firmware of the device can be burned into the SDcard or SPI flash, and then the storage selection circuit is used to select whether to boot from the SDcard or from the SPI flash. Specifically, the GPIO connected to the MIMXRT1052 chip can output different levels to start the boot, such as 10 for starting from the SDcard, and 00 for starting from the SPI flash.

[0048] The power module 60 includes a first regulating circuit, a second regulating circuit and a third regulating circuit, the first regulating circuit, the second regulating circuit and the third regulating circuit are respectively connected to the MCU controller, the storage module and the network port, and the first regulating circuit, the second regulating circuit and the third regulating circuit are all used to output a 3.3V voltage. The first regulating circuit and the second regulating circuit each include a TLV62569 buck converter; the second regulating circuit includes a tlv70433dbvr regulator.

[0049] The telephone debugging system provided by the present invention comprises a first USB-OTG interface, a second USB-OTG interface and a network port connected to an MCU controller. The first USB-OTG interface enumerates USB-HID and Serial Gadget communication modes for a telephone device to be debugged. When the device to be debugged passes the communication authentication of the USB-HID mode, the device debugging of the telephone device is performed through the Serial Gadget mode; the second USB-OTG interface enumerates USB-HID and Serial Gadget communication modes for a debugging terminal. When the debugging system passes the device authentication of the debugging terminal, the debugging terminal sends debugging information through a corresponding debugging window; the MCU controller monitors the debugging data of the first USB-OTG interface and the second USB-OTG interface in real time and forwards the debugging data, thereby realizing the debugging of the telephone device; since the device can be logged in through the bidirectional USB-OTG interface to debug the device when a fault occurs in the telephone device, the efficiency of debugging and troubleshooting is improved, the cost of debugging and troubleshooting is reduced, and the actual application requirements are met.

[0050] It should also be noted that another embodiment of the present invention further provides a telephone debugging device, which is applied to the above-mentioned telephone debugging system.

[0051] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0052] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.

[0053] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.

Claims

1. A telephone debugging system, characterized in that: It includes a first USB-OTG interface, a second USB-OTG interface and a network port connected to the MCU controller. The first USB-OTG interface is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode of the phone device to be debugged, and when the phone device to be debugged passes the communication authentication of the USB-HID communication mode, the device debugging of the phone device to be debugged is performed through the Serial Gadget communication mode; The second USB-OTG interface is used to enumerate the USB-HID communication mode and the Serial Gadget communication mode to the debugging terminal. When the debugging system passes the device authentication of the debugging terminal, the debugging terminal sends the debugging information through the corresponding debugging window; The MCU controller is used to monitor the debugging information of the first USB-OTG interface and the second USB-OTG interface in real time and forward the debugging information; The first USB-OTG interface and the second USB-OTG interface are both bidirectional interfaces; The network port is used to perform fault detection of the debugging system when the debugging system fails.

2. The telephone debugging system according to claim 1, characterized in that: The telephone debugging system also includes a power module and a storage module, the power module includes a first regulation circuit, a second regulation circuit and a third regulation circuit, the first regulation circuit, the second regulation circuit and the third regulation circuit are respectively connected to the MCU controller, the storage module and the network port, and the first regulation circuit, the second regulation circuit and the third regulation circuit are all used to output a 3.3V voltage.

3. The telephone debugging system according to claim 2, characterized in that: The first regulating circuit and the second regulating circuit both include a TLV62569 buck converter; the second regulating circuit includes a tlv70433dbvr regulator.

4. The telephone debugging system according to claim 2, characterized in that: The storage module includes a first storage area and a second storage area, and the MCU controller includes a storage selection circuit connected to the storage module, and the storage selection circuit is used to select a storage area through a corresponding startup mode.

5. The telephone debugging system according to claim 1, characterized in that: The first USB-OTG interface and the second USB-OTG interface include: A main control chip, used to control the transmission of signals on the anti-surge circuit of the telephone debugging system; A filter circuit is electrically connected to the signal output terminal of the main control chip, and the filter circuit is used to filter the output signal of the main control chip; An anti-surge circuit is electrically connected to the power input terminal of the USB-OTG interface, wherein a MOS tube is provided in the anti-surge circuit, and the anti-surge circuit is used to control the power supply voltage delivered to the USB-OTG interface within a preset voltage range; The rectifier circuit is electrically connected to the output end of the main control chip, the input end of the filter circuit and the input end of the surge protection circuit respectively, and is used to convert the alternating current transmitted from the main control chip to the surge protection circuit into unidirectional pulsating direct current.

6. The telephone debugging system according to claim 5, characterized in that: The surge protection circuit also includes a damping diode electrically connected to the power input end of the USB-OTG interface, the output end of the damping diode is electrically connected through an RC circuit consisting of a voltage-dividing resistor and a first capacitor, a transient suppression diode is connected in parallel between the front end of the first capacitor and the rear end of the voltage-dividing resistor, and the gate, source and drain of the MOS tube are electrically connected to the positive power input end, the negative power input end and the input end of the filter circuit respectively.

7. The telephone debugging system according to claim 5, characterized in that: The filter circuit includes a second capacitor and a third capacitor whose input ends are electrically connected to the main control chip and the input end of the rectifier circuit respectively, and the output ends of the second capacitor and the third capacitor are grounded.

8. The telephone debugging system according to claim 5, characterized in that: The rectifier circuit includes a rectifier resistor and a rectifier diode connected in series with the rectifier resistor, and the rectifier diode is electrically connected to the positive pole of the power supply.

9. The telephone debugging system according to claim 5, characterized in that: The filter circuit also includes a fourth capacitor and a fifth capacitor whose input end is electrically connected to the main control chip and whose output end is grounded.

10. A telephone debugging device, characterized in that: It includes a telephone debugging system applied to any one of claims 1 to 9.

Citation Information

Patent Citations

  • OTG device

    CN103684407A

  • Method and system for expanding other interfaces through USB-OTG interface based on Android system

    CN103902488A

  • System and method for expanding peripheral interfaces of intelligent terminal

    CN104090857A

  • System for realizing both-way communication and control between two hosts based on USB (Universal Serial Bus) interfaces

    CN104484302A

  • Private network access method and terminal equipment

    CN109963321A