CN115934608A - Terminal equipment and control method thereof - Google Patents

Terminal equipment and control method thereof Download PDF

Info

Publication number
CN115934608A
CN115934608A CN202211627661.8A CN202211627661A CN115934608A CN 115934608 A CN115934608 A CN 115934608A CN 202211627661 A CN202211627661 A CN 202211627661A CN 115934608 A CN115934608 A CN 115934608A
Authority
CN
China
Prior art keywords
signal
interface
usb
switch switching
switching 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.)
Pending
Application number
CN202211627661.8A
Other languages
Chinese (zh)
Inventor
邢辉
董中财
王哲
李陈香
谢惠丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BOE Technology Group Co Ltd
K Tronics Suzhou Technology Co Ltd
Original Assignee
BOE Technology Group Co Ltd
K Tronics Suzhou Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BOE Technology Group Co Ltd, K Tronics Suzhou Technology Co Ltd filed Critical BOE Technology Group Co Ltd
Priority to CN202211627661.8A priority Critical patent/CN115934608A/en
Publication of CN115934608A publication Critical patent/CN115934608A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention provides a terminal device and a control method of the terminal device, and relates to the technical field of communication. According to an embodiment of the present invention, a terminal device is provided, which includes an external interface, a switch switching module and a control module, wherein an input end of the switch switching module is connected to a first signal interface and at least one test interface inside the terminal device, an output end of the switch switching module is connected to the external interface, and a first signal transmitted through the external interface is output from the first signal interface; the control module sends a control signal to the switch switching module to control the switch switching module to conduct the test interface or the first signal interface with the external interface, so that the test signal output by the test interface in the terminal equipment is transmitted through the external interface, and the damage of the terminal equipment caused by the disassembly test is avoided.

Description

Terminal equipment and control method of terminal equipment
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a terminal device and a control method for the terminal device.
Background
Generally, when a terminal device fails, the cause of the failure of the terminal device can be found through testing. At present, the terminal equipment needs to be disassembled and then tested, but the disassembling process may damage the terminal equipment, so that the test is inconvenient and risks exist.
Disclosure of Invention
The invention provides a terminal device and a control method of the terminal device, which aim to solve the defects in the related art.
According to a first aspect of embodiments of the present invention, there is provided a terminal device, including:
an external interface;
the input end of the switch switching module is connected with a first signal interface and at least one test interface in the terminal equipment, the output end of the switch switching module is connected with the external interface, and a first signal transmitted through the external interface is output from the first signal interface;
and the control module is used for sending a control signal to the switch switching module so as to control the switch switching module to conduct the test interface or the first signal interface with the external interface.
In some embodiments, the control module is to:
responding to the control signal for indicating to output a test signal, and controlling the switch switching module to conduct the test interface and the external interface so that the external interface outputs the test signal;
and responding to the control signal for indicating to output a first signal, and controlling the switch switching module to conduct the first signal interface and the external interface so that the external interface outputs the first signal.
In some embodiments, the test interface comprises a UART interface and a transceiver EC _ TX/RX interface of the embedded controller, the first signal interface comprises a USB signal interface, the test signal comprises a UART signal and an EC _ TX/RX signal, the external interface comprises a USB interface, and the control module is configured to:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
in response to the control signal indicating that the EC _ TX/RX signal is output, controlling the switch switching module to conduct the EC _ TX/RX interface and the USB interface to enable the USB interface to output the EC _ TX/RX signal;
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
In some embodiments, the control signal of the control module is determined by an input device of the terminal device, the input device comprising at least one of a keyboard, a mouse, a touch screen, a microphone.
According to a second aspect of the embodiments of the present invention, there is provided a control method of a terminal device, the method including:
sending a control signal to a switch switching module by using a control module;
and controlling the switch switching module to conduct the test interface or the first signal interface with the external interface based on the control signal.
In some embodiments, the controlling the switch switching module to conduct the test interface or the first signal interface with the external interface based on the control signal includes:
responding to the control signal for indicating to output a test signal, and controlling the switch switching module to conduct the test interface and the external interface so that the external interface outputs the test signal;
and responding to the control signal for indicating to output a first signal, and controlling the switch switching module to conduct the first signal interface and the external interface so that the external interface outputs the first signal.
In some embodiments, the test interface comprises a universal asynchronous receiver transmitter, UART, interface and a transceiver, EC _ TX/RX, interface of the embedded controller, the first signal interface comprises a USB signal interface, the test signal comprises a UART signal and an EC _ TX/RX signal, the external interface comprises a USB interface;
the responding to the control signal for indicating to output the test signal, controlling the switch switching module to conduct the test interface and the external interface, so that the external interface outputs the test signal, includes:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
in response to the control signal for indicating to output the EC _ TX/RX signal, controlling the switch switching module to conduct the EC _ TX/RX interface and the USB interface, so that the USB interface outputs the EC _ TX/RX signal;
the responding to the control signal for instructing to output a first signal, controlling the switch switching module to conduct the first signal interface and the external interface, so that the external interface outputs the first signal, includes:
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
In some embodiments, when the control module is in an operating state and the terminal device is in a shutdown state, receiving an operation instruction issued by a user through an input device based on the control module, wherein different operation instructions are configured with corresponding working mode identifiers;
acquiring a working mode identifier matched with the operation instruction;
and under the condition that the terminal equipment is in a starting state, the control module controls the level state of a pin for outputting a control signal according to the level state parameter corresponding to the working mode identifier.
In some embodiments, the pins outputting the control signal include a first pin, a second pin, and a third pin;
the control module controls the level state of the pin outputting the control signal according to the level state parameter corresponding to the working mode identifier, and the control module comprises:
if the working mode identifier is a first identifier, setting a first pin to be at a low level, setting a second pin to be at a low level, setting a third pin to be at a high level, and indicating to output a UART signal by the first identifier;
if the working mode identifier is a second identifier, setting the first pin to be a low level, setting the second pin to be a high level, setting the third pin to be a high level, and indicating to output a transmitting-receiving signal of the embedded controller by the second identifier;
and if the working mode identifier is a third identifier, setting the first pin to be at a low level, setting the second pin to be at a low level, setting the third pin to be at a low level, and indicating to output a USB signal by the third identifier.
In some embodiments, the method further comprises:
and setting the working mode identifier as a specified value under the condition that the terminal equipment enters a power-off state from a power-on state.
According to the above embodiment, the terminal device provided by the present invention includes an external interface, a switch switching module and a control module, wherein an input end of the switch switching module is connected to a first signal interface and at least one test interface inside the terminal device, an output end of the switch switching module is connected to the external interface, and a first signal transmitted through the external interface is output from the first signal interface; the control module sends a control signal to the switch switching module to control the switch switching module to conduct the test interface or the first signal interface with the external interface, so that the test signal output by the test interface in the terminal equipment is transmitted through the external interface, and the damage of the terminal equipment caused by the disassembly test is avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a schematic diagram illustrating transmission of a test signal through a WLAN interface according to an embodiment of the present invention.
Fig. 2 is an internal schematic diagram of a terminal device according to an embodiment of the present invention.
Fig. 3 is a logic block diagram of a terminal device according to an embodiment of the present invention.
Fig. 4 is a functional schematic diagram of a switching module according to an embodiment of the present invention.
Fig. 5 is a connection diagram of a PI3USB14 chip according to an embodiment of the present invention.
Fig. 6 is a flowchart illustrating a method for controlling a terminal device according to an embodiment of the present invention.
Fig. 7 is a schematic diagram illustrating a control process according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
At present, in a traditional debug test (namely, a troubleshooting test) and a test project (RAM Margin test, RMT) of a memory working condition, transmission of a test signal is realized through an internal interface of a terminal device, but for a terminal device to be tested which has completed complete machine assembly, a disassembling machine is required to perform bare board operation, but the disassembling machine is easy to damage a structural member, time cost is increased, and great troubles are brought to factory production and after-sales service efficiency.
For example, the internal interface may include an m.2 interface, where the m.2 interface may be used to connect a wireless network card WLAN or a solid state disk, and in the case that the m.2 interface is connected to a wireless network card, the m.2 interface is also referred to as a WLAN interface. Fig. 1 is a schematic diagram illustrating transmission of a test signal through a WLAN interface according to an embodiment of the present invention, and as shown in fig. 1, a terminal device 100 may transmit the test signal to a test tool 102 through the WLAN interface 101.
Transmitting test signals to a test tool using a WLAN interface may have at least one of the following problems.
(1) Because the shared WALN signal line is used for transmitting data, the line connection of the main board needs to be modified during actual use so as to avoid signal interference.
(2) The internal interface of the main board can be used for directly testing the bare board, but for the complete machine which is assembled, the test is carried out by disassembling the machine, and the technical requirement on operators is higher because the damage to structural parts is easily caused by disassembling the machine.
(3) In the research and development stage, some situations that the power supply needs to be maintained frequently are often encountered, the power supply is easily lost due to the disassembly analysis, and the abnormal state is eliminated, so that the problem analysis and research are not facilitated.
In view of the above, the present invention provides a terminal device, and the following embodiments of the present invention will be described with reference to the drawings.
Fig. 2 is a schematic diagram of an internal part of a terminal device according to an embodiment of the present invention, and as shown in fig. 2, the terminal device 200 provided by the present invention includes: an external interface 21, a switch switching module 201 and a control module 202.
The input end of the switch switching module 201 is connected to a first signal interface 22 and at least one test interface 23 inside the terminal device, the output end of the switch switching module 201 is connected to the external interface 21, and a first signal transmitted through the external interface 21 is output from the first signal interface 22;
the control module 202 is configured to send a control signal to the switch switching module 201, so as to control the switch switching module 201 to connect the test interface 23 or the first signal interface 22 with the external interface 21.
In this embodiment, the first signal includes a signal output through the first signal interface when the terminal device is operating normally.
The terminal device 200 provided by the invention comprises an external interface 21, a switch switching module 201 and a control module 202, wherein the input end of the switch switching module 201 is connected with a first signal interface 22 and at least one test interface 23 inside the terminal device, the output end of the switch switching module 201 is connected with the external interface 21, and a first signal transmitted through the external interface 21 is output from the first signal interface 22; the control module 202 sends a control signal to the switch switching module 201 to control the switch switching module 201 to connect the test interface 23 or the first signal interface 22 with the external interface 21, so that the test signal output by the test interface 23 in the terminal device is transmitted through the external interface 21, and the terminal device is prevented from being damaged by the disassembly test.
That is to say, the control module controls the switch switching module to conduct the test interface and the external interface, so that the test signal in the terminal equipment is transmitted through the external interface of the terminal equipment, and therefore, the upgrading and debugging of software can be realized on the whole machine without disassembling the machine after research, development, production and sale, the damage of the terminal equipment caused by disassembling the machine is avoided, and the technical requirement of maintenance personnel on the whole machine after sale is reduced.
In other words, in the development stage, the complete machine debug test and the RMT test can be realized through the special UART fault removal tool and the RMT jig, no rework is needed, and the working efficiency can be improved. In the stage of mass production of the terminal equipment, the situation that the machine needs to be disassembled for abnormal analysis can be effectively reduced, structural part damage caused by disassembling is reduced, and the cost is saved. The mainboard can be detected in an after-sale service stage in an disassembling-free mode through one more means, so that the analysis threshold is reduced, and the analysis efficiency is improved.
In some embodiments, the control module 202 may employ a Controller, for example, an Embedded Controller (EC). The control module may also be another form of controller, and this embodiment does not limit this.
In some embodiments, the control module 202 may be configured to:
in response to the control signal indicating to output a test signal, controlling the switch switching module 201 to connect the test interface 23 with the external interface 21, so that the external interface 21 outputs the test signal;
in response to the control signal indicating to output the first signal, the switch switching module 201 is controlled to conduct the first signal interface 22 and the external interface 21, so that the external interface 21 outputs the first signal.
In the embodiment of the present invention, the external interface 21 may be a USB interface, for example, a USB Type-a interface or a USB Type-C interface may be selected. Of course, it should be understood by those skilled in the art that the external interface may also be an interface in other forms, which is not limited in this embodiment.
In some embodiments, the fault removal test can be performed on a CPU on a motherboard of the terminal device, and the startup test can also be performed on the embedded controller. Under the condition of carrying out fault removal test on the CPU, a test signal can be output through a Universal Asynchronous Receiver/Transmitter (UART) interface (UART interface for short); when the embedded controller is subjected to a power-on test, a test signal may be output through a transceiver interface (EC _ TX/RX interface for short) of the embedded controller.
As shown in fig. 3, the test interface may include a UART interface and an EC _ TX/RX interface, the first signal interface may include a USB signal interface, the test signal may include a UART signal and an EC _ TX/RX signal, the external interface may include a USB interface, and in the above case, the control module may be configured to:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
in response to the control signal indicating that the EC _ TX/RX signal is output, controlling the switch switching module to conduct the EC _ TX/RX interface and the USB interface to enable the USB interface to output the EC _ TX/RX signal;
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
In some embodiments, the control signal of the control module may be determined by an input device of the terminal device, which may comprise at least one of a keyboard, a mouse, a touch screen, a microphone. For example, in a case that the input device is a keyboard, the control module may obtain an operation instruction issued by a user through the keyboard, and generate a control signal for controlling the switch switching module according to a control logic of the operation instruction. Under the condition that the input equipment is a microphone, the control module can pick up a voice operation instruction issued by a user through the microphone and generate a control signal for controlling the switch switching module according to the voice operation instruction.
As shown in fig. 3, the UART interface, the EC _ TX/RX interface and the USB signal interface are connected to the input end of the switch switching module, and the switch switching module is controlled by the control signal to connect the UART interface, the EC _ TX/RX interface or the USB signal interface with the USB interface. The USB signal interface can comprise a USBD +/D-interface. That is to say, the EC internal code generates a control signal according to the operation instruction of the input device, and the control signal only allows one group of lines to be conducted, so that the analysis tester can control the USB signal line of the whole device to output the test signal through the input device. Under the condition of not disassembling the machine, the testing tool can acquire the corresponding test data of the mainboard through the USB interface, so that analysis and testing personnel can conveniently analyze and judge.
Fig. 4 is a functional schematic diagram of a switch switching module according to an embodiment of the present invention, where the function of the switch switching module can be understood as that three controlled switches shown in fig. 4 implement a three-in one-out function.
That is, the UART interface, the EC _ TX/RX interface, and the USB signal interface inside the terminal device share the USB interface of the terminal device, and the UART signal, the EC _ TX/RX signal, or the USB signal input from the USB interface is controlled by the control switch switching module.
In some embodiments, the switch switching module may employ a switch switching chip that avoids introducing interference noise, for example, the switch switching chip may employ a PI3USB14 chip. The PI3USB14 chip is provided with a 2-chanel 4:1 multiplexer and 3 state outputs. Since the PI3USB14 chip does not introduce extra terrestrial reflection noise or propagation delay, it can be applied in switching of USB 2.0 signals and other high bandwidths (-815 MHz for 3dB BW).
Fig. 5 is a connection diagram of a PI3USB14 chip according to an embodiment of the invention, in which an enable signal of the PI3USB14 chip is active low, and as shown in fig. 5, in order to avoid an abnormal floating state, the chip may be pulled up to VDD through a 10K resistor. In order to meet the control logic requirement in this embodiment, three control signals EC _ DEBUG _ CFG0/1/2 may be used to determine the output signal data, and a by-pass resistor may also be reserved for the user to flexibly select.
Fig. 6 is a flowchart illustrating a method for controlling a terminal device according to an embodiment of the present invention, and as shown in fig. 6, the present invention may control the terminal device through the following steps 601 and 602.
In step 601, a control module is utilized to send a control signal to a switch switching module.
In step 602, the switch switching module is controlled to conduct the test interface or the first signal interface with the external interface based on the control signal.
In some embodiments, controlling the switch switching module to conduct the test interface or the first signal interface with the external interface based on the control signal includes:
responding to the control signal for indicating to output a test signal, and controlling the switch switching module to conduct the test interface and the external interface so that the external interface outputs the test signal;
and responding to the control signal for indicating to output a first signal, and controlling the switch switching module to conduct the first signal interface and the external interface so that the external interface outputs the first signal.
In some embodiments, the test interface may include a UART interface and an EC _ TX/RX interface, the first signal interface may include a USB signal interface, the test signal includes a UART signal and an EC _ TX/RX signal, and the external interface includes a USB interface.
In this case, the responding to the control signal to instruct outputting the test signal, and controlling the switch switching module to conduct the test interface and the external interface, so that the external interface outputs the test signal includes:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
in response to the control signal indicating that the EC _ TX/RX signal is output, controlling the switch switching module to conduct the EC _ TX/RX interface and the USB interface to enable the USB interface to output the EC _ TX/RX signal;
the responding to the control signal for instructing to output a first signal, controlling the switch switching module to conduct the first signal interface and the external interface, so that the external interface outputs the first signal, includes:
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
In this embodiment, different lines that are conducted in the switch switching module may be regarded as different operation modes, and different signals may be output in the different operation modes. For the control module, a working mode identifier for indicating a working mode can be determined by obtaining an operating instruction received by the input device, and the level state of the pin outputting the control signal is controlled according to the level state parameter corresponding to the working mode identifier. For the switch switching module, the corresponding line can be turned on according to the indication of the level state.
In some embodiments, the method further comprises: under the condition that the control module is in an operating state and the terminal equipment is in a shutdown state, receiving an operation instruction issued by a user through input equipment based on the control module, wherein different operation instructions are configured with corresponding working mode identifiers; acquiring a working mode identifier matched with the operation instruction;
and under the condition that the terminal equipment is in a starting state, the control module controls the level state of a pin for outputting a control signal according to the level state parameter corresponding to the working mode identifier. In an embodiment, in a case that the input device includes a keyboard, the operation instruction may be issued to the control module in a manner of hot key combination, for example, the following may be set: the first hot key combination is used for indicating an external interface to output an operation instruction of a UART signal; the second hot key combination is used for indicating the external interface to output an operation instruction of an EC _ TX/RX signal; in addition to the above two special combinations, other combinations may be defaulted for instructing the external interface to output an operation instruction of the USB signal.
It should be understood by those skilled in the art that the combination manner of the first hotkey combination and the second hotkey combination may be arbitrarily selected according to actual situations, and this embodiment is not limited to this.
In this embodiment, to avoid that the user triggers the hot key by mistake and thus affects the normal function of the external interface, a more complicated and less-used hot key combination may be selected, for example, the first hot key combination may be set to Fn + D + U, and the second hot key combination may be set to Fn + D + P. In addition to using more complex hot key combinations, the hot key logic can be set to be effective only once, and if the relevant test function needs to be repeated, the hot key needs to be executed again to trigger.
In this embodiment, the truth table of the switch module may be configured in advance according to the control logic, that is, the level status parameter of the pin for outputting the control signal in the control module may be determined according to the truth table of the switch module. The pins for outputting the control signal in the control module comprise a first pin, a second pin and a third pin; assume that the first pin is CFG0, the second pin is CFG1, and the third pin is CFG2.
For example, the Switch switching module may select a Switch chip, and the truth table of the Switch chip is shown in the following table.
Truth table of Switch chip
Figure BDA0004004281690000111
In the truth table, when the CFG0 is at a High level, the Switch chip is in an inactive state, and the output assumes a High impedance state High-Z.
When CFG0 is low, the Switch chip is in an enabled state, and the output signal depends on the level states of CFG1 and CFG2, which specifically includes:
under the condition that the CFG1 is at a low level and the CFG2 is at a low level, the USB signal interface is communicated with the USB interface, and the USB interface outputs a USB signal;
under the condition that CFG1 is at a low level and CFG2 is at a high level, the UART interface is communicated with the USB interface, and the USB interface outputs UART signals;
when the CFG1 is at a high level and the CFG2 is at a low level, the EC _ TX/RX interface is conducted with the USB interface, and the USB interface outputs an EC _ TX/RX signal;
when CFG1 is at a high level and CFG2 is at a high level, the USB interface is not used.
That is to say, the controlling module controls the level state of the pin outputting the control signal according to the level state parameter corresponding to the working mode identifier, including:
if the working mode identifier is a first identifier, setting a first pin to be at a low level, setting a second pin to be at a low level, setting a third pin to be at a high level, and indicating to output a UART signal by the first identifier;
if the working mode identifier is a second identifier, setting the first pin to be a low level, setting the second pin to be a high level, setting the third pin to be a high level, and indicating to output a transmitting-receiving signal of the embedded controller by the second identifier;
and if the working mode identifier is a third identifier, setting the first pin to be at a low level, setting the second pin to be at a low level, setting the third pin to be at a low level, and indicating to output a USB signal by the third identifier.
In the embodiment of the present invention, the operating mode identifier may be set to a specified value when the terminal device enters the shutdown state from the startup state. For example, a reset operation may be performed on the operation mode identification.
Fig. 7 is a schematic diagram of a control process according to an embodiment of the present invention, in fig. 7, the control module may adopt an EC, and since the EC is powered by 3VL, the EC is always powered when the control module is not turned on, so that an operation instruction may be sent to the EC before the control module is turned on, and the EC controls the GPIO to complete the line switching of the switch control module according to the definition. In the software implementation process, the flag bit debug _ flag is used to identify the control signals in different operating modes, and the specific process includes the following steps 701 to 709.
In step 701, when the EC 3VL is powered on and operated and the terminal device is in the S5 power-off state, the debug _ flag is initialized, so that the debug _ flag =0.
In step 702, it is determined whether a hot key is detected, and if a hot key Fn + D + U is detected, step 703 is executed; if the hot key Fn + D + P is detected, go to step 704; if the hot key is not detected, the debug _ flag is still 0.
The hot key Fn + D + U is used for indicating to output a UART signal, and the hot key Fn + D + P is used for indicating to output an EC _ TX/RX signal.
In step 703, debug _ flag is set to 1.
In step 704, debug _ flag is set to 2.
In this example, the first flag may be 1, the second flag may be 2, and the third flag may be 0.
In step 705, it is detected whether the terminal device is in a power-on state, and if it is detected that the terminal device is in the power-on state, the level states of CFG0, CFG1, and CFG2 are determined according to the value of debug _ flag.
In step 706, if debug _ flag =1, the CFG0 is set to the low level, the CFG1 is set to the low level, and the CFG2 is set to the high level, so as to control the UART interface in the switch switching module to be conducted with the USB interface, so that the USB interface outputs the UART signal.
In step 707, if debug _ flag =2, set CFG0 to a low level, set CFG1 to a high level, set CFG2 to a low level, and control the EC _ TX/RX interface in the switch switching module to be conducted with the USB interface, so that the USB interface outputs an EC _ TX/RX signal.
In step 708, if debug _ flag =0, set CFG0 to low level, set CFG1 to low level, set CFG2 to low level, and control the USB signal interface in the switch switching module to be conducted with the USB interface, so that the USB interface outputs the USB signal.
In step 709, it is detected that the terminal device enters the shutdown state from the power-on state, so that debug _ flag =0, that is, the flag bit is reset, thereby avoiding interference with subsequent operations.
In this embodiment, by changing the internal circuit design of the terminal device, the UART interface of the CPU or the APU and the EC _ TX/RX interface are connected to the switch switching module, and an EC control circuit is added, and the UART signal or the EC _ TX/RX signal is controlled to be output through the USB interface by a preset key, so that the debug test function and the RMT test function are realized without disassembling the device, and the function of the USB interface is not interfered.
The terminal device in this embodiment may be: any product or component with testing requirements, such as electronic paper, a mobile phone, a tablet computer, a television, a notebook computer, a digital photo frame, a navigator and the like.
It is noted that in the drawings, the sizes of layers and regions may be exaggerated for clarity of illustration. Also, it will be understood that when an element or layer is referred to as being "on" another element or layer, it can be directly on the other element or intervening layers may also be present. In addition, it will be understood that when an element or layer is referred to as being "under" another element or layer, it can be directly under the other element or intervening layers or elements may also be present. In addition, it will also be understood that when a layer or element is referred to as being "between" two layers or elements, it can be the only layer between the two layers or elements, or more than one intermediate layer or element may also be present. Like reference numerals refer to like elements throughout.
In the present invention, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. The term "plurality" means two or more unless expressly limited otherwise.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (10)

1. A terminal device, comprising:
an external interface;
the input end of the switch switching module is connected with a first signal interface and at least one test interface inside the terminal equipment, the output end of the switch switching module is connected with the external interface, and a first signal transmitted through the external interface is output from the first signal interface;
and the control module is used for sending a control signal to the switch switching module so as to control the switch switching module to conduct the test interface or the first signal interface with the external interface.
2. The terminal device of claim 1, wherein the control module is configured to:
responding to the control signal for indicating to output a test signal, and controlling the switch switching module to conduct the test interface and the external interface so that the external interface outputs the test signal;
and responding to the control signal for indicating to output a first signal, and controlling the switch switching module to conduct the first signal interface and the external interface so that the external interface outputs the first signal.
3. The terminal device of claim 2, wherein the test interface comprises a UART interface and a transceiver interface of the embedded controller, the first signal interface comprises a USB signal interface, the test signal comprises a UART signal and a transceiver signal of the embedded controller, the external interface comprises a USB interface, and the control module is configured to:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
responding to the control signal for indicating to output the transceiving signal of the embedded controller, and controlling the switch switching module to conduct the transceiving interface of the embedded controller and the USB interface, so that the USB interface outputs the transceiving signal of the embedded controller;
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
4. The terminal device according to any of claims 1 to 3, characterized in that the control signal of the control module is determined by an input device of the terminal device, the input device comprising at least one of a keyboard, a mouse, a touch screen, a microphone.
5. A control method of a terminal device, the method comprising:
sending a control signal to a switch switching module by using a control module;
and controlling the switch switching module to conduct the test interface or the first signal interface with the external interface based on the control signal.
6. The method of claim 5, wherein the controlling the switch switching module to conduct a test interface or a first signal interface with an external interface based on the control signal comprises:
responding to the control signal for indicating to output a test signal, and controlling the switch switching module to conduct the test interface and the external interface so that the external interface outputs the test signal;
and responding to the control signal for indicating to output a first signal, and controlling the switch switching module to conduct the first signal interface and the external interface so that the external interface outputs the first signal.
7. The method of claim 6, wherein the test interface comprises a UART interface and a transceiving interface of the embedded controller, the first signal interface comprises a USB signal interface, the test signal comprises a UART signal and a transceiving signal of the embedded controller, and the external interface comprises a USB interface;
the responding to the control signal for indicating to output the test signal, controlling the switch switching module to conduct the test interface and the external interface, so that the external interface outputs the test signal, includes:
responding to the control signal for indicating to output the UART signal, and controlling the switch switching module to conduct the UART interface and the USB interface so that the USB interface outputs the UART signal;
responding to the control signal for indicating to output the transceiving signal of the embedded controller, and controlling the switch switching module to conduct the transceiving interface of the embedded controller and the USB interface, so that the USB interface outputs the transceiving signal of the embedded controller;
the responding to the control signal for instructing to output a first signal, controlling the switch switching module to conduct the first signal interface and the external interface, so that the external interface outputs the first signal, includes:
and responding to the control signal for indicating to output a USB signal, and controlling the switch switching module to conduct the USB signal interface and the USB interface so that the USB interface outputs the USB signal.
8. The method according to any one of claims 5 to 7, further comprising:
under the condition that the control module is in an operating state and the terminal equipment is in a shutdown state, receiving an operation instruction issued by a user through input equipment based on the control module, wherein different operation instructions are configured with corresponding working mode identifiers;
acquiring a working mode identifier matched with the operation instruction;
and under the condition that the terminal equipment is in a starting state, the control module controls the level state of a pin for outputting a control signal according to the level state parameter corresponding to the working mode identifier.
9. The method of claim 8, wherein the pins outputting the control signal comprise a first pin, a second pin, and a third pin;
the control module controls the level state of the pin outputting the control signal according to the level state parameter corresponding to the working mode identifier, and the control module comprises:
if the working mode identifier is a first identifier, setting a first pin to be at a low level, setting a second pin to be at a low level, setting a third pin to be at a high level, and indicating to output a UART signal by the first identifier;
if the working mode identifier is a second identifier, setting the first pin to be a low level, setting the second pin to be a high level, setting the third pin to be a high level, and indicating to output a transmitting-receiving signal of the embedded controller by the second identifier;
and if the working mode identifier is a third identifier, setting the first pin to be at a low level, setting the second pin to be at a low level, setting the third pin to be at a low level, and indicating to output a USB signal by the third identifier.
10. The method of claim 8, further comprising:
and setting the working mode identifier to a specified value under the condition that the terminal equipment enters a shutdown state from a startup state.
CN202211627661.8A 2022-12-16 2022-12-16 Terminal equipment and control method thereof Pending CN115934608A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211627661.8A CN115934608A (en) 2022-12-16 2022-12-16 Terminal equipment and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211627661.8A CN115934608A (en) 2022-12-16 2022-12-16 Terminal equipment and control method thereof

Publications (1)

Publication Number Publication Date
CN115934608A true CN115934608A (en) 2023-04-07

Family

ID=86551894

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211627661.8A Pending CN115934608A (en) 2022-12-16 2022-12-16 Terminal equipment and control method thereof

Country Status (1)

Country Link
CN (1) CN115934608A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119176A (en) * 2023-10-23 2023-11-24 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method
CN117349209A (en) * 2023-10-23 2024-01-05 江苏帝奥微电子股份有限公司 Anti-creeping I/O interface circuit with test function

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117119176A (en) * 2023-10-23 2023-11-24 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method
CN117349209A (en) * 2023-10-23 2024-01-05 江苏帝奥微电子股份有限公司 Anti-creeping I/O interface circuit with test function
CN117349209B (en) * 2023-10-23 2024-03-08 江苏帝奥微电子股份有限公司 Anti-creeping I/O interface circuit with test function
CN117119176B (en) * 2023-10-23 2024-04-05 深圳市龙之源科技股份有限公司 Camera test circuit, camera test device and camera test method

Similar Documents

Publication Publication Date Title
CN115934608A (en) Terminal equipment and control method thereof
CN108475227B (en) Test functional assembly and data debugging method
US7231553B2 (en) System and method for testing computing devices
CN105553754B (en) A kind of wireless telecom equipment design method of testability
CN111063386A (en) DDR chip testing method and device
US20110252277A1 (en) Electronic device with debugging and software updating function
CN112380066B (en) Server maintenance and debugging device based on domestic platform and server
CN112948186B (en) Detection device and detection method of interface signal
CN109992551B (en) USB C-type interface information reading method and information reading circuit
CN101141234B (en) Bus switching method and system
CN106803776B (en) Radio frequency front end testing device and radio frequency front end testing method
CN112882773B (en) Network performance detection method, device, test terminal and storage medium
CN110687363A (en) SFP port test fixture
CN214154524U (en) Airborne short-wave radio station comprehensive tester and system
CN102377593A (en) Network management card test device and method
CN116413632B (en) Leakage current testing device and leakage current testing method
CN220730801U (en) Equipment based on SPI-LIN communication port extension
CN117520234B (en) Automatic identification circuit of Type-C interface external equipment and related equipment
CN108932200B (en) Test circuit and software debugging method
CN219302579U (en) Testing device and testing system
CN218849054U (en) Display device and debugging system thereof
CN116961784B (en) System and method for testing receiving channel of radio frequency chip
KR101284616B1 (en) An universal serial bus device and Method for improving data transfer rate in thereof and mobile terminal installed thereof
KR100809259B1 (en) Device for interface of communication module
JP7287255B2 (en) Control device, measurement system, control method and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination