Double-antenna switching circuit, doorbell and electronic equipment
By designing a dual-antenna switching circuit, using the main control circuit and level holding circuit to achieve low power consumption and low cost normal-electric control, the problem of insufficient GPIO of WIFI chips in the existing technology is solved, and the battery life and competitiveness of doorbell products are improved. .
Patent Information
- Application Number
- CN202420460804.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-11
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2034-03-11
AI Technical Summary
The number of WIFI chip GPIOs in existing doorbell products is insufficient, and it is unable to provide normal-electric control levels for RF switches, resulting in increased cost and power consumption.
A dual-antenna switching circuit is designed, including main control circuit, level holding circuit, selection circuit and control circuit. By switching the output control signal through the trigger signal, low power consumption and low cost normal-electric control is achieved, avoiding the increase of micro Processor or GPIO port requirements.
It achieves low power consumption and low cost to provide stable level control for RF switches, improving the battery life and competitiveness of doorbell products without the need to add additional microprocessors or GPIO ports.
Smart Images

Figure CN222016704U_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the technical field of electronic circuits, and in particular, relates to a dual-antenna switching circuit, a doorbell, and an electronic device. Background Art
[0002] Figure 1 This is the existing dual-antenna design block diagram. The wireless network communication technology (WIFI) chip adds an RF switch (RF SWITCH) in the RF link. For different environments, the WIFI chip determines the better antenna and controls the RF SWITCH through a general purpose IO ports (GPIO) to select the antenna to work and complete wireless communication. Compared with a single antenna, the gains of the two antennas can complement each other and improve wireless performance. It has application value for smart doorbell products and can break through the bottleneck of poor wireless communication capabilities to a certain extent.
[0003] In the prior art, the number of GPIOs of the WIFI chip of the doorbell product is insufficient, and it is impossible to provide a normal power control level for the peripherals. The existing solutions to solve the problem that the number of GPIOs of the WIFI chip is insufficient and the selection circuit (RF switch) cannot be provided with a normal power control level are as follows: 1. Replace the WIFI chip with more GPIO ports; 2. Add an additional microprocessor. However, low-power doorbell products are extremely sensitive to cost, and both solutions will increase the cost; low-power doorbell products also have strict requirements for battery life, and an additional microprocessor is bound to increase power consumption and reduce battery life.
[0004] Therefore, there is an urgent need for a circuit that is low in power consumption, low in cost and can provide constant power control for a selection circuit (RF switch). Utility Model Content
[0005] The purpose of this application is to provide a dual-antenna switching circuit, a doorbell and an electronic device, aiming to solve the problem of the lack of low-power, low-cost circuits that can provide constant power control for the selection circuit (radio frequency switch).
[0006] The embodiment of the present application provides a dual-antenna switching circuit, which is connected to a first antenna and a second antenna, wherein the first antenna outputs a first wired communication signal according to a received wireless communication signal, and the second antenna outputs a second wired communication signal according to the received wireless communication signal, and the dual-antenna switching circuit includes a main control circuit, a level holding circuit, a selection circuit, and a control circuit;
[0007] The main control circuit is connected to the input end of the level holding circuit and is configured to send a trigger signal so that the level of the control signal output by the level holding circuit is switched according to the trigger signal;
[0008] The selection circuit is connected to the level holding circuit and is configured to sequentially select and transmit the first wired communication signal and the second wired communication signal according to the control signal before the level switching and the control signal after the level switching;
[0009] The control circuit is connected to the selection circuit and the main control circuit, and is configured to output a switching signal according to the first wired communication signal and the second wired communication signal;
[0010] The main control circuit is further configured to output a trigger signal according to the switching signal.
[0011] In one of the embodiments, the main control circuit is also connected to the output end of the level holding circuit and the selection circuit, and is specifically configured to output the trigger signal according to the levels of the switching signal and the control signal.
[0012] In one of the embodiments, the control circuit includes a WIFI chip;
[0013] The first universal input / output terminal of the WIFI chip serves as the first wired communication signal input terminal and the second wired communication signal input terminal of the control circuit, and is connected to the selection circuit to input the first wired communication signal or the second wired communication signal; the second universal input / output terminal of the WIFI chip serves as the switching signal output terminal of the control circuit, and is connected to the main control circuit to output the switching signal.
[0014] In one embodiment, the main control circuit includes a microprocessor;
[0015] The first general input and output terminal of the microprocessor serves as the trigger signal output terminal of the main control circuit and is connected to the level holding circuit to output the trigger signal; the second general input and output terminal of the microprocessor serves as the switching signal input terminal of the main control circuit and is connected to the control circuit to input the switching signal; the third general input and output terminal of the microprocessor serves as the control signal input terminal of the main control circuit and is connected to the control circuit to input the control signal.
[0016] In one of the embodiments, the level holding circuit comprises a D flip-flop;
[0017] The clock input terminal of the D flip-flop serves as the trigger signal input terminal of the level holding circuit and is connected to the main control circuit to input the trigger signal; the power supply terminal of the D flip-flop, the clear terminal of the D flip-flop and the preset output of the D flip-flop are set to a high level terminal and are connected to a first power supply; the input terminal of the D flip-flop is connected to the reverse output terminal of the D flip-flop; the output terminal of the D flip-flop serves as the control signal output terminal of the level holding circuit and is connected to the main control circuit and the selection circuit to output the control signal; the ground terminal of the D flip-flop is connected to a power ground.
[0018] In one embodiment, the level holding circuit further includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor and a second capacitor;
[0019] The first end of the first resistor, the first end of the first capacitor, and the power supply end of the D flip-flop are connected to the first power supply, and the second end of the first resistor is connected to the clear end of the D flip-flop and the preset end of the D flip-flop; the first end of the second resistor and the first end of the second capacitor are commonly connected to the input end of the D flip-flop and the inverting output end of the D flip-flop, the first end of the third resistor and the first end of the fourth resistor are commonly connected to the output end of the D flip-flop, and the second end of the third resistor serves as the control signal output end of the level holding circuit, connected to the main control circuit and the selection circuit to output the control signal; the first end of the fifth resistor and the clock input end of the D flip-flop serve as the trigger signal input end of the level holding circuit, connected to the main control circuit to input the trigger signal; the ground end of the D flip-flop, the second end of the second resistor, the second end of the second capacitor, the second end of the fourth resistor, and the second end of the first capacitor are commonly connected to the power ground.
[0020] In one embodiment, the selection circuit includes a single-pole double-throw switch;
[0021] The first radio frequency end of the single-pole double-throw switch serves as the first wired communication signal input end of the selection circuit to receive the first wired communication signal; the second radio frequency end of the single-pole double-throw switch serves as the second wired communication signal input end of the selection circuit to receive the second wired communication signal; the control end of the single-pole double-throw switch serves as the control signal input end of the selection circuit, and is connected to the main control circuit and the level holding circuit to input the control signal; the radio frequency common end of the single-pole double-throw switch serves as the first wired communication signal and the second wired communication signal output end of the selection circuit, and is connected to the control circuit to output the first wired communication signal or the second wired communication signal; the power supply end of the single-pole double-throw switch is connected to the first power supply; and the ground end of the single-pole double-throw switch is connected to the power ground.
[0022] In one embodiment, the microprocessor is a video encoding chip.
[0023] An embodiment of the present application also provides a doorbell, which includes the above-mentioned dual-antenna switching circuit.
[0024] An embodiment of the present application further provides an electronic device, which includes the above-mentioned dual-antenna switching circuit.
[0025] Compared with the prior art, the embodiments of the present application have the following beneficial effects: the main control circuit sends a trigger signal so that the level holding circuit switches the level of the output control signal according to the trigger signal; the selection circuit selects to transmit the first wired communication signal and the second wired communication signal in turn according to the control signal before the switching level and the control signal after the switching level; the control circuit outputs a switching signal according to the first wired communication signal and the second wired communication signal; the main control circuit outputs a trigger signal according to the switching signal; the level holding circuit has low cost and power consumption, and the level of the control signal is switched when the trigger signal is received by the low-cost and low-power level holding circuit, and the current level of the output control signal is maintained when the trigger signal is stopped, so that the control signal level remains unchanged when the main control circuit is powered off, and the main control circuit controls the level holding circuit to switch the selection circuit, so that there is no need to increase the microprocessor or configure more GPIO port control circuit chips, and a stable level control signal can be provided to the selection circuit (RF switch) with low power consumption and low cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the technical application in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1A schematic diagram of a structure designed for an existing dual antenna;
[0028] Figure 2 A schematic diagram of a dual-antenna switching circuit provided in one embodiment of the present application;
[0029] Figure 3 Another structural schematic diagram of a dual-antenna switching circuit provided in an embodiment of the present application;
[0030] Figure 4 A partial exemplary circuit schematic diagram of a dual antenna switching circuit provided in one embodiment of the present application. DETAILED DESCRIPTION
[0031] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] It should be noted that when an element is referred to as being "fixed to" or "disposed on" another element, it can be directly on the other element or indirectly on the other element. When an element is referred to as being "connected to" another element, it can be directly connected to the other element or indirectly connected to the other element.
[0033] It should be understood that the orientation or position relationship indicated by terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside" and "outside" are based on the orientation or position relationship shown in the drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0034] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0035] Figure 2 A schematic diagram of the structure of a dual antenna switching circuit provided in an embodiment of the present application is shown. For ease of description, only the parts related to the present embodiment are shown, which are described in detail as follows:
[0036] The above-mentioned dual antenna switching circuit is connected to the first antenna E1 and the second antenna E2. The first antenna E1 outputs a first wired communication signal according to the received wireless communication signal, and the second antenna E2 outputs a second wired communication signal according to the received wireless communication signal. The dual antenna switching circuit includes a main control circuit 100, a level holding circuit 200, a selection circuit 300 and a control circuit 400.
[0037] The main control circuit 100 is connected to the input terminal of the level holding circuit 200 and is configured to send a trigger signal so that the level of the output control signal of the level holding circuit 200 is switched according to the trigger signal.
[0038] The selection circuit 300 is connected to the level holding circuit 200 and is configured to sequentially select and transmit the first wired communication signal and the second wired communication signal according to the control signal before the level switching and the control signal after the level switching.
[0039] The control circuit 400 is connected to the selection circuit 300 and the main control circuit 100 , and is configured to output a switching signal according to the first wired communication signal and the second wired communication signal.
[0040] The main control circuit 100 is further configured to output a trigger signal according to the switching signal.
[0041] It should be noted that the control circuit 400 analyzes the arrival energy of the wireless communication signal sent by the router according to the received first wired communication signal and the second wired communication signal, and analyzes the signal strength accordingly. Since the gains of the two antennas in each direction are different, under a fixed communication path, using an antenna with a relatively high gain, the received wireless communication signal energy will be stronger, and the analyzed signal strength will be higher, so that the antenna with a relatively high gain can be selected as the target antenna. Among them, the wireless communication signal, the first wired communication signal and the second wired communication signal can carry beacon message information, and the control circuit 400 analyzes the arrival energy of the wireless communication signal sent by the router according to the received beacon message information.
[0042] In a specific application, the signal strength of one antenna is measured first, and then the other antenna is switched by the selection circuit 300, and the signal strength of the other antenna is measured, and the two are compared. If the latter is better, there is no need to switch again; if the former is better, switch back to the original antenna.
[0043] Compared with replacing a WIFI chip with more GPIO ports or adding an additional microprocessor, the level holding circuit 200 has lower cost and power consumption; the level holding circuit 200 switches the level of the control signal only when receiving a trigger signal, and maintains the current level of the output control signal when stopping receiving the trigger signal, thereby achieving that the control signal level remains unchanged when the main control circuit 100 is powered off, and the main control circuit 100 controls the level holding circuit 200 to switch the selection circuit 300, thereby providing a stable level control signal to the selection circuit 300 (RF switch) with low power consumption and low cost without adding a microprocessor or configuring a WIFI chip with more GPIO ports.
[0044] As an example but not limitation, the control circuit 400 can output a low-level switching signal based on the received first wired communication signal, and output a high-level switching signal based on the received second wired communication signal. The main control circuit 100 receives the switching signal and outputs a trigger signal based on the switching signal. The level holding circuit 200 switches the level of the control signal. If the level of the switching signal received by the main control circuit 100 does not change, the main control circuit 100 will not output a trigger signal, and the level holding circuit 200 maintains the current level of the output control signal.
[0045] Specifically, there are multiple ways to implement the main control circuit 100 outputting a trigger signal based on the switching signal. For example, the main control circuit 100 can output a trigger signal based on a level jump of the switching signal. The main control circuit 100 can also have a fixed circuit communication path with the control circuit 400, such as a serial peripheral interface (SPI), etc. The switching signal can be transmitted between the two through the circuit communication path to enable the main control circuit 100 to output a trigger signal.
[0046] By way of example and not limitation, Figure 3 As shown, the main control circuit 100 is also connected to the output end of the level holding circuit 200 and the selection circuit 300, and is specifically configured to output a trigger signal according to the levels of the switching signal and the control signal.
[0047] In a specific implementation, the control circuit 400 can obtain the target antenna based on the received first wired communication signal and the second wired communication signal, and output a switching signal carrying a data frame, wherein the data frame carries the identifier of the target antenna. The main control circuit 100 receives the switching signal and matches the identifier with the level of the control signal. If the two do not match, the main control circuit 100 outputs a trigger signal, and the level holding circuit 200 switches the level of the control signal. If the two match, the main control circuit 100 stops outputting the trigger signal, and the level holding circuit 200 maintains the current level of the output control signal.
[0048] The main control circuit 100 detects the level of the control signal to determine whether the currently connected antenna is the target antenna, thereby preventing the selection circuit 300 from connecting to a wrong antenna and improving the reliability of the circuit.
[0049] Figure 4 A partial exemplary circuit structure of a dual antenna switching circuit provided in an embodiment of the present application is shown. For ease of description, only the part related to the embodiment of the present application is shown, which is described in detail as follows:
[0050] The control circuit 400 includes a WIFI chip U4.
[0051] The first universal input and output terminal P2.0 of the WIFI chip U4 serves as the first wired communication signal input terminal and the second wired communication signal input terminal of the control circuit 400, and is connected to the selection circuit 300 to input the first wired communication signal or the second wired communication signal; the second universal input and output terminal P2.1 of the WIFI chip U4 serves as the switching signal output terminal of the control circuit 400, and is connected to the main control circuit 100 to output the switching signal.
[0052] The WIFI chip U4 realizes remote control of the smart doorbell and ensures the security and accuracy of data transmission, providing stable, fast and reliable network communication for the smart doorbell.
[0053] The main control circuit 100 includes a microprocessor U1.
[0054] The first general input and output terminal P1.0 of the microprocessor U1 serves as a trigger signal output terminal of the main control circuit 100, and is connected to the level holding circuit 200 to output a trigger signal; the second general input and output terminal P1.1 of the microprocessor U1 serves as a switching signal input terminal of the main control circuit 100, and is connected to the control circuit 400 to input a switching signal; the third general input and output terminal P1.2 of the microprocessor U1 serves as a control signal input terminal of the main control circuit 100, and is connected to the control circuit 400 to input a control signal.
[0055] The circuit is simple and reliable.
[0056] The microprocessor U1 may be a video encoding chip.
[0057] The level holding circuit 200 includes a D flip-flop U2 .
[0058] The clock input terminal CLK of the D flip-flop U2 serves as the trigger signal input terminal of the level holding circuit 200 and is connected to the main control circuit 100 to input a trigger signal; the power supply terminal VCC of the D flip-flop U2, the clear input of the D flip-flop U2 is pulled low to set the Q output to a low level terminal CLR\ and the preset input of the D flip-flop U2 is pulled low to set the Q output to a high level terminal PRE\ and are connected to the first power supply; the input terminal D of the D flip-flop U2 is connected to the reverse output terminal Q\ of the D flip-flop U2; the output terminal Q of the D flip-flop U2 serves as the control signal output terminal of the level holding circuit 200 and is connected to the main control circuit 100 and the selection circuit 300 to output a control signal; the ground terminal GND of the D flip-flop U2 is connected to the power ground.
[0059] Since the clock input terminal CLK of the D flip-flop U2 only recognizes rising edge input, even if the main control circuit 100 loses power, causing the clock input terminal CLK of the D flip-flop U2 to be at a low level, the D flip-flop U2 will still maintain the original level of the output control signal and will not be affected.
[0060] Compared to adding an additional microprocessor to achieve constant power supply, the D flip-flop U2 consumes less power and has a lower cost.
[0061] The level keeping circuit 200 further includes a first resistor R1, a second resistor R2, a third resistor R3, a fourth resistor R4, a fifth resistor R5, a first capacitor C1 and a second capacitor C2.
[0062] The first end of the first resistor R1, the first end of the first capacitor C1, and the power supply terminal VCC of the D flip-flop U2 are connected to the first power supply, the second end of the first resistor R1 is connected to the clear input of the D flip-flop U2, which is pulled down to set the Q output to the low level terminal CLR\, and the preset input of the D flip-flop U2 is pulled down to set the Q output to the high level terminal PRE\; the first end of the second resistor R2 and the first end of the second capacitor C2 are commonly connected to the input terminal D of the D flip-flop U2 and the inverting output terminal Q\ of the D flip-flop U2, the first end of the third resistor R3 and the first end of the fourth resistor R4 are commonly connected to the D flip-flop U 2, a second end of the third resistor R3 serves as a control signal output end of the level holding circuit 200, and is connected to the main control circuit 100 and the selection circuit 300 to output a control signal; a first end of the fifth resistor R5 and a clock input end CLK of the D-type flip-flop U2 serve together as a trigger signal input end of the level holding circuit 200, and are connected to the main control circuit 100 to input a trigger signal; a ground end GND of the D-type flip-flop U2, a second end of the second resistor R2, a second end of the second capacitor C2, a second end of the fourth resistor R4, and a second end of the first capacitor C1 are connected to a power ground.
[0063] Among them, the fifth resistor R5 is a pull-down resistor. Since the D flip-flop U2 only recognizes rising edge input, adding the pull-down resistor reduces the possibility of false triggering of the D flip-flop U2 and improves the reliability of the circuit.
[0064] The selection circuit 300 includes a single-pole double-throw switch U3.
[0065] The first radio frequency terminal RF1 of the single-pole double-throw switch U3 serves as the first wired communication signal input terminal of the selection circuit 300 to receive the first wired communication signal; the second radio frequency terminal RF2 of the single-pole double-throw switch U3 serves as the second wired communication signal input terminal of the selection circuit 300 to receive the second wired communication signal; the control terminal VC of the single-pole double-throw switch U3 serves as the control signal input terminal of the selection circuit 300, and is connected to the main control circuit 100 and the level holding circuit 200 to input the control signal; the radio frequency common terminal ANT of the single-pole double-throw switch U3 serves as the first wired communication signal and the second wired communication signal output terminal of the selection circuit 300, and is connected to the control circuit 400 to output the first wired communication signal or the second wired communication signal; the power supply terminal VDD of the single-pole double-throw switch U3 is connected to the first power supply; and the ground terminal GND of the single-pole double-throw switch U3 is connected to the power ground.
[0066] The single-pole double-throw switch U3 has a simple structure and reliable performance.
[0067] The following is a combination of working principles Figure 4 As shown for further explanation:
[0068] The first antenna E1 outputs a first wired communication signal according to the received wireless communication signal, and the second antenna E2 outputs a second wired communication signal according to the received wireless communication signal. Taking the initial connection of the single-pole double-throw switch U3 with the first antenna E1 as an example, the single-pole double-throw switch U3 transmits the first wired communication signal to the first general input and output terminal P2.0 of the WIFI chip U4, the microprocessor U1 outputs a trigger signal from the first general input and output terminal P1.0 of the microprocessor U1 to the clock input terminal CLK of the D flip-flop U2, the D flip-flop U2 switches the level of the control signal output from the output terminal Q of the D flip-flop U2 according to the trigger signal, the control terminal VC of the single-pole double-throw switch U3 receives the control signal after the level is switched, the single-pole double-throw switch U3 selects to transmit the second wired communication signal to the first general input and output terminal P2.0 of the WIFI chip U4 according to the control signal after the level is switched, and the WIFI chip U4 compares the strength of the first wired communication signal with the strength of the second wired communication signal.
[0069] In one implementation, if the first wired communication signal is superior, the WIFI chip U4 converts the level of the switching signal output from the second general input and output terminal P2.1 of the WIFI chip U4, and outputs it to the second general input and output terminal P1.1 of the microprocessor U1. The microprocessor U1 outputs a trigger signal from the first general input and output terminal P1.0 of the microprocessor U1 to the clock input terminal CLK of the D flip-flop U2 according to the switching signal. The D flip-flop U2 switches the level of the control signal output from the output terminal Q of the D flip-flop U2 again according to the trigger signal, and maintains the level of the control signal after switching again; if the second wired communication signal is superior, the WIFI chip U4 maintains the original level of the switching signal, and the D flip-flop U2 maintains the current level of the control signal.
[0070] In another implementation, if the first wired communication signal is superior, the WIFI chip U4 outputs a switching signal carrying the identification corresponding to the first antenna from the second general input / output terminal P2.1 of the WIFI chip U4 to the second general input / output terminal P1.1 of the microprocessor U1, and the microprocessor U1 also receives a control signal from the third general input / output terminal P1.2 of the microprocessor U1, and the microprocessor U1 matches the level of the identification with the control signal. If the level of the identification does not match the level of the control signal, a trigger signal is output from the first general input / output terminal P1.0 of the microprocessor U1 to the clock input terminal CLK of the D flip-flop U2, and the D flip-flop U2 switches again according to the trigger signal. The level of the control signal output from the output terminal Q of the D flip-flop U2 is switched, and the level of the control signal after switching is maintained; if the second wired communication signal is better, the WIFI chip U4 outputs a switching signal carrying the corresponding identification of the second antenna from the second general input and output terminal P2.1 of the WIFI chip U4 to the second general input and output terminal P1.1 of the microprocessor U1, and the microprocessor U1 also receives the control signal from the third general input and output terminal P1.2 of the microprocessor U1. The microprocessor U1 matches the level of the switching signal and the control signal, and the level of the identification matches the level of the control signal, and does not output a trigger signal, and the D flip-flop U2 maintains the current level of the control signal.
[0071] An embodiment of the present application also provides a doorbell, which includes the above-mentioned dual-antenna switching circuit.
[0072] The dual-antenna switching circuit expands the main GPIO control capability of doorbell products, realizes the conversion of abnormal control electrical signals to normal power control signals, reduces the cost and power consumption of realizing normal power control of doorbells, and improves the product competitiveness of doorbells.
[0073] An embodiment of the present application also provides an electronic device, which includes the above-mentioned dual-antenna switching circuit.
[0074] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0075] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A dual-antenna switching circuit, connected to a first antenna and a second antenna, wherein the first antenna outputs a first wired communication signal according to a received wireless communication signal, and the second antenna outputs a second wired communication signal according to the received wireless communication signal, characterized in that: The dual-antenna switching circuit includes a main control circuit, a level holding circuit, a selection circuit and a control circuit; The main control circuit is connected to the input end of the level holding circuit and is configured to send a trigger signal so that the level of the control signal output by the level holding circuit is switched according to the trigger signal; The selection circuit is connected to the level holding circuit and is configured to sequentially select and transmit the first wired communication signal and the second wired communication signal according to the control signal before the level switching and the control signal after the level switching; The control circuit is connected to the selection circuit and the main control circuit, and is configured to output a switching signal according to the first wired communication signal and the second wired communication signal; The main control circuit is further configured to output a trigger signal according to the switching signal.
2. The dual antenna switching circuit according to claim 1, characterized in that: The main control circuit is also connected to the output end of the level holding circuit and the selection circuit, and is specifically configured to output the trigger signal according to the levels of the switching signal and the control signal.
3. The dual antenna switching circuit according to claim 1, characterized in that: The control circuit includes a WIFI chip; The first universal input / output terminal of the WIFI chip serves as the first wired communication signal input terminal and the second wired communication signal input terminal of the control circuit, and is connected to the selection circuit to input the first wired communication signal or the second wired communication signal; the second universal input / output terminal of the WIFI chip serves as the switching signal output terminal of the control circuit, and is connected to the main control circuit to output the switching signal.
4. The dual antenna switching circuit according to claim 1, characterized in that: The main control circuit includes a microprocessor; The first general input and output terminal of the microprocessor is used as the trigger signal output terminal of the main control circuit, and is connected to the level holding circuit to output the trigger signal; the second general input and output terminal of the microprocessor is used as the switching signal input terminal of the main control circuit, and is connected to the control circuit to input the switching signal; The third general input / output terminal of the microprocessor is used as a control signal input terminal of the main control circuit and is connected to the control circuit to input the control signal.
5. The dual antenna switching circuit according to claim 1, characterized in that: The level holding circuit comprises a D flip-flop; The clock input terminal of the D flip-flop is used as the trigger signal input terminal of the level holding circuit and is connected to the main control circuit to input the trigger signal; The power supply terminal of the D flip-flop, the clear terminal of the D flip-flop and the preset terminal of the D flip-flop are connected to a first power supply; the input terminal of the D flip-flop is connected to the inverting output terminal of the D flip-flop; The output end of the D flip-flop serves as the control signal output end of the level holding circuit, and is connected to the main control circuit and the selection circuit to output the control signal; The ground terminal of the D flip-flop is connected to a power ground.
6. The dual antenna switching circuit as claimed in claim 5, characterized in that: The level holding circuit further includes a first resistor, a second resistor, a third resistor, a fourth resistor, a fifth resistor, a first capacitor and a second capacitor; The first end of the first resistor, the first end of the first capacitor and the power supply end of the D flip-flop are connected to the first power supply, and the second end of the first resistor is connected to the clear end of the D flip-flop and the preset end of the D flip-flop; the first end of the second resistor and the first end of the second capacitor are commonly connected to the input end of the D flip-flop and the reverse output end of the D flip-flop, the first end of the third resistor and the first end of the fourth resistor are commonly connected to the output end of the D flip-flop, and the second end of the third resistor serves as the control signal output end of the level holding circuit, connected to the main control circuit and the selection circuit to output the control signal; the first end of the fifth resistor and the clock input end of the D flip-flop serve as the trigger signal input end of the level holding circuit, connected to the main control circuit to input the trigger signal; The ground terminal of the D trigger, the second terminal of the second resistor, the second terminal of the second capacitor, the second terminal of the fourth resistor and the second terminal of the first capacitor are commonly connected to a power ground.
7. The dual antenna switching circuit according to claim 1, characterized in that: The selection circuit includes a single-pole double-throw switch; The first radio frequency end of the single-pole double-throw switch serves as a first wired communication signal input end of the selection circuit to receive the first wired communication signal; the second radio frequency end of the single-pole double-throw switch serves as a second wired communication signal input end of the selection circuit to receive the second wired communication signal; The control end of the single-pole double-throw switch serves as the control signal input end of the selection circuit, and is connected to the main control circuit and the level holding circuit to input the control signal; the radio frequency common end of the single-pole double-throw switch serves as the first wired communication signal and the second wired communication signal output end of the selection circuit, and is connected to the control circuit to output the first wired communication signal or the second wired communication signal; the power supply end of the single-pole double-throw switch is connected to the first power supply; and the ground end of the single-pole double-throw switch is connected to the power ground.
8. The dual antenna switching circuit as claimed in claim 4, characterized in that: The microprocessor is a video encoding chip.
9. A doorbell, characterized in that: Comprising the dual antenna switching circuit as described in any one of claims 1 to 8.
10. An electronic device, characterized in that: Comprising the dual antenna switching circuit as described in any one of claims 1 to 8.
