Switching device

By designing the switching device and using the signal conversion module and the second port module of multiple signal channels, the problem of interface matching between the clock synchronization equipment and the terminal equipment is solved, the matching and signal interaction of different interface types are realized, and the compatibility of the equipment is improved sex.

CN221650927UActive Publication Date: 2024-09-03HANGZHOU SHIFEI TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202420024619.5
Authority / Receiving Office
CN · China
Patent Type
Utility models(China)
Current Assignee / Owner
Filing Date
2024-01-04
Publication Date
2024-09-03
Estimated Expiration
2034-01-04

AI Technical Summary

Technical Problem

It is difficult to match the interface type of the existing clock synchronization device with the interface of the terminal device, making interface matching difficult.

Method used

A switching device is designed, including a first port module for connecting clock synchronization equipment, a signal conversion module for signal conversion, and connecting to terminal equipment through a second port module. The second port module includes at least two signal channels, Select the conductive signal channel according to the port type of the terminal device to realize the interaction of serial port signals and communication signals.

Benefits of technology

It achieves matching between different types of interfaces, ensures that clock synchronization equipment and terminal equipment can normally interact with serial port signals and communication signals, and improves the flexibility and compatibility of the interface.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN221650927U
    Figure CN221650927U
Patent Text Reader

Abstract

The utility model discloses a switching device. The switching device provided by the embodiment of the utility model comprises a first port module and a second port module, wherein the first port module is used for connecting clock synchronization equipment; the signal conversion module is connected with the first port module, and the signal conversion module is used for converting a serial port signal of the clock synchronization equipment into a communication signal or converting the communication signal into the serial port signal; the second port module is connected with the signal conversion module and the terminal equipment, the second port module comprises at least two signal channels, and the second port module is used for selecting a conducted signal channel according to a port connected with the terminal equipment; and the clock synchronization device and the terminal device interact serial port signals and communication signals through the signal channel. According to the technical scheme, the serial port signal of the clock synchronization device and the communication signal of the terminal device are interacted through the signal channel of the second port module, and matching between different signal ports is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The utility model relates to the technical field of computer communication, in particular to a switching device. Background Art

[0002] As society becomes more and more information-based, digital, and intelligent, clock synchronization and timing are becoming more and more important, and various clock synchronization devices are widely used in all walks of life. There is no fixed standard for the interface type of existing clock synchronization devices and the supporting connection cables, which makes it difficult for the interface of the clock synchronization device to match the interface of the terminal device. Therefore, how to achieve matching between different types of interfaces has become an urgent problem to be solved. Utility Model Content

[0003] The utility model provides a switching device to solve the problem in the prior art that the interface of a clock synchronization device is difficult to match with the interface of a terminal device.

[0004] According to one aspect of the utility model, a switching device is provided, comprising:

[0005] A first port module, the first port module is used to connect to a clock synchronization device;

[0006] A signal conversion module, the signal conversion module is connected to the first port module, and the signal conversion module is used to convert the serial port signal of the clock synchronization device into a communication signal, or convert the communication signal into a serial port signal;

[0007] A second port module, the second port module is connected to the signal conversion module and the terminal device, the second port module includes at least two signal channels, and the second port module is used to select a conductive signal channel according to the port to which the terminal device is connected;

[0008] The clock synchronization device and the terminal device exchange serial port signals and communication signals through the signal channel.

[0009] Optionally, the second port module includes:

[0010] a first port unit and a second port unit;

[0011] The first port unit is connected between the signal conversion module and the terminal device, and the second port unit is connected between the signal conversion module and the terminal device. The first port unit and the second port unit include at least two signal channels. The first port unit and the second port unit are used to adjust their own level signals according to the connection status with the terminal device, and select the signal channel to be turned on according to the level signal.

[0012] Optionally, the first port unit includes:

[0013] a first connection port, a second connection port, and a first selector;

[0014] The first selector is connected to the first connection port, the second connection port and the signal conversion module;

[0015] The first connection port and the second connection port are used to adjust their own level signals according to the connection status with the terminal device, the first selector is used to select to connect to the first connection port or the second connection port according to the level signals of the first connection port and the second connection port, and the first selector is also used to form a signal channel with the connected first connection port or the second connection port.

[0016] Optional, first selector, including:

[0017] A first switch, a first AND gate and a first NOT gate, the input end of the first AND gate is connected to the first connection port and the second connection port, the output end of the first AND gate is connected to the first switch and the signal conversion module, the input end of the first NOT gate is connected to the first connection port, and the output end of the first NOT gate is connected to the first switch and the signal conversion module;

[0018] The first AND gate is used to control the conduction state of the first switch according to the level signal of the first connection port and the second connection port, the first NOT gate is used to control the first switch to be connected to the first connection port or the second connection port according to the level signal of the first connection port, and the first switch is used to form a signal channel with the connected first connection port or the second connection port.

[0019] Optionally, the second port unit comprises:

[0020] a third connection port, a fourth connection port, and a second selector;

[0021] The second selector is connected to the third connection port, the fourth connection port and the signal conversion module;

[0022] The third connection port and the fourth connection port are used to adjust their own level signals according to the connection status with the terminal device, the second selector is used to select the third connection port or the fourth connection port for connection according to the level signals of the third connection port and the fourth connection port, and the second selector is also used to form a signal channel with the connected third connection port or the fourth connection port.

[0023] Optional, second selector, including:

[0024] A second switch, a second AND gate and a second NOT gate, the input end of the second AND gate is connected to the third connection port and the fourth connection port, the output end of the second AND gate is connected to the second switch and the signal conversion module, the input end of the second NOT gate is connected to the third connection port, and the output end of the second NOT gate is connected to the second switch and the signal conversion module;

[0025] The second AND gate is used to control the conduction state of the second switch according to the level signals of the third connection port and the fourth connection port, the second NOT gate is used to control the second switch to be connected to the third connection port or the fourth connection port according to the level signal of the third connection port, and the second switch is used to form a signal channel with the connected third connection port or the fourth connection port.

[0026] Optional, signal conversion module, including:

[0027] a first signal conversion unit, a second signal conversion unit, and a third selector;

[0028] The first signal conversion unit is connected between the third selector and the first port unit, the second signal conversion unit is connected between the third selector and the second port unit, and the third selector is connected to the first port module;

[0029] The first signal conversion unit is used to convert the serial port signal into a first digital signal, the second signal conversion unit is used to convert the serial port signal into a second digital signal, and the third selector is used to control the first signal conversion unit or the second signal conversion unit to connect with the first port module according to the level signals of the first port unit and the second port unit;

[0030] The communication signal includes a first digital signal and a second digital signal.

[0031] Optional, third selector, consisting of:

[0032] a third switch, a third AND gate and a third NOT gate, the input end of the third AND gate is connected to the first port unit and the second port unit, the output end of the third AND gate is connected to the third switch, the input end of the third NOT gate is connected to the first port unit, the output end of the third NOT gate is connected to the third switch, and the third switch is connected to the first signal conversion unit, the second signal conversion unit and the first port module;

[0033] The third AND gate is used to control the conduction state of the third switch according to the level signals of the first port unit and the second port unit, the third NOT gate is used to control the third switch to be connected to the first signal conversion unit or the second signal conversion unit according to the level signal of the first port unit, and the third switch is used to conduct the first signal conversion unit with the first port module or to conduct the second signal conversion unit with the first port module.

[0034] Optionally, the first connection port and the second connection port include a DB9 port and an RJ45 port.

[0035] Optionally, the third connection port and the fourth connection port include a TYPE-C port and a Micro-USB port.

[0036] The switching device of the embodiment of the utility model includes a first port module, a signal conversion module and a second port module. The first port module is used to connect the clock synchronization device, the signal conversion module is connected to the first port module, and the second port module is connected to the signal conversion module and the terminal device. The second port module includes at least two signal channels, and the second port module is used to select a conductive signal channel according to the port to which the terminal device is connected. The signal conversion module converts the serial port signal of the clock synchronization device into a communication signal, or converts the communication signal into a serial port signal. The clock synchronization device and the terminal device exchange serial port signals and communication signals through the conductive signal channel. The switching device of this embodiment realizes matching between different signal ports by setting the second port module so that the clock synchronization device and the terminal device exchange serial port signals and communication signals through the conductive signal channel.

[0037] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present utility model, nor are they intended to limit the scope of the present utility model. Other features of the present utility model will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0039] Figure 1 It is a structural schematic diagram of a switching device provided by an embodiment of the utility model;

[0040] Figure 2 This is a working schematic diagram of a switching device provided by an embodiment of the utility model;

[0041] Figure 3 It is a structural schematic diagram of another switching device provided by an embodiment of the utility model;

[0042] Figure 4 It is a structural schematic diagram of another switching device provided in an embodiment of the utility model. DETAILED DESCRIPTION

[0043] In order to enable those skilled in the art to better understand the solution of the utility model, the technical solution in the embodiment of the utility model will be clearly and completely described below in conjunction with the drawings in the embodiment of the utility model. Obviously, the described embodiment is only a part of the embodiment of the utility model, not all of the embodiments. Based on the embodiment of the utility model, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the utility model.

[0044] It should be noted that the terms "first", "second", etc. in the specification and claims of the utility model and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the utility model described here can be implemented in an order other than those illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0045] Figure 1 It is a structural schematic diagram of a switching device provided in an embodiment of the utility model. Figure 2 Schematic diagram of the operation of a switching device provided by an embodiment of the utility model. Figure 1 and Figure 2 The adapter 100 provided by the embodiment of the utility model includes a first port module 10, and the first port module 10 is used to connect the clock synchronization device 110. A signal conversion module 20, the signal conversion module 20 is connected to the first port module 10, and the signal conversion module 20 is used to convert the serial port signal of the clock synchronization device 110 into a communication signal, or convert the communication signal into a serial port signal. A second port module 30, the second port module 30 is connected to the signal conversion module 20 and the terminal device 120, the second port module 30 includes at least two signal channels, and the second port module 30 is used to select a conductive signal channel according to the port to which the terminal device 120 is connected. The clock synchronization device 110 and the terminal device 120 exchange serial port signals and communication signals through the signal channel.

[0046] Specifically, the switching device 100 is connected between the clock synchronization device 110 and the terminal device 120. According to the port type of the terminal device 120, the switching device 100 can select the corresponding port to connect to the terminal device 120. The switching device 100 is connected to the clock synchronization device 110 through the first port module 10, and is connected to the terminal device 120 through the second port module 30. The signal conversion module 20 is connected between the first port module 10 and the second port module 30.

[0047] The types of connection ports of the first port module 10 and the second port module 30 are different. The port type of the first port module 10 is generally a UART port, and the port type of the second port module 30 generally includes Micro-USB port, RJ45 port, DB9 port and TYPE-C port. The second port module 30 includes multiple signal channels, and the types of connection ports of each signal channel are different. When the terminal device 120 is connected to the port of the second port module 30, the signal channel corresponding to the port is turned on. The clock synchronization device 110 outputs a serial port signal through the first port module 10, and the terminal device 120 outputs a communication signal through the signal channel turned on by the second port module 30. The signal conversion module 20 converts the serial port signal of the clock synchronization device 110 into a communication signal and outputs it to the terminal device 120, and converts the communication signal of the terminal device 120 into a serial port signal and outputs it to the clock synchronization device 110, thereby achieving signal port matching between the clock synchronization device 110 and the terminal device 120, and realizing signal interaction through different signal ports.

[0048] Exemplarily, when the clock synchronization device 110 is connected to the terminal device 120 through the adapter 100, the first port module 10 is connected to the clock synchronization device 110, and the second port module 30 is connected to the terminal device 120. When the terminal device 120 is connected to the port of the second port module 30, the signal channel corresponding to the port is turned on, the clock synchronization device 110 outputs the serial port signal through the first port module 10, and the terminal device 120 outputs the communication signal through the signal channel turned on by the second port module 30. The signal conversion module 20 converts the serial port signal of the clock synchronization device 110 into a communication signal and outputs it to the terminal device 120, and converts the communication signal of the terminal device 120 into a serial port signal and outputs it to the clock synchronization device 110, thereby achieving signal port matching between the clock synchronization device 110 and the terminal device 120, and realizing signal interaction through different signal ports.

[0049] The adapter provided by the embodiment of the utility model is connected to the clock synchronization device by setting the first port module, and the signal channel of the second port module is connected to the terminal device, so that the clock synchronization device and the terminal device exchange serial port signals and communication signals through the conductive signal channel, thereby achieving matching between different signal ports.

[0050] Optional, Figure 3 FIG. 1 is a schematic diagram of another switching device provided by an embodiment of the utility model. Figure 3 The second port module 30 includes a first port unit 31 and a second port unit 32. The first port unit 31 is connected between the signal conversion module 20 and the terminal device, and the second port unit 32 is connected between the signal conversion module 20 and the terminal device. The first port unit 31 and the second port unit 32 include at least two signal channels. The first port unit 31 and the second port unit 32 are used to adjust their own level signals according to the connection status with the terminal device, and select the signal channel that is turned on according to the level signal.

[0051] Specifically, the types of connection ports of the first port unit 31 and the second port unit 32 are different. The first port unit 31 and the second port unit 32 include multiple signal channels, and the types of connection ports of each signal channel are different. When the signal channel of the first port unit 31 or the second port unit 32 is connected to the terminal device, the level signal of the signal channel changes, such as changing from a high level to a low level, so that the first port unit 31 or the second port unit 32 selects the signal channel to be turned on, thereby achieving matching between the clock synchronization device and the terminal device. This setting can achieve matching between multiple types of connection ports.

[0052] Optionally, based on the above embodiment, continue to refer to Figure 3 , the first port unit 31 includes a first connection port A, a second connection port B and a first selector 33. The first selector 33 is connected to the first connection port A, the second connection port B and the signal conversion module 20. The first connection port A and the second connection port B are used to adjust their own level signals according to the connection status with the terminal device, the first selector 33 is used to select the first connection port A or the second connection port B to be connected according to the level signals of the first connection port A and the second connection port B, and the first selector 33 is also used to form a signal channel with the connected first connection port A or the second connection port B.

[0053] Specifically, the first port unit 31 includes a first connection port A and a second connection port B of different port types, and the first connection port A and the second connection port B can be connected to the first selector 33 to form a signal channel. When the first connection port A is connected to the terminal device, the level signal of the first connection port A changes from a high level to a low level, and the first selector 33 is connected to the first connection port A to form a signal channel and conduct. When the second connection port B is connected to the terminal device, the level signal of the second connection port B changes from a high level to a low level, and the first selector 33 is connected to the second connection port B to form a signal channel and conduct. The clock synchronization device and the terminal device match the conducted signal channel to exchange serial port signals and communication signals.

[0054] Optionally, based on the above embodiment, continue to refer to Figure 3 The first selector 33 includes a first switch 34, a first AND gate 35 and a first NOT gate 36. The input end of the first AND gate 35 is connected to the first connection port A and the second connection port B, the output end of the first AND gate 35 is connected to the first switch 34 and the signal conversion module 20, the input end of the first NOT gate 36 is connected to the first connection port A, and the output end of the first NOT gate 36 is connected to the first switch 34. The first AND gate 35 is used to control the conduction state of the first switch 34 according to the level signal of the first connection port A and the second connection port B, the first NOT gate 36 is used to control the first switch 34 to connect to the first connection port A or the second connection port B according to the level signal of the first connection port A, and the first switch 34 is used to form a signal channel with the connected first connection port A or the second connection port B.

[0055] Specifically, the first connection port A or the second connection port B can be connected to the first switch 34, and the first selector 33 controls the first switch 34 through a logic circuit composed of a first AND gate 35 and a first NOT gate 36. The first AND gate 35 is used to control the conduction state of the first switch 34, and the first NOT gate 36 is used to control the port to which the first switch 34 is connected.

[0056] When the first connection port A is connected to a terminal device, the level signal of the first connection port A changes from a high level to a low level, the first AND gate 35 outputs a low level, controls the first switch 34 to be turned on, and the first NOT gate 36 outputs a high level, controls the first switch 34 to be connected to the first connection port A, and forms a signal channel. When the second connection port B is connected to a terminal device, the level signal of the second connection port B changes from a high level to a low level, the first AND gate 35 outputs a low level, controls the first switch 34 to be turned on, and the first NOT gate 36 outputs a low level, controls the first switch 34 to be connected to the second connection port B, and forms a signal channel.

[0057] Optionally, based on the above embodiment, continue to refer to Figure 3, the second port unit 32 includes a third connection port C, a fourth connection port D and a second selector 37. The second selector 37 is connected to the third connection port C, the fourth connection port D and the signal conversion module 20. The third connection port C and the fourth connection port D are used to adjust their own level signals according to the connection status with the terminal device, and the second selector 37 is used to select the third connection port C or the fourth connection port D to be connected according to the level signals of the third connection port C and the fourth connection port D, and the second selector 37 is also used to form a signal channel with the connected third connection port C or the fourth connection port D.

[0058] Specifically, the second port unit 32 includes a third connection port C and a fourth connection port D of different port types, and the third connection port C and the fourth connection port D can be connected to the second selector 37 to form a signal channel. When the third connection port C is connected to the terminal device, the level signal of the third connection port C changes from a high level to a low level, and the second selector 37 is connected to the third connection port C to form a signal channel and conduct. When the fourth connection port D is connected to the terminal device, the level signal of the fourth connection port D changes from a high level to a low level, and the second selector 37 is connected to the fourth connection port D to form a signal channel and conduct. The clock synchronization device and the terminal device match the conducted signal channel to exchange serial port signals and communication signals.

[0059] Optionally, based on the above embodiment, continue to refer to Figure 3 The second selector 37 includes a second switch 38, a second AND gate 39 and a second NOT gate 40. The input end of the second AND gate 39 is connected to the third connection port C and the fourth connection port D, the output end of the second AND gate 39 is connected to the second switch 38 and the signal conversion module 20, the input end of the second NOT gate 40 is connected to the third connection port C, and the output end of the second NOT gate 40 is connected to the second switch 38. The second AND gate 39 is used to control the conduction state of the second switch 38 according to the level signal of the third connection port C and the fourth connection port D, the second NOT gate 40 is used to control the second switch 38 to connect to the third connection port C or the fourth connection port D according to the level signal of the third connection port C, and the second switch 38 is used to form a signal channel with the connected third connection port C or the fourth connection port D.

[0060] Specifically, the third connection port C or the fourth connection port D can be connected to the second switch 38, and the second selector 37 controls the second switch 38 through a logic circuit composed of a second AND gate 39 and a second NOT gate 40. The second AND gate 39 is used to control the conduction state of the second switch 38, and the second NOT gate 40 is used to control the port to which the second switch 38 is connected.

[0061] When the third connection port C is connected to the terminal device, the level signal of the third connection port C changes from a high level to a low level, the second AND gate 39 outputs a low level, controls the second switch 38 to be turned on, and the second NOT gate 40 outputs a high level, controls the second switch 38 to be connected to the third connection port C, and forms a signal channel. When the fourth connection port D is connected to the terminal device, the level signal of the fourth connection port D changes from a high level to a low level, the second AND gate 39 outputs a low level, controls the second switch 38 to be turned on, and the second NOT gate 40 outputs a low level, controls the second switch 38 to be connected to the fourth connection port D, and forms a signal channel.

[0062] Optional, Figure 4 FIG. 1 is a schematic diagram of another switching device provided by an embodiment of the utility model. Figure 4 The signal conversion module 20 includes a first signal conversion unit 21, a second signal conversion unit 22 and a third selector 23. The first signal conversion unit 21 is connected between the third selector 23 and the first port unit 31, the second signal conversion unit 22 is connected between the third selector 23 and the second port unit 32, and the third selector 23 is connected to the first port module 10. The first signal conversion unit 21 is used to convert the serial port signal into a first digital signal, the second signal conversion unit 22 is used to convert the serial port signal into a second digital signal, and the third selector 23 is used to control the first signal conversion unit 21 or the second signal conversion unit 22 to connect to the first port module 10 according to the level signals of the first port unit 31 and the second port unit 32. Wherein, the communication signal includes the first digital signal and the second digital signal.

[0063] Specifically, the signal conversion module 20 includes a first signal conversion unit 21 for converting the serial port signal of the clock synchronization device into a first digital signal and a second signal conversion unit 22 for converting the serial port signal of the clock synchronization device into a second digital signal. The third selector 23 is used to select the first signal conversion unit 21 or the second signal conversion unit 22 to be connected to the first port module 10. Exemplarily, the first digital signal is an RS232 level signal, and the second digital signal is a USB signal.

[0064] When the first port unit 31 is connected to the terminal device, the first port unit 31 is connected to the first signal conversion unit 21 through the conductive signal channel, and the third selector 23 connects the first signal conversion unit 21 to the first port module 10, so as to achieve port matching between the clock synchronization device and the terminal device, and convert the serial port signal to the first digital signal through the first signal conversion unit 21. When the second port unit 32 is connected to the terminal device, the second port unit 32 is connected to the second signal conversion unit 22 through the conductive signal channel, and the third selector 23 connects the second signal conversion unit 22 to the first port module 10, so as to achieve port matching between the clock synchronization device and the terminal device, and convert the serial port signal to the second digital signal through the second signal conversion unit 22. Such a setting can further improve the flexibility of the switching device in matching different ports.

[0065] Optionally, based on the above embodiment, continue to refer to Figure 4 The third selector 23 includes a third switch 24, a third AND gate 26 and a third NOT gate 25. The input end of the third AND gate 26 is connected to the first port unit 31 and the second port unit 32, the output end of the third AND gate 26 is connected to the third switch 24, the input end of the third NOT gate 25 is connected to the first port unit 31, the output end of the third NOT gate 25 is connected to the third switch 24, and the third switch 24 is connected to the first signal conversion unit 21, the second signal conversion unit 22 and the first port module 10. The third AND gate 26 is used to control the conduction state of the third switch 24 according to the level signal of the first port unit 31 and the second port unit 32, the third NOT gate 25 is used to control the third switch 24 to be connected to the first signal conversion unit 21 or the second signal conversion unit 22 according to the level signal of the first port unit 31, and the third switch 24 is used to conduct the first signal conversion unit 21 with the first port module 10 or conduct the second signal conversion unit 22 with the first port module 10.

[0066] Specifically, the first signal conversion unit 21 or the second signal conversion unit 22 can be connected to the third switch 24, and the third selector 23 controls the third switch 24 through a logic circuit composed of a third AND gate 26 and a third NOT gate 25. The third AND gate 26 is used to control the conduction state of the third switch 24, and the third NOT gate 25 is used to control the third switch 24 to be connected to the first signal conversion unit 21 or the second signal conversion unit 22.

[0067] When the first port unit 31 is connected to the terminal device, the level signal output by the first AND gate 35 is a low level, and the level signal output by the second AND gate 39 is a high level. At this time, the level signal of the third AND gate 26 changes from a high level to a low level, controls the third switch 24 to be turned on, and the level signal of the third NOT gate 25 changes from a low level to a high level, controls the third switch 24 to be connected to the first signal conversion unit 21. When the second port unit 32 is connected to the terminal device, the level signal output by the first AND gate 35 is a high level, and the level signal output by the second AND gate 39 is a low level. At this time, the level signal of the third AND gate 26 changes from a high level to a low level, controls the third switch 24 to be turned on, and the level signal of the third NOT gate 25 changes from a high level to a low level, controls the third switch 24 to be connected to the second signal conversion unit 22.

[0068] Optionally, based on the above embodiment, continue to refer to Figure 4 The switching device may further include a voltage regulating module 50 connected to the first port module 10. The voltage regulating module 50 may be used to obtain the electrical signal of the clock synchronization device and to supply power to devices such as the first signal conversion unit 21 and the second signal conversion unit 22.

[0069] Optionally, based on the above embodiment, continue to refer to Figure 4 , the first connection port A and the second connection port B include a DB9 port and an RJ45 port.

[0070] Specifically, the first connection port A and the second connection port B may be a DB9 port and an RJ45 port for performing communication using the first digital signal as a communication signal.

[0071] Optionally, based on the above embodiment, continue to refer to Figure 4 The third connection port C and the fourth connection port D include a TYPE-C port and a Micro-USB port.

[0072] Specifically, the third connection port C and the fourth connection port D may be a TYPE-C port and a Micro-USB port for performing communication using the second digital signal as a communication signal.

[0073] Exemplarily, when the clock synchronization device is connected to the terminal device through the switching device, the first port module 10 is connected to the clock synchronization device, and the second port module 30 is connected to the terminal device. The second port module 30 is connected to the terminal device through the first connection port A, the second connection port B, the third connection port C or the fourth connection port D.

[0074] Take the first connection port A as an example: when the terminal device is connected to the switching device through the first connection port A, the level signal of the first connection port A changes from a high level to a low level, the first AND gate 35 outputs a low level, controls the first switch 34 to be turned on, and the first NOT gate 36 outputs a high level, controls the first switch 34 to be connected to the first connection port A, and forms a signal channel. At this time, the level signal output by the first AND gate 35 is a low level, the level signal output by the second AND gate 39 is a high level, the level signal of the third AND gate 26 changes from a high level to a low level, controls the third switch 24 to be turned on, and the level signal of the third NOT gate 25 changes from a low level to a high level, controls the third switch 24 to be connected to the first signal conversion unit 21.

[0075] At this time, the clock synchronization device and the terminal device achieve port matching and signal interaction between the clock synchronization device and the terminal device through the matching of the first port module 10 and the first connection port A, and convert the serial port signal and the level signal through the first signal conversion unit 21. Similarly, the clock synchronization device and the terminal device can also achieve matching between different types of ports through the second connection port B, the third connection port C or the fourth connection port D, which will not be repeated here.

[0076] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0077] The above specific implementations do not constitute a limitation on the protection scope of the present utility model. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present utility model shall be included in the protection scope of the present utility model.

Claims

1. A switching device, characterized in that: include: A first port module, wherein the first port module is used to connect to a clock synchronization device; A signal conversion module, the signal conversion module is connected to the first port module, and the signal conversion module is used to convert the serial port signal of the clock synchronization device into a communication signal, or convert the communication signal into the serial port signal; A second port module, the second port module is connected to the signal conversion module and the terminal device, the second port module includes at least two signal channels, and the second port module is used to select the signal channel to be turned on according to the port to which the terminal device is connected; The clock synchronization device and the terminal device exchange the serial port signal and the communication signal through the signal channel.

2. The switching device according to claim 1, characterized in that: The second port module comprises: a first port unit and a second port unit; The first port unit is connected between the signal conversion module and the terminal device, the second port unit is connected between the signal conversion module and the terminal device, the first port unit and the second port unit include at least two signal channels, the first port unit and the second port unit are used to adjust their own level signals according to the connection status with the terminal device, and select the signal channel to be turned on according to the level signal.

3. The switching device according to claim 2, characterized in that: The first port unit comprises: a first connection port, a second connection port, and a first selector; The first selector is connected to the first connection port, the second connection port and the signal conversion module; The first connection port and the second connection port are used to adjust their own level signals according to the connection status with the terminal device, the first selector is used to select connection with the first connection port or the second connection port according to the level signals of the first connection port and the second connection port, and the first selector is also used to form the signal channel with the connected first connection port or the second connection port.

4. The switching device according to claim 3, characterized in that: The first selector comprises: A first switch, a first AND gate and a first NOT gate, wherein an input end of the first AND gate is connected to the first connection port and the second connection port, an output end of the first AND gate is connected to the first switch and the signal conversion module, an input end of the first NOT gate is connected to the first connection port, and an output end of the first NOT gate is connected to the first switch and the signal conversion module; The first AND gate is used to control the conduction state of the first switch according to the level signals of the first connection port and the second connection port, the first NOT gate is used to control the first switch to be connected to the first connection port or the second connection port according to the level signal of the first connection port, and the first switch is used to form the signal channel with the connected first connection port or the second connection port.

5. The switching device according to claim 2, characterized in that: The second port unit comprises: a third connection port, a fourth connection port, and a second selector; The second selector is connected to the third connection port, the fourth connection port and the signal conversion module; The third connection port and the fourth connection port are used to adjust their own level signals according to the connection status with the terminal device, and the second selector is used to select connection with the third connection port or the fourth connection port according to the level signals of the third connection port and the fourth connection port, and the second selector is also used to form the signal channel with the connected third connection port or the fourth connection port.

6. The switching device according to claim 5, characterized in that: The second selector comprises: a second switch, a second AND gate and a second NOT gate, wherein an input end of the second AND gate is connected to the third connection port and the fourth connection port, an output end of the second AND gate is connected to the second switch and the signal conversion module, an input end of the second NOT gate is connected to the third connection port, and an output end of the second NOT gate is connected to the second switch and the signal conversion module; The second AND gate is used to control the conduction state of the second switch according to the level signals of the third connection port and the fourth connection port, the second NOT gate is used to control the second switch to be connected to the third connection port or the fourth connection port according to the level signal of the third connection port, and the second switch is used to form the signal channel with the connected third connection port or the fourth connection port.

7. The switching device according to claim 2, characterized in that: The signal conversion module comprises: a first signal conversion unit, a second signal conversion unit, and a third selector; The first signal conversion unit is connected between the third selector and the first port unit, the second signal conversion unit is connected between the third selector and the second port unit, and the third selector is connected to the first port module; The first signal conversion unit is used to convert the serial port signal into a first digital signal, the second signal conversion unit is used to convert the serial port signal into a second digital signal, and the third selector is used to control the first signal conversion unit or the second signal conversion unit to connect with the first port module according to the level signals of the first port unit and the second port unit; Wherein, the communication signal includes the first digital signal and the second digital signal.

8. The switching device according to claim 7, characterized in that: The third selector comprises: a third switch, a third AND gate and a third NOT gate, wherein the input end of the third AND gate is connected to the first port unit and the second port unit, the output end of the third AND gate is connected to the third switch, the input end of the third NOT gate is connected to the first port unit, the output end of the third NOT gate is connected to the third switch, and the third switch is connected to the first signal conversion unit, the second signal conversion unit and the first port module; The third AND gate is used to control the conduction state of the third switch according to the level signals of the first port unit and the second port unit, the third NOT gate is used to control the third switch to be connected to the first signal conversion unit or the second signal conversion unit according to the level signal of the first port unit, and the third switch is used to conduct the first signal conversion unit with the first port module or to conduct the second signal conversion unit with the first port module.

9. The switching device according to claim 3, characterized in that: The first connection port and the second connection port include a DB9 port and an RJ45 port.

10. The switching device according to claim 5, characterized in that: The third connection port and the fourth connection port include a TYPE-C port and a Micro-USB port.