CN213092307U - Serial port switching device and electronic equipment - Google Patents

Serial port switching device and electronic equipment Download PDF

Info

Publication number
CN213092307U
CN213092307U CN202021924817.5U CN202021924817U CN213092307U CN 213092307 U CN213092307 U CN 213092307U CN 202021924817 U CN202021924817 U CN 202021924817U CN 213092307 U CN213092307 U CN 213092307U
Authority
CN
China
Prior art keywords
serial port
external
switch
port
processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202021924817.5U
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.)
Shenzhen Zhongwang Xin'an Technology Co ltd
Original Assignee
Shenzhen Zhongwang Xin'an 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 Shenzhen Zhongwang Xin'an Technology Co ltd filed Critical Shenzhen Zhongwang Xin'an Technology Co ltd
Priority to CN202021924817.5U priority Critical patent/CN213092307U/en
Application granted granted Critical
Publication of CN213092307U publication Critical patent/CN213092307U/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The embodiment of the utility model provides a pair of serial ports auto-change over device and electronic equipment belongs to hardware equipment technical field. The serial port switching device comprises a processor, a switch and an external serial port. This application can realize when carrying out the serial ports and switching, need not the staff and walk to the equipment next door, can long-rangely accomplish the serial ports and switch, effectively improved the efficiency that the serial ports switches, reduced staff's work load, improved staff's work efficiency, practiced thrift the human cost, the emergence of incident has still been avoided simultaneously, furtherly, still make only through the user of verifying just can carry out the information back through external serial ports, improved the security of data.

Description

Serial port switching device and electronic equipment
Technical Field
The utility model relates to a hardware equipment technical field particularly, relates to a serial ports auto-change over device and electronic equipment.
Background
A large system usually includes a plurality of CPU (central processing unit) systems, each CPU system has at least one serial port to be led out, and the serial port is usually used for debugging, communication, control, and the like. The serial port of each CPU system is introduced into a Programmable logic system (e.g., CPLD (Complex Programming logic device), FPGA (Field Programmable Gate Array), etc.).
However, in order to switch the serial ports in the prior art, control signals are led out from the programmable logic system, some control signals are led out, the control signals bounce after being pressed for many times, the communication between the 1 to n CPU systems and the external serial ports is achieved, the circular switching is achieved, a plurality of signals are led out, when corresponding buttons are pressed, the external serial ports are communicated with the corresponding serial ports of the CPU systems, and each serial port generally has a corresponding button.
However, in the above manner, when the serial port is switched, a worker needs to go to the side of the device to perform manual operation so as to complete the serial port switching. Moreover, generally, the devices are placed in a machine room, and the machine room generally needs a large current to supply power to different devices, so that the time of workers is wasted through manual switching, and the working efficiency is reduced; in addition, the existing serial port cannot be disconnected, and anyone can communicate with the serial port through the external serial port, so that information is easy to leak, and the safety of data is reduced.
Therefore, how to overcome the above problems is a technical problem which needs to be solved urgently.
SUMMERY OF THE UTILITY MODEL
An object of the utility model is to provide a serial ports auto-change over device and electronic equipment, it can improve above-mentioned problem.
The embodiment of the utility model is realized like this:
in a first aspect, the utility model provides a serial port switching device, which comprises a processor, a switch and an external serial port; the input end of the processor is connected with the external serial port; the output end of the processor is connected with the selector switch; the transfer switch is used for connecting serial ports of a plurality of external CPU systems; the change-over switch is connected with the external serial port; the processor is used for synchronously interpreting a serial port instruction input by the external serial port and controlling the selector switch to switch the communication between the external serial port and a serial port of a target external CPU system through the serial port instruction, wherein the target external CPU system is any one of the plurality of external CPU systems.
In a preferred embodiment of the present invention, the processor includes a switch selection port and an enable output port; the switching selection port and the enabling output port are both connected with the selector switch.
In a preferred embodiment of the present invention, the above-mentioned device further comprises a prompt information output module, and the prompt information output module is connected to the processor; and the prompt information output module is used for outputting prompt information after the change-over switch is switched to be communicated with the serial port of the external CPU system, and the prompt information comprises information of the switched serial port.
In a preferred embodiment of the present invention, the processor includes a verification module; the input end of the verification module is connected with the external serial port; the output end of the verification module is respectively connected with the switching selection port and the enabling output port; the verification module is used for verifying whether a serial port instruction input by the external serial port is matched with a preset instruction; if the serial ports are matched with the enabled output ports, the selector switch is controlled to switch the serial ports through the switching selection ports and the enabled output ports; and if not, discarding the serial port instruction.
In a preferred embodiment of the present invention, the switch comprises a control switch and at least 3 serial ports; one end of the control switch is respectively connected with the output end of the processor and the external serial port; the other end of the control switch is connected with one serial port connection port of the at least 3 serial port connection ports; and the at least 3 serial port connecting ports are respectively used for connecting a serial port of the external CPU system.
In the preferred embodiment of the present invention, the number of the serial ports is N, and N is greater than 3.
In a preferred embodiment of the present invention, the processor is an MCU.
In a preferred embodiment of the present invention, the processor is a CPU.
In a second aspect, the present invention provides an electronic device, which includes a serial port switching device as described in any one of the first aspect.
Above-mentioned the utility model provides a pair of serial ports auto-change over device and electronic equipment is through setting up the treater to handle the serial ports instruction of external serial ports input through the treater, and pass through serial ports instruction automatic control change over switch switches the intercommunication of the serial ports of external serial ports and the outside CPU system of target. Therefore, when serial ports are switched, a worker does not need to walk beside the equipment, serial port switching can be completed remotely, serial port switching efficiency is effectively improved, workload of the worker is reduced, working efficiency of the worker is improved, and labor cost is saved.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention, and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a serial port switching device according to a first embodiment of the present invention;
fig. 2 is a circuit diagram of a processor in a serial port switching apparatus shown in fig. 1;
fig. 3 is a schematic view of an application scenario of the serial port switching apparatus shown in fig. 1;
fig. 4 is a schematic structural diagram of an electronic device according to a second embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only some embodiments of the present invention, not all embodiments. The components of embodiments of the present invention, as generally described and illustrated in the figures herein, may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present invention, presented in the accompanying drawings, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. Based on the embodiment of the present invention, all other embodiments obtained by the person skilled in the art without creative work belong to the protection scope of the present invention.
First embodiment
Referring to fig. 1 to fig. 3, the present embodiment provides a serial port switching device 100, which includes a processor 110, a switch 130, and an external serial port 150.
The input end of the processor 110 is connected to the external serial port 150; the output end of the processor 110 is connected with the switch 130; the switch 130 is used for connecting serial ports of a plurality of external CPU systems; the switch 130 is connected to the external serial port 150.
The processor 110 is configured to interpret a serial port instruction input by the external serial port 150 synchronously, and control the switch 130 to switch the communication between the external serial port 150 and a serial port of a target external CPU system through the serial port instruction, where the target external CPU system is any one of the multiple external CPU systems.
Alternatively, the processor 110 may be an MCU (micro controller Unit).
Alternatively, the processor 110 may also be a CPU.
It should be noted that, the processor 110 in the present application may be configured according to actual requirements, and is not limited in particular herein.
Optionally, the processor 110 includes a switch selection port 111 and an enable output port 113; the switch selection port 111 and the enable output port 113 are both connected to the switch 130.
The switching selection port 111 is configured to output a switching instruction to the switch 130, so as to control the switch 130 to switch the serial port to the serial port of the target external CPU system.
The enable output port 113 is used for outputting an enable to the switch 130.
Optionally, the switch 130 includes a control switch and at least 3 serial ports; one end of the control switch is connected to the output end of the processor 110 and the external serial port 150 respectively; the other end of the control switch is connected with one serial port connection port of the at least 3 serial port connection ports; and the at least 3 serial port connecting ports are respectively used for connecting a serial port of the external CPU system.
Specifically, one end of the control switch is connected to the switching selection port 111, the enable output port 113, and the external serial port 150, respectively.
Optionally, the number of the serial port connection ports is N, where N is greater than 3. For example, 4 or 5, etc. integers.
Optionally, the serial port connection port is matrixed and integrated on the programmable logic chip 100.
In a possible embodiment, the serial port switching device 100 further includes a prompt information output module, and the prompt information output module is integrated on the programmable logic chip 100; the prompt information output module is configured to output prompt information after the switch 130 switches the connection with the serial port of the external CPU system, where the prompt information includes information of the switched serial port. For example, the output prompt information is: and switching the serial port to the serial port 2 of the CPU system 2.
In the implementation process, the prompt information output module is arranged, so that corresponding prompts exist after the serial port is successfully switched, a worker can accurately know that the serial port is successfully switched, and the worker can accurately know which serial port the serial port is switched to, and further the working efficiency is improved.
Optionally, the processor 110 includes a verification module 115; the input end of the verification module 115 is connected with the external serial port 150; the output end of the verification module 150 is connected to the switch selection port 111 and the enable output port 113, respectively.
The verification module 115 is configured to verify whether a serial port instruction input by the external serial port 150 matches a preset instruction; if the serial port is matched with the enabled serial port, the selector switch 130 is controlled to switch the serial port through the switching selection port 111 and the enabled output port 113; and if not, discarding the serial port instruction.
Alternatively, the preset instructions may be pre-stored in the programmable logic chip 100.
It should be understood that the specific setting of the preset instruction is not specifically limited in the present application.
In the implementation process, the serial port security function can be implemented on the device by setting the verification module 115, so that a user who does not know a password (a preset instruction) cannot open the serial port, that is, cannot switch, and the device information is ensured to be obtained by an unauthorized person, so that the security of the device is improved.
As an embodiment, the processor 110, the switch 130 and the external serial port 150 may be integrated on a PCB board.
As another embodiment, any two components of processor 110, switch 130, and external serial port 150 may be integrated together.
Of course, the processor 110, the switch 130 and the external serial port 150 may also exist independently.
Second embodiment
Referring to fig. 4, the present embodiment provides an electronic device 200, which includes a serial port switching apparatus 100 and a communication module 210.
The communication module 210 is connected to the serial port switching device 100. Specifically, the communication module 210 is connected to the external serial port 150 of the serial port switching device 100.
Alternatively, the electronic device 100 may be a display device, such as a display.
Of course, the electronic device 100 may also be other devices, such as a server, and is not limited in this respect.
It should be understood that the electronic device 200 may further include more components, and is not limited in particular herein.
To sum up, the utility model provides a pair of serial ports auto-change over device and electronic equipment is through setting up the treater to handle the serial ports instruction of external serial ports input through the treater, and pass through the serial ports instruction automatic control change over switch switches the intercommunication of the serial ports of external serial ports and the outside CPU system of target. Therefore, when serial ports are switched, a worker does not need to walk to the side of the equipment, serial port switching can be completed remotely, efficiency of serial port switching is effectively improved, workload of the worker is reduced, working efficiency of the worker is improved, labor cost is saved, safety accidents are avoided, furthermore, only a verified user can return information through the external serial ports, and safety of data is improved.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meaning of the above terms in the present invention can be understood in specific cases to those skilled in the art.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "upper", "lower", "left", "right", "inner", "outer", etc. indicate the position or positional relationship based on the position or positional relationship shown in the drawings, or the position or positional relationship that the products of the present invention are usually placed when used, and are only for convenience of description and simplification of the description, but do not indicate or imply that the device or element to which the term refers must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (9)

1. A serial port switching device is characterized by comprising: the system comprises a processor, a selector switch and an external serial port;
the input end of the processor is connected with the external serial port;
the output end of the processor is connected with the selector switch;
the transfer switch is used for connecting serial ports of a plurality of external CPU systems;
the change-over switch is connected with the external serial port;
the processor is used for synchronously interpreting a serial port instruction input by the external serial port and controlling the selector switch to switch the communication between the external serial port and a serial port of a target external CPU system through the serial port instruction, wherein the target external CPU system is any one of the plurality of external CPU systems.
2. The serial port switching device according to claim 1, wherein the processor comprises a switching selection port and an enabling output port;
the switching selection port and the enabling output port are both connected with the selector switch.
3. The serial port switching device according to claim 2, further comprising a prompt information output module, wherein the prompt information output module is connected with the processor;
and the prompt information output module is used for outputting prompt information after the change-over switch is switched to be communicated with the serial port of the external CPU system, and the prompt information comprises information of the switched serial port.
4. The serial port switching device according to claim 3, wherein the processor comprises an authentication module;
the input end of the verification module is connected with the external serial port;
the output end of the verification module is respectively connected with the switching selection port and the enabling output port;
the verification module is used for verifying whether a serial port instruction input by the external serial port is matched with a preset instruction; if the serial ports are matched with the enabled output ports, the selector switch is controlled to switch the serial ports through the switching selection ports and the enabled output ports; and if not, discarding the serial port instruction.
5. The serial port switching device according to claim 1, wherein the switch comprises a control switch and at least 3 serial port connection ports;
one end of the control switch is respectively connected with the output end of the processor and the external serial port;
the other end of the control switch is connected with one serial port connection port of the at least 3 serial port connection ports;
and the at least 3 serial port connecting ports are respectively used for connecting a serial port of the external CPU system.
6. The serial port switching device according to claim 5, wherein the number of the serial port connecting ports is N, and N is greater than 3.
7. The serial port switching device according to claim 5, wherein the processor is an MCU.
8. The serial port switching device according to claim 5, wherein the processor is a CPU.
9. An electronic device, characterized in that it comprises a serial port switching device according to any one of claims 1-8.
CN202021924817.5U 2020-09-04 2020-09-04 Serial port switching device and electronic equipment Active CN213092307U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202021924817.5U CN213092307U (en) 2020-09-04 2020-09-04 Serial port switching device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202021924817.5U CN213092307U (en) 2020-09-04 2020-09-04 Serial port switching device and electronic equipment

Publications (1)

Publication Number Publication Date
CN213092307U true CN213092307U (en) 2021-04-30

Family

ID=75634179

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202021924817.5U Active CN213092307U (en) 2020-09-04 2020-09-04 Serial port switching device and electronic equipment

Country Status (1)

Country Link
CN (1) CN213092307U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082184A1 (en) * 2021-11-12 2023-05-19 华为技术有限公司 Serial port switching apparatus and method, and device, storage medium, system and vehicle

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082184A1 (en) * 2021-11-12 2023-05-19 华为技术有限公司 Serial port switching apparatus and method, and device, storage medium, system and vehicle

Similar Documents

Publication Publication Date Title
CN104615401B (en) One kind realizes KVM methods based on FPGA
EP1266436B1 (en) Shared operating unit for a network of programmable equipment
CN100563948C (en) A kind of robot control system that comprises portable operating device with safety equipment
EP3109836A1 (en) Electronic trapped keys
US7395123B2 (en) Configurable modular safety system
EP3139224A1 (en) Programmable controller and program development support device
CN106945028B (en) Assembly module formula decentralised control robot
CN213092307U (en) Serial port switching device and electronic equipment
WO2021213092A1 (en) Central ecu development and testing system
CN104197471B (en) Control method, device and the air conditioner of air conditioner and mobile control terminal
CN106018886B (en) Reconfiguration of large-scale automated test system
Singh et al. Design and development of bluetooth based home automation system using FPGA
US20080071934A1 (en) Smart Interconnect For Modular Multi-Component Embedded Devices
CN201838235U (en) Intelligent training control device and training teaching examination system
CN102375099A (en) Portable-type electronic device testing system
KR101733817B1 (en) Plc system for choosing between input or output contact
CN103838670B (en) Simulation testing device based on EPOS and system
US20070173961A1 (en) Automation controller with integrated hmi and modular i/o
EP2624084A1 (en) Scalable architecture for human machine interface device
CN206402141U (en) A kind of electric machine controller
CN107659517A (en) PoE switch and management system based on local management
RU126855U1 (en) SOFTWARE AND HARDWARE COMPLEX FOR CONTROL OF TECHNOLOGICAL EQUIPMENT WITH CNC
CN207232759U (en) A kind of automatization test system
CN106597915A (en) Programmable power supply series-parallel rapid configuration instrument
CN207603675U (en) A kind of PoE interchangers based on local management

Legal Events

Date Code Title Description
GR01 Patent grant
GR01 Patent grant