Disclosure of Invention
The invention aims to provide a signal processing system, which improves the user experience because a USB cable is visible everywhere on one hand, and reduces the volume of computer equipment by omitting a serial signal interface on the other hand; another object of the present invention is to provide a computer device including the above signal processing system, which improves user experience due to the USB cable being visible anywhere, and reduces the size of the computer device by omitting the serial signal interface.
To solve the above technical problem, the present invention provides a signal processing system, including:
the CPU is used for communicating with external equipment through a serial port signal or a USB signal;
the signal switching device is used for connecting a third end of the signal switching device with the first end or the second end under the external control;
the first end is connected with the third end of the signal switching device, and the second end is used for being connected with a USB interface of a USB cable of the external equipment.
Preferably, the signal processing system further comprises:
the control device is connected with the CPU and used for sending a first control signal and a second control signal through the control device;
the CPU is further configured to output a serial signal through the serial signal pin of the CPU when receiving the first control signal, and output a serial signal through the USB signal pin of the CPU when receiving the second control signal.
Preferably, the signal switching device includes:
an operating device;
and the signal gating chip is used for switching on the third end of the signal gating chip with the first end or the second end under the control of the control device.
Preferably, the control device and the control device are both mechanical control switches.
Preferably, the control device and the operating device are the same mechanical operating switch.
Preferably, the control device and the control device are both toggle switches.
Preferably, the signal processing system further comprises:
a prompting device;
the CPU is further configured to control the prompting device to prompt that the first control signal or the second control signal is currently received.
Preferably, the prompting device is a light prompting device.
Preferably, the prompting device is a light emitting diode arranged on the control device.
In order to solve the technical problem, the invention further provides a computer device comprising the signal processing system.
The invention provides a signal processing system, which considers that a USB cable can transmit serial signals, so that the USB interface on a CPU is multiplexed, the USB interface can transmit the USB signals through a signal switching device so as to be connected with normal USB equipment, and the USB interface can be connected with external equipment so as to facilitate the external equipment to realize the communication of the serial signals with the CPU through the USB interface, namely the external equipment is connected with the USB interface through the USB cable, so that the debugging and maintenance work of computer equipment can be carried out.
The invention also provides computer equipment which has the same beneficial effects as the signal processing system.
Detailed Description
The core of the invention is to provide a signal processing system, on one hand, the USB cable is visible everywhere, thus improving the user experience, and on the other hand, the volume of the computer equipment can be reduced by omitting a serial signal interface; another core of the present invention is to provide a computer device including the above signal processing system, on one hand, since the USB cable is visible everywhere, user experience is improved, and on the other hand, the volume of the computer device can be reduced by omitting the serial signal interface.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a signal processing system according to the present invention, the signal processing system including:
the CPU 1 is used for communicating with external equipment through a serial port signal or a USB signal;
the signal switching device 2 is used for connecting a third end of the signal switching device with the first end or the second end under the control of the outside;
the first end is connected with the third end of the signal switching device 2, and the second end is used for the USB interface 3 connected with the USB cable of the external equipment.
Specifically, in view of the technical problems in the background art, in combination with the fact that the USB cable itself can transmit serial signals, the present application intends to enable the CPU 1 to selectively communicate serial signals with an external device through the USB interface 3, or communicate with a USB device through USB, that is, multiplex the USB interface 3 on the CPU 1, and connect the external device and the USB interface 3 through the USB cable, so as to perform debugging and maintenance work on the computer device.
The CPU 1 is also the CPU 1 in the computing device, and has a USB interface 3 thereon, and normally, the USB interface 3 is only used for connecting a USB device, such as a keyboard or a mouse, for example, but in this application, the external device may perform serial signal interaction with the CPU 1 through the USB interface 3, so that a worker can complete debugging and maintenance work on the computing device through the external device.
Specifically, the signal switching device 2 is a key for realizing "multiplexing of functions of the USB interface 3" in the present application, and a user can directly or indirectly actively control the signal switching device, so as to switch the signal type (serial signal or USB signal) output by the CPU 1 through the USB interface 3.
Specifically, the debug maintenance may specifically include debug, and the serial signal pin may be a UART (Universal Asynchronous Receiver/Transmitter) pin.
The invention provides a signal processing system, which considers that a USB cable can transmit serial signals, so that the USB interface on a CPU is multiplexed, the USB interface can transmit the USB signals through a signal switching device so as to be connected with normal USB equipment, and the USB interface can be connected with external equipment so as to facilitate the external equipment to realize the communication of the serial signals with the CPU through the USB interface, namely the external equipment is connected with the USB interface through the USB cable, so that the debugging and maintenance work of computer equipment can be carried out.
On the basis of the above-described embodiment:
as a preferred embodiment, the signal processing system further includes:
a control device 4 connected to the CPU 1 for transmitting a first control signal and a second control signal therethrough;
the CPU 1 is further configured to output a serial signal through its own serial signal pin when receiving the first control signal, and output a serial signal through its own USB signal pin when receiving the second control signal.
Specifically, considering that it may be inconvenient or even impossible to control the signal switching device 2 in some cases, in such cases, it is impossible to control and select the type of the signal output by the USB interface 3, from the perspective of the CPU 1, the embodiment of the present invention directly changes the type of the signal output by the CPU 1 from the USB signal pin, so that the USB signal can still be output through the USB interface 3 when the first terminal and the third terminal of the signal switching device 2 are connected.
The triggering manner of the control device 4 sending the first control signal and the second control signal may be various types, such as mechanical triggering or electrical triggering, and the embodiment of the present invention is not limited herein.
Specifically, the control device 4 may be connected to a GPIO (General-purpose input/output) pin of the CPU 1 so as to transmit a signal thereto.
As a preferred embodiment, the signal switching device 2 includes:
a manipulation device 21;
and the signal gating chip 22 is used for switching on the third end of the signal gating chip with the first end or the second end under the control of the control device 21.
Specifically, the combination of the signal gating chip 22 and the operation device 21 has the advantages of simple structure, low cost, convenient operation, and the like.
Of course, besides this form, the signal switching device 2 may be of other various types, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the control device 4 and the operating device 21 are both mechanical operating switches.
Specifically, the mechanical control switch has the advantages of low failure rate, low cost and the like.
Of course, the control device 4 and the operation device 21 can be of various types other than the mechanical operation switch, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the control device 4 and the operating device 21 are the same mechanical operating switch.
Specifically, the control device 4 and the control device 21 are selected from the same mechanical operation switch, so that the model selection difficulty can be reduced, and the labor cost is further reduced.
Of course, the control device 4 and the operating device 21 may be different types of mechanically operated switches besides the same mechanically operated switch, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the control device 4 and the control device 21 are toggle switches.
Specifically, the toggle switch has the advantages of long service life, simple structure and low cost.
Of course, besides toggle switches, the control device 4 and the control device 21 can be other types of mechanical control switches, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the signal processing system further includes:
a presentation device 5;
the CPU 1 is further configured to control the prompting device 5 to prompt that the first control signal or the second control signal is currently received.
Specifically, in order to enable a user to know which pin of the CPU 1 the serial signal is currently output from, at any time, the prompting device 5 is provided in the embodiment of the present invention, and the CPU 1 may control the prompting device 5 to currently receive the first control signal or the second control signal, or directly prompt that the serial signal is currently output from the current pin.
As a preferred embodiment, the prompting device 5 is a light prompting device.
Specifically, the light prompting device has the advantages of no noise, good prompting effect and the like.
Of course, besides the light tube indicator, the indicator 5 may also be of other types, such as a voice announcer, and the embodiment of the present invention is not limited herein.
As a preferred embodiment, the prompting device 5 is a light emitting diode disposed on the operation device 21.
Specifically, the light emitting diode has the advantages of small volume, low cost, long service life and the like.
Of course, besides the led, the prompting device 5 may be of other types, and the embodiment of the present invention is not limited herein.
The invention also provides computer equipment comprising the signal processing system.
For the introduction of the computer device provided in the embodiment of the present invention, please refer to the embodiment of the signal processing system described above, and the embodiment of the present invention is not described herein again.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. It should also be noted that, in the present specification, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.