Communication device and method for power carrier to RS-485

By designing a communication device for power carrier to RS-485, using DBPSK modem and demodulation and transceiver control unit, the interoperability of the power carrier signal and the RS-485 interface is achieved, and the problem of inability to communicate and untimely switching in the prior art is solved. Realizes the convenience of real-time data transmission and 220V AC power supply.

CN119182424AInactive Publication Date: 2024-12-24NORTHERN ELECTRIC TECHNOLOGY (SHANDONG) ELECTRONIC ENGINEERING CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411326259.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-23
Publication Date
2024-12-24
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing power carrier communication technology cannot communicate with traditional civil interfaces such as RS-485 interfaces, and requires manual switching during data conversion, which is prone to untimely switching.

Method used

A communication device for power carrier to RS-485 is designed, including a filtering unit, a conversion unit, a first data conversion unit and a second data conversion unit. The power carrier signal is converted into a logic signal through DBPSK modem and demodulation method, and the power carrier signal is converted into a logic signal using The transceiver control unit automatically switches the transmission and reception modes of the RS-485 transceiver chip to realize real-time data transmission.

Benefits of technology

The power carrier signal is interconnected with the RS-485 interface, solving the problem of untimely manual switching, and there is no need to configure an additional power adapter, and it directly uses 220V AC power supply.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119182424A_ABST
    Figure CN119182424A_ABST
Patent Text Reader

Abstract

The invention provides a power carrier to RS-485 communication device and method, and relates to the field of power carrier communication, and the device comprises a filtering unit which is used for filtering out an electromagnetic interference signal of 220v alternating current inputted by an AC terminal; the conversion unit is used for converting the alternating current processed by the filtering unit into direct current and supplying power to the first data unit and the second data unit; the first data conversion unit is used for monitoring a power line carrier signal in alternating current in real time and converting the power line carrier signal into a first logic signal through a DBPSK modulation and demodulation mode; the second data conversion unit is used for monitoring whether an output terminal receives user data or not and converting the received first logic signal into a second logic signal; and the transmitting and receiving control unit is used for controlling the transmitting enabling and the receiving enabling of the second data conversion unit.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of power line carrier communication, and specifically relates to a power line carrier to RS-485 communication device. Background Art

[0002] Power Line Communication (PLC) is a communication method that uses power lines as a transmission medium for data transmission. The basic principle of power line carrier communication is to modulate the data signal onto a high-frequency carrier signal and then transmit it through the power line.

[0003] The existing power carrier communication technology is mainly used in the power grid industry, mostly on strong power interfaces. Traditional civilian communication interfaces are mostly weak power interfaces, such as RS-485 interface, TTL interface, USB interface, etc. Due to different interfaces, the power carrier communication interface cannot communicate with the traditional civilian interface.

[0004] The inventors have found that when the first data conversion unit and the second data conversion unit are used to perform data conversion, manual switching is required, and the problem of untimely switching is likely to occur. Summary of the invention

[0005] The present application provides a power carrier to RS-485 communication device to solve the problem that the power carrier communication interface cannot communicate with the traditional civilian interface.

[0006] The technical solution adopted in this application is:

[0007] The present application embodiment provides a communication device for converting a power line carrier to RS-485, comprising:

[0008] The filter unit is used to filter out electromagnetic interference signals from the 220V alternating current input from the AC terminal;

[0009] a conversion unit, used to convert the alternating current processed by the filtering unit into direct current, and to supply power to the first data unit and the second data unit;

[0010] The first data conversion unit is used to monitor the power carrier signal in the alternating current in real time, and convert the power carrier signal into a first logic signal through DBPSK modulation and demodulation;

[0011] The second data conversion unit is used to monitor whether the output terminal receives user data and convert the received first logic signal into a second logic signal;

[0012] A transceiver control unit, used for controlling the sending enable and receiving enable of the second data conversion unit;

[0013] The filtering unit is connected to the AC port of the conversion unit, the DC port of the conversion unit is connected to the power supply interface of the first data conversion unit, the signal interface of the first data conversion unit is connected to the transceiver control unit, and the transceiver control unit is connected to the signal interface of the second data conversion unit.

[0014] The power line carrier to RS-485 communication device provided in this application also includes the following additional technical features:

[0015] According to an embodiment of the present application, a status display unit is used to display the power status of the device and the data reception and transmission status of the power carrier; the status display unit is connected to the status interface of the first data conversion unit.

[0016] According to one embodiment of the present application, the AC terminal is connected to 220V mains electricity.

[0017] According to one embodiment of the present application, the output terminal is connected to a user interface.

[0018] According to one embodiment of the present application, the first data conversion unit adopts an SSC1642 chip.

[0019] According to an embodiment of the present application, the second data conversion unit adopts a MAX3485 chip.

[0020] According to one embodiment of the present application, the communication rate of the first data conversion unit is 5 Kbps.

[0021] The present application also provides a power line carrier to RS-485 communication method, including:

[0022] The first data conversion unit monitors whether there is a power carrier signal in the AC terminal alternating current, and if there is, it will be converted into a first logic signal. The first logic signal passes through the transceiver control unit to control the RS-485 transceiver chip to switch to the transmission mode;

[0023] When the second data conversion unit receives the first logic signal, it converts the first logic signal into a second logic signal and sends it to the user through the output terminal;

[0024] After the data transmission is completed, the transceiver control unit controls the RS-485 transceiver chip to switch to the receiving mode.

[0025] According to one embodiment of the present application, it also includes:

[0026] The second data conversion unit monitors whether the output terminal receives user data, and if so, converts it into a first logic signal and sends it to the first data conversion unit;

[0027] The first data conversion unit converts the received first logic signal into a power carrier signal and sends it into alternating current through the AC terminal.

[0028] According to an embodiment of the present application, the data conversion of the first data conversion unit and the transceiver control unit are both full-duplex working modes, which can convert the power carrier signal into the second logic signal and the second logic signal into the power carrier signal in real time.

[0029] Due to the adoption of the above technical solution, the beneficial effects achieved by this application are as follows:

[0030] The present application can convert the power carrier signal into the first logic signal through the first data conversion unit, and can also convert the first logic signal into the power carrier signal, and can also monitor the power carrier signal in the alternating current in real time, and convert the received first logic signal into the second logic signal through the second data conversion unit, and can also convert the received second logic signal into the first logic signal, thereby realizing the ability to convert the power carrier signal into the second logic signal and the second logic signal into power carrier data, solving the problem that the power carrier communication interface cannot communicate with the traditional civilian interface. The present application controls the RS-485 transceiver chip to switch to the sending mode and controls the RS-485 transceiver chip to switch to the receiving mode through the transceiver control unit, solving the problem of manual switching and the problem of untimely switching. The present application also comes with a conversion unit, which can directly use 220V AC power supply without the need for additional power adapter. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0032] Figure 1 A structural diagram of a power line carrier to RS-485 communication device provided in an embodiment of the present application;

[0033] Figure 2 A circuit schematic diagram of a power carrier to RS-485 communication method provided in an embodiment of the present application;

[0034] Figure 3 A flowchart of a power line carrier to RS-485 communication method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0035] In order to more clearly illustrate the overall concept of the present application, a detailed description is given below in an illustrative manner in conjunction with the accompanying drawings.

[0036] In the following description, many specific details are set forth to facilitate a full understanding of the present application. However, the present application may also be implemented in other ways different from those described herein. Therefore, the protection scope of the present application is not limited by the specific embodiments disclosed below. It should be noted that the embodiments of the present application and the features in each embodiment may be combined with each other without conflict.

[0037] In addition, in the description of the present application, it should be understood that the orientations or positional relationships indicated by the terms "top", "bottom", "inside", "outside", "axial", "radial", "circumferential", etc. are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.

[0038] In this application, 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, an electrical connection, or a communication; 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 this application can be understood according to specific circumstances.

[0039] In the present application, unless otherwise clearly specified and limited, a first feature "above" or "below" a second feature may be that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in an appropriate manner in any one or more embodiments or examples.

[0040] like Figure 1 As shown, the embodiment of the present application provides a communication device for converting a power line carrier to RS-485, comprising:

[0041] The filter unit is used to filter out electromagnetic interference signals from the 220V alternating current input from the AC terminal.

[0042] Specifically, the filtering unit includes:

[0043] Varistor: When the voltage exceeds a certain threshold, the resistance of the varistor will drop sharply, thereby consuming excess voltage energy and protecting the subsequent circuit from damage.

[0044] Safety capacitor: Add capacitor devices that meet safety standards into the circuit to filter out high-frequency noise while ensuring the safety and stability of the circuit.

[0045] Common-mode rejection: Use components such as common-mode chokes to reduce the effects of common-mode noise and improve signal quality.

[0046] The filter unit is connected to the AC interface and AC terminal of the conversion unit, which ensures that the AC power entering the device is processed by the filter unit, thereby reducing the impact of external electromagnetic interference on the device.

[0047] For example, in a practical application scenario, suppose there is a power carrier to RS-485 communication device that needs to be used in a home or office environment, where there may be multiple sources of electromagnetic interference, such as other electronic devices, wireless communication signals, etc. The design of the filter unit can ensure that the device can still operate stably in these environments, as follows:

[0048] Varistor: When there is a sudden voltage change at the AC input end, the varistor will respond quickly, consume the excess voltage energy and protect the internal circuit from damage.

[0049] Safety capacitor: Installing a safety capacitor on the input power line can effectively filter out high-frequency noise, ensure the cleanliness of the power supply, and reduce interference to other equipment.

[0050] Common mode choke: Install a common mode choke on the power input line to reduce the impact of common mode noise, improve signal quality, and ensure the accuracy of data transmission.

[0051] You can also add a high-frequency filter network to the circuit to effectively filter out high-frequency noise and improve signal clarity and reliability. Use LC filters (inductor and capacitor combination) or RC filters (resistor and capacitor combination) to build the filter network.

[0052] You can also use physical barriers to block electromagnetic fields and reduce the impact of electromagnetic interference. Use a metal casing to encapsulate the entire device to reduce the impact of external electromagnetic interference. Use shielded cables, especially for sensitive signal lines, to reduce the impact of external electromagnetic interference on the signal.

[0053] The conversion unit is used to convert the alternating current processed by the filtering unit into direct current and to supply power to the first data unit and the second data unit.

[0054] Specifically, the main function of the conversion unit is to convert the AC power obtained from the mains grid into DC power suitable for internal use of the device. This usually involves several steps:

[0055] Rectification: Converting alternating current into pulsating direct current.

[0056] Filtering: Smoothing out pulsating DC power through components such as capacitors to reduce ripple.

[0057] Voltage Regulation: Ensures that the output voltage remains constant regardless of changes in input voltage.

[0058] The specific technical implementation of the conversion unit includes the following aspects:

[0059] Rectifier bridge: A diode rectifier bridge is usually used to achieve the rectification function.

[0060] Filter capacitor: Large-capacity capacitors are used for filtering and reducing output voltage ripple.

[0061] Voltage stabilization circuit: may include a linear regulator or a switched-mode power supply (SMPS) to achieve voltage regulation.

[0062] For example,

[0063] AC power input: 220V AC power is connected to the device through the AC terminal.

[0064] Rectifier bridge circuit: A bridge rectifier circuit consisting of four diodes (such as 1N4007) is used to convert AC power into pulsating DC power.

[0065] Filter capacitor: Use a large-capacity electrolytic capacitor (e.g. 2200μF / 25V) to smooth the pulsating DC power and reduce ripple.

[0066] Voltage Regulator: A linear voltage regulator LM7805 is used which is capable of providing a stable 5V DC output voltage for powering the internal circuits.

[0067] Switching power supply: If higher efficiency and smaller size are required, you can choose to use a switching mode power supply controller (such as UC3842) to design a high-efficiency switching power supply module.

[0068] Direct current output: After rectification, filtering and voltage stabilization, the conversion unit provides stable direct current to the first data conversion unit and the second data conversion unit through the DC interface.

[0069] A switching power supply can also be constructed using a PWM (Pulse Width Modulation) controller and a MOSFET (Metal-Oxide-Semiconductor Field-Effect Transistor).

[0070] A simple LC filter circuit can also be added after the rectifier bridge to reduce the distortion of the current waveform.

[0071] It can also be implemented using a dedicated PFC controller IC and switching elements such as IGBTs or MOSFETs.

[0072] The first data conversion unit is used to monitor the power carrier signal in the alternating current in real time, and convert the power carrier signal into a first logic signal through a DBPSK modulation and demodulation method.

[0073] DBPSK modulation and demodulation: DBPSK modulation and demodulation is adopted, which is an efficient modulation technology suitable for power line communication. DBPSK can improve the anti-interference ability of the signal and is easy to demodulate at the receiving end.

[0074] Signal detection: monitor the power carrier signal in the AC power in real time, and start the demodulation process once the signal is detected.

[0075] Signal conversion: Convert the detected analog power carrier signal into a digital TTL signal.

[0076] Hardware implementation: Use the SSC1642 chip as the core processing unit, which supports DBPSK modulation and demodulation and can operate at a communication rate of 5Kbps.

[0077] Signal detection circuit: extract the power carrier signal from the AC power through circuits such as high-pass filter and band-pass filter.

[0078] Modem: Adopts SSC1642 chip, supports DBPSK modulation and demodulation, and can convert the power carrier signal into the first logic signal or vice versa.

[0079] Data interface: Use TTL level interface to exchange data with the second data conversion unit.

[0080] The connection relationship between the first data conversion unit and other parts of the system is as follows:

[0081] AC power input: Connect to 220V AC power through the AC terminal.

[0082] Signal input / output: The L / N interface of the first data conversion unit is connected to the AC terminal for receiving or sending a carrier signal.

[0083] Data interface: The TTL interface is connected to the TTL interface of the second data conversion unit and is used to receive and send the first logic signal.

[0084] Power supply interface: powered by the DC interface of the conversion unit.

[0085] The workflow of the first data conversion unit includes:

[0086] Power carrier signal detection: monitor whether there is a power carrier signal in the AC power through the AC terminal.

[0087] Signal demodulation: If a signal is detected, the power carrier signal is demodulated into a first logic signal by DBPSK modulation and demodulation.

[0088] Data sending: sending the first logic signal to the second data conversion unit.

[0089] Data reception: receiving the first logic signal from the second data conversion unit and modulating it into a power carrier signal.

[0090] Signal transmission: The power carrier signal is sent into the alternating current through the AC terminal.

[0091] For example, in the signal detection circuit, an LC filter (inductor L and capacitor C) is used to form a bandpass filter to extract a signal within a specific frequency range from the alternating current.

[0092] Modem: Use SSC1642 chip, which has built-in DBPSK modulation and demodulation function, and the working parameters can be configured by programming.

[0093] Data interface: TTL level interface, including TXD (transmit data) and RXD (receive data) pins, used to connect to the second data conversion unit.

[0094] Power supply interface: powered by 5V DC provided by the conversion unit.

[0095] It is also possible to use an adaptive modem that is able to switch between DBPSK and higher order modulation schemes such as QPSK.

[0096] Alternatively, OFDM modulator and demodulator chips can be used, such as the ADALM-OFDM kit from Analog Devices.

[0097] The second data conversion unit is used to monitor whether the output terminal receives user data and convert the received first logic signal into a second logic signal.

[0098] Logic level conversion: Since the TTL level (0-5V) is different from the RS-485 level (±3V to ±15V), level conversion is required.

[0099] Signal amplification and shaping: Ensure that the converted signal can meet the transmission requirements of the RS-485 interface.

[0100] The specific technical implementation of the second data conversion unit includes the following aspects:

[0101] Logic level conversion chip: MAX3485 chip is used as the core processing unit. This chip can convert TTL level to RS-485 level and has a built-in signal amplification function.

[0102] Data interface: Use TTL level interface to exchange data with the first data conversion unit.

[0103] Power supply interface: powered by direct current provided by the conversion unit.

[0104] For example, the logic level conversion chip: Use the MAX3485 chip, which can convert TTL levels to RS-485 levels and has a built-in signal amplification function.

[0105] Data interface: The TTL level interface is connected to the first data conversion unit for data exchange.

[0106] Power supply interface: powered by direct current provided by the conversion unit.

[0107] It is also possible to use chips with adaptive level control, such as the MAX485 variant MAX3222, which allows the user to set the output level via external resistors.

[0108] You can also use chips with advanced data buffering functions, such as MAX3222E or similar chips, which support high-speed data transmission and have built-in data buffers.

[0109] Signal isolation can also be achieved using optocouplers or magnetic couplers.

[0110] A transceiver control unit is used to automatically control the sending enable and receiving enable of the second data conversion unit.

[0111] RS-485 data is more suitable for long-distance, multi-point communication scenarios and is widely used in industrial control, remote data acquisition, building automation and other fields. Unlike RS-232 data, RS-232 data is more suitable for short-distance, high-speed, point-to-point communication scenarios and is mainly used for communication between computers and peripherals. Since RS-485 data needs to be used in long-distance communication scenarios, a transceiver control unit is required to control the sending and receiving of data conversion.

[0112] like Figure 2 As shown, the core component of the transceiver control unit is the Q1 position component, which uses the SS8050 NPN transistor, supports a switching frequency of up to 200Mbps, and a conduction current of 1.5A, ensuring high-speed communication and high current flow. Combined with the TTL communication timing characteristics and the MAX3485 chip communication characteristics, automatic TTL to RS485 transceiver is realized:

[0113] When TX sends 0, the transistor is not turned on, DE is connected to a high level, and the transmission mode is entered. The MAX3485 chip will reflect the level on DI to the AB pin for output. Because DI is grounded, the AB pin will transmit 0. Therefore, when TXD sends 0, the AB pin sends 0.

[0114] When TX sends 1, the transistor is turned on, RE is connected to a low level, and the receiving mode is entered. The AB pin of the 485 chip enters a high-impedance state, because R3 pulls A high and R2 pulls B low, so AB transmits 1. Therefore, when TXD sends 1, the AB pin sends 1.

[0115] In the process of receiving data, the TX pin is always kept at a high level. When TXD is at a high level, RE is at a low level, the MAX3485 chip is in the receiving state, and then the RO pin of the chip (that is, the pin connected to RX) will receive the data transmitted by AB.

[0116] Specifically, when the first data conversion unit detects a valid power carrier signal and converts it into a first logic signal, the first logic signal will be sent to the transceiver control unit.

[0117] When the control unit recognizes that there is data to be sent, it automatically sets the second data conversion unit to the sending mode.

[0118] In the transmission mode, the second data conversion unit converts the first logic signal into a second logic signal and transmits the second logic signal to the external device through the output terminal.

[0119] If the second data conversion unit detects that data has arrived at the output terminal, the control unit will automatically set the second data conversion unit to a receiving mode.

[0120] In the receiving mode, the second data conversion unit converts the received second logic signal into a first logic signal and transmits the first logic signal to the first data conversion unit for processing.

[0121] For example, power carrier signal detection: the first data conversion unit monitors whether there is a power carrier signal in the alternating current of the AC terminal.

[0122] First logic signal generation: If a power carrier signal is present, it is converted into a first logic signal.

[0123] Transmit mode activation: The first logic signal passes through the transceiver control unit, and the control unit recognizes that data is to be sent, and controls the RS-485 transceiver chip to switch to the transmit mode.

[0124] Data conversion and transmission: When the second data conversion unit receives the first logic signal, it converts the first logic signal into a second logic signal and transmits it to the user through the output terminal.

[0125] Restore receiving mode: After the data transmission is completed, the transceiver control unit controls the RS-485 transceiver chip to switch back to receiving mode.

[0126] Data receiving process

[0127] Data detection: The second data conversion unit monitors whether the output terminal receives user data.

[0128] Receive mode activated: If data is present, it automatically enters receive mode.

[0129] Data conversion and transmission: The second data conversion unit converts the received second logic signal into a first logic signal and transmits it to the first data conversion unit.

[0130] You can also choose a microprocessor with sufficient processing power and a built-in serial communication interface (such as USART), such as the STM32 series.

[0131] An external interrupt controller chip can also be added.

[0132] External RAM or Flash memory can also be added to store configuration data or temporarily cache data.

[0133] The filtering unit is connected to the AC interface and AC terminal of the conversion unit, and the DC interface of the conversion unit is connected to the power supply interfaces of the first data conversion unit and the second data conversion unit; the L / N interface of the first data conversion unit is connected to the AC terminal, the TTL interface of the first data conversion unit is connected to the transceiver control unit, the TTL interface of the second data conversion unit is connected to the transceiver control unit, and the RS485 interface of the second data conversion unit is connected to the output terminal.

[0134] Specifically, filtering unit: This unit is used to improve the electromagnetic compatibility of the equipment, and enhance the equipment's ability to resist electromagnetic interference through circuit designs such as varistors, safety capacitors and common-mode suppression.

[0135] Conversion unit: This unit is responsible for converting the input 220V AC power into DC power, providing the required DC power for other units inside the device.

[0136] AC terminal: This is where the device is used to receive 220V alternating current.

[0137] The connection relationship is as follows:

[0138] 220V AC power is connected to the device through the AC terminal.

[0139] Filtered by the filtering unit to reduce noise and interference.

[0140] Enter the AC interface of the conversion unit to convert AC to DC.

[0141] The DC interface of the conversion unit outputs direct current to supply power to the first data conversion unit and the second data conversion unit.

[0142] Communication part connection

[0143] The first data conversion unit: uses the SSC1642 chip and adopts the DBPSK modulation and demodulation method to convert the power carrier signal into the first logic signal.

[0144] Transceiver control unit: A circuit designed according to the timing characteristics of TTL digital signals, used to automatically control the transmit enable and receive enable of the second data conversion unit.

[0145] The second data conversion unit: adopts the MAX3485 chip to convert the first logic signal into the second logic signal, or convert the second logic signal into the first logic signal.

[0146] Output terminal: used to connect to an external RS-485 interface to receive or send a second logic signal.

[0147] The connection relationship is as follows:

[0148] The 220V alternating current is connected to the L / N interface of the first data conversion unit through the AC terminal, so as to receive or send a power carrier signal.

[0149] The TTL interface of the first data conversion unit is connected to the transceiver control unit and is used for receiving or sending the first logic signal.

[0150] The TTL interface of the second data conversion unit is also connected to the transceiver control unit for receiving or sending the first logic signal.

[0151] The RS-485 interface of the second data conversion unit is connected to the output terminal and is used to receive or send the second logic signal.

[0152] Workflow

[0153] Power line carrier to RS-485 direction

[0154] The first data conversion unit monitors whether there is a power carrier signal in the alternating current at the AC terminal.

[0155] If a power carrier signal is present, it is converted into a first logic signal.

[0156] The first logic signal is controlled by the transceiver control unit to switch the second data conversion unit to the transmission mode.

[0157] The second data conversion unit converts the first logic signal into a second logic signal and sends the second logic signal to the user through the output terminal.

[0158] RS-485 to power line carrier direction

[0159] The second data conversion unit monitors whether the output terminal receives user data.

[0160] If data is received, it is converted into a first logic signal.

[0161] The first logic signal is sent to the first data conversion unit.

[0162] The first data conversion unit converts the received first logic signal into a power carrier signal and sends it into alternating current through the AC terminal.

[0163] For example, the first data conversion unit monitors whether there is a power carrier signal in the alternating current at the AC terminal.

[0164] If a power carrier signal is present, the unit converts it into a first logic signal.

[0165] The first logic signal is controlled by the transceiver control unit to switch the second data conversion unit to the transmission mode.

[0166] The second data conversion unit converts the first logic signal into a second logic signal and sends the second logic signal to the user through the output terminal.

[0167] RS-485 to power line carrier data function flow

[0168] The second data conversion unit monitors whether the output terminal receives user data.

[0169] If data is received, it is converted into a first logic signal.

[0170] The first logic signal is sent to the first data conversion unit.

[0171] The first data conversion unit converts the received first logic signal into a power carrier signal and sends it into alternating current through the AC terminal.

[0172] An integrated EMC+ACDC module can also be used, which integrates the EMC function and the ACDC conversion function, simplifies the circuit design, and reduces the number of components. The integrated module is directly connected to the AC terminal to output a stable DC voltage to power the first data conversion unit and the second data conversion unit.

[0173] You can also use a high-performance modem chip, such as SSC1642, but you can consider replacing it with a more advanced modem chip to improve data transmission rate and stability.

[0174] A programmable logic controller (PLC) or microcontroller can also be used instead to achieve more flexible automatic control functions.

[0175] According to one embodiment of the present application, a status indicator light unit is used to display the power status of the device and the data reception and transmission status of the power carrier; the status indicator light unit is connected to the status interface of the first data conversion unit.

[0176] Specifically, LED indicator light: a red LED light indicates a power state, a green LED light indicates a data receiving state, and a blue LED light indicates a data sending state.

[0177] Status interface connection: The status indicator light unit is connected to the first data conversion unit through the status interface to obtain power status and data transmission status information.

[0178] State recognition logic: Use a microcontroller or simple logic circuit to recognize the state information and control the state of the LED light.

[0179] The connection relationship between the status indicator unit and other parts of the system is as follows:

[0180] Status interface connection: The status indicator light unit is connected to the status interface of the first data conversion unit to obtain the power status and data transmission status information of the device.

[0181] The workflow of the status indicator unit includes:

[0182] Power status indication: When the device is powered on, the red LED light turns on, indicating that the device is powered on.

[0183] Data receiving status indication: When data is being received, the green LED light will light up or flash, indicating that data is being received.

[0184] Data sending status indication: When data is being sent, the blue LED light will light up or flash, indicating that data is being sent.

[0185] According to one embodiment of the present application, the AC terminal is connected to 220V mains electricity.

[0186] Specifically, the AC terminal uses a C14 socket that complies with the IEC 60320 standard and can be connected to a standard C13 plug.

[0187] Safety measures: The AC terminal is equipped with an insulating shell and is connected to the ground port of the device to ensure user safety.

[0188] Connection method: The AC terminal is directly connected to the 220V mains power supply, without the need for an additional power adapter.

[0189] According to one embodiment of the present application, the RS-232 terminal is connected to an RS-232 user interface.

[0190] Specifically, RS-232 interface type: usually uses a standard RS-232 connector, such as a DB-9 or DB-25 connector.

[0191] Data interface connection: Connect to the RS232 interface of the TTL to RS-232 unit through the RS-232 terminal to receive and send RS-232 data.

[0192] Data transmission protocol: Follow RS-232 standard to ensure the correctness and compatibility of data transmission.

[0193] According to one embodiment of the present application, the first data conversion unit adopts the SSC1642 chip.

[0194] Specifically, the SSC1642 chip: as the core processing unit of the first data conversion unit, supports DBPSK modulation and demodulation, and can operate at a communication rate of 5Kbps.

[0195] Signal detection circuit: Use circuits such as high-pass filters and band-pass filters to extract the power carrier signal from the alternating current.

[0196] Signal conversion circuit: Use the SSC1642 chip to convert the detected analog power carrier signal into a digital TTL signal.

[0197] According to one embodiment of the present application, the TTL to RS-232 unit uses a MAX3232 chip.

[0198] Specifically, the MAX3232 chip: as the core processing unit of the TTL to RS-232 unit, it is able to convert the TTL level to the RS-232 level and has a built-in signal amplification function.

[0199] Data interface: The TTL level interface is connected to the first data conversion unit for data exchange.

[0200] Power supply interface: powered by direct current provided by the conversion unit.

[0201] According to one embodiment of the present application, the communication rate of the first data conversion unit is 5 Kbps.

[0202] Specifically, the SSC1642 chip: as the core processing unit of the first data conversion unit, supports DBPSK modulation and demodulation, and can operate at a communication rate of 5Kbps.

[0203] Signal detection circuit: Use circuits such as high-pass filters and band-pass filters to extract the power carrier signal from the alternating current.

[0204] Signal conversion circuit: Use the SSC1642 chip to convert the detected analog power carrier signal into a digital TTL signal.

[0205] Example 2

[0206] like Figure 3 As shown, the present application also provides a power carrier to RS-485 communication method, which is characterized by comprising:

[0207] The first data conversion unit monitors whether there is a power carrier signal in the AC terminal alternating current, and if there is, it will be converted into a first logic signal. The first logic signal passes through the transceiver control unit to control the RS-485 transceiver chip to switch to the transmission mode;

[0208] When the second data conversion unit receives the first logic signal, it converts the first logic signal into a second logic signal and sends it to the user through the output terminal;

[0209] After the data transmission is completed, the transceiver control unit controls the RS-485 transceiver chip to switch to the receiving mode.

[0210] According to an embodiment of the present application, the second data conversion unit monitors whether the output terminal receives user data, and if so, converts it into a first logic signal and sends it to the first data conversion unit;

[0211] The first data conversion unit converts the received first logic signal into a power carrier signal and sends it into alternating current through the AC terminal.

[0212] According to an embodiment of the present application, the data conversion of the first data conversion unit and the transceiver control unit are both full-duplex working modes, which can convert the power carrier signal into the second logic signal and the second logic signal into the power carrier signal in real time.

[0213] Anything not described in this application can be achieved by adopting or drawing on existing technologies.

[0214] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

[0215] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims

1. A communication device for converting power carrier to RS-485, characterized in that: include: The filter unit is used to filter out electromagnetic interference signals from the 220V alternating current input from the AC terminal; a conversion unit, used to convert the alternating current processed by the filtering unit into direct current, and to supply power to the first data unit and the second data unit; The first data conversion unit is used to monitor the power carrier signal in the alternating current in real time, and convert the power carrier signal into a first logic signal through DBPSK modulation and demodulation; The second data conversion unit is used to monitor whether the output terminal receives user data and convert the received first logic signal into a second logic signal; A transceiver control unit, used for controlling the sending enable and receiving enable of the second data conversion unit; The filtering unit is connected to the AC port of the conversion unit, the DC port of the conversion unit is connected to the power supply interface of the first data conversion unit, the signal interface of the first data conversion unit is connected to the transceiver control unit, and the transceiver control unit is connected to the signal interface of the second data conversion unit.

2. The device according to claim 1, characterized in that Also includes: Status display unit, used to display the power status of the device and the data receiving and sending status of the power carrier; The status display unit is connected to the status interface of the first data conversion unit.

3. The device according to claim 1, characterized in that The AC terminal is connected to 220V mains electricity.

4. The device according to claim 1, characterized in that The output terminal interfaces with a user.

5. The device according to claim 1, characterized in that The first data conversion unit adopts SSC1642 chip.

6. The device according to claim 1, characterized in that The second data conversion unit adopts the MAX3485 chip.

7. The device according to claim 5, characterized in that The communication rate of the first data conversion unit is 5 Kbps.

8. A method for converting power carrier to RS-485 communication, applied to a hardware device comprising a filtering unit, a conversion unit, a first data conversion unit, a transceiver control unit and a second data conversion unit, characterized in that: include: The first data conversion unit monitors whether there is a power carrier signal in the AC terminal AC power, and if there is, it will be converted into a first logic signal, and the first logic signal passes through the transceiver control unit to control the RS-485 transceiver chip to switch to the transmission mode; When the second data conversion unit receives the first logic signal, it converts the first logic signal into a second logic signal and sends it to the user through the output terminal; After the data transmission is completed, the transceiver control unit controls the RS-485 transceiver chip to switch to the receiving mode.

9. The method according to claim 8, characterized in that Also includes: The second data conversion unit monitors whether the output terminal receives user data, and if so, converts the data into the first logic signal and sends it to the first data conversion unit; The first data conversion unit converts the received first logic signal into a power carrier signal and sends it into alternating current through an AC terminal.

10. The method according to claim 8, characterized in that The first data conversion unit and the second data conversion unit implement conversion of the first logic signal and the second logic signal through level conversion.

Citation Information

Patent Citations

  • Transceiving controller based on power line carrier technique

    CN201191447Y

  • Intelligent controller of household electrical appliance

    CN202058301U

  • Flush power line carrier communication modem

    CN2638337Y

  • Power line carrier communication system

    JP1999284552A