Panel cascade control terminal and control method thereof
By introducing a shared interface into the panel cascade control terminal, electrical connection and data transmission between panels are realized, and the problem of independent panel power supply and communication module requirements in the prior art is solved, reducing costs and simplifying the wiring process.
Patent Information
- Application Number
- CN202210724135.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-24
- Publication Date
- 2025-02-14
- Estimated Expiration
- 2042-06-24
AI Technical Summary
In the existing panel cascade control scheme, each panel still needs to be equipped with separate power supply and communication modules, resulting in high equipment cost and cumbersome wiring.
Design a panel cascade control terminal to realize electrical connection and data transmission through a shared interface between the main panel and the expansion panel. The shared interface is used for power supply and data transmission, reducing the need for independent power supply and communication modules of each panel. .
The electrical connection and data transmission between multiple panels are realized, which reduces the cost of equipment, simplifies the wiring process, and reduces the number of communication modules through the communication relay module.
Smart Images

Figure CN115237010B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of panel cascading, and in particular to a panel cascading control terminal and a control method thereof. Background Art
[0002] The control panel is a necessary panel for smart home, including switch panel, scene panel, temperature control panel, etc., which is used to control and communicate with smart home. In order to realize communication and power supply between several panels, each panel needs to be powered and equipped with communication modules.
[0003] Existing panel integration solutions, such as CN2021220779550.3, a multi-socket integrated frame or CN201921695437.6, a cascading method mentioned in a switch integrated frame, only realize the compact installation of two or more 86 panels, but there is no electrical connection solution. Each panel still needs to be equipped with a power supply, communication module, etc., resulting in high equipment cost, cumbersome wiring and other problems.
[0004] In view of the above problems existing in the prior art, the purpose of the present invention is to design a panel cascade control terminal and a control method thereof. Summary of the invention
[0005] In view of the problems existing in the above-mentioned prior art, the present invention provides a panel cascade control terminal and a control method thereof, which can effectively solve the problems existing in the above-mentioned prior art.
[0006] The technical solution of the present invention is:
[0007] A panel cascade control terminal, comprising:
[0008] Main panel and several extension panels;
[0009] A plurality of shared interfaces are provided on the main panel and each expansion panel, at least one of the expansion panels is electrically connected to the main panel through the shared interface, and the expansion panels are electrically connected end to end in sequence through the shared interface to form a cascaded chain structure;
[0010] A communication module and a power supply module are arranged on the main panel, the power supply module supplies power to the main panel, and the main panel supplies power to the extension panel through a corresponding shared interface. The i-th level extension panel is configured as a communication relay module of the i+1-th level and / or the i-1-th level extension panel, and the communication relay module is used to relay data between the communication module and the extension panel, wherein i is a positive integer greater than or equal to 1 and i is less than or equal to the number of the extension panels.
[0011] Furthermore, it includes an installation frame, which is provided with a plurality of installation positions for installing the main panel and the expansion panel, and the shared interface includes a plurality of conductive spring sheets arranged between adjacent installation positions, and a plurality of conductive contacts arranged on the main panel and the expansion panel, and the corresponding conductive contacts are in contact with the corresponding conductive spring sheets.
[0012] Furthermore, the main panel and the expansion panel both include a circuit board, the conductive contacts are provided on the circuit board, the circuit board is provided with an MCU, the expansion panel is provided with the shared interface at its head and tail respectively, and the shared interface at the head and the shared interface at the tail of the expansion panel are both connected to the MCU of the corresponding expansion panel.
[0013] Furthermore, the shared interface includes at least an upstream pin, a downstream pin, a ground pin, and a power pin. The power pin of the shared interface at the head of the extension panel and the power pin of the shared interface at the tail of the extension panel are short-circuited. The MCU integrates a first USART module and a second USART module. The first USART module is connected to the upstream pin and the downstream pin of the shared interface at the head of the extension panel, and the second USART module is connected to the upstream pin and the downstream pin of the shared interface at the tail of the extension panel.
[0014] Furthermore, the upstream pin, the downstream pin, and the power pin are all grounded through a TVS tube.
[0015] Further, the main panel is provided with an output protection circuit, and the output protection circuit includes a power output control circuit;
[0016] The output protection circuit includes a MOS tube, a resistor R4, and a pull-up resistor R1. The G pole of the MOS tube is connected to the MCU of the main panel through the resistor R4, the G pole of the MOS tube is connected to the power module through the pull-up resistor R1, the power module is connected to the S pole of the MOS tube, and the D pole of the MOS tube is used to output the voltage of the power module.
[0017] Furthermore, the output protection circuit includes an overcurrent detection circuit.
[0018] The output protection circuit includes a PNP transistor Q2, an NPN transistor Q3, a resistor R3, and an output resistor R2, wherein the output resistor R2 is connected between the power pin of the shared interface and the D pole of the MOS tube, the collector of the PNP transistor Q2 is connected to the D pole of the MOS tube, the base of the PNP transistor Q2 is connected to the power pin of the shared interface, the base of the NPN transistor Q3 is connected to the emitter of the PNP transistor Q2, the collector of the NPN transistor Q3 is connected to the MCU of the main panel, and the emitter of the collector of the NPN transistor Q3 is grounded.
[0019] A control method for a panel cascade control terminal is further provided, based on the panel cascade control terminal, comprising the following steps:
[0020] Initiating a reporting instruction to the expansion panel and receiving the reporting result of the expansion panel;
[0021] Arranging addresses for the expansion panel according to the reporting results, and defining the addresses as destination addresses for the expansion panel;
[0022] When the main panel transmits data to the i-th level expansion panel, the main panel packages the destination address and communication data into a data packet and sends it to the first-level expansion panel. The first-level expansion panel determines whether it is a receiving target according to the destination address. If not, the data packet is sent to the next-level expansion panel. The operation is cyclic until the i-th level expansion panel receives the data packet.
[0023] When the i-th level expansion panel transmits data to the main panel, the expansion panel packages the address and communication data of the main panel into a data packet and sends it to the upper level expansion panel, and the operation is cyclical until the first level expansion panel receives the data packet, and the first level expansion panel sends the data packet to the main panel;
[0024] When any two expansion panels communicate, one of the expansion panels will upload data to the main panel, and the main panel will then upload data to the other expansion panel.
[0025] Furthermore, when the expansion panel receives a data packet, it caches the data packet, and the data packet includes a data packet length. The expansion panel determines whether the data packet is completely received based on the data packet length, and if so, performs data processing or uplink data or downlink data.
[0026] Furthermore, the address arrangement of the expansion panel according to the reporting result and the storage of the address arrangement result comprises:
[0027] Determine whether the reported number results are in ascending order, if so, use the reported number corresponding to the expansion panel as the address;
[0028] If not, it is determined that one or more of the following exists in the expansion panel: addition, shifting, reduction, and the addresses of the expansion panels are arranged in ascending order.
[0029] Therefore, the present invention provides the following effects and / or advantages:
[0030] The cascade system provided by the present invention realizes the electrical connection between multiple panels, and each panel is powered and data is transmitted through a shared interface, and the shared interface obtains power from the adjacent switch panel, thereby removing the AC-DC power supply module of the scenario panel and reducing costs. The i-th level expansion panel is configured as a communication relay module of the i+1-th level expansion panel, so that the communication module communicates with all the expansion panels, which can reduce the communication modules and further reduce costs.
[0031] The main panel of the present application is provided with an output protection circuit, which can realize power output and shutdown according to the control of the MCU, and can detect the current and notify the MCU in case of abnormal current.
[0032] The present application provides a control method for a panel cascade control terminal, which can make the extended panel report a number, and arrange the address according to the result of the report, and then perform data uplink or downlink for each panel according to the address, so as to act as a repeater for the next level panel in turn, realizing the effect of data relay and data transmission.
[0033] It is to be understood that both the foregoing general description and the following detailed description of the present invention are exemplary and explanatory and are intended to provide further explanation of the invention as claimed. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 This is a schematic diagram of the functional framework of the panel cascading system provided by the present invention.
[0035] Figure 2 This is a schematic diagram of the structure of the panel cascade system provided by the present invention.
[0036] Figure 3 A schematic diagram of the structural explosion of the panel cascade system provided by the present invention.
[0037] Figure 4 A schematic structural diagram of a main panel of the panel cascade system provided by the present invention.
[0038] Figure 5 This is a schematic structural diagram of the installation frame of the panel cascade system provided by the present invention.
[0039] Figure 6for Figure 5 sectional view of .
[0040] Figure 7 for Figure 6 A partial enlarged view of part A.
[0041] Figure 8 This is a circuit diagram of a shared interface.
[0042] Fig. 9 This is the schematic diagram of the output protection circuit.
[0043] Fig.10 A main panel logic flow chart of the control method of the panel cascade system provided by the present invention.
[0044] Fig.11 An extended panel logic flow chart of the control method of the panel cascade system provided by the present invention.
[0045] Fig.12 A schematic diagram of data uplink or downlink of the control method of the panel cascade system provided by the present invention. DETAILED DESCRIPTION
[0046] In order to facilitate understanding by those skilled in the art, the structure of the present invention is further described in detail with reference to the embodiments in conjunction with the accompanying drawings:
[0047] refer to Figure 1 , a panel cascade control terminal, comprising:
[0048] A main panel 1 and several extension panels 2;
[0049] In this embodiment, the main panel 1 and the extension panel 2 can be a switch panel, a scene panel, a temperature control panel, etc., which are used to control the smart home. For example, by pressing the switch panel to turn the light on or off, clicking the temperature control panel to set the temperature of the air conditioner to 25°C, etc., there is no limitation here.
[0050] A plurality of shared interfaces 3 are provided on the main panel 1 and each expansion panel 2, at least one of the expansion panels 2 is electrically connected to the main panel 1 through the shared interface 3, and the expansion panels 2 are electrically connected end to end in sequence through the shared interface 3 to form a cascaded chain structure;
[0051] In this embodiment, the shared interface 3 can be divided into a female head and a male head so as to be connected in sequence, or it can be in the form of other interfaces. The chain structure refers to an arrangement structure composed of multiple expansion panels 2 connected head to tail in sequence.
[0052] A communication module and a power supply module are arranged on the main panel, the power supply module supplies power to the main panel, and the main panel supplies power to the extension panel through a corresponding shared interface. The i-th level extension panel is configured as a communication relay module of the i+1-th level and / or the i-1-th level extension panel, and the communication relay module is used to relay data between the communication module and the extension panel, wherein i is a positive integer greater than or equal to 1 and i is less than or equal to the number of the extension panels.
[0053] In this embodiment, the power module can be a rechargeable battery or a transformer that converts the mains power into low-voltage direct current, so as to power the main panel 1. The shared interface 3 is used to power one of the extension panels 2 through the main panel 1, and then power the next extension panel 2 through the extension panel 2, so as to power all the extension panels 2. At the same time, the communication module in this embodiment can be a wireless communication module or a wired communication module, which is used to communicate with other terminals or master controls, upload the local status or receive corresponding instructions, etc. In order to realize the communication function between the main panel 1 and each extension panel 2, each extension panel 2 can be a repeater for the next extension panel 2, which is used to receive data transmitted from the previous extension panel 2 or the main panel 1, and send the data to the next extension panel 2. If i=1, the first-level extension panel 2 only acts as a second-level extension panel 2 for data relay.
[0054] Specifically, refer to Figure 2 -7, including an installation frame 4, the installation frame 4 is provided with a plurality of installation positions for installing the main panel 1 and the expansion panel 2, the shared interface 3 includes a plurality of conductive springs 302 arranged between adjacent installation positions, and a plurality of conductive contacts 301 arranged on the main panel 1 and the expansion panel 2, and the corresponding conductive contacts 301 are in contact with the corresponding conductive springs 302.
[0055] In this embodiment, the conductive spring 302 is as follows Figure 7 As shown, it is an open shape with an eight-shaped cross section, and its opening faces downward. The structure of the conductive contact 301 is a columnar structure, which is horizontally and protrudingly arranged on the edge of the panel. When the main panel 1 or the extended panel 2 is installed in the installation position, the conductive contact 301 obliquely contacts the surface of the conductive spring 302, so that the two are in contact and electrically connected. In other embodiments, the conductive spring 302 can also be other structures, such as a raised structure, etc., as long as it can contact the conductive contact 301. The shared interface on the mounting frame is essentially to replace the wire to achieve the electrical connection between the two panels. Of course, the shared interface can also be replaced by a wire. The shared interface used in this embodiment can achieve a more convenient and more beautiful connection without the effect of exposed wires.
[0056] The traditional temperature and humidity measurement panel consists of a power module, a single-chip microcomputer, a wireless communication module, and a sensor. The sensor needs to be away from heat sources, and the power module, single-chip microcomputer, and wireless communication module will generate heat when working, causing the sensor to be unable to accurately measure the ambient temperature and humidity. This embodiment uses a shared interface, and the temperature and humidity measurement panel only requires a sensor and a single-chip microcomputer, and its own heat generation is almost zero, thereby reducing costs and obtaining accurate measurement results.
[0057] Furthermore, the main panel 1 and the expansion panel 2 both include a circuit board, the circuit board is provided with the conductive contact 301, the circuit board is provided with an MCU, and the expansion panel 2 is provided with the shared interface 3 at its head and tail respectively, and the shared interface 3 at the head of the expansion panel 2 and the shared interface 3 at the tail are both connected to the MCU of the corresponding expansion panel 2.
[0058] Furthermore, the shared interface 3 includes at least an upstream pin, a downstream pin, a ground pin, and a power pin. The power pin of the shared interface 3 at the head of the expansion panel 2 and the power pin of the shared interface 3 at the tail of the expansion panel 2 are short-circuited. The MCU integrates a first USART module and a second USART module. The first USART module is connected to the upstream pin and the downstream pin of the shared interface 3 at the head of the expansion panel 2, and the second USART module is connected to the upstream pin and the downstream pin of the shared interface 3 at the tail of the expansion panel 2.
[0059] In this embodiment, the MCU adopts HK32F030C8T6, and the MCU integrates a first USART module and a second USART module therein. The first USART module corresponds to the pins USART1_RX and USART1_TX of the MCU, and the second USART module corresponds to the pins USART2_RX and USART2_TX of the MCU, wherein RX is used to receive data and TX is used to send data. At the same time, the shared interface 3 of this embodiment is a universal interface, and the shared interface 3 includes 4 pins, pin 1 is used to connect the power supply to power the MCU or the circuit board, pins 2 and 3 are used to connect to the pins corresponding to the USART module of the MCU, and pin 4 is used for grounding, such as Figure 8 As shown. In order to power this circuit board and the next level circuit board, the power pin of the shared interface 3 at the head of the expansion panel 2 and the power pin of the shared interface 3 at the tail of the expansion panel 2 are short-circuited, so that the chain power supply function can be realized. The upstream pin is pin 2, and the downstream pin is pin 3. In other embodiments, it can also be other types of MCUs, which are not limited here.
[0060] Furthermore, the upstream pin, the downstream pin, and the power pin are all grounded through a TVS tube. Figure 8 D1, D2, D3, D4, and D5 are TVS tubes, which are used for electrostatic protection to prevent the static electricity generated by the human body from damaging the product when the user touches the exposed interface. When the voltage in the circuit is too high, the TVS tube will be broken down by the voltage and lead the voltage to the ground terminal, thereby protecting the components on the subsequent circuit board from damage. When the excessive voltage is eliminated, the TVS tube returns to the reverse cutoff state.
[0061] Further, refer to Fig. 9 , the main panel 1 is provided with an output protection circuit, and the output protection circuit includes a power output control circuit;
[0062] The output protection circuit includes a MOS tube, a resistor R4, and a pull-up resistor R1. The G pole of the MOS tube is connected to the MCU of the main panel through the resistor R4, the G pole of the MOS tube is connected to the power module through the pull-up resistor R1, the power module is connected to the S pole of the MOS tube, and the D pole of the MOS tube is connected to the power pin of the shared interface through the output resistor R2.
[0063] Power output control circuit such as Fig. 9 As shown in the figure, Q1, R1, and R4 form a power output control circuit. When powered on, the pull-up resistor R1 pulls the MOS tube Q1 to a high level, so the MOS tube Q1 is closed by default. The POWER_SWITCH terminal is connected to the MCU. When the MCU master control is initialized, the MCU outputs a low level in the POWER_SWITCH signal, thereby turning on the MOS tube Q1 and outputting the voltage of the power module at the VCC_Inside terminal to the VCC_Exterant terminal.
[0064] The output protection circuit includes an overcurrent detection circuit.
[0065] The output protection circuit includes a PNP transistor Q2, an NPN transistor Q3, a resistor R3, and an output resistor R2, wherein the output resistor R2 is connected between the power pin of the shared interface and the D pole of the MOS tube, the collector of the PNP transistor Q2 is connected to the D pole of the MOS tube, the base of the PNP transistor Q2 is connected to the power pin of the shared interface, the base of the NPN transistor Q3 is connected to the emitter of the PNP transistor Q2, the collector of the NPN transistor Q3 is connected to the MCU of the main panel, and the emitter of the collector of the NPN transistor Q3 is grounded.
[0066] refer to Fig. 9, Q2, R2, R3, Q3 constitute a current overcurrent detection circuit. The internal power supply of the circuit board is supplied to the outside through R2. When the current flows through R2, a voltage drop will be generated on R2. When the voltage drop on R2 exceeds 0.7V, the PNP transistor Q2 is turned on, and the NPN transistor Q3 is controlled to be turned on. The NPN transistor Q3 is a level conversion function. The collector of the NPN transistor Q3 is connected to the MCU of the main panel, thereby notifying the MCU of the current overcurrent phenomenon. At this time, the MCU controls the POWER_SWITCH signal to a high level, turns off Q1, stops external power supply to ensure its own normal function.
[0067] A control method for a panel cascade control terminal is further provided. Based on the above panel cascade control terminal, it should be understood that the steps mentioned in this embodiment, unless otherwise specified, can be adjusted in sequence according to actual needs, and can even be executed simultaneously or partially simultaneously. The steps include:
[0068] S1, sending a reporting instruction to the expansion panel and receiving the reporting result of the expansion panel;
[0069] refer to Fig.10 In this step, the main panel will send a broadcast message after each power-on start-up, and send a report command to the expansion panel through the main panel. If there is an expansion panel, the expansion panel starts to respond, and the main panel determines that there is an expansion panel. The expansion panels start to report numbers in sequence, for example, the first expansion panel reports 01, the second expansion panel reports 02, the third expansion panel reports 03...
[0070] S2, arranging an address for the expansion panel according to the reporting result, which is defined as a destination address of the expansion panel;
[0071] In this step, the reporting result obtained according to S1 is that the first expansion panel reports 01, the second expansion panel reports 02, the third expansion panel reports 03... At this time, the address of the first expansion panel is set to 01, the address of the second expansion panel is set to 02, the address of the third expansion panel is set to 03..., and the address is also used as the destination address.
[0072] S3, when the main panel transmits data to the i-th level expansion panel, the main panel packages the destination address and communication data into a data packet and sends it to the first-level expansion panel, and the first-level expansion panel determines whether it is a receiving target according to the destination address, and if not, sends the data packet to the next-level expansion panel, and the operation is cyclic until the i-th level expansion panel receives the data packet;
[0073] refer to Fig.12, downlink data can only be sent by the main panel. For example, when the main panel sends downlink data to the third-level expansion panel, the first-level expansion panel acts as a repeater for the second level, and the second-level expansion panel acts as a repeater for the third level, so that the first-level expansion panel can receive the data packet from the main panel and then pass it to the third-level expansion panel in sequence. In order to determine whether the data packet is the data required to be received by the third level, this embodiment packages the destination address and communication data into a data packet. This embodiment packages the destination address 03 of the third expansion panel into the data packet. After the first-level expansion panel receives the data packet from the main panel, since the destination address is 03, the first-level expansion panel determines that the destination address is different from the local address, and then passes it to the next expansion panel. By analogy, the third-level expansion panel finally receives the corresponding data packet and executes the instructions contained in the data packet.
[0074] S4, when the i-th level expansion panel transmits data to the main panel, the expansion panel packages the address and communication data of the main panel into a data packet and sends it to the upper level expansion panel, and the operation is cyclical until the first level expansion panel receives the data packet, and the first level expansion panel sends the data packet to the main panel;
[0075] The uplink data is sent by the expansion panel, and the destination address is unified as the main panel. This step is similar to S3.
[0076] S5, when any two expansion panels communicate, one of the expansion panels will upload data to the main panel, and the main panel will then download data to the other expansion panel.
[0077] For example, if the data of the second-level expansion panel is to be transmitted to the third-level expansion panel, the data must first be uploaded to the main panel, and then sent from the main panel to the third-level expansion panel. This is done to prevent data from being blocked between expansion panels and to prevent the expansion panel from being out of the control of the main panel.
[0078] Furthermore, when the expansion panel receives a data packet, it caches the data packet, and the data packet includes a data packet length. The expansion panel determines whether the data packet is completely received based on the data packet length, and if so, performs data processing or uplink data or downlink data.
[0079] Data cache, each panel has an uplink data cache and a downlink data cache. The uplink or downlink cache of the panel processes the data after receiving a complete data packet.
[0080] Further, refer to Fig.10 -11, the address arrangement of the expansion panel according to the reporting result and the storage of the address arrangement result comprises:
[0081] Determine whether the reported number results are in ascending order, if so, use the reported number corresponding to the expansion panel as the address;
[0082] If not, it is determined that one or more of the following exists in the expansion panel: addition, shifting, reduction, and the addresses of the expansion panels are arranged in ascending order.
[0083] For example, if the first expansion panel reports 01, the second expansion panel reports 03, and the third expansion panel reports 02, it is determined that the expansion panel is shifted. At this time, if the reporting result is used as the address, confusion will occur. In this step, the addresses of the expansion panels are rearranged in ascending order to obtain the first expansion panel address 01, the second expansion panel address 02, and the third expansion panel address 03.
[0084] For another example, the first expansion panel reports 01, the second expansion panel reports 02, and the third expansion panel reports 03. However, after the last main panel was initialized, the panel reporting results were only that the first expansion panel reported 01 and the second expansion panel reported 02. It is determined that the third expansion panel has been added, and the addresses need to be rearranged to obtain the first expansion panel address 01, the second expansion panel address 02, and the third expansion panel address 03.
[0085] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0086] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0087] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0088] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0089] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0090] In the description of the present invention, it should be understood that 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 technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0091] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
Claims
1. A panel cascade control terminal, characterized in that: include: Main panel and several extension panels; A plurality of shared interfaces are provided on the main panel and each expansion panel, at least one of the expansion panels is electrically connected to the main panel through the shared interface, and the expansion panels are electrically connected head to tail in sequence through the shared interface to form a cascaded chain structure; the shared interface at least includes an uplink pin, a downlink pin, a ground pin, and a power pin, and the power pin of the shared interface at the head of the expansion panel is short-circuited with the power pin of the shared interface at the tail of the expansion panel; when any two expansion panels communicate, one of the expansion panels will send uplink data to the main panel, and the main panel will send downlink data to the other expansion panel; A communication module and a power module are arranged on the main panel, the power module supplies power to the main panel, and the main panel supplies power to the extension panel through a corresponding shared interface, the i-th level extension panel is configured as a communication relay module of the i+1-th level and / or the i-1-th level extension panel, and the communication relay module is used to relay data between the communication module and the extension panel, wherein i is a positive integer greater than or equal to 1 and i is less than or equal to the number of the extension panels; It also includes a mounting frame, wherein the mounting frame is provided with a plurality of mounting positions for mounting the main panel and the expansion panel, the shared interface includes a plurality of conductive springs disposed between adjacent mounting positions, and a plurality of conductive contacts disposed on the main panel and the expansion panel, wherein corresponding conductive contacts are in contact with corresponding conductive springs; The main panel and the expansion panel both include a circuit board, the conductive contacts are provided on the circuit board, the circuit board is provided with an MCU, the expansion panel is provided with the shared interface at its head and tail respectively, and the shared interface at the head and the shared interface at the tail of the expansion panel are both connected to the MCU of the corresponding expansion panel.
2. A panel cascade control terminal according to claim 1, characterized in that: The MCU integrates a first USART module and a second USART module, wherein the first USART module is connected to the uplink pin and the downlink pin of the shared interface at the head of the expansion panel, and the second USART module is connected to the uplink pin and the downlink pin of the shared interface at the tail of the expansion panel.
3. A panel cascade control terminal according to claim 2, characterized in that: The upstream pin, the downstream pin and the power pin are all grounded through a TVS tube.
4. A panel cascade control terminal according to claim 3, characterized in that: The main panel is provided with an output protection circuit, and the output protection circuit includes a power output control circuit; The output protection circuit includes a MOS tube, a resistor R4, and a pull-up resistor R1. The G pole of the MOS tube is connected to the MCU of the main panel through the resistor R4, the G pole of the MOS tube is connected to the power module through the pull-up resistor R1, the power module is connected to the S pole of the MOS tube, and the D pole of the MOS tube is used to output the voltage of the power module.
5. A panel cascade control terminal according to claim 4, characterized in that: The output protection circuit includes an overcurrent detection circuit. The output protection circuit includes a PNP transistor Q2, an NPN transistor Q3, a resistor R3, and an output resistor R2, wherein the output resistor R2 is connected between the power pin of the shared interface and the D pole of the MOS tube, the collector of the PNP transistor Q2 is connected to the D pole of the MOS tube, the base of the PNP transistor Q2 is connected to the power pin of the shared interface, the base of the NPN transistor Q3 is connected to the emitter of the PNP transistor Q2, the collector of the NPN transistor Q3 is connected to the MCU of the main panel, and the emitter of the collector of the NPN transistor Q3 is grounded.
6. A control method for a panel cascade control terminal, based on a panel cascade control terminal according to any one of claims 1 to 5, characterized in that: The following steps are involved: Initiating a reporting instruction to the expansion panel and receiving the reporting result of the expansion panel; Arranging addresses for the expansion panel according to the reporting results, and defining the addresses as destination addresses for the expansion panel; When the main panel transmits data to the i-th level expansion panel, the main panel packages the destination address and communication data into a data packet and sends it to the first-level expansion panel. The first-level expansion panel determines whether it is a receiving target according to the destination address. If not, the data packet is sent to the next-level expansion panel. The operation is cyclic until the i-th level expansion panel receives the data packet. When the i-th level expansion panel transmits data uplink to the main panel, the expansion panel packages the address and communication data of the main panel into a data packet and sends it to the upper-level expansion panel, and the operation is repeated until the first-level expansion panel receives the data packet, and the first-level expansion panel sends the data packet to the main panel.
7. A control method for a panel cascade control terminal according to claim 6, characterized in that: When the expansion panel receives a data packet, it caches the data packet, and the data packet includes a data packet length. The expansion panel determines whether the data packet is completely received based on the data packet length, and if so, performs data processing or uplink data or downlink data.
8. A control method for a panel cascade control terminal according to claim 7, characterized in that: The step of arranging the address of the expansion panel according to the reporting result and saving the address arrangement result comprises: Determine whether the reported number results are in ascending order, if so, use the reported number corresponding to the expansion panel as the address; If not, it is determined that one or more of the following exists in the expansion panel: addition, shifting, reduction, and the addresses of the expansion panels are arranged in ascending order.
Citation Information
Patent Citations
Connected frame for switch
CN210668806U
Circuit arrangement for detecting undervoltage in an energy source
CN101473232A
Serial bus memory, serial bus transmission system and method
CN102609376A
Overcurrent protection circuit and overcurrent protection device
CN104485635A
Extensible multifunctional electric connector module
CN106329208A