Communication device based on power line and electronic equipment

By multiplexing the power supply and output port of the sensor into a communication port, and using the power line to realize the sensor's real-time communication, the problems of communication function disabling and real-time data interaction in the prior art are solved, and hardware simplification and cost reduction are achieved.

CN121907280APending Publication Date: 2026-04-21SHANGHAI LANBAO SENSING TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SHANGHAI LANBAO SENSING TECH
Filing Date
2025-12-30
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

Existing inductive output analog products suffer from insufficient real-time communication capabilities, inability to meet real-time data interaction requirements, and difficulty for users to build their own communication links. Furthermore, the communication function is disabled during normal product use, resulting in significant functional limitations.

Method used

The power port and output port of the sensor are reused as communication ports, and the communication function is realized through the original power line. There is no need to install additional communication chips and ports. The conversion module is used to convert the control commands into serial port signals and transmit them through the power line to realize the real-time communication of the sensor.

Benefits of technology

It simplifies hardware design, significantly reduces sensor production costs, and enables sensors to communicate instantly and exchange data in real time, allowing users to build communication links independently without the need for specialized equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121907280A_ABST
    Figure CN121907280A_ABST
Patent Text Reader

Abstract

The invention discloses a communication device based on a power line and electronic equipment. The communication device comprises a conversion module and a sensor, the conversion module is connected with the input end of the power signal acquisition unit through a power port, the output end of the power signal acquisition unit is connected with the input end of the first processing unit, and the output end of the signal transmitting unit is connected with the second end of the conversion module through an output port; the power supply signal acquisition unit acquires a first serial port signal and transmits the first serial port signal to the first processing unit, the first serial port signal generates a second serial port signal after passing through the first processing unit and transmits the second serial port signal to the signal emission unit, and the signal emission unit transmits the second serial port signal to the conversion module through an output port; and the conversion module sends the second serial port signal to the user side. According to the communication device provided by the invention, the power supply port and the output port are multiplexed as the communication port, a communication function can be completed through an original power supply circuit, a communication chip does not need to be installed in the sensor, and the technical adaptation cost is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electronic circuit technology, and in particular to a communication device and electronic device based on a power supply line. Background Technology

[0002] Inductive output analog products have specific communication limitations: they require a dedicated communication module from an electronic device to achieve communication and interaction with sensors. Their applicability is concentrated in specific stages of the product lifecycle, including calibration and performance testing during production, and online software upgrades during later maintenance.

[0003] The existing technology has significant functional limitations: First, it lacks instant communication capabilities and cannot meet the needs of real-time data interaction; second, after the product completes the calibration process and enters the normal use stage, only the analog output function is retained, and the communication function is disabled; third, from the user's perspective, customers cannot build communication links or initiate communication requests on their own, and need to rely on professional equipment and technical support to achieve communication in specific scenarios. Summary of the Invention

[0004] This invention provides a communication device and electronic device based on a power line, which reuses the power port and output port of the sensor as a communication port, and completes the communication function of the sensor through the original power line. There is no need to install additional communication chips and communication ports, thereby greatly simplifying the hardware design and significantly reducing the production cost of the sensor while ensuring the realization of the core functions of the sensor itself.

[0005] According to a first aspect of the present invention, a power line-based communication device is provided, comprising: a conversion module and a sensor; the sensor comprising: a power signal acquisition unit, a first processing unit, a signal transmission unit, a power port, and an output port;

[0006] The conversion module is connected to the input terminal of the power signal acquisition unit through the power port. The output terminal of the power signal acquisition unit is connected to the input terminal of the first processing unit. The output terminal of the first processing unit is connected to the input terminal of the signal transmission unit. The output terminal of the signal transmission unit is connected to the second terminal of the conversion module through the output port.

[0007] The conversion module receives control commands issued by the user, converts the control commands into a first serial port signal, and transmits it to the power signal acquisition unit through the power port;

[0008] The power signal acquisition unit acquires the first serial port signal and transmits it to the first processing unit. After the first processing unit processes the first serial port signal, it generates a second serial port signal and transmits it to the signal transmitting unit. The signal transmitting unit transmits the second serial port signal to the conversion module through the output port. The conversion module sends the second serial port signal to the user terminal.

[0009] Optionally, the conversion module includes: a USB communication unit, a second processing unit, and a power drive unit;

[0010] The first end of the USB communication unit receives the control command, and the second end of the USB communication unit is connected to the first input end of the second processing unit. The USB communication unit is used to transmit the first serial port signal to the second processing unit.

[0011] The output terminal of the second processing unit is connected to the first terminal of the power drive unit; the second terminal of the power drive unit is connected to the power port of the sensor.

[0012] The second processing unit is used to parse the first serial port signal and transmit it to the power drive unit, or to parse the second serial port signal and transmit it to the USB communication unit.

[0013] The power drive unit is used to provide the power signal required for the sensor to operate.

[0014] Optionally, the conversion module includes: a USB communication unit, a second processing unit, and a power drive unit;

[0015] The first end of the USB communication unit receives the control command, and the second end of the USB communication unit is connected to the first input end of the second processing unit. The USB communication unit is used to transmit the first serial port signal to the second processing unit.

[0016] The output terminal of the second processing unit is connected to the first terminal of the power drive unit; the second terminal of the power drive unit is connected to the power port of the sensor.

[0017] The second processing unit is used to parse the first serial port signal and transmit it to the power drive unit, or to parse the second serial port signal and transmit it to the USB communication unit.

[0018] The power drive unit is used to provide the power signal required for the sensor to operate.

[0019] Optionally, the conversion module further includes a signal measurement unit;

[0020] The input terminal of the signal measurement unit is connected to the signal receiving unit, and the output terminal of the signal measurement unit is connected to the second processing unit.

[0021] The signal measurement unit is used to receive and measure the voltage or current signal of the sensor, and convert the measurement result into a digital signal and transmit it to the second processing unit.

[0022] Optionally, the sensor may further include a filtering unit;

[0023] The input terminal of the filtering unit is connected to the output terminal of the power signal acquisition unit, and the output terminal of the filtering unit is connected to the input terminal of the first processing unit.

[0024] The filtering unit is used to filter the first serial port signal.

[0025] Optionally, a host computer may also be included;

[0026] The host computer's signal transceiver terminal is connected to the conversion module, and the host computer is used to transmit the control commands to the conversion module.

[0027] Optionally, the first processing unit further includes a comparator and a serial port decoding subunit;

[0028] The comparator is connected to the serial port decoding subunit;

[0029] The comparator is used to process the first serial port signal and convert it into a square wave signal; the serial port decoding subunit is used to receive the square wave signal, decode the square wave signal according to a preset decoding rule, and then transmit it to the signal transmitting unit.

[0030] Optionally, the first processing unit and the second processing unit include a microcontroller.

[0031] Optionally, the sensor may include an analog output sensor.

[0032] According to a second aspect of the present invention, an electronic device is provided, comprising a power line-based communication device as described in any of the first aspects of the present invention.

[0033] This invention discloses a communication device and electronic device based on a power line, comprising: a conversion module and a sensor; the sensor includes: a power signal acquisition unit, a first processing unit, a signal transmitting unit, a power port, and an output port; the conversion module is connected to the input terminal of the power signal acquisition unit through the power port, the output terminal of the power signal acquisition unit is connected to the input terminal of the first processing unit, the output terminal of the first processing unit is connected to the input terminal of the signal transmitting unit, and the output terminal of the signal transmitting unit is connected to a second terminal of the conversion module through the output port; the conversion module receives control commands issued by the user, converts the control commands into a first serial port signal, and transmits it to the power signal acquisition unit through the power port; the power signal acquisition unit acquires the first serial port signal and transmits it to the first processing unit, the first serial port signal generates a second serial port signal after passing through the first processing unit, and transmits it to the signal transmitting unit, the signal transmitting unit transmits the second serial port signal to the conversion module through the output port, and the conversion module sends the second serial port signal to the user terminal. The communication device based on power lines provided by this invention reuses the power port and output port of the sensor as a communication port, and completes the communication function of the sensor through the original power line. There is no need to install additional communication chips and communication ports. Thus, while ensuring the realization of the core functions of the sensor, it can greatly simplify the hardware design and significantly reduce the production cost of the sensor.

[0034] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0035] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0036] Figure 1 This is a schematic diagram of a communication device structure based on a power line according to an embodiment of the present invention;

[0037] Figure 2 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention;

[0038] Figure 3 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention;

[0039] Figure 4 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention;

[0040] Figure 5 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention;

[0041] Figure 6 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention;

[0042] Figure 7 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention. Detailed Implementation

[0043] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0044] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0045] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and no limitation is imposed herein.

[0046] Figure 1 This is a schematic diagram of a communication device structure based on a power line according to an embodiment of the present invention. (Refer to...) Figure 1 The communication device based on power line provided in this embodiment of the invention includes a conversion module 1 and a sensor 2. The sensor 2 includes a power signal acquisition unit 21, a first processing unit 22, a signal transmission unit 23, a power port 24, and an output port 25.

[0047] The conversion module 1 is connected to the input terminal of the power signal acquisition unit 21 through the power port 24. The output terminal of the power signal acquisition unit 21 is connected to the input terminal of the first processing unit 22. The output terminal of the first processing unit 22 is connected to the input terminal of the signal transmission unit 23. The output terminal of the signal transmission unit 23 is connected to the second terminal of the conversion module 1 through the output port 25.

[0048] The conversion module 1 receives the control command issued by the user, converts the control command into a first serial port signal, and transmits it to the power signal acquisition unit 21 through the power port 24;

[0049] The power signal acquisition unit 21 acquires the first serial port signal and transmits it to the first processing unit 22. After the first processing unit 22 processes the first serial port signal, it generates a second serial port signal and transmits it to the signal transmitting unit 23. The signal transmitting unit 23 transmits the second serial port signal to the conversion module 1 through the output port 25. The conversion module 1 sends the second serial port signal to the user terminal.

[0050] Specifically, sensor 2 includes a power signal acquisition unit 21, a first processing unit 22, a signal transmission unit 23, a power port 24, and an output port 25. The sensor itself is equipped with a power port 24 and an output port 25. The conversion module 1 connects to the input terminal of the power signal acquisition unit 21 via the power port 24. The conversion module 1 receives control commands from the user and converts these commands into a first serial port signal. This first serial port signal is transmitted to the power signal acquisition unit 21 via the sensor 2's own power port 24 to meet the operating power voltage signal required for the normal operation of sensor 2. The output terminal of the power signal acquisition unit 21 is connected to the input terminal of the first processing unit 22. The input terminal is connected, the power signal acquisition unit 21 transmits the first serial port signal to the first processing unit 22, the output terminal of the first processing unit 22 is connected to the input terminal of the signal transmitting unit 23, the first processing unit 22 analyzes and processes the first serial port signal and generates the second serial port signal, the first processing unit 22 transmits the second serial port signal to the signal transmitting unit 23, the output terminal of the signal transmitting unit 23 is connected to the second terminal of the conversion module 1 through the output port 25, the signal transmitting unit 23 transmits the second serial port signal to the conversion module 1, the conversion module 1 sends the second serial port signal to the user terminal to complete the entire process of "sending-interaction-feedback" of the control command;

[0051] The power signal acquisition unit 21 includes: resistor selection, capacitor selection, and Zener diode design;

[0052] Resistor selection: High-precision resistors are used as the core voltage divider components. The resistance value calculation needs to comprehensively match two key parameters: one is the external power supply input voltage range defined by sensor 2, and the other is the input voltage range and maximum allowable input current of the first processing unit 22. The voltage division ratio is determined through precise calculation, and the specific resistance value of the resistor is finally obtained to ensure that the signal input to the first processing unit 22 is within a safe and effective detection range.

[0053] Capacitor selection: Large-package ceramic capacitors are selected. These capacitors have a dual core function: on the one hand, they can efficiently filter out high-frequency interference signals mixed in with the external power supply, ensuring the purity of the input signal; on the other hand, thanks to their excellent surge resistance, they can withstand the surge voltage generated during power fluctuations, reducing the risk of capacitor damage.

[0054] Zener diode design: The power signal acquisition unit 21 integrates a Zener diode as a protection element. Its core function is to limit the maximum voltage value of the acquired signal. When an abnormal high voltage signal appears externally, the Zener diode can quickly activate the protection mechanism to prevent the high voltage signal from entering the internal circuit and causing damage to core components such as the signal processing module, thus providing reliable overvoltage protection for the internal circuit of the sensor.

[0055] The main functions of the first processing unit 22 are: first, to convert the external power signal (i.e., the first serial port signal) and output it to the signal transmitting unit 23; second, to send instructions to the signal transmitting unit 23 to drive it to perform corresponding operations.

[0056] It should be noted that the output interface 25 in sensor 2 has a mutually exclusive function: under normal working conditions, output port 25 is used as an output terminal, and the communication function is suspended; when it is necessary to switch to communication mode, the output function is automatically turned off, and output port 25 is only used for communication transmission.

[0057] The communication device based on power lines provided in this embodiment of the invention reuses the power port and output port of the sensor as a communication port, and completes the communication function of the sensor through the original power line. There is no need to install additional communication chips and communication ports. Thus, while ensuring the realization of the core functions of the sensor itself, it can greatly simplify the hardware design and significantly reduce the production cost of the sensor.

[0058] Optional, Figure 2 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 2 The conversion module 1 in the power line-based communication device provided in this embodiment of the invention includes: a USB communication unit 11, a second processing unit 12, and a power driving unit 13;

[0059] The first end of the USB communication unit 11 receives control commands, and the second end of the USB communication unit 11 is connected to the first input end of the second processing unit 12. The USB communication unit 11 is used to transmit the first serial port signal to the second processing unit 12.

[0060] The output terminal of the second processing unit 12 is connected to the first terminal of the power drive unit 13; the second terminal of the power drive unit 13 is connected to the power port 24 of the sensor 2.

[0061] The second processing unit 12 is used to parse the first serial port signal and transmit it to the power drive unit 13, or to parse the second serial port signal and transmit it to the USB communication unit 11.

[0062] The power drive unit 13 is used to provide the power signal required for the operation of the sensor 2.

[0063] Specifically, the USB communication unit 11 in the communication device provided in this embodiment of the invention is used to receive control commands issued by the user. Since the second processing unit 12 can only recognize serial port signals, the USB communication unit 11 converts the control commands into a first serial port signal and transmits it to the first processing unit 12. On the other hand, the USB communication unit 11 includes a USB physical interface (…). Figure 2 (not shown in the image) and USB isolation chip ( Figure 2 (Not shown in the image) The isolation chip can effectively block external surge voltages, electrostatic discharge and other interference signals, and prevent abnormal current from flowing back into the user end, so as to protect the internal circuit from damage; the output terminal of the second processing unit 12 is connected to the first terminal of the power drive unit 13; the second terminal of the power drive unit 13 is connected to the power port 24 of the sensor 2; the second processing unit 12 is used to receive the first serial port signal transmitted by the USB communication unit 11 and perform parsing processing, or to parse the second serial port signal and transmit it to the USB communication unit 11; it can also serve as a data storage center to temporarily store user control commands, sensor test data and program upgrade files, and issue control commands to various execution modules (such as the power drive unit 13); while the power drive unit 13 provides the power signal required for the operation of the sensor 2, and the power drive unit 13 also includes the following functional design:

[0064] 1. Controllable XOR gate logic device: It has dual functions; firstly, it can flexibly change the polarity of the output signal, simplifying the programming logic and achieving signal polarity unification; secondly, it optimizes the waveform of the first serial port signal, reduces distortion during signal transmission, and ensures signal integrity.

[0065] 2. High-voltage operational amplifier: This amplifier amplifies the signal, converting the initial logic level output from the second processing unit 12 into a wide-range input voltage compatible with sensor 2. The amplification factor must be strictly calibrated to ensure that the output voltage neither exceeds the upper limit of sensor 2's input (to avoid overvoltage damage) nor falls below the lower limit (to ensure normal startup of sensor 2).

[0066] 3. Voltage divider circuit with potentiometer: The output voltage can be finely adjusted by adjusting the potentiometer to accurately match the power supply requirements of the sensor, while maintaining the push-pull output circuit in a stable working state and preventing the circuit from entering the cutoff or saturation region due to voltage fluctuations.

[0067] 4. Push-pull output circuit: Its core function is to provide sufficient output power to meet the power supply requirements of the sensor in different working modes and ensure power supply stability.

[0068] Optional, Figure 3 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 3 The conversion module 1 in the communication device based on power line provided in this embodiment of the invention further includes a signal receiving unit 14;

[0069] The input terminal of the signal receiving unit 14 is connected to the signal transmitting unit 23 through the output port 25, and the output terminal of the signal receiving unit 14 is connected to the second processing unit 12; the signal receiving unit 14 is used to receive the second serial port signal and transmit it to the second processing unit 12.

[0070] Specifically, the conversion module in the power line-based communication device provided in this embodiment of the invention further includes a signal receiving unit 14, which receives the second serial port signal transmitted by the signal transmitting unit 23 of the sensor 2 and transmits it to the second processing unit 12; its hardware composition and functions are as follows:

[0071] Pseudo-load: By providing a power supply and load circuit, the second serial port signal emitted by sensor 2 produces a recognizable level change (usually fluctuating between the power supply voltage and ground potential), ensuring that the signal amplitude meets the reception requirements and that the signal can be effectively captured;

[0072] Follower: Composed of an operational amplifier and external resistors and capacitors, its main function is to enhance the signal driving capability, provide a stable input signal for the subsequent high-voltage operational amplifier, and avoid distortion caused by insufficient signal driving.

[0073] High-voltage operational amplifier: It undertakes the task of signal step-down, reducing the high-amplitude raw signal emitted by the sensor to the range of 0-3.3V, matching the input voltage threshold of the second processing unit 12, and preventing overvoltage damage to the second processing unit 12;

[0074] Controllable XOR logic device: As a signal polarity adjustment unit, it is necessary to first determine the polarity of the original signal. If the signal polarity is required to be reversed by the second processing unit 12, the second processing unit 12 can control the control pin of the device to reverse the signal before inputting it into the second processing unit 12. The polarity correction at the hardware level simplifies the software processing flow and improves the decoding efficiency.

[0075] Optional, Figure 4 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 4 The conversion module 1 in the communication device based on power line provided in this embodiment of the invention further includes a signal measurement unit 15;

[0076] The input terminal of the signal measurement unit 15 is connected to the signal receiving unit 14, and the output terminal of the signal measurement unit 15 is connected to the second processing unit 12.

[0077] The signal measurement unit 15 is used to receive and measure the voltage signal or current signal of the sensor 2, and convert the measurement result into a digital signal and transmit it to the second processing unit 12.

[0078] Specifically, the conversion module 1 also includes a signal measurement unit 15, which receives the second serial port signal transmitted by the signal receiving unit 14. Furthermore, the signal measurement unit 15 has a built-in high-precision voltmeter or ammeter. Figure 4 (Not shown in the image), for example, if the sensor 2 outputs a current signal, the signal measurement unit 15 has a built-in high-precision ammeter to measure the current signal of the sensor 2, convert the measurement result into a digital signal and transmit it to the second processing unit 12. Finally, the second processing unit 12 integrates the data and feeds it back to the user end to provide data support for the calibration test of the sensor 2. It should be noted that the signal measurement unit 15 and the signal receiving unit 14 can share a physical interface. The unit can be activated when the signal of the sensor 2 needs to be measured, and can be deactivated when the signal of the sensor 2 does not need to be measured, in order to further save resources.

[0079] Optional, Figure 5 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 5 The sensor 2 in the communication device based on the power line provided in this embodiment of the invention further includes a filtering unit 26;

[0080] The input terminal of the filtering unit 26 is connected to the output terminal of the power signal acquisition unit 21, and the output terminal of the filtering unit 26 is connected to the input terminal of the first processing unit 22.

[0081] The filtering unit 26 is used to filter the first serial port signal.

[0082] Specifically, the conversion module 1 also includes a filtering unit 26. The input terminal of the filtering unit 26 is connected to the output terminal of the power signal acquisition unit 21, and the output terminal of the filtering unit 26 is connected to the input terminal of the first processing unit 22. The filtering unit 26 is used to filter and stabilize the first serial port signal so as to transmit a cleaner and more stable first serial port signal to the first processing unit 22.

[0083] Optional, Figure 6 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 6 The communication device based on power lines provided in this embodiment of the invention also includes a host computer 3;

[0084] The signal transceiver terminal of the host computer 3 is connected to the conversion module 1, and the host computer 3 is used to transmit control commands to the conversion module 1.

[0085] Specifically, the communication device based on power line provided in this embodiment of the invention also includes a host computer 3. The signal transceiver terminal of the host computer 3 is connected to the conversion module 1. The host computer 3 is used to receive the user's control commands and convert the control commands into differential signals before transmitting them to the USB communication unit 11, or to receive the differential signals transmitted by the USB communication unit 11 and provide them to the user for viewing.

[0086] Optional, Figure 7 This is a schematic diagram of another communication device structure based on a power line provided in an embodiment of the present invention, for reference. Figure 7 The first processing unit 22 also includes a comparator 221 and a serial port decoding subunit 222;

[0087] Comparator 221 is connected to serial port decoding subunit 222;

[0088] Comparator 221 is used to process the first serial port signal and convert it into a square wave signal; serial port decoding subunit 222 is used to receive the square wave signal, decode the square wave signal according to the preset decoding rules, and then transmit it to the signal transmitting unit 23.

[0089] Specifically, the first processing unit 22 incorporates a comparator 221. The threshold setting of the comparator 221 needs to be determined comprehensively based on the hardware characteristics and input voltage range of the first processing unit 22, and can typically adopt the standard parameters recommended in the chip application manual. After the external power supply signal is processed by the comparator 221, it will be converted into a stable square wave signal, providing a reliable digital signal source for subsequent decoding. After receiving the square wave signal output by the comparator 221, the serial port decoding subunit 222 decodes it through preset decoding logic and transmits it to the core unit of the first processing unit 22 for judgment and processing, and finally transmits it to the signal transmission unit 23.

[0090] Optional, continue to refer to Figure 7 The first processing unit 22 and the second processing unit 12 include a microcontroller.

[0091] Optional, continue to refer to Figure 7 Sensor 2 includes an analog output sensor.

[0092] refer to Figure 7 It should be noted that the signal transmitting unit 23 includes several feasible solutions, including:

[0093] 1. It is a circuit structure built with transistors, which realize signal transmission through the switching characteristics of transistors.

[0094] 2. A dedicated output chip is selected. Depending on the sensor requirements, either a voltage output type or a current output type chip can be selected. Signal transmission is completed through the standardized output function of the chip.

[0095] It should be noted that regardless of the implementation scheme adopted, it is necessary to coordinate with the hardware parameters and logic design of some parts of the signal receiving unit 14. For example, if the sensor 2 uses a voltage output chip, the voltage sampling circuit of the signal receiving unit 14 needs to be optimized accordingly; if a current output chip is used, the current or voltage conversion circuit in the signal receiving unit 14 needs to be adjusted to ensure the accuracy and stability of signal reception.

[0096] According to the same inventive concept, embodiments of the present invention also provide an electronic device, including a power line-based communication device as described in any of the above embodiments.

[0097] The electronic device provided in this embodiment of the invention can achieve the same technical effect as the communication device based on a power line provided in the above-described embodiment of the invention, and will not be described again here.

[0098] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A communication device based on a power supply line, characterized in that, include: The conversion module and the sensor; the sensor includes: a power signal acquisition unit, a first processing unit, a signal transmission unit, a power port, and an output port; The conversion module is connected to the input terminal of the power signal acquisition unit through the power port. The output terminal of the power signal acquisition unit is connected to the input terminal of the first processing unit. The output terminal of the first processing unit is connected to the input terminal of the signal transmission unit. The output terminal of the signal transmission unit is connected to the second terminal of the conversion module through the output port. The conversion module receives control commands issued by the user, converts the control commands into a first serial port signal, and transmits it to the power signal acquisition unit through the power port; The power signal acquisition unit acquires the first serial port signal and transmits it to the first processing unit. After the first processing unit processes the first serial port signal, it generates a second serial port signal and transmits it to the signal transmitting unit. The signal transmitting unit transmits the second serial port signal to the conversion module through the output port. The conversion module sends the second serial port signal to the user terminal.

2. The communication device based on a power line according to claim 1, characterized in that, The conversion module includes: a USB communication unit, a second processing unit, and a power drive unit; The first end of the USB communication unit receives the control command, and the second end of the USB communication unit is connected to the first input end of the second processing unit. The USB communication unit is used to transmit the first serial port signal to the second processing unit. The output terminal of the second processing unit is connected to the first terminal of the power drive unit; the second terminal of the power drive unit is connected to the power port of the sensor. The second processing unit is used to parse the first serial port signal and transmit it to the power drive unit, or to parse the second serial port signal and transmit it to the USB communication unit. The power drive unit is used to provide the power signal required for the sensor to operate.

3. The communication device based on a power line according to claim 2, characterized in that, The conversion module also includes a signal receiving unit; The input terminal of the signal receiving unit is connected to the signal transmitting unit through the output port, and the output terminal of the signal receiving unit is connected to the second processing unit; the signal receiving unit is used to receive the second serial port signal and transmit it to the second processing unit.

4. The communication device based on a power line according to claim 3, characterized in that, The conversion module also includes a signal measurement unit; The input terminal of the signal measurement unit is connected to the signal receiving unit, and the output terminal of the signal measurement unit is connected to the second processing unit. The signal measurement unit is used to receive and measure the voltage or current signal of the sensor, and convert the measurement result into a digital signal and transmit it to the second processing unit.

5. The communication device based on a power line according to claim 1, characterized in that, The sensor also includes a filtering unit; The input terminal of the filtering unit is connected to the output terminal of the power signal acquisition unit, and the output terminal of the filtering unit is connected to the input terminal of the first processing unit. The filtering unit is used to filter the first serial port signal.

6. The communication device based on a power line according to claim 1, characterized in that, It also includes the host computer; The host computer's signal transceiver terminal is connected to the conversion module, and the host computer is used to transmit the control commands to the conversion module.

7. The communication device based on a power line according to claim 1, characterized in that, The first processing unit further includes a comparator and a serial port decoding subunit; The comparator is connected to the serial port decoding subunit; The comparator is used to process the first serial port signal and convert it into a square wave signal; The serial port decoding subunit is used to receive the square wave signal, decode the square wave signal according to the preset decoding rules, and then transmit it to the signal transmitting unit.

8. The communication device based on a power line according to claim 2, characterized in that, The first processing unit and the second processing unit include a microcontroller.

9. The communication device based on a power line according to claim 1, characterized in that, The sensors include analog output sensors.

10. An electronic device, characterized in that, Includes the power line-based communication device as described in any one of claims 1 to 9.