State switching circuit, charging device and charging system
By designing a state switching circuit in a wireless device that uses charging signals to automatically switch, and shares charging and communication lines with preset contacts, the problem of difficulty in state switching in the existing technology is solved, and simple and efficient charging and communication are achieved. Status switching.
Patent Information
- Application Number
- CN202322843883.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-23
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2033-10-23
AI Technical Summary
In existing wireless devices, the state switching circuit is more difficult to switch between charging and communication states. It relies on the additional software control logic of the MCU and multiple switching devices, making it difficult to implement.
Design a state switching circuit that uses the charging line and communication line to share preset contacts and uses the high and low levels of the charging signal to determine whether to turn on the charging line or communication line, including the main charging line, the slave charging line, the main communication line and From the communication line, use the voltage judgment module to determine whether the charging signal is high level to achieve automatic switching.
Switching between charging state and communication state can be achieved without a large amount of software control logic, which simplifies circuit design and reduces implementation difficulty.
Smart Images

Figure CN221806492U_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of electronic circuits, and in particular to a state switching circuit, a charging device and a charging system. Background Art
[0002] In the field of electronic circuit technology, with the development of wireless technology, more and more wireless devices such as wireless headphones, wireless massagers, etc. are becoming popular. In existing wireless devices, a one-master-multiple-slave wireless device setting is often used, where the master device charges the slave device, or the master device and the slave device interact with each other. For example, a wireless headset can be regarded as a wireless device setting of 1 charging box (1 master device) + 2 headsets (2 slave devices), and the charging box charges the 2 headsets.
[0003] The existing one-master-multiple-slave wireless device configuration usually uses the positive and negative contacts for charging or communication interaction. However, this solution of using the positive and negative contacts for charging or communication interaction relies on the additional software control logic of the MCU (MicroController Unit) and requires more switching devices to switch between the charging state and the communication state, which is difficult to implement. Utility Model Content
[0004] In view of this, the embodiments of the present application provide a state switching circuit, a charging device and a charging system to solve the problem of state switching difficulty in the existing state switching circuit.
[0005] In a first aspect, the present application provides a state switching circuit, wherein the state switching circuit includes:
[0006] A charging circuit and a communication circuit, wherein the charging circuit includes: a main charging circuit and a slave charging circuit; the communication circuit includes: a main communication circuit and a slave communication circuit, and the charging circuit and the communication circuit share a preset contact;
[0007] The main charging circuit is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected;
[0008] The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
[0009] In combination with the state switching circuit described in the first aspect, in a second possible embodiment, the slave communication line or the master communication line includes a voltage judgment module, the voltage judgment module is connected to the preset contact, and the voltage judgment module is used to:
[0010] Based on a preset voltage threshold, it is determined whether the first charging signal is at a high level.
[0011] In combination with the first aspect, in a third possible embodiment, the master charging circuit and the master communication circuit are located in the same master device, the slave charging circuit and the slave communication circuit are located in pairs in the same slave device, and the number of the slave devices is several.
[0012] In combination with the state switching circuit described in the third possible embodiment of the first aspect, in a fourth possible embodiment, the main device is connected to the first charging signal;
[0013] When the first charging signal is at a high level, the master device charges the connected slave device through the preset contact;
[0014] When the first charging signal is at a low level, the master device communicates and interacts with the connected slave device through the preset contact.
[0015] In combination with the state switching circuit described in the first aspect, in a fifth possible embodiment, the main charging circuit includes a first control module and a load circuit, and the first control module is used to:
[0016] When the first charging signal changes from a high level to a low level, the load circuit is controlled to be grounded to release the charge.
[0017] In a second aspect, the present application provides a charging device, wherein the charging device includes a main charging circuit and a main communication circuit, the charging device is used to charge a slave device, or to communicate with the slave device, and the slave device includes a slave charging circuit and a slave communication circuit; wherein:
[0018] The charging circuit and the communication circuit share a common preset contact, the charging device is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected;
[0019] The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
[0020] In combination with the charging device described in the second aspect, in a second possible embodiment, the number of slave devices is several, and when the first charging signal is at a high level, the charging device is used to: charge each connected slave device through the preset contacts; when the first charging signal is at a high level, the charging device is used to communicate and interact with each connected slave device through the preset contacts.
[0021] In combination with the charging device described in the second aspect, in a third possible embodiment, the charging device or the slave device includes a voltage judgment module, the voltage judgment module is connected to the preset contact, and the voltage judgment module is used to:
[0022] Based on a preset voltage threshold, determining whether the first charging signal is at a high level;
[0023] If the first charging signal is at a high level, the charging device is used to control the main charging circuit and the slave charging circuit to be connected through the preset contact, and control the main communication circuit and the slave communication circuit to be disconnected;
[0024] If the first charging signal is at a low level, the charging device is used to control the main communication circuit and the slave charging circuit to be connected through the preset contact, and control the main charging circuit to be disconnected from the slave charging circuit.
[0025] In combination with the charging device described in the second aspect, in a fourth possible embodiment, the charging device is provided with a first control module and a load circuit, and the first control module is used to:
[0026] When the first charging signal changes from a high level to a low level, the load circuit is controlled to be grounded to release the charge.
[0027] In a third aspect, the present application provides a charging system, wherein the charging system comprises a charging device and a slave device, wherein:
[0028] The charging device includes a main charging circuit and a main communication circuit, the main charging circuit charges the slave charging circuit of the slave device through a preset contact, or the main communication circuit communicates and interacts with the slave communication circuit of the slave device through the preset contact;
[0029] The main charging circuit is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected;
[0030] The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
[0031] Beneficial effects of this application:
[0032] The present application provides a state switching circuit, a charging device and a charging system, wherein the state switching circuit includes: a charging circuit, a communication circuit, the charging circuit further includes: a main charging circuit and a slave charging circuit, the communication circuit includes: a main communication circuit and a slave communication circuit, and the charging circuit and the communication circuit share a preset contact. The main charging circuit and the main communication circuit are connected to the first charging signal. When it is necessary to switch the charging state and the communication state, it is directly determined whether the charging circuit is turned on or the communication circuit is turned on based on whether the first charging signal is at a high level. In this way, by selecting an embodiment of the present application, switching between the charging state and the communication state can be achieved without a large amount of software control logic, which effectively solves the problem of difficult state switching in existing state switching circuits. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Further details, features and advantages of the present application are disclosed in the following description of exemplary embodiments in conjunction with the accompanying drawings, in which:
[0034] Figure 1 A circuit structure schematic diagram of a state switching circuit provided by the present application is shown;
[0035] Figure 2 Another circuit structure schematic diagram of the state switching circuit provided by the present application is shown;
[0036] Figure 3 Another circuit structure schematic diagram of the state switching circuit provided by the present application is shown;
[0037] Figure 4 Another circuit structure schematic diagram of the state switching circuit provided by the present application is shown;
[0038] Figure 5 Another circuit structure schematic diagram of the state switching circuit provided by the present application is shown;
[0039] Figure 6 A circuit structure schematic diagram of a main charging circuit provided by the present application is shown;
[0040] Figure 7 A circuit logic schematic diagram of a main charging circuit provided by the present application is shown;
[0041] Figure 8 A circuit logic schematic diagram of a load circuit provided by the present application is shown;
[0042] Fig. 9 A circuit logic schematic diagram of a slave charging circuit provided by the present application is shown;
[0043] Fig.10 A circuit logic schematic diagram of a main communication line provided by the present application is shown;
[0044] Fig.11 A circuit logic schematic diagram of a slave communication line provided by the present application is shown. DETAILED DESCRIPTION
[0045] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0046] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0047] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0048] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0049] In order to improve the state switching difficulty of the existing state switching circuit, the present application provides a state switching circuit, a charging communication device and a charging communication system. The state switching circuit can be set in any device or electronic device with charging communication function, including but not limited to a charging box, a charging plug, a charging compartment, etc.
[0050] like Figure 1 As shown, the state switching circuit provided in this application includes the following parts:
[0051] The charging circuit 11 and the communication circuit 12 include: a main charging circuit 110 and a slave charging circuit 111, and the communication circuit 12 includes: a main communication circuit 120 and a slave communication circuit 121. The main charging circuit 110 and the slave charging circuit 120 are connected via a preset contact, and the main communication circuit 111 and the slave communication circuit 121 are connected via a preset contact.
[0052] The main charging circuit 110 and the main communication circuit 120 are connected to the first charging signal. If the first charging signal is at a high level, the main charging circuit 110 and the slave charging circuit 111 are connected through the preset contact to form a charging path. The circuit path between the main communication circuit 120 and the slave communication circuit 121 is disconnected. If the first charging signal is at a low level, the main communication circuit 120 and the slave communication circuit 121 are connected through the preset contact to form a communication path. The circuit path between the main charging circuit 110 and the slave charging circuit 111 is disconnected.
[0053] Among them, in the embodiment of the present application, the charging circuit 11 or the communication circuit 12 is built with a component that automatically forms a corresponding current direction according to the high and low levels of the first charging signal, such as a voltage comparator, a transistor, a diode, a field effect transistor, etc. When the first charging signal is at a high level, the current automatically flows from the autonomous charging circuit to the slave charging circuit according to the flow direction determined by the component, and cannot flow to the slave communication circuit. When the first charging signal is at a low level, the current automatically flows from the autonomous communication circuit to the slave communication circuit according to the flow direction determined by the component, and cannot flow to the slave charging circuit. Then, without complicated logic control, the internal circuit automatically switches the state of the circuit based on whether the first charging signal is at a high level, effectively solving the problem of difficult state switching in existing state switching circuits.
[0054] In some embodiments, the preset contact may include a first preset contact 13 and a second preset contact 14. The first preset contact 13 is used to transmit a charging signal or a communication signal, wherein the communication signal also includes a control signal. That is, the first preset contact 13 is a charging signal or a control signal transmission contact, and the second preset contact 14 is a common grounding point between the charging circuit and the communication circuit.
[0055] In some embodiments, Figure 2As shown, the main charging circuit 110 and the main communication circuit 120 are located in the same master device, and the slave charging circuit 111 and the slave communication circuit 121 are located in the same slave device in pairs, and the number of slave devices is several. As an implementation mode, a preset contact is provided on the master device, and a preset contact is also provided on the slave device. When the preset contacts between the master device and the slave device are in contact, the master device can provide a charging signal or a communication signal to the slave device through the preset contacts.
[0056] In some embodiments, Figure 3 As shown, the main charging circuit 110 includes a first receiving unit, which is connected to the first charging signal, and the main communication circuit 120 includes a second receiving unit, which is connected to the first charging signal. The slave charging circuit 111 includes a third receiving unit, which is connected to a preset contact point and is used to receive the second charging signal.
[0057] In some embodiments, the main communication line 120 also includes a fourth receiving unit, which is connected to the MCU pin built into the main device and receives the first communication signal sent from the MCU built into the main device. The slave communication line 121 includes a fifth receiving unit, which is connected to the MCU pin built into the slave device and receives the second communication signal sent from the MCU built into the slave device and the first communication signal sent from the main communication line 120. On this basis, the fourth receiving unit in the main communication line is also connected to a preset contact point, and receives the second communication signal sent from the slave communication line from the preset contact point.
[0058] In some embodiments, the first charging signal is a charging signal from a USB charging port or a charging pin of an MCU inside the host device. The voltage value of the first charging signal can be any set voltage value, which is not strictly limited in this application. The first communication signal is a HOST_TX / RX signal sent from the built-in MCU of the host device, and the second communication signal is a Slave_TX / RX signal sent from the built-in MCU of the slave device to the fifth receiving unit.
[0059] In some embodiments, Figure 4 As shown, the main communication line 120 in the state switching circuit provided in the embodiment of the present application also includes a voltage judgment module 15. Among them, the voltage judgment module 15 can be a voltage comparator. After receiving the first charging signal, the main communication line 120 determines whether the first charging signal is a high level based on a preset voltage threshold set in the voltage comparator. As an implementation method, if the first charging signal is greater than the preset voltage threshold, the first charging signal is determined to be a high level, and if the first charging signal is less than or equal to the preset voltage threshold, the first charging signal is determined to be a low level.
[0060] Specifically, as an implementation, when the first charging signal is at a high level, the first charging signal is output via the output terminal of the voltage comparator, and the second charging signal is transmitted to the slave charging circuit 111 via a preset contact, and the slave charging circuit receives the second charging signal via the preset contact to charge the energy storage module built into the slave device. When the first charging signal is at a low level, the first charging signal cannot be output from the output terminal of the voltage comparator, and thus the master charging circuit 110 and the slave charging circuit 111 cannot form a current path.
[0061] In some embodiments, Figure 5 As shown, the voltage judgment module 15 is arranged in the slave communication line. Specifically, the voltage judgment module 15 can also be a voltage comparator, the input end of the voltage comparator is connected to the preset contact, and the output end of the voltage comparator is connected to the sixth receiving unit in the slave charging line 111.
[0062] Specifically, as an implementation, when the first charging signal is at a high level, the first charging signal is converted into a second charging signal via the output end of the voltage comparator, and the second charging signal is received by the sixth receiving unit in the slave charging circuit 111 to charge the energy storage module built into the slave device. When the first charging signal is at a low level, the first charging signal cannot be output from the output end of the voltage comparator, and thus the master charging circuit 110 and the slave charging circuit 111 cannot form a current path.
[0063] As an implementation mode, the preset voltage threshold built into the voltage comparator is determined by the resistor voltage division of the input terminal of the voltage comparator, and the value of the preset voltage threshold can be changed by adjusting the resistance value of the resistor at the input terminal. Among them, the preset voltage threshold can be set based on actual experience, or it can be determined based on the rated charging voltage supported by the main device. As an example, for example, the rated charging voltage supported by the main device is 5V, that is, the charging signal voltage value connected to the main device should be 5V. At this time, in order to quickly determine whether the first charging signal is a high level, the preset voltage threshold can be determined as 4V, and whether the first charging signal is a high level can be determined based on 4V.
[0064] In some embodiments, Figure 6 As shown, the main charging circuit 110 also includes a first control module and a load circuit, wherein the first control module is connected to the load circuit, and the first control module is used to control the load circuit to be grounded to release the charge when the first charging signal changes from a high level to a low level. The first control module can be a field effect tube, a diode, a MOS tube or a switch. The model, shape and type of the first control module can be flexibly selected based on actual needs, and this application does not strictly limit it.
[0065] As an embodiment, the main charging circuit 110 can be as follows Figure 7As shown, CHA_EN1 is the first charging signal, which is connected to the transistor Q39 in the main charging circuit, and the transistor Q39 is connected to the first charging signal. VBUS1 is a charging bus, which is used to transmit charging current to each slave device through the VBUSi (i is the number of the slave device) interface in the slave charging circuit of the slave device. CON1 corresponds to the preset contact, and the Q46 field effect tube is the first control module. The circuit on the right side of the figure (i.e. Figure 8 shown Figure 7 The local circuit on the right constitutes the entire load circuit L. The Q46 field effect transistor is used to control the entire load circuit to be grounded when the CHA_EN1 first charging signal changes from a high level to a low level, thereby releasing the charge in the load capacitor, thereby ensuring that when the charging state is switched to the communication state, the remaining charge in the load capacitor will not affect the communication signal in the communication line.
[0066] in, Figure 7 C13 and C14 are filter capacitors, Q37 and Q38 are field effect transistors, R57, R58, R69, and R71 are resistors with different resistance values, and Q36 and Q39 are triodes. The number and value of each component can be flexibly selected according to the different circuit voltages in actual applications, and this application does not make strict restrictions.
[0067] As an example, the first charging signal in the present application comes from a USB charging port or an MCU charging pin inside the main device. The voltage value of the first charging signal can be 5V or any voltage value set, which is not strictly limited in the present application.
[0068] Among them, in the present application, the high and low levels of the first charging signal are relative concepts, which can be the high or low levels determined by comparing with the reference value, or the high or low levels determined by comparing with the charging voltage when the charging port was charged last time. Among them, as an example, when the charging line of the main device is disconnected from the charging port, the first charging signal changes from a high level to a low level. Or, as another example, the high and low levels of the first charging signal are controlled by the USB charging port voltage or the MCU of the charging box device.
[0069] As an implementation method, the charging circuit 111 can be Fig. 9 As shown, VBUS2 is the power interface of the slave device, and the current flows into the energy storage unit (such as a battery) of the slave device after passing through VBUS2. CHA_EN2 is the second charging signal, which is obtained according to the output signal of the voltage comparator. When the first charging signal is judged to be at a high level, the second charging signal connects CON1 and VBUSi to charge the slave device. Fig. 9 In the figure, Q42 and Q43 are field effect transistors, and Q40 is a triode. The specific models and parameters can be flexibly set according to actual needs.
[0070] As an embodiment, the main communication line 120 can be as follows Fig.10 As shown, CHA_EN1 is the first charging signal, HOST_TX / RX is the first communication signal, and VCC is the power signal. Q41 is a field effect transistor, C16 and C15 are capacitors, and R60, R62, and R63 are resistors. In one embodiment, a voltage comparator can be set in the main communication line to determine whether the first charging signal is a high level or a low level based on a preset voltage threshold through the main communication line.
[0071] As an implementation method, the communication line 121 can be Fig.11 As shown, CHA_EN2 is the second charging signal, SLAVE_TX / RX is the second communication signal, and VCC is the power signal. U3 is a voltage comparator, Q34 and Q35 are transistors, R52, R53, R54, R55, R61, R64, R65, R66, R67, and R64 are resistors, and C17 is a capacitor. As an implementation method, the third signal access module in the slave communication line is connected to a pin of the MCU in the slave device, and the SLAVE_TX / RX second communication signal comes from the MCU on the slave device.
[0072] In some embodiments, whether the first charging signal is high or low level is determined by a voltage comparator in the communication line. Specifically, as an implementation, the voltage comparator has a preset voltage threshold built in, wherein the preset voltage threshold built in the voltage comparator is obtained by voltage division of resistor R64 and resistor R65, and the value of the preset voltage threshold can be adjusted by adjusting the resistance value of resistor R64 and resistor R65.
[0073] In this application, Figures 7 to 11 Each CON1 in corresponds to a preset contact. Among them, since the charging circuit composed of the main charging circuit and the slave charging circuit, and the communication circuit composed of the main communication circuit and the slave communication circuit share the same preset contact, how to accurately realize the switching of the charging circuit and the communication circuit becomes a necessary condition for accurately realizing the switching of the charging state and the communication state. In view of this, in some embodiments, when the slave device is placed back into the master device, the preset contact of the slave device is in direct physical contact with the preset contact of the charging box device, and at least one of the charging circuit or the communication circuit is connected through the preset contact. That is, the master device and the slave device are in at least one of the charging state or the communication state. At this time, it is only necessary to switch one of the states to another when there is an actual switching demand.
[0074] As an implementation method, the actual switching demand refers to: charging demand or communication demand. The charging demand refers to the need to charge the energy storage module of the slave device with the help of the master device. As an example, the master device charges the energy storage module of the slave device with a first charging signal of 5V.
[0075] The communication requirement refers to the need for communication instructions or communication messages to be exchanged between the master device and the slave device. As an example, the communication requirement may refer to the need for the master device to send a clock synchronization instruction to the slave device so that the clock of each slave device is synchronized with the clock of the master device. The communication signal voltage between the master device and the slave device is less than the first charging signal voltage, for example, the communication signal voltage is 3.3V, which is less than the first charging signal voltage of 5V.
[0076] Among them, in some embodiments, if the first charging signal is at a high level, the main charging circuit is connected to the slave charging circuit through a preset contact, and the main communication circuit is disconnected from the slave communication circuit. If the first charging signal is at a low level, the main communication circuit is connected to the slave communication circuit through a preset contact, which is specifically achieved in the following manner:
[0077] Through the voltage comparator set in the main communication line or the slave communication line, it is determined whether the voltage signal input to the preset contact is a high level or a low level, and then the first charging signal is determined to be a high level or a low level. If the voltage value input to the preset contact is higher than the voltage threshold preset in the voltage comparator, it is determined that the charging box system is in the charging mode, not the communication mode. If the voltage value input to the preset contact is lower than the voltage threshold preset in the voltage comparator, it is determined that the charging box system is in the communication mode, not the charging mode.
[0078] As an example, if VBUS1 is 5V, the first communication signal and the second communication signal are 3.3V, and the voltage threshold preset by the voltage comparator is 4V, if the voltage value input to the preset contact is greater than 4V, it indicates that the current charging box system is in charging mode, not communication mode. If it is less than 4V, it indicates that the current charging box system can support the communication mode, and the communication line can be used to realize the communication interaction between the master device and the slave device.
[0079] Specifically, when the first charging signal is at a high level, the charging line between the master and slave devices is in a conducting state, and the VBUS1 signal flows normally to the output terminal VBUSi of the slave charging line through the master charging line. When the first charging signal is at a high level, the voltage value transmitted from the preset contact to the voltage comparator is greater than the preset voltage threshold set by the voltage comparator, which triggers the transistor Q34 in the slave communication line to play the role of switching off. At this time, the master communication line and the slave communication line cannot form a circuit path, thereby realizing that the charging line forms a path and the communication line cannot form a path.
[0080] When the first charging signal is at a low level, the VBUS1 cannot form a circuit path between the field effect transistor set in the slave charging circuit and the slave charging circuit, and because the voltage value transmitted from the preset contact to the voltage comparator is less than the preset voltage threshold set by the voltage comparator, the transistor Q34 after the voltage comparator plays the role of a switch closure, and at this time, the main communication line and the slave communication line form a circuit path. In this way, the communication line forms a path, and the charging line cannot form a path.
[0081] In some embodiments, the first control module and the load circuit included in the main charging circuit can control the load circuit to be grounded when the first charging signal changes from a high level to a low level, thereby quickly releasing the charge in the load capacitor in the main charging circuit, and effectively reducing the signal interference caused by the charge in the load capacitor to the first communication signal.
[0082] In some embodiments, when the first charging signal is at a low level, the master communication line and the slave communication line communicate and interact according to a preset communication protocol, which may be a single bus communication protocol, such as a 1-Wire protocol. The preset communication protocol may also be other serial expansion bus protocols.
[0083] Among them, as an example, taking the preset communication protocol as a single-bus communication protocol as an example, when designing the software of the charging box system, the MCU communication port for receiving the first communication signal and the port for sending the second communication signal of each slave device can be set according to the preset single-bus protocol, and the address of each port can be recorded. When the main communication line and the slave communication line form a circuit path, the received first communication signal is sent to the port corresponding to the slave communication line through the recorded port address. In this way, the communication signals sent to different slave devices can be sent to the specified slave device, which effectively ensures the accuracy of sending and receiving communication signals.
[0084] In a second aspect, an embodiment of the present application further provides a charging device, which is the master device described in the first aspect, and is used to charge a slave device or communicate with the slave device. Each slave device includes a slave charging circuit and a slave communication circuit. Among them:
[0085] The charging circuit and the communication circuit have a common preset contact, the charging device is connected to the first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected;
[0086] The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through a preset contact, and the main charging line is disconnected from the slave charging line.
[0087] In a possible embodiment, there are several slave devices. When the first charging signal is at a high level, the charging device is used to charge each connected slave device through a preset contact; when the first charging signal is at a high level, the charging device is used to communicate and interact with each connected slave device through a preset contact.
[0088] In a possible embodiment, the charging device or the slave device includes a voltage judgment module, which is connected to a preset contact point, and is used to:
[0089] Based on a preset voltage threshold, determining whether the first charging signal is at a high level;
[0090] If the first charging signal is at a high level, the charging device is used to control the main charging circuit and the slave charging circuit to be connected through a preset contact, and control the main communication circuit and the slave communication circuit to be disconnected;
[0091] If the first charging signal is at a low level, the charging device is used to control the main communication circuit and the slave charging circuit to be connected through a preset contact, and to control the main charging circuit and the slave charging circuit to be disconnected.
[0092] In a possible embodiment, the charging device is provided with a first control module and a load circuit, and the first control module is used to:
[0093] When the first charging signal changes from a high level to a low level, the load circuit is controlled to be grounded to release the charge.
[0094] In a third aspect, the present application provides a charging system, which includes the charging device and slave device as described above.
[0095] Among them, among them:
[0096] The charging device includes a main charging circuit and a main communication circuit, the main charging circuit charges the slave charging circuit of the slave device through a preset contact, or the main communication circuit communicates and interacts with the slave communication circuit of the slave device through a preset contact;
[0097] The main charging circuit is connected to the first charging signal. When the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through a preset contact, and the main communication circuit and the slave communication circuit are disconnected.
[0098] The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through a preset contact, and the main charging line is disconnected from the slave charging line.
[0099] The names of the messages or information exchanged between multiple devices in the embodiments of the present application are only used for illustrative purposes and are not used to limit the scope of these messages or information.
Claims
1. A state switching circuit, characterized in that: The state switching circuit comprises: A charging circuit and a communication circuit, wherein the charging circuit includes: a main charging circuit and a slave charging circuit; the communication circuit includes: a main communication circuit and a slave communication circuit, and the charging circuit and the communication circuit share a preset contact; The main charging circuit is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected; The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
2. The state switching circuit according to claim 1, characterized in that: The main communication line or the slave communication line includes a voltage judgment module, the voltage judgment module is connected to the preset contact, and the voltage judgment module is used to: Based on a preset voltage threshold, it is determined whether the first charging signal is at a high level.
3. The state switching circuit according to claim 1, characterized in that: The master charging circuit and the master communication circuit are located in the same master device, and the slave charging circuit and the slave communication circuit are located in pairs in the same slave device, and the number of the slave devices is several.
4. The state switching circuit according to claim 3, characterized in that: When the first charging signal is at a high level, the master device charges the connected slave device through the preset contact; when the first charging signal is at a low level, the master device communicates and interacts with the connected slave device through the preset contact.
5. The state switching circuit according to any one of claims 1 to 4, characterized in that: The main charging circuit includes a first control module and a load circuit, wherein the first control module is used to: When the first charging signal changes from a high level to a low level, the load circuit is controlled to be grounded to release the charge.
6. A charging device, characterized in that: The charging device includes a main charging circuit and a main communication circuit, and the charging device is used to charge the slave device or communicate with the slave device, and the slave device includes a slave charging circuit and a slave communication circuit; wherein: The charging circuit and the communication circuit share a common preset contact, the charging device is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected; The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
7. The charging device according to claim 6, characterized in that: The number of the slave devices is several. When the first charging signal is at a high level, the charging device is used to charge each connected slave device through the preset contact; when the first charging signal is at a high level, the charging device is used to communicate and interact with each connected slave device through the preset contact.
8. The charging device according to claim 6, characterized in that: The charging device or the slave device includes a voltage judgment module, the voltage judgment module is connected to the preset contact, and the voltage judgment module is used to: Based on a preset voltage threshold, determining whether the first charging signal is at a high level; If the first charging signal is at a high level, the charging device is used to control the main charging circuit and the slave charging circuit to be connected through the preset contact, and control the main communication circuit and the slave communication circuit to be disconnected; If the first charging signal is at a low level, the charging device is used to control the main communication circuit and the slave charging circuit to be connected through the preset contact, and control the main charging circuit to be disconnected from the slave charging circuit.
9. The charging device according to claim 6, characterized in that: The charging device is provided with a first control module and a load circuit, wherein the first control module is used for: When the first charging signal changes from a high level to a low level, the load circuit is controlled to be grounded to release the charge.
10. A charging system, characterized in that: The charging system comprises a charging device and a slave device, wherein: The charging device includes a main charging circuit and a main communication circuit, the main charging circuit charges the slave charging circuit of the slave device through a preset contact, or the main communication circuit communicates and interacts with the slave communication circuit of the slave device through the preset contact; The main charging circuit is connected to a first charging signal, and when the first charging signal is at a high level, the main charging circuit and the slave charging circuit are connected through the preset contact, and the main communication circuit and the slave communication circuit are disconnected; The main communication line is connected to the first charging signal. When the first charging signal is at a low level, the main communication line is connected to the slave charging line through the preset contact, and the main charging line is disconnected from the slave charging line.
