CN115118300A - Multi-channel switching and mutually exclusive channel switching circuit and method - Google Patents

Multi-channel switching and mutually exclusive channel switching circuit and method Download PDF

Info

Publication number
CN115118300A
CN115118300A CN202210584205.3A CN202210584205A CN115118300A CN 115118300 A CN115118300 A CN 115118300A CN 202210584205 A CN202210584205 A CN 202210584205A CN 115118300 A CN115118300 A CN 115118300A
Authority
CN
China
Prior art keywords
circuit
pin
chip
resistor
infrared
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.)
Granted
Application number
CN202210584205.3A
Other languages
Chinese (zh)
Other versions
CN115118300B (en
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.)
Wasion Group Co Ltd
Original Assignee
Wasion Group 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 Wasion Group Co Ltd filed Critical Wasion Group Co Ltd
Priority to CN202210584205.3A priority Critical patent/CN115118300B/en
Publication of CN115118300A publication Critical patent/CN115118300A/en
Application granted granted Critical
Publication of CN115118300B publication Critical patent/CN115118300B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B1/00Details of transmission systems, not covered by a single one of groups H04B3/00 - H04B13/00; Details of transmission systems not characterised by the medium used for transmission
    • H04B1/38Transceivers, i.e. devices in which transmitter and receiver form a structural unit and in which at least one part is used for functions of transmitting and receiving
    • H04B1/40Circuits
    • H04B1/401Circuits for selecting or indicating operating mode
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Sources (AREA)

Abstract

The invention relates to the field of channel conversion and switching, and discloses a multi-channel conversion and mutual exclusion channel switching circuit and a method, wherein the circuit comprises a power supply circuit, a USB interface circuit, a receiving and transmitting conversion circuit, a Bluetooth circuit, an RS485 circuit, a self power supply, an infrared channel switching circuit and an infrared circuit; power supply circuit respectively with USB interface circuit, receiving and dispatching converting circuit, bluetooth circuit, the RS485 circuit, infrared channel switching circuit and infrared circuit connection, self power supply is connected with USB interface circuit and receiving and dispatching converting circuit, USB interface circuit is connected with receiving and dispatching converting circuit, receiving and dispatching converting circuit respectively with bluetooth circuit, the RS485 circuit, infrared channel switching circuit and infrared circuit connection, bluetooth circuit and infrared channel switching circuit and infrared circuit connection, infrared circuit and infrared channel switching circuit are connected, the RS485 circuit is connected with infrared channel switching circuit. The invention improves the efficiency of channel conversion and switching.

Description

Multi-channel switching and mutually exclusive channel switching circuit and method
Technical Field
The present invention relates to the field of channel switching and switching, and in particular, to a circuit and method for switching multiple channels and mutually exclusive channels.
Background
With the rapid development of channel switching and switching technology, the requirement of users on channel switching and switching is higher and higher, and when the users want to accurately switch and switch channels and reduce the time of channel switching and switching, the requirements on the accuracy and efficiency of channel switching and switching are also higher.
The traditional channel conversion and switching mode is to select a corresponding communication line according to the type of an equipment interface needing communication, and needs to perform communication operation by a computer. Such channel switching and switching methods have a great disadvantage, and there is a problem that it is necessary to communicate with the devices using a specific communication line. That is, the channel switching and switching method is inefficient because a specific communication line is required to communicate with the device and a computer is required.
Disclosure of Invention
The invention mainly aims to provide a multi-channel conversion and mutual exclusion channel switching circuit and a method, and aims to solve the technical problem of improving the efficiency of channel conversion and switching.
In order to achieve the purpose, the invention provides a multi-channel conversion and mutual exclusion channel switching circuit, which comprises a power circuit, a USB interface circuit, a receiving-transmitting conversion circuit, a Bluetooth circuit, an RS485 circuit, a self power supply, an infrared channel switching circuit and an infrared circuit;
the power supply circuit respectively with USB interface circuit, receiving and dispatching converting circuit, bluetooth circuit, the RS485 circuit, infrared passageway switching circuit with infrared circuit connects, self power supply with USB interface circuit with receiving and dispatching converting circuit connects, receiving and dispatching converting circuit respectively with bluetooth circuit, RS485 circuit, infrared passageway switching circuit with infrared circuit connects, bluetooth circuit with infrared passageway switching circuit with infrared circuit connects, infrared circuit with infrared passageway switching circuit connects, the RS485 circuit with infrared passageway switching circuit connects.
Optionally, the power supply circuit includes a first chip, a first capacitor, a second capacitor, a first diode, a second diode, a battery, and a power supply;
the negative pole of the battery is connected with a system power ground, the positive pole of the battery is connected with the positive pole of the second diode, the positive pole of the first diode is connected with the power supply, the negative pole of the first diode is connected with the negative pole of the second diode and then connected with one end of the first capacitor, the other end of the first capacitor is connected with the system power ground, one end of the first capacitor is further connected with the 1 st pin and the 3 rd pin of the first chip, the 2 nd pin of the first chip is connected with the system power ground, the 5 th pin of the first chip is used as a power output pin, one end of the second capacitor is connected with the 5 th pin of the first chip, and the other end of the second capacitor is connected with the system power ground.
Optionally, the bluetooth circuit includes a second chip and a third capacitor;
the power input pin of the second chip is connected with the power output pin in the power circuit, the power input pin of the second chip is further connected with one end of a third capacitor, the other end of the third capacitor is connected with a system power ground, the Bluetooth data transmitting serial port input pin of the second chip is connected with the first serial port data transmitting output contact in the transceiving conversion circuit, and the Bluetooth data receiving serial port output pin of the second chip is connected with the first serial port data receiving input contact in the transceiving conversion circuit.
Optionally, the transceiver conversion circuit includes a second NPN triode, a PNP triode, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifth diode, a sixth diode, a seventh diode, an eighth diode, a ninth diode, and a twelfth diode;
an emitting electrode of the PNP triode is connected with a power output pin in the power circuit, a collector electrode of the PNP triode is connected with one end of the tenth resistor and a serial port data transmission inverted signal contact, the other end of the tenth resistor is connected with a system power ground, a base electrode of the PNP triode is connected with one end of the ninth resistor, the other end of the ninth resistor is connected with a third serial port data transmission output contact, the third serial port data transmission output contact is connected with one end of the fourteenth resistor, an anode of the sixth diode and an anode of the seventh diode, the other end of the fourteenth resistor is connected with a power output pin in the power circuit, an emitting electrode of the second NPN triode is connected with a second serial port data receiving input contact, and a base electrode of the second NPN triode is connected with one end of the thirteenth resistor, the other end of the thirteenth resistor is connected with the self power supply, the cathode of the seventh diode and the cathode of the eighth diode are connected and then connected with the collector of the second NPN triode, the anode of the eighth diode is connected with a first serial port data transmission output connection point, the first serial port data transmission output connection point is connected with one end of the eleventh resistor and the anode of the twelfth diode, the other end of the eleventh resistor is connected with a power output pin in the power circuit, the cathode of the twelfth diode and the cathode of the ninth diode are connected and then connected with a third serial port data receiving input connection point, the anode of the ninth diode is connected with a second serial port data transmission output connection point, the second serial port data transmission output connection point is connected with one end of the twelfth resistor and the anode of the fifth diode, the other end of the twelfth resistor is connected with the self power supply, the cathode of the sixth diode is connected with the cathode of the fifth diode and then connected with the first serial port data receiving input joint, and the anode of the sixth diode is connected with the third serial port data sending output joint.
Optionally, the USB interface circuit includes a third chip, a fourth capacitor, a fifth capacitor, a first resistor, and a USB socket;
the 7 th pin and the 8 th pin of the third chip and the power pin of the USB socket are connected with a power supply in the power circuit, the 7 th pin of the third chip is further connected with one end of a fifth capacitor, the other end of the fifth capacitor is connected with a system power ground, the system power ground is further connected with the 0 th pin and the 3 rd pin of the third chip and the power ground pin of the USB socket, the 6 th pin of the third chip is connected with the self power supply, the self power supply is connected with one end of a fourth capacitor and one end of a first resistor, the other end of the fourth capacitor is connected with the system power ground, the other end of the first resistor is connected with the 9 th pin of the third chip, and a first data port and a second data port of the USB socket are connected with the 4 th pin of the third chip, and a third data port and a fourth data port of the USB socket are connected with a 5 th pin of the third chip, a serial port output pin of the third chip is connected with a second serial port data receiving input contact in the transceiving conversion circuit, and a serial port input pin of the third chip is connected with a second serial port data sending output contact in the transceiving conversion circuit.
Optionally, the RS485 circuit includes a fourth chip, a sixth capacitor, a second resistor, a third resistor, a first TVS tube, a second TVS tube, a first thermistor, and an RS485 interface;
the 8 th pin of the fourth chip is connected with a power output pin in the power circuit, one end of the sixth capacitor is connected with one end of the second resistor, the other end of the sixth capacitor is connected with a system power ground and the 5 th pin of the fourth chip, the other end of the second resistor is connected with the 6 th pin of the fourth chip, the other end of the second resistor is further connected with one end of the first thermistor and one end of the second TVS tube, the other end of the first thermistor is connected with the 3 rd pin of the RS485 interface, the 7 th pin of the fourth chip is connected with one end of the first TVS tube, one end of the third resistor is connected with the 2 nd pin of the RS485 interface, the other end of the third resistor, the other end of the second TVS tube, the other end of the first TVS tube and the 4 th pin of the RS485 interface are connected with the system power ground, the 1 st foot of RS485 interface with power supply among the power supply circuit is connected, the 2 nd foot and the 3 rd foot of fourth chip with receiving and dispatching converting circuit's serial ports send the inverted signal contact of data and be connected, the 4 th foot of fourth chip with the third serial ports among the receiving and dispatching converting circuit sends the data output contact and is connected, the 1 st foot of fourth chip with the first passageway contact of data input among the infrared channel switching circuit is connected.
Optionally, the infrared circuit includes an infrared receiving head, an infrared emitting diode, a first decoupling capacitor, a first NPN triode, a fourth resistor, a fifth resistor, and a sixth resistor;
a pin 3 of the infrared receiving head is connected with a power output pin in the power circuit and one end of the first decoupling capacitor, the other end of the first decoupling capacitor is connected with a pin 2 of the infrared receiving head, the pin 2 of the infrared receiving head is connected with a system power ground, the pin 1 of the infrared receiving head is connected with a data input second channel contact in the infrared channel switching circuit, an anode of the infrared emitting diode is connected with a data inverting signal contact sent by a serial port of the transceiving switching circuit, a cathode of the infrared emitting diode is connected with one end of the fourth resistor, the other end of the fourth resistor is connected with a collector of the first NPN triode, a base of the first triode is connected with one end of the fifth resistor and one end of the sixth resistor, and the other end of the fifth resistor is connected with an infrared control signal contact of the Bluetooth circuit, the other end of the sixth resistor and the emitter of the first NPN triode are connected with a system power ground.
Optionally, the infrared channel switching circuit includes a fifth chip, a second decoupling capacitor, a seventh capacitor, an eighth capacitor, a third diode, a fourth diode, a seventh resistor, and an eighth resistor;
the 1 st pin, the 2 nd pin and the 10 th pin of the fifth chip are connected with a power output pin in the power circuit, the 10 th pin of the fifth chip is further connected with one end of the second decoupling capacitor, the 7 th pin of the fifth chip is connected with one end of the seventh capacitor, the cathode of the third diode and one end of a seventh resistor, the 6 th pin of the fifth chip is connected with one end of the eighth capacitor, the cathode of the fourth diode and one end of an eighth resistor, the other end of the eighth capacitor, the other end of the seventh capacitor, the other end of the eighth resistor, the other end of the seventh resistor, the other end of the second decoupling capacitor, the 4 th pin and the 5 th pin of the fifth chip are connected with a system power ground, and the anode of the third diode is connected with an infrared control signal contact of the bluetooth circuit, the anode of the fourth diode is connected with a serial port data transmitting inverted signal contact of the transceiving switching circuit, and the 9 th pin of the fifth chip is connected with a third serial port data receiving input contact of the transceiving switching circuit.
In addition, to achieve the above object, the present invention further provides a method for switching a multi-channel and a mutually exclusive channel, where the method for switching an infrared channel is applied to an infrared channel switching circuit in the circuit for switching a multi-channel and a mutually exclusive channel, and the method for switching a multi-channel and a mutually exclusive channel includes the steps of:
acquiring input first target level information and second target level information, and detecting level states corresponding to the first target level information and the second target level information;
if the level state corresponding to the first target level information is a high level and the level state corresponding to the second target level information is a high level, conducting a pin 9 of the fifth chip and a pin 2 of the fifth chip;
if the level state corresponding to the first target level information is a high level and the level state corresponding to the second target level information is a low level, conducting a pin 9 of the fifth chip and a pin 1 of the fifth chip;
if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a high level, conducting a pin 9 of the fifth chip and a pin 3 of the fifth chip;
and if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a low level, conducting a pin 9 of the fifth chip and a pin 8 of the fifth chip.
Optionally, after the step of conducting the pin 9 of the fifth chip and the pin 2 of the fifth chip, the method includes:
if the level state corresponding to the first target level information is changed from a high level to a low level, detecting level information corresponding to a cathode of the fourth diode;
if the level information corresponding to the cathode of the fourth diode is a high level, conducting a pin 9 of the fifth chip and a pin 2 of the fifth chip;
and if the level information corresponding to the cathode of the fourth diode is a low level, the pin 9 of the fifth chip is conducted with the pin 3 of the fifth chip.
The multi-channel conversion and mutual exclusion channel switching circuit comprises a power supply circuit, a USB interface circuit, a receiving and transmitting conversion circuit, a Bluetooth circuit, an RS485 circuit, a self power supply, an infrared channel switching circuit and an infrared circuit; the power supply circuit respectively with USB interface circuit, receiving and dispatching converting circuit, bluetooth circuit, the RS485 circuit, infrared passageway switching circuit with infrared circuit connects, self power supply with USB interface circuit with receiving and dispatching converting circuit connects, receiving and dispatching converting circuit respectively with bluetooth circuit, the RS485 circuit, infrared passageway switching circuit with infrared circuit connects, bluetooth circuit with infrared passageway switching circuit with infrared circuit connects, infrared circuit with infrared passageway switching circuit connects, the RS485 circuit with infrared passageway switching circuit connects. Not only can realize the connection between bluetooth circuit and RS485 circuit, infrared circuit and the USB interface circuit through receiving and dispatching converting circuit, be connected between USB interface circuit and RS485 circuit and the infrared circuit, can also realize that mutual exclusion circuit RS485 circuit and infrared circuit pass through infrared channel switching circuit channel and switch, thereby avoided needing to select the corresponding communication line and carry out the phenomenon emergence of communication operation with the help of the computer according to the equipment interface type of needs communication among the prior art, this kind of multichannel conversion and mutual exclusion channel switching circuit not only carry out communication operation through the bluetooth and improve the convenience of operation, and still realized multichannel conversion and mutual exclusion channel switching through a circuit, the efficiency of channel conversion and switching has been improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art according to the structures shown in the drawings without creative efforts.
FIG. 1 is a schematic diagram illustrating an embodiment of a multi-channel switch and a mutually exclusive channel switch circuit according to the present invention;
FIG. 2 is a schematic circuit diagram of an embodiment of a power circuit in the multi-channel switching and exclusive-channel switching circuit according to the present invention;
FIG. 3 is a schematic circuit diagram of an embodiment of a Bluetooth circuit in the multi-channel switching and mutually exclusive channel switching circuit according to the present invention;
FIG. 4 is a schematic circuit diagram illustrating an embodiment of a USB interface circuit in the multi-channel switch and mutually exclusive channel switch circuit according to the present invention;
FIG. 5 is a schematic circuit diagram of an embodiment of an RS485 circuit in the multi-channel switching and mutex channel switching circuit according to the present invention;
FIG. 6 is a schematic circuit diagram of an embodiment of an infrared circuit in the multi-channel switching and exclusive-channel switching circuit according to the present invention;
FIG. 7 is a schematic circuit diagram of an embodiment of an IR channel switching circuit in the multi-channel switching and mutual exclusion channel switching circuit of the present invention;
FIG. 8 is a schematic circuit diagram of an embodiment of a transceiving switching circuit in a multi-channel switching circuit and a mutually exclusive channel switching circuit according to the present invention;
FIG. 9 is a flowchart illustrating a first embodiment of a multi-channel switching and mutually exclusive channel switching method according to the present invention;
fig. 10 is a flowchart illustrating a technical solution of a multi-channel switching and mutually exclusive channel switching method according to the present invention.
The reference numbers illustrate:
Figure BDA0003664395090000071
Figure BDA0003664395090000081
the implementation, functional features and advantages of the objects of the present invention will be further described with reference to the accompanying drawings.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, if directional indications (such as up, down, left, right, front, and back … …) are involved in the embodiment of the present invention, the directional indications are only used to explain the relative positional relationship between the components, the movement situation, and the like in a specific posture (as shown in the drawing), and if the specific posture is changed, the directional indications are changed accordingly.
In addition, if there is a description of "first", "second", etc. in an embodiment of the present invention, the description of "first", "second", etc. is for descriptive purposes only and is not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between the various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination of technical solutions should not be considered to exist, and is not within the protection scope of the present invention.
The invention provides a multi-channel conversion and mutual exclusion channel switching circuit.
In an embodiment of the present invention, as shown in fig. 1, the multi-channel converting and mutually exclusive channel switching circuit includes a power circuit 10, a USB interface circuit 30, a transceiver converting circuit 40, a bluetooth circuit 50, an RS485 circuit 80, a self power supply 20, an infrared channel switching circuit 70, and an infrared circuit 60;
the power supply circuit 10 respectively with USB interface circuit 30, receiving and dispatching converting circuit 40, bluetooth circuit 50, RS485 circuit 80, infrared passageway switching circuit 70 with infrared circuit 60 is connected, self power supply 20 with USB interface circuit 30 with receiving and dispatching converting circuit 40 is connected, receiving and dispatching converting circuit 40 respectively with bluetooth circuit 50, RS485 circuit 80, infrared passageway switching circuit 70 with infrared circuit 60 is connected, bluetooth circuit 50 with infrared passageway switching circuit 70 with infrared circuit 60 is connected, infrared circuit 60 with infrared passageway switching circuit 70 is connected, RS485 circuit 80 with infrared passageway switching circuit 70 is connected.
In this embodiment, the bluetooth circuit 50 is connected to the infrared circuit 60 and the infrared channel switching circuit 70 by control signal lines, the infrared circuit 60 and the infrared channel switching circuit 70 can be controlled according to the control signal of the bluetooth circuit 50, the transceiving switching circuit 40 is connected with the infrared channel switching circuit 70 by a control signal line, the infrared channel switching circuit 70 may be controlled according to a control signal of the transceive conversion circuit 40, however, the connection between the transceiving conversion circuit 40 and the infrared circuit 60 and the connection between the infrared channel switching circuit 70 and the transceiving conversion circuit 40 are data transmission line connections, and the self power supply 20 is related to the power supply in the power supply circuit, is converted from the power supply, and is only connected to the USB interface circuit 30 and the transceiving conversion circuit 40 separately. After the USB interface circuit 30 receives the signal, the signal is sent to the transceiver conversion circuit 40 to convert the channel, and the signal can be sent to the bluetooth circuit 50, the RS485 circuit 80 and the infrared circuit 60 through the transceiver conversion circuit 40, so that 3 conversion modes of USB to bluetooth communication, USB to RS485 communication and USB to infrared communication are realized; after the bluetooth circuit 50 receives the signal, the signal is sent to the transceiver conversion circuit 40 to perform channel conversion, and the signal can be sent to the USB interface circuit 30, the RS485 circuit 80 and the infrared circuit 60 through the transceiver conversion circuit 40, so that 3 conversion modes of bluetooth to USB communication, bluetooth to RS485 communication and bluetooth to infrared communication are realized, and the above five communication conversion modes can be realized through the multi-channel conversion and mutual exclusion channel switching circuit of the present invention.
In this embodiment, the RS485 channel and the infrared channel are mutually exclusive channels that cannot be used simultaneously, and one of the RS485 channel and the infrared channel may be selected for communication by a mutually exclusive channel switching method. That is to say, the switching between the RS485 circuit 80 and the infrared circuit 60 can be realized through the infrared channel switching circuit 70, so that the two circuits can be accurately controlled, and thus each circuit can work independently without mutual interference.
In one embodiment, referring to fig. 2, the power circuit 10 includes a first chip U3, a first capacitor C9, a second capacitor C10, a first diode D13, a second diode D14, a battery BAT1, and a power supply VBUS;
the negative electrode of the battery BAT1 is connected with a system power ground, the positive electrode of the battery BAT1 is connected with the anode of the second diode D14, the anode of the first diode D13 is connected with the power supply VBUS, the cathode of the first diode D13 is connected with the cathode of the second diode D14 and then connected with one end of the first capacitor C9, the other end of the first capacitor C9 is connected with the system power ground, wherein the other end of the first capacitor C9 is the end far away from the connection point of the cathode of the first diode D13 and the cathode of the second diode D14, one end of the first capacitor C9 is further connected with the 1 st pin and the 3 rd pin of the first chip U3, the 2 nd pin of the first chip U3 is connected with the system power ground, the 5 th pin of the first chip U3 is used as a power output pin, one end of the second capacitor C10 is connected with the 5 th pin of the first chip U3, the other end of the second capacitor C10 is connected to the system power ground, wherein the other end of the second capacitor C10 is the end far away from the 5 th pin of the first chip U3.
In this embodiment, the power circuit 10 converts the voltage VBUS of the power supply VBUS and the voltage VBB of the battery BAT1 to output a voltage of 3.3V to other circuit-passing power through the first chip U3, and when the power supply VBUS does not work, the voltage of the battery BAT1 is directly converted to obtain an output voltage of 3.3V. The power supply VBUS is a power supply accessed by the USB socket USB1 in the subsequent circuit USB interface circuit 30.
In one embodiment, referring to fig. 3, the bluetooth circuit 50 includes a second chip U6 and a third capacitor C13;
the power input pin of the second chip U6 is connected to the power output pin of the power circuit, the power input pin of the second chip U6 is further connected to one end of a third capacitor C13, and the other end of the third capacitor C13 is connected to a system power ground, where the other end of the third capacitor C13 is an end away from the power input pin of the second chip U6, the bluetooth data serial port transmitting input pin of the second chip U6 is connected to the first serial port transmitting data output BT _ TXD contact of the transceiving switching circuit 40, and the bluetooth data serial port receiving output pin of the second chip U6 is connected to the first serial port receiving data input BT _ RXD contact of the transceiving switching circuit 40.
In this embodiment, the bluetooth circuit 50 is connected to the transceiving switching circuit 40 through a bluetooth data transmitting serial port input pin and a bluetooth data receiving serial port output pin in the second chip U6, so that data is transmitted from the bluetooth circuit 50 to the transceiving switching circuit 40 through the first serial port data receiving input BT _ RXD and transmitted from the transceiving switching circuit 40 to the bluetooth circuit 50 through the first serial port data transmitting output BT _ TXD.
In an embodiment, referring to fig. 8, the transceiving switching circuit 80 includes a second NPN transistor T2, a PNP transistor Q1, a ninth resistor R1, a tenth resistor R2, an eleventh resistor R3, a twelfth resistor R4, a thirteenth resistor R5, a fourteenth resistor R6, a fifth diode D1, a sixth diode D2, a seventh diode D3, an eighth diode D4, a ninth diode D5, and a twelfth diode D6;
an emitter of the PNP transistor Q1 is connected to a power output pin of the power circuit 10, a collector of the PNP transistor Q1 is connected to a junction of one end of the tenth resistor R2 and the serial transmission data inverted signal RVTXD2, and the other end of the tenth resistor R2 is connected to a system power ground, wherein the other end of the tenth resistor R2 is a terminal far from a collector of the PNP transistor Q1, a base of the PNP transistor Q1 is connected to one end of the ninth resistor R1, and the other end of the ninth resistor R1 is connected to a junction of a third serial transmission data output TXD2, wherein the other end of the ninth resistor R1 is a terminal far from a base of the PNP transistor Q1, and a junction of the third serial transmission data output TXD2 is connected to one end of the fourteenth resistor R6, an anode of the sixth diode D2 and an anode of the seventh diode D3, the other end of the fourteenth resistor R6 is connected to a power output pin of the power circuit 10, wherein the other end of the fourteenth resistor R6 is a terminal far from the third serial port transmitting data output TXD2, the emitter of the second NPN transistor T2 is connected to the second serial port receiving data input RXD1, the base of the second NPN transistor T2 is connected to one end of the thirteenth resistor R5, the other end of the thirteenth resistor R5 is connected to the self power supply 20, the other end of the thirteenth resistor R5 is a terminal far from the base of the second NPN transistor T2, the cathode of the seventh diode D3 is connected to the cathode of the eighth diode D4 and is connected to the collector of the second NPN transistor T2, the anode of the eighth diode D4 is connected to the first serial port transmitting data output txbt _ D, and the first serial port transmitting data output txbt _ D is connected to one end of the eleventh resistor R3 and the eleventh resistor R3583 An anode of a diode D6, the other end of the eleventh resistor R3 is connected to the power output pin of the power circuit 10, wherein the other end of the eleventh resistor R3 is a terminal far from the first serial port transmission data output BT _ TXD junction, a cathode of the diode D6 and a cathode of the diode D5 are connected to the third serial port reception data input RXD2 junction, an anode of the diode D5 is connected to the second serial port transmission data output TXD1 junction, the second serial port transmission data output TXD1 junction is connected to a terminal of the twelfth resistor R4 and an anode of the diode D1, the other end of the twelfth resistor R4 is connected to the self power supply 20, wherein the other end of the twelfth resistor R4 is a terminal far from the second serial port transmission data output TXD1 junction, a cathode of the diode D2 and a cathode of the diode D1 are connected to the first serial port transmission data input RXD2 junction, and a cathode of the diode D3535 is connected to the second serial port transmission data input RXD1 junction The port receiving data input BT _ RXD junction is connected, and the anode of the sixth diode D2 is connected with the third serial port transmitting data output TXD2 junction.
In this embodiment, the transmission/reception conversion circuit 80 realizes multi-channel switching by circuit connection of input/output of each signal. The transceiving conversion circuit 80 is provided with an NPN transistor T2 and a thirteenth resistor R5, and one end of R5 is connected to the self power supply 10 by pulling up for power supply. When the power supply VBUS is off, that is, the USB interface circuit 30 is not connected to the USB, so the USB interface circuit 30 does not operate, and the serial port output pin TXD of the corresponding third chip U5 is at a low level; since the self power supply 10 of the third chip U5 is directly related to the power supply VBUS, the self power supply 10 is also at a low level, and at this time, the base and emitter voltages of the second NPN transistor T2 are 0, the transistor is not turned on and the collector is in a high-resistance state, and the third chip U5 does not operate due to the diodes D3 and D4 and does not affect the levels of the TXD2 and BT _ TXD; similarly, one end of the twelfth resistor R4 is also connected to the self power supply 10 for power supply. When the power supply VBUS is dead, the third chip U5 does not operate, the serial input pin RXD of the third chip U5 is at a low level, the self power supply 10 is also at a low level, and the serial input pin RXD of the third chip U5 is always at a low level due to the diodes D1 and D5, regardless of the level changes of RXD2 and BT _ RXD, and at the same time, no additional current consumption is generated at this pin. Through such device setting and connection, when the USB is not connected, as long as the system power supply 3.3V normally has electricity when third chip U5 is out of work promptly, bluetooth channel, infrared channel and RS485 channel just can normally be worked, conveniently remove the operation. That is to say, the application realizes that other conversion circuits can work normally when the USB interface is not needed, thereby not only saving resources, but also simplifying the use of the whole circuit.
In one embodiment, referring to fig. 4, the USB interface circuit 30 includes a third chip U5, a fourth capacitor C2, a fifth capacitor C12, a first resistor R15, and a USB socket USB 1;
the 7 th pin and the 8 th pin of the third chip U5 and the power pin of the USB socket USB1 are connected to the VBUS of the power supply in the power circuit 10, the 7 th pin of the third chip U5 is further connected to one end of a fifth capacitor C12, the other end of the fifth capacitor C12 is connected to the system power ground, wherein the other end of the fifth capacitor C12 is the end far from the 7 th pin of the third chip U5, the system power ground is further connected to the 0 th pin and the 3 rd pin of the third chip U5 and the power ground pin of the USB socket USB1, the 6 th pin of the third chip U5 is connected to the self power supply 20, the self power supply 20 is connected to one end of the fourth capacitor C2 and one end of the first resistor R15, the other end of the fourth capacitor C2 is connected to the system ground, the other end of the first resistor R15 is connected to the third pin 639 of the third chip U5, the other end of the fourth capacitor C2 and the other end of the first resistor R15 are ends far away from the self power supply 20, the first data port DP1 and the second data port DP2 of the USB socket USB1 are connected to the 4 th pin of the third chip U5, the third data port DN1 and the fourth data port DN2 of the USB socket are connected to the 5 th pin of the third chip U5, the serial port output pin of the third chip U5 is connected to the second serial port receiving data input RXD1 contact in the transceiving conversion circuit 40, and the serial port input pin of the third chip is connected to the second serial port transmitting data output TXD1 contact in the transceiving conversion circuit 40.
In this embodiment, the USB interface circuit 30 is connected to the transceiving conversion circuit 40 through the serial output pin and the serial input pin of the third chip U5, so as to enable data to be transmitted from the USB interface circuit 30 to the transceiving conversion circuit 40 through the second serial receive data input RXD1 and to be transmitted from the transceiving conversion circuit 40 to the bluetooth circuit 50 through the second serial transmit data output TXD 1.
In one embodiment, referring to fig. 5, the RS485 circuit 80 includes a fourth chip U2, a sixth capacitor C7, a second resistor R11, a third resistor R14, a first TVS transistor D12, a second TVS transistor D16, a first thermistor RT1, and an RS485 interface J1;
the 8 th pin of the fourth chip U2 is connected to a power output pin of the power circuit 10, one end of the sixth capacitor C7 is connected to one end of the second resistor R11, the other end of the sixth capacitor C7 is connected to a system power ground and the 5 th pin of the fourth chip U2, wherein the other end of the sixth capacitor C7 is the end of the 8 th pin far away from the fourth chip U2, the other end of the second resistor R11 is connected to the 6 th pin of the fourth chip U2, the other end of the second resistor R11 is the end of the 8 th pin far away from the fourth chip U2, the other end of the second resistor R11 is further connected to one end of the first thermistor RT1 and one end of the second TVS tube D16, the other end of the first resistor R1 is connected to the 3 rd pin of the RS 485J 1, and the other end of the first TVS tube D12 of the fourth chip U2 is connected to the first TVS tube D12, one end of the third resistor R14 is connected with the 2 nd pin of the RS485 interface J1, the other end of the third resistor R14, the other end of the second TVS tube D16, the other end of the first TVS tube D12 and the 4 th pin of the RS485 interface J1 are connected with the system power ground, the other end of the third resistor R14, the other end of the second TVS tube D16 and the other end of the first TVS tube D12 refer to one end close to the system power ground, the 1 st pin of the RS485 interface J1 is connected with a power supply VBUS in the power circuit 10, the 2 nd pin and the 3 rd pin of the fourth chip U2 are connected to the junction of the serial port transmission data inversion signal RVTXD2 of the transceiving switching circuit 40, the 4 th pin of the fourth chip U2 is connected to the third serial port transmission data output TXD2 contact in the transceiving switching circuit 40, and the 1 st pin of the fourth chip U2 is connected to the data input first channel RXD2_2 contact in the infrared channel switching circuit 70.
In this embodiment, the RS485 circuit 80 is connected to the first channel RXD2_2 of data input in the infrared channel switching circuit 70 through the 1 st pin of the fourth chip U2 and the third serial port transmitting data output TXD2 of the transceiving switching circuit 40 through the 4 th pin of the fourth chip U2, so as to implement communication between the RS485 circuit 80 and the transceiving switching circuit 40 as well as the infrared channel switching circuit 70, wherein the serial port transmitting data inverted signal RVTXD2 of the transceiving switching circuit 40 is both a control signal and a data signal, and is mainly controlled by the signal of the third serial port transmitting data output TXD2 of the transceiving switching circuit 40.
In one embodiment, referring to fig. 6, the infrared circuit 60 includes an infrared receiver UD1, an infrared emitting diode DDT1, a first decoupling capacitor CD2, a first NPN transistor T1, a fourth resistor R21, a fifth resistor R22, and a sixth resistor R23;
a pin 3 of the infrared receiving head UD1 is connected to a power output pin in the power circuit 10 and one end of the first decoupling capacitor CD2, and the other end of the first decoupling capacitor CD2 is connected to a pin 2 of the infrared receiving head UD1, wherein the other end of the first decoupling capacitor CD2 is a terminal far from the power output pin in the power circuit 10, a pin 2 of the infrared receiving head UD1 is connected to a system power ground, a pin 1 of the infrared receiving head UD1 is connected to a data input second channel RXD2_1 junction in the infrared channel switching circuit 70, an anode of the infrared emitting diode DDT1 is connected to a serial port transmitting data inversion signal txrvd 2 junction of the transceiving switching circuit 40, a cathode of the infrared emitting diode DDT1 is connected to one end of a fourth resistor R21, and the other end of the fourth resistor R21 is connected to a collector of the first transistor R1, the other end of the fourth resistor R21 is a terminal far from the cathode of the infrared emitting diode DDT1, the base of the first NPN triode T1 is connected to one end of the fifth resistor R22 and one end of the sixth resistor R23, the other end of the fifth resistor R22 is connected to the infrared control signal PWM junction of the bluetooth circuit 50, the other end of the fifth resistor R22 is a terminal far from the base of the NPN transistor T1, the other end of the sixth resistor R23 is connected to the emitter of the first NPN transistor T1 and the system power ground, and the other end of the sixth resistor R23 is a terminal far from the base of the NPN transistor T1.
In the present embodiment, the infrared circuit 60 receives an external infrared signal through the infrared receiving head UD1 and transmits the received infrared signal to the data input second channel RXD2_1 in the infrared channel switching circuit 70 through the 1 st pin of the external receiving head UD1, so as to realize the transmission of the external infrared signal. The infrared circuit 60 also sends an infrared signal to the outside through the infrared emitting diode DDT1, and mainly sends a data inversion signal RVTXD2 through the serial port of the transceiving conversion circuit 40, wherein the serial port sends a data inversion signal RVTXD2 related to a third serial port sends a data output TXD2 signal, the third serial port sends a data output TXD2 signal related to a second serial port received data input RXD1 signal and a first serial port received data input BT _ RXD signal, and finally the second serial port received data input RXD1 signal and the first serial port received data input BT _ RXD signal refer to the output circuits of the actual bluetooth circuit 50 and the USB interface circuit 30, so that data transmission from the infrared circuit 60 to the bluetooth circuit 50 and the USB interface circuit 30 is realized.
In an embodiment, referring to fig. 7, the infrared channel switching circuit 70 includes a fifth chip U4, a second decoupling capacitor C4, a seventh capacitor C6, an eighth capacitor C11, a third diode D9, a fourth diode D10, a seventh resistor R17, and an eighth resistor R18;
the 1 st pin, the 2 nd pin and the 10 th pin of the fifth chip U4 are connected to a power output pin in the power circuit 10, the 10 th pin of the fifth chip U4 is further connected to one end of the second decoupling capacitor C4, the 7 th pin of the fifth chip U4 is connected to one end of the seventh capacitor C6, the cathode of the third diode D9 and one end of a seventh resistor R17, the 6 th pin of the fifth chip U4 is connected to one end of the eighth capacitor C11, the cathode of the fourth diode D10 and one end of an eighth resistor R18, the other end of the eighth capacitor C11, the other end of the seventh capacitor C6, the other end of the eighth resistor R18, the other end of the seventh resistor R17, the other end of the second decoupling capacitor C4 and the 4 th pin and the 10 th pin of the fifth chip U4 are connected to a system ground, and the other end of the eighth capacitor C11 is connected to a system ground, The other end of the seventh capacitor C6, the other end of the eighth resistor R18, the other end of the seventh resistor R17 and the other end of the second decoupling capacitor C4 refer to ends close to a system power ground, the anode of the third diode D9 is connected to the infrared control signal PWM junction of the bluetooth circuit 50, the anode of the fourth diode D10 is connected to the junction of the serial port transmitting data inverted signal RVTXD2 of the transceiving switching circuit 40, and the 9 th pin of the fifth chip U4 is connected to the junction of the third serial port receiving data input RXD2 of the transceiving switching circuit 40.
In this embodiment, the infrared channel switching circuit 70 establishes connection between the infrared circuit 60 and the RS485 circuit 80 through the data input second channel RXD2_1 and the data input first channel RXD2_2 in the fifth chip U4, respectively, so as to realize communication between the infrared circuit 60 and the RS485 circuit 80 and the infrared channel switching circuit 70. The infrared channel switching circuit 70 establishes communication with the third serial port receiving data input RXD2 of the transceiving conversion circuit 40 through the 9 th pin of the fifth chip U4, so that communication between the transceiving conversion circuit 40 and the infrared channel switching circuit 70 is realized.
Further, referring to fig. 9, a schematic flow chart of a first embodiment of the multi-channel switching and mutually-exclusive channel switching method according to the present invention is provided based on an embodiment of the infrared channel switching circuit, where the method includes:
step S10, acquiring input first target level information and second target level information, and detecting a level state corresponding to the first target level information and the second target level information;
step S21, if the level state corresponding to the first target level information is a high level, and the level state corresponding to the second target level information is a high level, the pin 9 of the fifth chip is connected to the pin 2 of the fifth chip;
in the infrared channel switching circuit in this embodiment, the channel output port COM is connected to the preset data input channels (NO0, NO1, NO2, NO3) by converting the serial port transmission data inversion signal RVTXD2 of the transceiving conversion circuit and the infrared control signal PWM of the bluetooth circuit into the channel selection address signal inputs ADDA and ADDB of the fifth chip U4, and may be selectively connected to the data input channel NO0, the data input channel NO1, the data input channel NO2, or the data input channel NO 3. The specific switching logic of the fifth chip U4 is shown in table 1 below:
TABLE 1
Figure BDA0003664395090000161
X=Don't care
As can be seen from table 1, the ENABLE refers to an operating signal of the fifth chip U4, and only when the ENABLE is equal to 0, the whole chip performs the selecting function, that is, grounding the ENABLE pin ENABLEs the fifth chip U4 to perform the selecting function.
Before the input first target level information and second target level information are acquired, whether a channel switching command is received or not is monitored in real time, when the channel switching command is received through detection, the current channel is detected, if the current channel is an RS485 channel, PWM is controlled to output a 38kHz square wave signal to be switched to an infrared channel, and if the current channel is an infrared channel, PWM output 0 is controlled to be switched to the RS485 channel. When the input first target level information and second target level information are obtained and the level states corresponding to the first target level information and the second target level information are detected, wherein the first target level information refers to information of a data inversion signal sent by a serial port, the second target level information refers to information of an infrared control signal, the level states of the first target level information and the second target level information are determined, the data inversion signal sent by the serial port can be high level or low level, and the infrared control signal can be 0, high level and a 38kHz square wave signal. When the level state corresponding to the first target level information is high level and the level state corresponding to the second target level information is high level, as can be seen from table 1 as 11, the output port COM (pin 9 of the five chips) is connected to the data input channel NO3 (pin 2 of the five chips), and data transmission of the data input channel NO3 is realized. Wherein, after the step of conducting the pin 9 of the fifth chip with the pin 2 of the fifth chip, the method includes:
step S211, if the level state corresponding to the first target level information changes from a high level to a low level, detecting level information corresponding to a cathode of the fourth diode;
step S212, if the level information corresponding to the cathode of the fourth diode is a high level, conducting the pin 9 of the fifth chip and the pin 2 of the fifth chip;
in step S213, if the level information corresponding to the cathode of the fourth diode is a low level, the pin 9 of the fifth chip is connected to the pin 3 of the fifth chip.
In this embodiment, referring to fig. 7, a resistor R17, a capacitor C6, and a diode D9 in the infrared channel switching circuit are a set of RCD high-change-low one-way delay circuits, a resistor R18, a capacitor C11, and a diode D10 are another set of RCD high-change-low one-way delay circuits, and anodes and cathodes of the two diodes are respectively connected to an input signal and an output signal, so that the RCD high-change-low one-way delay circuits can realize that the output signal is synchronously changed from low to high when the input signal is changed from high to low, and the output signal is delayed from high to low to realize a low function, specifically, the principle is as follows: when the input signal is high, the diode D is conducted in the forward direction, and the output signal is synchronously increased; when the input signal changes from high to low, the signal output does not immediately follow the input signal to be low due to the reverse cut-off action of the diode D, but slowly becomes low under the delay action of the RC. The serial port transmission data inversion signal RVTXD2 of the transceiving conversion circuit is used as a transceiving control signal of the fourth chip U2 and is also used as an infrared data transmission signal to be connected with the anode of an infrared light emitting diode DDT1 in the infrared circuit, and the infrared control signal PWM of the second chip U6 in the Bluetooth circuit is used as an infrared modulation signal to be connected with a base current limiting resistor R22 of a triode T1 in the infrared circuit. The invention uses the RCD high-low one-way delay circuit, uses the serial port of the receiving and transmitting conversion circuit to send the data reversed phase signal RVTXD2 and the infrared control signal PWM of the Bluetooth serial port conversion module U6 in the Bluetooth circuit to synthesize the channel selection address signals ADDA and ADDB of the analog switch chip U4, realizes the gating control of the infrared channel and the RS485 channel, and does not need to add other control signals.
And if the level state corresponding to the first target level information is changed from high level to low level, detecting the level information corresponding to the cathode of the fourth diode, instead of directly performing channel control according to the level state corresponding to the first target level information. For example, when the infrared channel is selected, the infrared control signal PWM may be a 38kHz infrared modulation square wave, at this time, the infrared circuit should be a modulation type infrared communication circuit also called a far infrared circuit, and optionally, the infrared control signal PWM may also be a constant high level, at this time, the infrared circuit should be a non-modulation type infrared communication circuit also called a near infrared circuit, at this time, the infrared receiving head UD1 must be replaced with a non-modulation type infrared receiving circuit. When the infrared control signal PWM outputs an infrared modulation square wave or a high level, the channel selection address signal ADDA can be directly maintained at the high level after the signal conversion is performed through the preset RCD high-low unidirectional delay circuit. When the channel selection address signal ADDA is at a high level, if the device is in an infrared receiving state at this time, referring to fig. 8, the serial port transmission data output TXD2 is kept at a high level, and it can be known from the control of the transistor Q1 that the serial port transmission data inversion signal RVTXD2 is synchronously kept at a low level, that is, the channel selection address signal ADDB is at a low level, and according to the switching logic of the infrared channel switching circuit, the channel output port COM of the analog switch chip U4 is connected to the data input channel NO1, that is, the serial port reception data input RXD2 is connected to the infrared reception data output RXD2_1, which represents that the device is in an infrared channel mode, and can normally receive external infrared data, and the receiver reception data output RXD2_2 of the RS circuit 485 is bypassed. When the channel selection address signal ADDA is at high level, if the apparatus is in an infrared transmission state at this time, when the serial port transmission data output TXD2 has data, the level of the serial port transmission data output TXD2 is changed high and low, and the level of the serial port transmission data inversion signal RVTXD2 is also changed high and low, and particularly when the serial port transmission data output TXD2 transmits start bit 0, the level of the serial port transmission data inversion signal RVTXD2 is high. If the level information corresponding to the cathode of the fourth diode is a high level, the pin 9 of the fifth chip is conducted with the pin 2 of the fifth chip, and the high level can keep the channel selection address signal ADDB at a high level for a period of time after passing through a preset RCD high-low one-way delay circuit, according to the switching logic of the infrared channel switching circuit, at this time, the channel output port COM of the fifth chip U4 is connected to the data input channel NO3, and the data input channels NO3 and NO2 are directly connected to the power supply, so there is NO data, that is, the serial port received data input RXD2 input is kept at high level, which is equivalent to no data input, at this time, although the infrared receiving head UD1 can receive the infrared light signal emitted by the infrared light emitting diode DDT1, the same data as the serial port transmitted data output TXD2 appears in the infrared received data output RXD2_1 synchronously, but since the channel output port COM of the fifth chip U4 has been disconnected from the data input channel NO 1. And if the level information corresponding to the cathode of the fourth diode is low level, the 9 th pin of the fifth chip is conducted with the 3 rd pin of the fifth chip and is connected with the infrared channel again. The useless data similar to the echo can not appear on the serial port receiving data input RXD2, and the beneficial effects of filtering the useless echo data, lightening the burden of the communication equipment and reducing the possibility of analysis errors of the communication equipment are achieved. The data signals for the fifth chip U4 to control switching are shown in table 2 below:
TABLE 2
ADDB ADDA RXD2 access
0 0 RXD2_2(RS485 channel)
0 1 RXD2_1 (Infrared channel)
1 0 Constant high level
1 1 Constant high level
The one-way delay circuit that changes low through inside RCD height has realized handling "echo" data that infrared circuit self produced, will cut off the passageway through the one-way delay circuit that changes low through RCD height for preventing self with its receipt when self sends light signal, will carry out data transmission with the passageway connection through control signal when needs receive external infrared signal.
Step S22, if the level state corresponding to the first target level information is a high level and the level state corresponding to the second target level information is a low level, the pin 9 of the fifth chip is connected to the pin 1 of the fifth chip;
step S23, if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a high level, the pin 9 of the fifth chip and the pin 3 of the fifth chip are turned on;
in step S24, if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a low level, the pin 9 of the fifth chip and the pin 8 of the fifth chip are turned on.
In this embodiment, when the level state corresponding to the first target level information is high level and the level state corresponding to the second target level information is low level, as shown in table 1 as 10, the output port COM (pin 9 of the fifth chip) is connected to the data input channel NO2 (pin 1 of the fifth chip), so as to realize data transmission of the data input channel NO 2. When the level state corresponding to the first target level information is low level and the level state corresponding to the second target level information is high level, as can be seen from table 1 as 01, the output port COM (pin 9 of the fifth chip) is connected to the data input channel NO1 (pin 3 of the fifth chip), and data transmission of the data input channel NO1 is realized. When the level state corresponding to the first target level information is low level and the level state corresponding to the second target level information is low level, as can be seen from table 1 as 00, the output port COM (pin 9 of the fifth chip) is connected to the data input channel NO0 (pin 8 of the fifth chip), and data transmission of the data input channel NO0 is realized. And the channel of the fifth chip is selectively conducted through the second target level information and the first target level information, so that the switching between the infrared circuit and the RS485 circuit is realized.
Further, referring to fig. 10, in this embodiment, a switching procedure between an infrared circuit and an RS485 circuit is initialized after a system is powered on, including initializing to a preset channel mode and a preset communication baud rate of a bluetooth to serial port module, and then entering a judgment loop procedure, and monitoring whether a channel switching command is received in real time in the loop procedure, if the channel switching command is not received, continuing to execute other procedures in the loop procedure, where the other procedures refer to other procedures related to circuit parameter setting, and when the channel switching command is received, executing a next judgment procedure to judge whether the current channel mode is an RS485 channel, and if the current channel mode is an RS485 channel mode, switching to the infrared channel mode, at the moment, the PWM outputs a 38kHz square wave signal, namely, an infrared channel is selected through the high level of the PWM, then other processes in the circulating program are continuously executed, if the current channel is not in an RS485 channel mode, the channel is switched to an RS485 channel mode, at the moment, the PWM outputs 0, namely, the RS485 channel is selected through the low level of the PWM, then other processes in the circulating program are continuously executed, whether a channel switching command is received or not is monitored after the other processes are executed, and the channels are accurately switched according to the switching processes.
The above description is only an alternative embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications and equivalents made by the contents of the present specification and drawings, or directly/indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A multi-channel conversion and mutual exclusion channel switching circuit is characterized in that the multi-channel conversion and mutual exclusion channel switching circuit comprises a power supply circuit, a USB interface circuit, a receiving and transmitting conversion circuit, a Bluetooth circuit, an RS485 circuit, a self power supply, an infrared channel switching circuit and an infrared circuit;
the power supply circuit respectively with USB interface circuit, receiving and dispatching converting circuit, bluetooth circuit, the RS485 circuit, infrared passageway switching circuit with infrared circuit connects, self power supply with USB interface circuit with receiving and dispatching converting circuit connects, receiving and dispatching converting circuit respectively with bluetooth circuit, the RS485 circuit, infrared passageway switching circuit with infrared circuit connects, bluetooth circuit with infrared passageway switching circuit with infrared circuit connects, infrared circuit with infrared passageway switching circuit connects, the RS485 circuit with infrared passageway switching circuit connects.
2. The multi-channel switching and mutually exclusive channel switching circuit of claim 1, wherein the power circuit comprises a first chip, a first capacitor, a second capacitor, a first diode, a second diode, a battery, and a power supply;
the negative pole of the battery is connected with a system power ground, the positive pole of the battery is connected with the positive pole of the second diode, the positive pole of the first diode is connected with the power supply, the negative pole of the first diode is connected with the negative pole of the second diode and then connected with one end of the first capacitor, the other end of the first capacitor is connected with the system power ground, one end of the first capacitor is further connected with the 1 st pin and the 3 rd pin of the first chip, the 2 nd pin of the first chip is connected with the system power ground, the 5 th pin of the first chip is used as a power output pin, one end of the second capacitor is connected with the 5 th pin of the first chip, and the other end of the second capacitor is connected with the system power ground.
3. The multi-channel switching and mutually exclusive channel switching circuit of claim 1, wherein the bluetooth circuit comprises a second chip and a third capacitor;
the power input pin of the second chip is connected with the power output pin in the power circuit, the power input pin of the second chip is further connected with one end of a third capacitor, the other end of the third capacitor is connected with a system power ground, the Bluetooth data transmitting serial port input pin of the second chip is connected with a first serial port data transmitting output contact in the transceiving conversion circuit, and the Bluetooth data receiving serial port output pin of the second chip is connected with a first serial port data receiving input contact in the transceiving conversion circuit.
4. The multi-channel converting and mutually exclusive channel switching circuit of claim 3, wherein the transceiving converting circuit comprises a second NPN transistor, a PNP transistor, a ninth resistor, a tenth resistor, an eleventh resistor, a twelfth resistor, a thirteenth resistor, a fourteenth resistor, a fifth diode, a sixth diode, a seventh diode, an eighth diode, a ninth diode and a twelfth diode;
an emitting electrode of the PNP triode is connected with a power output pin in the power circuit, a collector electrode of the PNP triode is connected with one end of the tenth resistor and a serial port data transmission reversed-phase signal contact, the other end of the tenth resistor is connected with a system power ground, a base electrode of the PNP triode is connected with one end of the ninth resistor, the other end of the ninth resistor is connected with a third serial port data transmission output contact, the third serial port data transmission output contact is connected with one end of the fourteenth resistor, an anode of the eighth diode and an anode of the seventh diode, the other end of the fourteenth resistor is connected with a power output pin in the power circuit, an emitting electrode of the NPN triode is connected with a second serial port data receiving input contact, and a base electrode of the NPN triode is connected with one end of the thirteenth resistor, the other end of the thirteenth resistor is connected with the self power supply, the cathode of the seventh diode and the cathode of the eighth diode are connected and then connected with the collector of the second NPN triode, the anode of the eighth diode is connected with a first serial port data transmission output connection point, the first serial port data transmission output connection point is connected with one end of the eleventh resistor and the anode of the twelfth diode, the other end of the eleventh resistor is connected with a power output pin in the power circuit, the cathode of the twelfth diode and the cathode of the ninth diode are connected and then connected with a third serial port data receiving input connection point, the anode of the ninth diode is connected with a second serial port data transmission output connection point, the second serial port data transmission output connection point is connected with one end of the twelfth resistor and the anode of the fifth diode, the other end of the twelfth resistor is connected with the self power supply, the cathode of the sixth diode is connected with the cathode of the fifth diode and then connected with the first serial port data receiving input joint, and the anode of the sixth diode is connected with the third serial port data sending output joint.
5. The multi-channel switching and mutually exclusive channel switching circuit of claim 4, wherein the USB interface circuit comprises a third chip, a fourth capacitor, a fifth capacitor, a first resistor and a USB socket;
the 7 th pin and the 8 th pin of the third chip and the power pin of the USB socket are connected with a power supply in the power circuit, the 7 th pin of the third chip is further connected with one end of a fifth capacitor, the other end of the fifth capacitor is connected with a system power ground, the system power ground is further connected with the 0 th pin and the 3 rd pin of the third chip and the power ground pin of the USB socket, the 6 th pin of the third chip is connected with the self power supply, the self power supply is connected with one end of a fourth capacitor and one end of a first resistor, the other end of the fourth capacitor is connected with the system power ground, the other end of the first resistor is connected with the 9 th pin of the third chip, the first data port and the second data port of the USB socket are connected with the 4 th pin of the third chip, and the third data port and the fourth data port of the USB socket are connected with the 5 th pin of the third chip, and a serial port output pin of the third chip is connected with a second serial port data receiving input contact in the transceiving conversion circuit, and a serial port input pin of the third chip is connected with a second serial port data sending output contact in the transceiving conversion circuit.
6. The multi-channel converting and mutually exclusive channel switching circuit of claim 4, wherein the RS485 circuit comprises a fourth chip, a sixth capacitor, a second resistor, a third resistor, a first TVS transistor, a second TVS transistor, a first thermistor and an RS485 interface;
the 8 th pin of the fourth chip is connected with a power output pin in the power circuit, one end of the sixth capacitor is connected with one end of the second resistor, the other end of the sixth capacitor is connected with a system power ground and the 5 th pin of the fourth chip, the other end of the second resistor is connected with the 6 th pin of the fourth chip, the other end of the second resistor is further connected with one end of the first thermistor and one end of the second TVS tube, the other end of the first thermistor is connected with the 3 rd pin of the RS485 interface, the 7 th pin of the fourth chip is connected with one end of the first TVS tube, one end of the third resistor is connected with the 2 nd pin of the RS485 interface, the other end of the third resistor, the other end of the second TVS tube, the other end of the first TVS tube and the 4 th pin of the RS485 interface are connected with the system power ground, the 1 st pin of the RS485 interface is connected with a power supply in the power circuit, the 2 nd pin and the 3 rd pin of the fourth chip are connected with a serial port data transmission inverted signal contact of the transceiving conversion circuit, the 4 th pin of the fourth chip is connected with a third serial port data transmission output contact in the transceiving conversion circuit, and the 1 st pin of the fourth chip is connected with a data input first channel contact in the infrared channel switching circuit.
7. The multi-channel switching and mutually exclusive channel switching circuit of claim 4, wherein the infrared circuit comprises an infrared receiver, an infrared emitting diode, a first decoupling capacitor, a first NPN transistor, a fourth resistor, a fifth resistor and a sixth resistor;
a pin 3 of the infrared receiving head is connected with a power output pin in the power circuit and one end of the first decoupling capacitor, the other end of the first decoupling capacitor is connected with a pin 2 of the infrared receiving head, the pin 2 of the infrared receiving head is connected with a system power ground, the pin 1 of the infrared receiving head is connected with a data input second channel contact in the infrared channel switching circuit, an anode of the infrared emitting diode is connected with a data inverting signal contact sent by a serial port of the transceiving switching circuit, a cathode of the infrared emitting diode is connected with one end of the fourth resistor, the other end of the fourth resistor is connected with a collector of the first NPN triode, a base of the first triode is connected with one end of the fifth resistor and one end of the sixth resistor, and the other end of the fifth resistor is connected with an infrared control signal contact of the Bluetooth circuit, the other end of the sixth resistor and an emitting electrode of the first NPN triode are connected with a system power ground.
8. The multi-channel switching and mutually exclusive channel switching circuit as claimed in claim 6, wherein the infrared channel switching circuit comprises a fifth chip, a second decoupling capacitor, a seventh capacitor, an eighth capacitor, a third diode, a fourth diode, a seventh resistor, and an eighth resistor;
the 1 st pin, the 2 nd pin and the 10 th pin of the fifth chip are connected with a power output pin in the power circuit, the 10 th pin of the fifth chip is also connected with one end of the second decoupling capacitor, the 7 th pin of the fifth chip is connected with one end of the seventh capacitor, the cathode of the third diode and one end of the seventh resistor, the 6 th pin of the fifth chip is connected with one end of the eighth capacitor, the cathode of the fourth diode and one end of the eighth resistor, the other end of the eighth capacitor, the other end of the seventh capacitor, the other end of the eighth resistor, the other end of the seventh resistor, the other end of the second decoupling capacitor and the 4 th pin and the 5 th pin of the fifth chip are connected with a system power ground, the anode of the third diode is connected with an infrared control signal contact of the bluetooth circuit, and the anode of the fourth diode is connected with a serial data transmission reverse phase signal contact of the transceiving conversion circuit And the 9 th pin of the fifth chip is connected with a third serial port receiving data input contact of the transceiving conversion circuit.
9. A multi-channel switching and mutually exclusive channel switching method, wherein the multi-channel switching and mutually exclusive channel switching method is applied to the infrared channel switching circuit of claim 8, and the steps of the multi-channel switching and mutually exclusive channel switching method include:
acquiring input first target level information and second target level information, and detecting level states corresponding to the first target level information and the second target level information;
if the level state corresponding to the first target level information is a high level and the level state corresponding to the second target level information is a high level, conducting a pin 9 of the fifth chip and a pin 2 of the fifth chip;
if the level state corresponding to the first target level information is a high level and the level state corresponding to the second target level information is a low level, conducting a pin 9 of the fifth chip and a pin 1 of the fifth chip;
if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a high level, conducting a pin 9 of the fifth chip and a pin 3 of the fifth chip;
if the level state corresponding to the first target level information is a low level and the level state corresponding to the second target level information is a low level, the pin 9 of the fifth chip is conducted with the pin 8 of the fifth chip.
10. The method for multi-channel switching and mutually-exclusive channel switching according to claim 9, wherein the step of conducting the pin 9 of the fifth chip with the pin 2 of the fifth chip is followed by the step of:
if the level state corresponding to the first target level information is changed from a high level to a low level, detecting level information corresponding to a cathode of the fourth diode;
if the level information corresponding to the cathode of the fourth diode is a high level, conducting a pin 9 of the fifth chip and a pin 2 of the fifth chip;
and if the level information corresponding to the cathode of the fourth diode is a low level, the pin 9 of the fifth chip is conducted with the pin 3 of the fifth chip.
CN202210584205.3A 2022-05-26 2022-05-26 Multi-channel switching and mutual exclusion channel switching circuit and method Active CN115118300B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210584205.3A CN115118300B (en) 2022-05-26 2022-05-26 Multi-channel switching and mutual exclusion channel switching circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210584205.3A CN115118300B (en) 2022-05-26 2022-05-26 Multi-channel switching and mutual exclusion channel switching circuit and method

Publications (2)

Publication Number Publication Date
CN115118300A true CN115118300A (en) 2022-09-27
CN115118300B CN115118300B (en) 2024-06-04

Family

ID=83326181

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210584205.3A Active CN115118300B (en) 2022-05-26 2022-05-26 Multi-channel switching and mutual exclusion channel switching circuit and method

Country Status (1)

Country Link
CN (1) CN115118300B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040157555A1 (en) * 2001-10-30 2004-08-12 Lawrence Richenstein Multiple channel wireless communication system
CN204168274U (en) * 2014-10-15 2015-02-18 刘方 A kind of signal translating system
CN106327841A (en) * 2016-10-09 2017-01-11 国网江苏省电力公司南京供电公司 Channel switch
CN207408940U (en) * 2017-11-02 2018-05-25 济南市长清计算机应用公司 A kind of industrial USB based on external power supply turns RS485 signal adapters
CN208092477U (en) * 2018-02-08 2018-11-13 广州城市职业学院 A kind of intelligent multi-channel data conversion device
CN210377099U (en) * 2019-09-17 2020-04-21 广西西能自动化设备工程有限公司 Automatic switching circuit for metering protocol channel

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040157555A1 (en) * 2001-10-30 2004-08-12 Lawrence Richenstein Multiple channel wireless communication system
CN204168274U (en) * 2014-10-15 2015-02-18 刘方 A kind of signal translating system
CN106327841A (en) * 2016-10-09 2017-01-11 国网江苏省电力公司南京供电公司 Channel switch
CN207408940U (en) * 2017-11-02 2018-05-25 济南市长清计算机应用公司 A kind of industrial USB based on external power supply turns RS485 signal adapters
CN208092477U (en) * 2018-02-08 2018-11-13 广州城市职业学院 A kind of intelligent multi-channel data conversion device
CN210377099U (en) * 2019-09-17 2020-04-21 广西西能自动化设备工程有限公司 Automatic switching circuit for metering protocol channel

Also Published As

Publication number Publication date
CN115118300B (en) 2024-06-04

Similar Documents

Publication Publication Date Title
US7288982B2 (en) Signal converting circuit
US11467993B2 (en) Data transmission method and equipment based on single line
CN214376427U (en) Bus impedance matching circuit and bus system
CN209860931U (en) Intelligent CAN bus diagnosis monitor
CN115118300B (en) Multi-channel switching and mutual exclusion channel switching circuit and method
CN111050200A (en) Intelligent television and control system and control method thereof
CN203480677U (en) Intelligent residential district network communication system
CN210222533U (en) CANBUS bus control system of data acquisition unit
CN210867675U (en) Two-wire non-polarity half-duplex communication and power supply circuit
CN212572515U (en) Intelligent M-BUS host circuit with photoelectric isolation function
CN211184255U (en) Building monitoring system based on bluetooth mesh network
CN210578540U (en) Single item communication device based on power line
CN208888807U (en) A kind of automatic addressing system of universal serial bus
CN207663277U (en) Propeller control device and propeller control system
CN209087129U (en) A kind of unified conversion circuit based on RS485
CN202049472U (en) Chip configuring device, chip configuring system and chip
CN207977955U (en) A kind of acquisition carrier gains terminal
CN206628076U (en) Hospital nurse cruising inspection system
CN218471300U (en) Isolation communication circuit based on serial port transparent transmission
CN213182359U (en) General RS232-CAN communication conversion board
CN210431468U (en) Conversion device for converting 5G mobile network signal into multi-path Bluetooth signal
CN217445352U (en) Single-wire serial port communication circuit used between different ground potential reference devices
CN213367807U (en) Human-computer interface device and system based on POE
CN220829708U (en) POE power supply multi-serial port signal acquisition circuit and acquisition device
CN213213497U (en) Gateway device for heterogeneous LED energy-saving lighting network

Legal Events

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