Main control equipment for realizing communication based on two-wire power supply circuit

By using two-wire power supply lines in the main control equipment to achieve communication technology, the problems of complex connection and large space in the multi-sensor application environment are solved, and the unity of power supply and communication is achieved, reducing costs and improving system reliability.

CN119853738APending Publication Date: 2025-04-18QUANZHOU INST OF INFORMATION ENG +1
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202510343366.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-21
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

In the prior art, the connection between the main control device and sensors, devices, and modules in a multi-sensor application environment is complex, and the space is occupied, and the complex lines reduces system reliability and increases equipment costs.

Method used

Through a main control device that realizes communication based on a two-wire power supply line, a ground wire and a power line are used to monitor voltage and/or current through a power supply control circuit and a data communication control circuit to control the switching between the power supply mode and the data mode to achieve the unity of power supply and communication.

Benefits of technology

It simplifies the connection between the master control device and other electronic devices, reduces equipment costs, improves the flexibility of electronic device deployment, and improves the reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119853738A_ABST
    Figure CN119853738A_ABST
Patent Text Reader

Abstract

The invention provides main control equipment for realizing communication based on a two-wire power supply circuit, the main control equipment is externally connected with a power supply and is used for communicating with a plurality of electronic devices, the main control equipment has a power supply mode and a data mode, the main control equipment is electrically connected with the plurality of electronic devices through a first electric circuit and a second electric circuit, and the first electric circuit is a ground wire; the main control equipment comprises a power supply control circuit, a data communication control circuit and a main control unit, and when the power supply control circuit is in a power supply mode, the second electric circuit is controlled to be electrically connected with the power supply to serve as a power supply circuit; when the power supply control circuit is in the data mode, the second electric line is controlled to be disconnected from the power supply to serve as a communication line; when the power supply control circuit is in the data mode, the data communication control circuit is electrically connected with the power supply control circuit, and communicates with a plurality of electronic devices through a second electric line; the main control unit is used for monitoring the voltage and / or current of the second electric line so as to control the power supply control circuit to enter a power supply mode or a data mode.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of power supply and digital communication, and in particular to a main control device that realizes communication based on a two-wire power supply line. Background Art

[0002] The power supply and digital communication between existing low-voltage electronic devices are independent circuits. Among them, the power supply circuit is responsible for providing power to the electronic devices, and the communication circuit is responsible for digital communication between electronic devices. In the application environment of multiple sensors, the connection between the main control device and each sensor, device, and module requires at least 2 power lines and more than 1 data line. In this case, the structure of the device will become complicated and occupy a lot of space as the number of sensors increases. Especially in embedded devices, wearable devices, and highly integrated multi-sensors, the connection between the main control device and each device will seriously restrict the number of sensors or devices. The complexity of the lines also reduces the reliability of the system and increases the cost of the equipment. Summary of the invention

[0003] The present application provides a main control device that realizes communication based on a two-wire power supply line, and the power supply and communication between the main control device and other electronic devices can be completed only through a ground wire and an electric line.

[0004] In the first aspect, an embodiment of the present application provides a main control device for realizing communication based on a two-wire power supply line, the main control device is externally connected to a power supply and is used to communicate with a number of electronic devices, the main control device has a power supply mode and a data mode, the main control device is electrically connected to the number of electronic devices through a first electrical line and a second electrical line, the first electrical line is a ground line; the main control device includes a power supply control circuit, a data communication control circuit and a main control unit, when the power supply control circuit is in the power supply mode, the second electrical line is controlled to be electrically connected to the power supply and used as a power supply line; when the power supply control circuit is in the data mode, the second electrical line is controlled to be disconnected from the power supply and used as a communication line; when the power supply control circuit is in the data mode, the data communication control circuit is electrically connected to the power supply control circuit and communicates with the number of electronic devices through the second electrical line; the main control unit is used to monitor the voltage and / or current of the second electrical line to control the power supply control circuit to enter the power supply mode or the data mode.

[0005] The above-mentioned main control device that realizes communication based on a two-wire power supply line controls the power supply control circuit to enter a power supply mode or a data mode by monitoring the voltage and / or current of the second power line, so as to control the second power line as a power supply line and a communication line. The power supply and communication between the main control device and a number of electronic devices can be realized only through the first power line and the second power line, thereby simplifying the connection between the main control device and other electronic devices, reducing the cost of the main control device and improving the flexibility of the deployment of electronic devices. BRIEF DESCRIPTION OF THE DRAWINGS

[0006] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 the structures shown in these drawings without paying any creative work.

[0007] Figure 1 A schematic diagram of the structure of a main control device for realizing communication based on a two-wire power supply line provided in an embodiment of the present application.

[0008] Explanation of the numbers in the figure: 1a-second electrical circuit; 1b-first electrical circuit; 2-electronic device; 3-power supply; 4-power supply control circuit; 5-data communication control circuit; 51-timing generator; 6-main control unit; 61-transmit buffer; 62-receive buffer; 63-chip select control address; 7-protocol conversion unit; 8-communication interface; 9-allow transmission interface; 10a-first capacitor; 10b-second capacitor; 11-comparator; 100-main control device.

[0009] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0010] In order to make the purpose, technical solutions and advantages of 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 intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0011] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar planning objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate. In other words, the described embodiments are implemented according to an order other than that illustrated or described herein. In addition, the terms "including" and "having" and any of their variations may also include other content. For example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to only those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0012] It should be noted that the descriptions involving "first", "second", etc. in this application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in this field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.

[0013] Please see Figure 1 The present application provides a main control device 100 for realizing communication based on a two-wire power supply line. The main control device 100 is externally connected to a power supply 3 and is used to communicate with a number of electronic devices 2. The main control device 100 has a power supply mode and a data mode. The main control device 100 is electrically connected to a number of electronic devices 2 through a first electrical line 1b and a second electrical line 1a. Among them, the first electrical line 1b is a ground line. In this application, the several electronic devices 2 include but are not limited to embedded devices, wearable devices, highly integrated multi-sensors, robot sensing and control systems and other terminal devices, as well as various sensors, digital devices, modules, etc. that need to communicate inside the above-mentioned electronic devices 2. The several electronic devices 2 can be different types of electronic devices 2 or the same type of electronic devices 2. The specific features of each component in the main control device 100 will be specifically described below to explain how to simplify the connection between the main control device 100 and the electronic device 2 to meet the power supply and communication needs between the main control device 100 and the electronic device 2.

[0014] like Figure 1As shown, the main control device 100 includes a power supply control circuit 4, a data communication control circuit 5 and a main control unit 6. Among them, when the power supply control circuit 4 is in the power supply mode, it controls the second electrical line 1a to be electrically connected to the power supply 3 and used as a power supply line. When the power supply control circuit 4 is in the data mode, it controls the second electrical line 1a to be disconnected from the power supply 3 and used as a communication line. In this application, the main control device 100 is initialized when it is initially powered on. At this time, the power supply control circuit 4 is in the power supply mode, that is, when an electronic device 2 is electrically connected to the first electrical line 1b and the second electrical line 1a, the electronic device 2 is electrically connected to the power supply 3. When the power supply control circuit 4 is in the data mode, the data communication control circuit 5 is electrically connected to the power supply control circuit 4, and communicates with a number of electronic devices 2 through the second electrical line 1a.

[0015] In this embodiment, the main control unit 6 is used to monitor the voltage and / or current of the second electrical circuit 1a to control the power supply control circuit 4 to enter the power supply mode or the data mode, thereby realizing the demand for power supply and communication of the electronic device 2 only through the first electrical circuit 1b and the second electrical circuit 1a. The main control device 100 is provided with a comparator 11. The comparator 11 is electrically connected to the main control unit 6 so that the main control unit 6 monitors the voltage and / or current of the second electrical circuit 1a through the comparator 11. Specifically, the comparator 11 is used to compare the current of the second electrical circuit 1a with a preset current value. When the current of the second electrical circuit 1a reaches the preset current value, it indicates that the main control device 100 has completed the power supply to the electronic device 2. At this time, the main control unit 6 controls the power supply control circuit 4 to enter the power supply mode. The comparator 11 is also used to compare the voltage of the second electrical circuit 1a with the preset voltage value. When the voltage of the second electrical circuit 1a reaches the preset voltage value, it indicates that the second electrical circuit 1a is not working in the power supply process, that is, the electronic device 2 is ready to receive the data sent by the main control device 100. At this time, the main control unit 6 also controls the data communication control circuit 5 to enter the data sending mode, that is, controls the data communication control circuit 5 to obtain data from the sending buffer 61 for the second electrical line 1 a to send to the electronic device 2 .

[0016] Further, in order to make each electronic device 2 clear what working state the main control device 100 switches to, the main control device 100 is also provided with a first capacitor 10a and a second capacitor 10b. Among them, the first capacitor 10a is electrically connected to the power supply control circuit 4 and the comparator 11 respectively. The second capacitor 10b is electrically connected to the comparator 11. The first capacitor 10a and the second capacitor 10b are grounded respectively. The first electrical line 1b and the second electrical line 1a will be in two working states of power supply mode or data mode under the control of the main control device 100. When the first electrical line 1b and the second electrical line 1a are in the power supply mode, the main control device 100 will charge the first capacitor 10a and the second capacitor 10b. When the main control device 100 switches from the power supply mode to the data mode, the power supply of the main control device 100 to each electronic device 2 disappears. At this time, the first capacitor 10a will maintain a certain power supply time on the first electrical line 1b and the second electrical line 1a. The power supply time is for each electronic device 2 to prepare for the main control device 100 to switch to the data mode, so as to facilitate the subsequent two-way communication between the main control device 100 and each electronic device 2. After the main control device 100 switches the power supply line to the data mode, the second capacitor is responsible for the power supply inside the main control device 100 to ensure data communication between the main control device 100 and each electronic device 2 .

[0017] In this embodiment, the main control unit 6 has a sending buffer 61 and a receiving buffer 62. The data mode includes a sending data mode and a receiving data mode. Among them, when the data communication control circuit 5 is in the sending data mode, it controls the second electrical circuit 1a to send the data in the sending buffer 61, so as to enable the main control device 100 to communicate with each electronic device 2. When the data communication control circuit 5 is in the receiving data mode, it controls the second electrical circuit 1a to receive data from a number of electronic devices 2 and store them in the receiving buffer 62, so as to enable each electronic device 2 to communicate with the main control device 100. In this embodiment, the main control device 100 also includes a protocol conversion unit 7 and a communication interface 8. Among them, the preset protocols supported by the protocol conversion unit 7 and the communication interface 8 include but are not limited to I2C, SPI, UART, etc. The communication interface 8 corresponds to the interface of each electronic device 2 electrically connected to the second electrical circuit 1a. The protocol conversion unit 7 selects the corresponding preset protocol for data communication according to the interface of each electronic device 2 in the communication interface 8 to convert each preset data. When the data communication control circuit 5 enters the data transmission mode, the main control unit 6 controls the communication interface 8 to send a number of preset data to the protocol conversion unit 7. The protocol conversion unit 7 is used to package the preset data into a number of preset data frames and send them to the transmission buffer 61 for transmission by the second electrical line 1a. When the data communication control circuit 5 is in the data reception mode, it also generates a number of reception flags. The reception flag is used to indicate that the main control device 100 has received the data sent by the electronic device 2. Optionally, each reception flag corresponds to an electronic device 2. The reception flag is also used to distinguish the data sent by each electronic device 2 to the main control device 100 via the second electrical line 1a.

[0018] Further, the protocol conversion unit 7 parses each preset data according to the corresponding preset protocol to obtain the first address code, the communication rate and the data to be sent to obtain the corresponding preset data frame. Different electronic devices 2 have different second address codes, and each second address code matches a first address code. The main control unit 6 also has a chip select control address 63. Among them, the chip select control address 63 is used to enable the data communication control circuit 5 to control the second electrical line 1a to send each preset data frame to the electronic device 2 corresponding to the second address code matching the corresponding first address code. When the data communication control circuit 5 is in the data transmission mode, the main control unit 6 sends the preset data in the transmission buffer 61 to the protocol conversion unit 7, so that the protocol conversion unit 7 can encode and encapsulate according to the preset protocol, and then obtain the first address code, the communication rate and the data to be sent and package them into the preset data frame and send them to the transmission buffer 61. After the main control unit 6 confirms the several electronic devices 2 corresponding to each preset data frame through the chip select control address 63, it sends the preset data frames in the transmission buffer 61 to the data communication control circuit 5. The data communication control circuit 5 converts several preset data frames into level transmission signals composed of high level and low level and sends them to the second electrical circuit 1a, so that the electronic device 2 obtains the level transmission signal from the second electrical circuit 1a, and then converts the preset data frames matching the address code into corresponding data.

[0019] Furthermore, when the data communication control circuit 5 is in the data receiving mode, the data communication control circuit 5 identifies the level receiving signal composed of high level and low level sent by each electronic device 2 from the second electrical line 1a, and the protocol conversion unit 7 assembles and decodes the level receiving signal according to the preset protocol to obtain the data to be received sent by each electronic device 2 and stores it in the receiving buffer 62.

[0020] In the above embodiment, the specific features of each component in the main control device 100 are described. The main control device 100 provided in the present application can provide power supply and two-way communication for electronic devices 2 at different voltages, as well as data communication between each electronic device 2. For example, several electronic devices 2 can be terminal devices operating below 5V. At this time, the power supply 3 is adapted to the electronic device 2 mounted on the main control device 100 and can provide the corresponding voltage. The data to be sent can also be sent to the main control device 100 through the second electrical line 1a between each electronic device 2, and the target electronic device corresponding to the data to be sent can be determined through each chip select control address 63. The main control device 100 can send the data to be sent corresponding to a first address code to an electronic device 2 corresponding to a second address code that matches the first address code through the chip select control address 63, thereby completing the data communication between each electronic device 2, and achieving the effect of broadening the data communication between each electronic device 2.

[0021] In this embodiment, the main control device 100 is further provided with a transmission permission interface 9. When the data communication control circuit 5 enters the data transmission mode, the main control unit 6 sets the transmission permission interface 9 to a high level. The data communication control circuit 5 allows the second electrical line 1a to send a number of preset data frames only when the transmission permission interface 9 is at a high level.

[0022] In this embodiment, there are differences in the first address code and the communication rate in several preset data frames in the sending buffer 61. In order to facilitate the communication between the main control device 100 and each electronic device 2, the sending timing of each preset data frame can also be adjusted. Specifically, the data communication control circuit 5 is provided with a timing generator 51. The timing generator 51 is used to adjust the sending timing of several preset data frames so that the second electrical circuit 1a can send several preset data frames according to the sending timing. Among them, the sending timing can be applied to the second electrical circuit 1a to send a level signal corresponding to a preset data frame, and can also be applied to the second electrical circuit 1a to send one or more of the first address code and the communication rate in each preset data frame, so as to adjust the sending order of several preset data frames. Optionally, after the second electrical circuit 1a sends the first address code and the communication rate of each preset data frame, the second electrical circuit 1a sends the data to be sent of each preset data frame according to the sending timing.

[0023] Furthermore, before the second electrical line 1a sends a plurality of preset data frames, the timing generator 51 also generates a timing signal and sends it to the plurality of electronic devices 2 through the second electrical line 1a, so as to indicate that the plurality of electronic devices 2 receive the plurality of preset data frames. The timing signal is composed of a plurality of high levels and a plurality of low levels.

[0024] In the above embodiments, the power supply control circuit is controlled to enter the power supply mode or the data mode by monitoring the voltage and / or current of the second electrical circuit, so as to control the second electrical circuit as a power supply circuit and a communication circuit. The power supply and communication between the main control device and a number of electronic devices can be achieved only through the first electrical circuit and the second electrical circuit, thereby simplifying the connection between the main control device and other electronic devices, reducing the cost of the main control device and improving the flexibility of the deployment of electronic devices.

[0025] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0026] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.

[0027] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0028] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can exist separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units.

[0029] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

[0030] The above examples are only preferred embodiments of the present application, and certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application still fall within the scope covered by the present application.

Claims

1. A main control device for realizing communication based on a two-wire power supply line, the main control device is externally connected to a power supply and is used to communicate with a number of electronic devices, characterized in that: The main control device has a power supply mode and a data mode, and the main control device is electrically connected to the plurality of electronic devices through a first electrical line and a second electrical line, wherein the first electrical line is a ground line; the main control device comprises: a power supply control circuit, wherein when in the power supply mode, the power supply control circuit controls the second electrical circuit to be electrically connected to the power supply so as to be used as a power supply circuit; and when in the data mode, the power supply control circuit controls the second electrical circuit to be disconnected from the power supply so as to be used as a communication circuit; a data communication control circuit, which is electrically connected to the power supply control circuit when the power supply control circuit is in the data mode, and communicates with the plurality of electronic devices through the second electrical line; The main control unit is used to monitor the voltage and / or current of the second electrical circuit to control the power supply control circuit to enter the power supply mode or the data mode.

2. The main control device according to claim 1, characterized in that: The main control unit has a sending buffer and a receiving buffer, the data mode includes a sending data mode and a receiving data mode, and when the data communication control circuit is in the sending data mode, the second electrical circuit is controlled to send the data in the sending buffer, and when the data communication control circuit is in the receiving data mode, the second electrical circuit is controlled to receive the data of the plurality of electronic devices and store them in the receiving buffer.

3. The main control device according to claim 2, characterized in that: When the data communication control circuit is in the data receiving mode, the data communication control circuit further generates a plurality of receiving marks, each receiving mark corresponding to an electronic device.

4. The main control device according to claim 2, characterized in that: When the current of the second electrical circuit reaches a preset current value, the main control unit controls the power supply control circuit to enter the power supply mode; when the voltage of the second electrical circuit reaches a preset voltage value, the main control unit also controls the data communication control circuit to enter the data sending mode.

5. The main control device according to claim 2, characterized in that: The main control device also includes a protocol conversion unit and a communication interface. When the data communication control circuit enters the data sending mode, the main control unit controls the communication interface to send a number of preset data to the protocol conversion unit. The protocol conversion unit is used to package the several preset data into a number of preset data frames and send them to the sending buffer for sending by the second electrical line.

6. The main control device according to claim 5, characterized in that: The main control device is also provided with an allow-to-send interface. When the data communication control circuit enters the data sending mode, the main control unit sets the allow-to-send interface to a high level. The data communication control circuit allows the second electrical line to send the plurality of preset data frames only when the allow-to-send interface is at a high level.

7. The main control device according to claim 5, characterized in that: The protocol conversion unit parses each preset data according to the corresponding preset protocol to obtain a first address code, a communication rate and data to be sent to obtain a corresponding preset data frame; different electronic devices have different second address codes, and each second address code matches a first address code; the main control unit also has a chip select control address, and the chip select control address is used to enable the data communication control circuit to control the second electrical line to send each preset data frame to the electronic device corresponding to the second address code matching the corresponding first address code.

8. The main control device according to claim 5, characterized in that: The data communication control circuit has a timing generator, and the timing generator is used to adjust the sending timing of the plurality of preset data frames so that the second electrical line sends the plurality of preset data frames according to the sending timing.

9. The main control device according to claim 8, characterized in that: Before the second electrical line sends the plurality of preset data frames, the timing generator further generates a timing signal and the timing signal is sent by the second electrical line to the plurality of electronic devices to indicate that the plurality of electronic devices receive the plurality of preset data frames.

10. The main control device according to claim 8, characterized in that: After the second electrical line sends the first address code and the communication rate of each preset data frame, the second electrical line sends the to-be-sent data of each preset data frame according to the sending timing.

Citation Information

Patent Citations

  • Switch control circuit, chip, adaptor and switch control method

    CN108712062A

  • Communication information sending method, communication host device and two-wire system power supply communication system

    CN114448468A

  • Charging box system, charging box system state switching method and charging box equipment

    CN117650596A

  • Power supply and communication integrated half-duplex communication circuit

    CN118041503A

  • Data communication interface

    US20150156089A1