Communication switching device
By designing a communication switching device that combines a switching module and a level conversion module, the inconvenience caused by differences in communication circuit design among different home appliance manufacturers is solved, resulting in reduced costs and smaller size, making it easier to carry.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-07
- Publication Date
- 2026-03-24
AI Technical Summary
Different home appliance manufacturers have different communication circuit designs, which means that a set of communication circuits needs to be made for each motor, increasing inconvenience and cost.
Design a communication switching device that combines a switch module and a level conversion module to switch between different communication branches, thereby reducing the number of communication lines required.
It reduces application costs, decreases device size, and makes it easy to carry and use.
Smart Images

Figure CN115032926B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of home appliance control technology, and in particular to a communication switching device. Background Technology
[0002] Currently, the main control board of a washing machine typically uses six connecting wires (three power lines, N, and ground) and three communication lines (VCC, GND, and DATA) or seven connecting wires (three power lines, N, and ground) and four communication lines (VCC, GND, TXD, and RXD) for serial communication. Because different appliance manufacturers design different communication circuits and define different connector pins for the motor, developing motors compatible with different customers' machines requires creating a separate communication circuit for each motor for analysis, debugging, and testing, causing significant inconvenience to subsequent work. Summary of the Invention
[0003] This invention aims to at least partially solve one of the technical problems in related technologies. Therefore, the purpose of this invention is to provide a communication switching device that controls the level conversion module via a switch module, allowing switching to the corresponding communication branch. This significantly reduces the number of communication lines required, lowering application costs and reducing the device size for easy portability.
[0004] To achieve the above objectives, this invention provides a communication switching device, comprising: a level conversion module, a switch module, and a control module. The switch module is connected to the level conversion module and the control module respectively. The control module is used to output two gating signals. The switch module is used to control the level conversion module according to the two gating signals to switch to the communication branch corresponding to the gating signals.
[0005] According to an embodiment of the communication switching device of the present invention, a switch module is connected to a level conversion module and a control module respectively. The control module outputs two gating signals, and the switch module controls the level conversion module according to the two gating signals to switch to the communication branch corresponding to the gating signal. Therefore, this device can switch to the corresponding communication branch by controlling the level conversion module through the switch module, greatly reducing the number of communication lines required, lowering application costs, reducing device size, and making it easier to carry.
[0006] In addition, the communication switching device according to the above embodiments of the present invention may also have the following additional technical features:
[0007] According to one embodiment of the present invention, the switch module includes: a first switch unit, a first end of which is connected to a host computer interface, a second end of which is connected to the output terminal of a control module, and a third end of which is connected to one end of a level conversion module; a second switch unit, a first end of which is connected to the other end of the level conversion module, a second end of which is connected to the output terminal of the control module, and a third end of which is connected to a connector; the control module outputs two identical strobe signals to the first switch unit and the second switch unit respectively.
[0008] According to one embodiment of the present invention, the control module includes a selection switch unit, wherein the selection switch unit includes: a slide switch, the first position of the slide switch is connected to the power supply through a first pull-up resistor, the second position of the slide switch is connected to the power supply through a second pull-up resistor, the third position of the slide switch is connected to the power supply through a third pull-up resistor, and the common terminal of the slide switch is grounded.
[0009] According to one embodiment of the present invention, the control module includes a logic unit, wherein the logic unit includes: a first AND gate, the first input terminal of the first AND gate being connected to a first position of the slide switch, the second input terminal of the first AND gate being connected to a second position of the slide switch, and the third input terminal of the first AND gate being grounded; and a second AND gate, the first input terminal of the second AND gate being connected to a first position of the slide switch, the second input terminal of the second AND gate being connected to a third position of the slide switch, and the third input terminal of the second AND gate being grounded.
[0010] According to one embodiment of the present invention, the output terminals of the first AND gate and the second AND gate serve as the output terminals of the control module to output two gating signals.
[0011] According to one embodiment of the present invention, the level conversion module includes: a first level conversion unit, a second level conversion unit, and a third level conversion unit, wherein the first switching unit and the second switching unit determine switching to one of the first level conversion unit, the second level conversion unit, and the third level conversion unit based on two gating signals.
[0012] According to one embodiment of the present invention, when the slide switch is selected to the first position, the switch to the first level conversion unit is determined according to two gating signals; when the slide switch is selected to the second position, the switch to the second level conversion unit is determined according to two gating signals; and when the slide switch is selected to the third position, the switch to the third level conversion unit is determined according to two gating signals.
[0013] According to one embodiment of the present invention, the first level conversion unit includes: a single-pole double-throw switch, the first end of which is connected to the power supply pin of the second switching unit, and the second end of which is connected to the power supply; and an optocoupler, the first input pin of which is connected to the third end of the single-pole double-throw switch, the second input pin of which is connected to the read / write pin of the second switching unit, and the output pin of which is connected to the read / write pin of the first switching unit.
[0014] According to one embodiment of the present invention, when the first terminal of the single-pole double-throw switch is connected to the third terminal of the single-pole double-throw switch, the conduction of the optocoupler is controlled according to the voltage value between the power supply pin of the second switching unit and the read / write pin of the second switching unit.
[0015] According to one embodiment of the present invention, the connector includes a male connector connected to a motor and a female connector connected to a power supply or a main controller, wherein when the female connector is connected to the main controller, it monitors the communication data between the main controller and the motor; when the female connector is connected to the power supply, it monitors the communication data between the host computer and the motor.
[0016] Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. Attached Figure Description
[0017] Figure 1 This is a block diagram of a communication switching device according to an embodiment of the present invention;
[0018] Figure 2 This is a block diagram of a communication switching device according to an embodiment of the present invention;
[0019] Figure 3 A circuit diagram of a selection switch unit according to an embodiment of the present invention;
[0020] Figure 4 A circuit diagram of a logic unit according to an embodiment of the present invention;
[0021] Figure 5 A circuit diagram of a first switching unit according to an embodiment of the present invention;
[0022] Figure 6 for Figure 5 Internal schematic diagram of analog switch U6;
[0023] Figure 7 This is a circuit diagram of a first level conversion unit according to an embodiment of the present invention;
[0024] Figure 8 This is a circuit diagram of a second level conversion unit according to an embodiment of the present invention;
[0025] Figure 9 This is a circuit diagram of a third level conversion unit according to an embodiment of the present invention;
[0026] Figure 10 This is a circuit diagram of the analog switch chip U9 in the second switch unit according to an embodiment of the present invention;
[0027] Figure 11 A circuit diagram of the analog switch chip U10 in the second switch unit according to an embodiment of the present invention;
[0028] Figure 12 This is a schematic diagram of a connector according to an embodiment of the present invention. Detailed Implementation
[0029] Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain the present invention, and should not be construed as limiting the present invention.
[0030] The communication switching device proposed in the embodiments of the present invention is described below with reference to the accompanying drawings.
[0031] Figure 1 This is a block diagram of a communication switching device according to an embodiment of the present invention.
[0032] Take the application of this communication switching device in the communication process between the host computer and the motor as an example.
[0033] When developing motors to match different customers' complete machines, a separate communication circuit needs to be created for each motor for analysis, debugging, and testing, increasing work inconvenience. Therefore, this application designs a communication switching device compatible with multiple communication circuits. Furthermore, analysis revealed that communication circuits can be basically divided into three categories: three-wire positive logic circuits, three-wire negative logic circuits, and four-wire positive logic circuits. Moreover, the relevant communication circuits generally use the same type of connector, only with different pin definitions from different manufacturers. This provides the possibility for this application to integrate multiple circuits.
[0034] like Figure 1 As shown, the communication switching device of this embodiment may include: a level conversion module 10, a switch module 20 and a control module 30, wherein the switch module 20 is connected to the level conversion module 10 and the control module 30 respectively.
[0035] The control module 30 outputs two gating signals. The switch module 20 controls the level conversion module 10 according to the two gating signals to switch to the communication branch corresponding to the gating signal.
[0036] Specifically, the level conversion module 10 can integrate three types of communication circuits with different communication circuit and connector pin definitions into one, forming a corresponding communication branch. The two selection signals IN0 and IN1 output by the control module 30 control the switch module 20, which switches between different communication branches. Therefore, this device only needs to select the communication branch through the switch module 20, and the host computer can monitor the communication data between the main controller and the motor. It can also be used independently for communication between the host computer and the motor, greatly reducing the number of communication cables required. This reduces costs and makes the device easier to carry.
[0037] like Figure 2 As shown, according to an embodiment of the present invention, the switch module 20 includes: a first switch unit 21 and a second switch unit 22.
[0038] In this configuration, the first terminal of the first switch unit 21 is connected to the host computer interface 40, the second terminal of the first switch unit 21 is connected to the output terminal of the control module 30, and the third terminal of the first switch unit 21 is connected to one end of the level conversion module 10. The first terminal of the second switch unit 22 is connected to the other end of the level conversion module 10, the second terminal of the second switch unit 22 is connected to the output terminal of the control module 30, and the third terminal of the second switch unit 22 is connected to the connector 50. The control module 30 outputs two identical strobe signals to the first switch unit 21 and the second switch unit 22, respectively.
[0039] Specifically, the host computer interface 40 can be a USB (Universal Serial Bus) to serial port adapter, which is connected to the first end of the first switch unit 21. The two ends of the level conversion module 10 are respectively connected to the third end of the first switch unit 21 and the first end of the second switch unit 21. The third end of the second switch unit 22 communicates with the external device through the connector 50. Thus, the host computer interface 40, the first switch unit 21, the level conversion module 10, the second switch unit 22 and the connector 50 form a communication path, thereby realizing the communication connection between the host computer and the external device, i.e., the motor. The specific communication branch selected in the level conversion module 10 can be selected according to the actual motor connection requirements.
[0040] In practical applications, the control module 30 outputs strobe signals IN0 and IN1, and inputs the two strobe signals into the first switch unit 21 and the second switch unit 22, thereby ensuring that the first switch unit 21 and the second switch unit 22 can select the two ends of the same communication branch. Thus, the host computer establishes a communication connection with one end of the communication branch through the first switch unit 21, and the motor establishes a communication connection with the other end of the communication branch through the second switch unit 22. Under the connection of the communication branch, communication between the host computer and the motor is realized.
[0041] It should be noted that, in addition to connecting to the USB-to-serial port as mentioned above, the host computer interface 40 can also connect to the microcontroller's UART port.
[0042] According to one embodiment of the present invention, the control module 30 includes a selection switch unit 31, wherein, as Figure 3 As shown, the selector switch unit 31 includes: a slide switch SW1, the first position S1 of the slide switch SW1 is connected to the power supply VCC through the first pull-up resistor R1, the second position S2 of the slide switch SW1 is connected to the power supply VCC through the second pull-up resistor R12, the third position S3 of the slide switch SW1 is connected to the power supply VCC through the third pull-up resistor R13, and the common terminal of the slide switch SW1 is grounded.
[0043] Reference Figure 3 As shown, pin 7 of the slide switch SW1 is grounded as a common terminal, pin 8 provides the first position S1, pin 6 provides the second position S2, and pin 5 provides the third position S3. When the internal slider of the slide switch SW1 connects pin 8, pin 6, or pin 5 to pin 7, the corresponding circuit of that pin is turned on, the pin level is pulled low, and the corresponding position is low; otherwise, it is high. For example, when the internal slider of the slide switch SW1 connects pin 8 to pin 7, and pins 6 and 5 are disconnected from pin 7, the first position S1 is low (0), the second position S2 is high (1), and the third position S3 is high (1). The position selection of the slide switch SW1 has three combinations as shown in Table 1:
[0044] Table 1
[0045]
[0046] According to one embodiment of the present invention, the control module 30 includes a logic unit 32, wherein, as Figure 4As shown, the logic unit 32 includes: a first AND gate U7, the first input terminal 1 of the first AND gate U7 is connected to the first position S1 of the slide switch SW1, the second input terminal 2 of the first AND gate U7 is connected to the second position S2 of the slide switch SW1, and the third input terminal 3 of the first AND gate U7 is grounded; and a second AND gate U8, the first input terminal 1 of the second AND gate U8 is connected to the first position S1 of the slide switch SW1, the second input terminal 2 of the second AND gate U8 is connected to the third position S3 of the slide switch SW1, and the third input terminal 3 of the second AND gate U8 is grounded.
[0047] According to one embodiment of the present invention, the output terminal 4 of the first AND gate U7 and the output terminal 4 of the second AND gate U8 serve as the output terminals of the control module 30 to output two strobe signals (IN0, IN1).
[0048] In other words, the first position S1 and the second position S2 of the sliding switch SW1 are input to the first AND gate U7 to obtain the gating signal IN0. When both the first position S1 and the second position S2 are high, the gating signal IN0 output by the first AND gate U7 is high; otherwise, it is low. The first position S1 and the third position S3 of the sliding switch SW1 are input to the second AND gate U8 to obtain the gating signal IN1. When both the first position S1 and the third position S3 are high, the gating signal IN1 output by the second AND gate U8 is high; otherwise, it is low. The logic unit 32 converts the three-way switch logic (first position S1, second position S2, and third position S3) generated by the selection switch unit 31 into analog switch gating signals (IN0 and IN1) for output to the first switch unit 21 and the second switch unit 22 to control the working state of the first switch unit 21 and the second switch unit 22. Specifically, three combinations can be formed as shown in Table 2.
[0049] Table 2
[0050]
[0051] Continue to refer to Figure 2 According to one embodiment of the present invention, the level conversion module 10 includes a first level conversion unit 11, a second level conversion unit 12 and a third level conversion unit 13, wherein the first switching unit 21 and the second switching unit 22 determine to switch to one of the first level conversion unit 11, the second level conversion unit 12 and the third level conversion unit 13 according to two gating signals.
[0052] In other words, the level conversion module 10 includes communication branches composed of a first level conversion unit 11, a second level conversion unit 12, or a third level conversion unit 13. It determines the communication branch to be used based on a selection signal and controls the first switch unit 21 and the second switch unit 22 to select the two ends of the corresponding communication branch to form a communication loop. The first level conversion unit 11 can be a four-wire positive logic circuit, the second level conversion unit 12 can be a three-wire inverted logic circuit, and the third level conversion unit 13 can be a three-wire positive logic circuit.
[0053] According to one embodiment of the present invention, when the sliding switch SW1 selects the first position S1, it determines to switch to the first level conversion unit 11 based on two gating signals; when the sliding switch SW1 selects the second position S2, it determines to switch to the second level conversion unit 12 based on two gating signals; when the sliding switch SW1 selects the third position S3, it determines to switch to the third level conversion unit 13 based on two gating signals.
[0054] Specifically, the first switching unit 21 adopts, as follows: Figure 5 Taking the circuit diagram shown as an example, the first switching unit uses chip U6 as an analog switch chip, and its internal schematic diagram is as follows. Figure 6 As shown in Table 3, the pin functions and communication channel selection of chip U6 are as follows.
[0055] Table 3
[0056]
[0057]
[0058] Combination Figure 2 As shown, pins YA and YB serve as the common terminals of a single-pole four-throw analog switch and are connected to the host computer interface 40. Pins S1A and S1B are connected to the first level conversion unit 11, pins S2A and S2B are connected to the second level conversion unit 12, and pins S3A and S3B are connected to the third level conversion unit 13.
[0059] During application, when the slide switch SW1 selects the first position S1, the strobe signals IN0 and IN1 are 00. Switches S1A and S1B in chip U6 are closed, while switches S2A, S2B, S3A, and S3B are open. At this time, pin YA is connected to pin S1A, and pin YB is connected to pin S1B, thus establishing a communication connection with the first level conversion unit 11. When the slide switch SW1 selects the second position S2, the strobe signals IN0 and IN1 are 01. Switches S2A and S2B in chip U6 are closed, while switches S1A, S1B, S3A, and S3B are open. At this time, pin YA is connected to pin S2A, and pin YB is connected to pin S2B, thus switching to a communication connection with the second level conversion unit 12. When the sliding switch SW1 selects the third position S3, the strobe signals IN0 and IN1 are 10. The switches corresponding to S3A and S3B in chip U6 are closed, and the switches corresponding to S1A, S1B, S2A and S2B are opened. At this time, pin YA is connected to pin S3A, and pin YB is connected to pin S3B, thereby switching to communication connection with the third level conversion unit 13.
[0060] The circuits of the first level conversion unit 11, the second level conversion unit 12, and the third level conversion unit 13 are illustrated below. The first level conversion unit 11 is as follows: Figure 7 The four-wire positive logic circuit shown has a second level conversion unit 12 as follows: Figure 8 The three-wire inverse logic circuit shown has a third level conversion unit 13 as follows: Figure 9 The circuit shown is a three-wire positive logic circuit.
[0061] like Figure 7 As shown, according to an embodiment of the present invention, the first level conversion unit 11 includes: a single-pole double-throw switch S1, the first terminal 1 of the single-pole double-throw switch S1 being connected to the power supply pin MC_VCC1 of the second switching unit 22, and the second terminal 2 of the single-pole double-throw switch S1 being connected to the power supply VCC; and an optocoupler U11, the first input pin 1 of the optocoupler U11 being connected to the third terminal 3 of the single-pole double-throw switch S1, the second input pin 2 of the optocoupler U11 being connected to the read / write pin of the second switching unit 22, and the output pin V0 of the optocoupler U11 being connected to the read / write pin of the first switching unit 21.
[0062] Specifically, Figures 7 to 9 Combination Figure 3As shown, the second input pin 2 of the optocoupler U11 of the first level conversion unit 11 is connected to the read / write pin MC_TXD1 of the second switching unit 22, and the output pin V0 of the optocoupler U11 is connected to the read / write pin TTL_RXD1 of the first switching unit 21. One side of the first level conversion unit 11 is connected to the read / write pins TTL_RXD1 and TTL_TXD1 of the first switching unit 21, and the other side is connected to the read / write pins MC_RXD1, MC_TXD1, and the power supply pin MC_VCC1 of the second switching unit 22. One side of the second level conversion unit 12 is connected to the read / write pins TTL_RXD2 and TTL_TXD2 of the first switching unit 21, and the other side is connected to the read / write pin MC_DATA2 and the power supply pin MC_VCC2 of the second switching unit 22. One side of the third level conversion unit 13 is connected to the read / write pins TTL_RXD3 and TTL_TXD3 of the first switching unit 21, and the other side is connected to the read / write pin MC_DATA3 and the power supply pin MC_VCC3 of the second switching unit 22.
[0063] The first level conversion unit 11, the second level conversion unit 12 and the third level conversion unit 13 are disposed between the first switch unit 21 and the second switch unit 22. The first switch unit 21 and the second switch unit 22 select the above three communication branches according to the selection signals IN0 and IN1.
[0064] In one embodiment of the present invention, the second switching unit 22 includes as follows: Figure 10 The analog switch chip U9 shown and as follows Figure 11 The analog switch chip U10 shown has the following pin configurations: Analog switch chip U9 has a 9-pin YA connector, a 10-pin YB connector, S1A (power supply pin MC_VCC1), S1B (read / write pin MC_TXD1), S2A (power supply pin MC_VCC2), and S2B (power supply pin MC_VCC3). Analog switch chip U10 has a 5-pin YA connector, a 4-pin YB connector, S1A (read / write pin MC_RXD1), S1B (ground pin GND), S2A (read / write pin MC_DATA2), and S3A (read / write pin MC_DATA3). The pinout of connector 50 is shown in Figure 12. The pinouts of these connectors can be defined according to different customer requirements.
[0065] Based on the above, it can be seen that the device includes the following three operating logics:
[0066] (1) When IN=0, IN1=0, and the slide switch is in the first position, the communication channel is selected according to Table 4 below:
[0067] Table 4
[0068]
[0069] (2) When IN0 = 0, IN = 1, and the slide switch is in the second position, the communication channel is selected as shown in Table 5 below:
[0070] Table 5
[0071]
[0072]
[0073] (3) When IN0 = 1, IN = 0, and the slide switch is in the third position, the communication channel is selected as shown in Table 6 below:
[0074] Table 6
[0075]
[0076] Based on Tables 4 to 6 above, when using three-wire communication with the second level conversion unit 12 and the third level conversion unit 13, since both data transmission and reception are via the DATD line, this communication line can serve as both a communication line for the host computer to drive the motor and a monitoring line for transmission between the main controller and the motor. However, when using four-wire transmission with the first level conversion unit 11, since data transmission and reception are via two lines, MC-TXD1 and MC_RXD1, the host computer with only a single serial port can only monitor the data sent from the motor to the main controller, and cannot monitor the data sent from the main controller to the motor. Generally, dual serial ports are used to monitor the two communication data separately.
[0077] According to one embodiment of the present invention, when the first terminal 1 of the single-pole double-throw switch S1 is connected to the third terminal 3 of the single-pole double-throw switch S2, the conduction of the optocoupler U11 is controlled according to the voltage value between the power supply pin of the second switching unit 22 and the read / write pin of the second switching unit 22.
[0078] In other words, by controlling the switching of the single-pole double-throw switch S1, a single serial port can also have the function of monitoring bidirectional communication. When the first terminal 1 and the third terminal 3 of the single-pole double-throw switch S1 are connected, the communication line is used in monitoring mode; when the first terminal 1 and the second terminal 2 of the single-pole double-throw switch S1 are connected, it is in driving mode. Specifically, when the first terminal 1 and the third terminal 3 of the single-pole double-throw switch S1 are connected, the anode AN of the light-emitting diode in the optocoupler U11 is connected to the power supply pin MC_VCC1 of the second switching unit 22 through pin 1, and the cathode CAT of the light-emitting diode in the optocoupler U11 is connected to the read / write pin MC_TXD1 of the second switching unit 22 through pin 2. The light-emitting diode (LED) conducts when the anode voltage is higher than the cathode voltage. Therefore, when the voltage value of the power supply pin MC_VCC1 of the second switching unit 22 is greater than the voltage value of the read / write pin MC_TXD1 of the second switching unit 22, the LED in the optocoupler U11 is turned on, and the optocoupler U11 is turned on. When the voltage value of the power supply pin MC_VCC1 of the second switching unit 22 is lower than the voltage value of the read / write pin MC_TXD1 of the second switching unit 22, the optocoupler U11 is turned off. Thus, the output terminal V0 couples the data sent by the main controller to the TTL_RXD1 line through pin 4, so that a single serial port can also monitor the sending and receiving of data.
[0079] like Figure 2 As shown, according to one embodiment of the present invention, the connector 50 includes a male connector 51 connected to the motor 60 and a female connector 52 connected to the power supply or main controller 70. When the female connector 52 is connected to the main controller, it monitors the communication data between the main controller and the motor 70; when the female connector 52 is connected to the power supply, it monitors the communication data between the host computer 40 and the motor 70.
[0080] In other words, the female connector 52 can be connected to both the main controller and a 220V power supply. When the female connector 52 is connected to the main controller, the device can be used by the host computer 40 to monitor the communication data between the main controller and the motor 60. When the female connector 52 is connected to a 220V AC power supply, the device can be used for communication between the host computer 40 and the motor 60.
[0081] Furthermore, this device replaces the previous three separate circuits with an integrated circuit, making it easy to operate. Different communication branches can be selected through the control switch module. It can be used to monitor the communication data between the main controller and the motor, or it can be used independently for communication between the host computer and the motor. At the same time, it can realize the transmission and reception of data for four-wire communication between the main controller and the motor using a single serial port, reducing operating costs and improving work efficiency. In addition, if the device is connected to a USB-to-serial adapter, it can be used to make communication and monitoring cables. If it is connected to a microcontroller, it can be used to make motor testing equipment, expanding its application scope.
[0082] In summary, according to the communication switching device of this embodiment, the switching module is connected to the level conversion module and the control module respectively. The control module outputs two gating signals, and the switching module controls the level conversion module according to the two gating signals to switch to the communication branch corresponding to the gating signal. Therefore, this device can switch to the corresponding communication branch by controlling the level conversion module through the switching module, greatly reducing the number of communication lines required, lowering application costs, reducing device size, and making it easier to carry.
[0083] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0084] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.
[0085] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this invention, "a plurality of" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0086] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components, unless otherwise explicitly limited. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0087] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A communication switching device, characterized in that, include: The system includes a level conversion module, a switch module, and a control module, wherein the switch module is connected to the level conversion module and the control module respectively. The control module is used to output two gating signals; The switching module is used to control the level conversion module according to the two gating signals, so as to switch to the communication branch corresponding to the gating signal; The switching module includes: The first switch unit has a first end connected to the host computer interface, a second end connected to the output end of the control module, and a third end connected to one end of the level conversion module. The second switching unit has a first end connected to the other end of the level conversion module, a second end connected to the output end of the control module, and a third end connected to a connector. The control module outputs two identical gating signals to the first switching unit and the second switching unit respectively; The level conversion module includes: a first level conversion unit, a second level conversion unit, and a third level conversion unit, wherein the first switching unit and the second switching unit determine, based on the two gating signals, to switch to one of the first level conversion unit, the second level conversion unit, and the third level conversion unit; The first level conversion unit includes: a single-pole double-throw switch, the first end of which is connected to the power supply pin of the second switching unit, and the second end of which is connected to the power supply; and an optocoupler, the first input pin of which is connected to the third end of the single-pole double-throw switch, the second input pin of which is connected to the read / write pin of the second switching unit, and the output pin of which is connected to the read / write pin of the first switching unit. When the first terminal of the single-pole double-throw switch is connected to the third terminal of the single-pole double-throw switch, the conduction of the optocoupler is controlled according to the voltage value between the power supply pin of the second switch unit and the read / write pin of the second switch unit. The first level conversion unit is a four-wire positive logic circuit, the second level conversion unit is a three-wire negative logic circuit, and the third level conversion unit is a three-wire positive logic circuit.
2. The apparatus according to claim 1, characterized in that, The control module includes a selection switch unit, wherein the selection switch unit includes: The sliding switch has a first position connected to the power supply via a first pull-up resistor, a second position connected to the power supply via a second pull-up resistor, a third position connected to the power supply via a third pull-up resistor, and a common terminal grounded.
3. The apparatus according to claim 2, characterized in that, The control module includes a logic unit, wherein the logic unit includes: The first AND gate has its first input connected to the first position of the slide switch, its second input connected to the second position of the slide switch, and its third input grounded. The second AND gate has its first input connected to the first position of the slide switch, its second input connected to the third position of the slide switch, and its third input grounded.
4. The apparatus according to claim 3, characterized in that, The output terminals of the first AND gate and the second AND gate serve as the output terminals of the control module to output the two gating signals.
5. The apparatus according to claim 2, characterized in that, When the sliding switch is selected to the first position, the switch to the first level conversion unit is determined according to the two gating signals. When the slide switch is selected to the second position, the switch to the second level conversion unit is determined according to the two strobe signals; When the sliding switch is selected to the third position, the switch to the third level conversion unit is determined according to the two selection signals.
6. The apparatus according to claim 1, characterized in that, The connector includes a male connector for connecting to the motor and a female connector for connecting to the power supply or main control unit. When the female connector is connected to the main controller, the communication data between the main controller and the motor is monitored. When the female connector is connected to the power supply, the communication data between the host computer and the motor is monitored.
Citation Information
Patent Citations
POS machine capacitive screen safety control circuit and POS machine
CN211478921U
TV set with multi-channel video signal switching circuit
CN2836372Y