Ethernet communication module and electricity meter
By designing an Ethernet communication module in the power meter and using Ethernet circuits and signal transmission circuits for real-time monitoring, the problem that the power meter cannot monitor the working status of the Ethernet communication module in real-time is solved, and the accuracy and stability of data transmission are improved.
Patent Information
- Application Number
- CN202323406342.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Utility models(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-13
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2033-12-13
AI Technical Summary
The existing meter cannot monitor the working status of the Ethernet communication module in real time, resulting in inaccurate data received by the server.
Design an Ethernet communication module, including Ethernet circuit and signal transmission circuit, monitors the working status of the Ethernet circuit by periodically sending detection signals and receiving response signals, and implements it through components such as Ethernet conversion chips, isolation circuits and transformers. Data transmission and interaction ensure the accuracy and stability of the data.
Real-time monitoring of the Ethernet communication module is realized, abnormal status is discovered in a timely manner, the accuracy and stability of the data received by the server is improved, and noise interference and mutual interference are reduced.
Smart Images

Figure CN222262932U_ABST
Abstract
Description
Technical Field
[0001] The utility model relates to the technical field of communication, in particular to an Ethernet communication module and an electric meter. Background Art
[0002] The electric meter is a metering device used by the power management department to manage electricity consumption. The electric meter needs to communicate data with the server via Ethernet. In the prior art, although the Ethernet communication module is embedded in the electric meter, and there is no need to set up the Ethernet communication module outside the electric meter, the working status of the Ethernet communication module cannot be monitored in real time. When the working status of the Ethernet communication module is abnormal, it cannot be discovered in time, so the Ethernet communication module cannot be repaired in time, resulting in the loss of data transmitted by the electric meter, and then the data received by the server is inaccurate. Utility Model Content
[0003] The problem solved by the utility model is that the existing electric meter cannot monitor the working state of the Ethernet communication module in real time, resulting in inaccurate data received by the server.
[0004] In order to solve the above problems, the technical solution adopted by the utility model is as follows:
[0005] In a first aspect, the utility model provides an Ethernet communication module, which is arranged in an electric meter, and the Ethernet communication module includes an Ethernet circuit and a signal transmission circuit; the Ethernet circuit is electrically connected to the signal transmission circuit and a main control module of the electric meter, and the signal transmission circuit is communicatively connected to a server; the main control module of the electric meter exchanges data with the server through the Ethernet circuit and the signal transmission circuit;
[0006] The Ethernet circuit is used to generate a corresponding response signal and send it to the main control module when receiving a detection signal periodically sent by the main control module, so that the main control module can detect the working status of the Ethernet circuit according to whether the corresponding response signal is received after periodically sending the detection signal.
[0007] In the Ethernet communication module provided by the embodiment of the utility model, the Ethernet circuit is used to generate a corresponding response signal and send it to the main control module when receiving the detection signal periodically sent by the main control module, so that after the main control module periodically sends the detection signal, it can detect the working status of the Ethernet circuit according to whether the corresponding response signal is received, so that the working status of the Ethernet communication module can be monitored in real time, thereby improving the accuracy of data received by the server.
[0008] In an optional embodiment, the Ethernet circuit is further used to receive a first Ethernet signal sent by the server through the signal transmission circuit, convert the first Ethernet signal into a data acquisition instruction that can be processed by the main control module, and send the data acquisition instruction to the main control module so that the main control module acquires corresponding data according to the data acquisition instruction;
[0009] The Ethernet circuit is also used to receive the data sent by the main control module, convert the data into a second Ethernet signal, and send the second Ethernet signal to the server through the signal transmission circuit.
[0010] In the utility model, the Ethernet circuit can convert the first Ethernet signal into a data acquisition instruction that can be processed by the main control module, and receive the corresponding data sent by the main control module according to the data acquisition instruction, and convert the data into a second Ethernet signal. Therefore, the main control module of the electric meter can exchange data with the server through the Ethernet circuit and the signal transmission circuit.
[0011] In an optional embodiment, the Ethernet circuit includes an Ethernet conversion chip, the Ethernet conversion chip includes an SPI signal port, an INT signal port and an RST signal port, and the Ethernet conversion chip is electrically connected to the main control module through the SPI signal port, the INT signal port and the RST signal port;
[0012] The Ethernet conversion chip is used to send the data acquisition instruction to the main control module through the SPI signal port, and is also used to receive the data sent by the main control module through the SPI signal port;
[0013] The Ethernet conversion chip is also used to receive the detection signal periodically sent by the main control module through the SPI signal port, and is also used to send the response signal to the main control module through the SPI signal port;
[0014] The Ethernet conversion chip is also used to send an interrupt signal to the main control module through the INT signal port to notify the main control module that the data has been received or the sending of the data has been completed;
[0015] The Ethernet conversion chip is also used to receive a reset signal sent by the main control module through the RST signal port; the reset signal is generated by the main control module when the corresponding response signal is not received.
[0016] In the utility model, the data, interrupt signal and reset signal sent by the main control module can be received through the SPI signal port, INT signal port and RST signal port of the Ethernet conversion chip, so that data transmission between the main control module and the Ethernet chip can be realized, and the main control module can control the Ethernet chip.
[0017] In an optional embodiment, the Ethernet communication module further includes an isolation circuit, one end of the isolation circuit is electrically connected to the SPI signal port, the INT signal port and the RST signal port of the Ethernet conversion chip, and the other end of the isolation circuit is electrically connected to the main control module;
[0018] The isolation circuit is used to electrically isolate the Ethernet conversion chip from the main control module.
[0019] In the utility model, the isolation circuit can reduce the mutual interference between the Ethernet conversion chip and the main control module, reduce noise, and improve the accuracy and stability of data transmission.
[0020] In an optional embodiment, the isolation circuit includes a capacitive coupling circuit, a first optocoupler circuit and a second optocoupler circuit, the capacitive coupling circuit is electrically connected between the main control module and the SPI signal port of the Ethernet conversion chip, the first optocoupler circuit is electrically connected between the main control module and the INT signal port of the Ethernet conversion chip, and the second optocoupler circuit is electrically connected between the main control module and the RST signal port of the Ethernet conversion chip;
[0021] The capacitive coupling circuit is used to electrically isolate the SPI signal port of the Ethernet conversion chip from the main control module;
[0022] The first optical coupling circuit is used to electrically isolate the INT signal port of the Ethernet conversion chip from the main control module;
[0023] The second optical coupling circuit is used to electrically isolate the RST signal port of the Ethernet conversion chip from the main control module.
[0024] In the utility model, the capacitive coupling circuit can reduce the mutual interference between the SPI signal port of the Ethernet conversion chip and the main control module, reduce noise, and improve the accuracy and stability of data transmission; the first optical coupling circuit can reduce the mutual interference between the INT signal port of the Ethernet conversion chip and the main control module, reduce noise, and improve the stability of interrupt signal transmission; the second optical coupling circuit can reduce the mutual interference between the RST signal port of the Ethernet conversion chip and the main control module, reduce noise, and improve the stability of reset signal transmission. In an optional embodiment, the signal transmission circuit includes a signal interface and a transformer; the transformer is electrically connected to the Ethernet circuit and the signal interface respectively, and the signal interface is communicatively connected to the server;
[0025] The signal interface is used to receive the first Ethernet signal and transmit the first Ethernet signal to the transformer; and is also used to send the second Ethernet signal to the server;
[0026] The transformer is used to isolate the Ethernet circuit from the server.
[0027] In the utility model, the signal interface can receive the first Ethernet signal sent by the server, and the transformer can reduce the mutual interference between the Ethernet circuit and the server, reduce noise, and improve the stability and accuracy of the transmission of the first Ethernet signal and the second Ethernet signal.
[0028] In an optional embodiment, the Ethernet circuit further includes a crystal oscillator circuit, the input end of the crystal oscillator circuit is electrically connected to the crystal oscillator output end of the Ethernet conversion chip, and the output end of the crystal oscillator circuit is electrically connected to the crystal oscillator input end of the Ethernet conversion chip;
[0029] The crystal oscillator circuit is used to provide a clock signal for the Ethernet conversion chip.
[0030] In the utility model, the crystal oscillator circuit can provide a clock signal for the Ethernet conversion chip, so that the Ethernet conversion chip can work normally.
[0031] In an optional embodiment, the crystal oscillator circuit includes a crystal oscillator, a first capacitor, a second capacitor and a first resistor; the output end of the crystal oscillator is electrically connected to the crystal oscillator input end of the Ethernet conversion chip, and the input end of the crystal oscillator is electrically connected to the crystal oscillator output end of the Ethernet conversion chip through the first resistor; one end of the first capacitor is electrically connected to the output end of the crystal oscillator, one end of the second capacitor is electrically connected to the input end of the crystal oscillator, and the ground end of the crystal oscillator, the other end of the first capacitor and the other end of the second capacitor are all grounded.
[0032] In the utility model, the first resistor limits the driving size of the crystal oscillator to prevent the crystal oscillator from being overdriven, resulting in aging or early failure of the crystal oscillator; the first capacitor and the second capacitor are used to adjust the frequency of the crystal oscillator. In an optional embodiment, the Ethernet circuit includes a second resistor, a third capacitor and a fourth capacitor; the RST signal port of the Ethernet conversion chip is electrically connected to one end of the second resistor, one end of the third capacitor and one end of the fourth capacitor respectively, the other end of the second resistor is electrically connected to the main control module, and the other end of the third capacitor and the other end of the fourth capacitor are both grounded.
[0033] In the present invention, the third capacitor and the fourth capacitor can eliminate interference to the reset signal.
[0034] In a second aspect, the utility model provides an electric meter, comprising a main control module and the Ethernet communication module described in any one of the aforementioned implementations.
[0035] In the present utility model, the technical effect of the electric meter described in the second aspect can refer to the technical effect of the Ethernet communication module described in any possible implementation method in the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions of the embodiments of the utility model, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the utility model and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can be obtained based on these drawings without paying creative work.
[0037] Figure 1 A schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown;
[0038] Figure 2 Another schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown;
[0039] Figure 3 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown;
[0040] Figure 4 Another schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown;
[0041] Figure 5 Another schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown;
[0042] Figure 6Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown;
[0043] Figure 7 Another schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown;
[0044] Figure 8 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown.
[0045] Icons: 100-Ethernet communication module; 110-Ethernet circuit; 111-Ethernet conversion chip; 112-crystal oscillator circuit; 120-signal transmission circuit; 121-signal interface; 122-transformer; 130-isolation circuit; 131-capacitive coupling circuit; 132-first optocoupler circuit; 133-second optocoupler circuit; 200-main control module; 300-server; R1-first resistor; R2-second resistor; R3-third resistor; R4-fourth resistor; R5-fifth resistor; R6-sixth resistor; R7-seventh resistor; R8-eighth resistor; R9-ninth resistor; R10-tenth resistor; C1-first capacitor; C2-second capacitor; C3-third capacitor; C4-fourth capacitor; C5-fifth capacitor; C6-sixth capacitor; C7-seventh capacitor; C8-eighth capacitor; C9-ninth capacitor; G1-crystal oscillator; T1-network transformer. DETAILED DESCRIPTION
[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and understandable, the specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0047] See also Figure 1 , Figure 1 A schematic diagram of an Ethernet communication module provided by an embodiment of the utility model is shown. The Ethernet communication module 100 is arranged in an electric meter, and the Ethernet communication module 100 includes an Ethernet circuit 110 and a signal transmission circuit 120, the Ethernet circuit 110 is electrically connected to the signal transmission circuit 120 and a main control module 200 of the electric meter, the signal transmission circuit 120 is communicatively connected to a server 300, and the main control module 200 of the electric meter exchanges data with the server 300 through the Ethernet circuit 110 and the signal transmission circuit 120.
[0048] In some implementations, the server 300 may be a main station or a host computer, which is not limited here. The server 300 may interact with the signal transmission circuit 120 via the UIP protocol, which is not limited here.
[0049] In some embodiments, the main control module 200 can be used to power the Ethernet communication module 100, and the main control module 200 can also be used to realize the function of the electric meter. For example, the main control module 200 can be used for power calculation, power cost calculation, recording power history records, and recording load curves, etc., which are not limited here. The main control module may include a processing unit such as a microcontroller unit (MCU) that can support SPI communication. Specifically, the model of the main control chip in the microcontroller unit can be RN8318, which is not limited here.
[0050] In this embodiment, the Ethernet circuit 110 is used to generate a corresponding response signal and send it to the main control module 200 when receiving a detection signal periodically sent by the main control module 200, so that the main control module 200 can detect the working status of the Ethernet circuit 110 based on whether the corresponding response signal is received after periodically sending the detection signal.
[0051] In some implementations, if the main control module 200 does not receive the corresponding response signal, it indicates that the working state of the Ethernet circuit 110 is abnormal; if the main control module 200 receives the corresponding response signal, it indicates that the working state of the Ethernet circuit 110 is normal.
[0052] The Ethernet communication module provided by the embodiment of the utility model is arranged in the electric meter, and the Ethernet communication module includes an Ethernet circuit and a signal transmission circuit. The Ethernet circuit is electrically connected to the signal transmission circuit and the main control module of the electric meter, and the signal transmission circuit is communicatively connected to the server. The main control module of the electric meter exchanges data with the server through the Ethernet circuit and the signal transmission circuit. The Ethernet circuit is used to generate a corresponding response signal and send it to the main control module when receiving a detection signal periodically sent by the main control module, so that the main control module can detect the working status of the Ethernet circuit according to whether the corresponding response signal is received after periodically sending the detection signal, so as to monitor the working status of the Ethernet communication module in real time, thereby improving the accuracy of the data received by the server.
[0053] In this embodiment, the Ethernet circuit 110 is also used to receive the first Ethernet signal sent by the server 300 through the signal transmission circuit 120, convert the first Ethernet signal into a data acquisition instruction that can be processed by the main control module 200, and send the data acquisition instruction to the main control module 200 so that the main control module 200 acquires the corresponding data according to the data acquisition instruction. The Ethernet circuit 110 is also used to receive the data sent by the main control module 200, convert the data into a second Ethernet signal, and send the second Ethernet signal to the server 300 through the signal transmission circuit 120.
[0054] In some embodiments, the first Ethernet signal may be a data acquisition instruction in an Ethernet frame format, and the Ethernet circuit 110 may convert the data acquisition instruction in the Ethernet frame format into a data acquisition instruction in an SPI data frame format, and send the data acquisition instruction to the main control module 200 so that the main control module 200 acquires corresponding data according to the data acquisition instruction. The data acquisition instruction may be an electric quantity acquisition instruction and an electricity fee acquisition instruction, etc., which are not limited here.
[0055] In some embodiments, the second Ethernet signal may be data in Ethernet frame format, and the Ethernet circuit 110 may convert the data in SPI data frame format into data in Ethernet frame format, and send the data in Ethernet frame format to the server 300 via the signal transmission circuit 120 .
[0056] In this embodiment, the electric meter is provided with the Ethernet communication module, which can interact and communicate with the server, and there is no need for people to go offline to read the electric meter, thereby reducing labor costs; the Ethernet communication module is provided in the electric meter, and there is no need for additional external power lines, communication lines and network cables, so the wiring can be reduced, and the electric meter and the server can be connected by only one network cable; when installing the electric meter provided with the Ethernet communication module, there is no need to consider reserving the installation position of the Ethernet communication module, which makes the installation of the electric meter easier.
[0057] See also Figure 2 , Figure 2 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The signal transmission circuit 120 includes a signal interface 121 and a transformer 122 , the transformer 122 is electrically connected to the Ethernet circuit 110 and the signal interface respectively, and the signal interface is in communication connection with the server 300 .
[0058] In this embodiment, the signal interface 121 is used to receive a first Ethernet signal, transmit the first Ethernet signal to the transformer 122 , and send a second Ethernet signal to the server 300 .
[0059] In some embodiments, see Figure 3 , Figure 3Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The signal interface 121 includes an RJ45 (Registered Jack 45) interface, a third resistor R3 and a fourth resistor R4, the positive data transmission port TX+ of the RJ45 interface, the negative data transmission port TX- of the RJ45 interface, the positive data reception port RX+ of the RJ45 interface and the negative data reception port RX- of the RJ45 interface are all electrically connected to the transformer 122, the first unused port NC of the RJ45 interface and the second unused port NC of the RJ45 interface are all electrically connected to one end of the third resistor R3, the third unused port NC of the RJ45 interface and the fourth unused port NC of the RJ45 interface are all electrically connected to one end of the fourth resistor R4, and the other end of the third resistor R3 and the other end of the third resistor R3 are both grounded. The RJ45 interface is connected to the server through a network cable. It should be noted that the RJ45 interface is usually used for data transmission, and the RJ45 interface is a twisted pair Ethernet port.
[0060] In this embodiment, the transformer 122 is used to isolate the Ethernet circuit 110 from the server 300, which can prevent the Ethernet circuit 110 from being disturbed when transmitting the Ethernet signal to the server 300, resulting in unstable transmission of the Ethernet signal. The transformer 122 can also be used to make the transmission distance of the first Ethernet signal and the second Ethernet signal longer.
[0061] In some embodiments, see Figure 4 , Figure 4Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The transformer 122 includes a network transformer T1, a fifth resistor R5, a sixth resistor R6, a fifth capacitor C5, a sixth capacitor C6 and a seventh capacitor C7. The first port of the network transformer T1, the third port of the network transformer T1, the sixth port of the network transformer T1 and the eighth port of the network transformer T1 are all electrically connected to the Ethernet circuit 110. The ninth port of the network transformer T1, the eleventh port of the network transformer T1, the fourteenth port of the network transformer T1 and the sixteenth port of the network transformer T1 are all electrically connected to the signal interface 121. The fifteenth port of the network transformer T1 is electrically connected to one end of the sixth resistor R6. The network transformer The tenth port of the network transformer T1 is electrically connected to one end of the fifth resistor R5, the second port of the network transformer T1 and the seventh port of the network transformer T1 are both electrically connected between one end of the fifth capacitor C5 and one end of the sixth capacitor C6, one end of the seventh capacitor C7 is electrically connected between the other end of the fifth capacitor C5 and the other end of the sixth capacitor C6, one end of the seventh capacitor C7 is electrically connected between the other end of the fifth resistor R5 and the other end of the sixth resistor R6, the other end of the fifth capacitor C5, the other end of the sixth capacitor C6, the other end of the fifth resistor R5 and the other end of the sixth resistor R6 are all grounded, and the second port of the network transformer T1 is connected to a 1.8V power supply.
[0062] See also Figure 5 , Figure 5 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The Ethernet circuit 110 includes an Ethernet conversion chip 111, and the Ethernet conversion chip 111 includes an SPI signal port, an INT signal port, and an RST signal port. The Ethernet conversion chip 111 is electrically connected to the main control module 200 through the SPI signal port, the INT signal port, and the RST signal port, and the Ethernet conversion chip 111 is electrically connected to the signal transmission circuit 120.
[0063] In this embodiment, the Ethernet conversion chip 111 is used to send the data acquisition instruction to the main control module 200 through the SPI signal port, and is also used to receive the data sent by the main control module 200 through the SPI signal port. The Ethernet conversion chip 111 is also used to receive the detection signal periodically sent by the main control module 200 through the SPI signal port, and is also used to send the response signal to the main control module 200 through the SPI signal port.
[0064] In this embodiment, the Ethernet conversion chip 111 is also used to send an interrupt signal to the main control module through the INT signal port to notify the main control module 200 that data has been received or data transmission has been completed.
[0065] In this embodiment, the Ethernet conversion chip 111 is also used to receive a reset signal sent by the main control module 200 through the RST signal port. The reset signal is generated by the main control module 200 when the main control module 200 does not receive a corresponding response signal.
[0066] In some embodiments, the Ethernet conversion chip 111 receives a first Ethernet signal sent by the server 300 through the signal transmission circuit 120, converts the first Ethernet signal into a data acquisition instruction that can be processed by the main control module 200, and sends the data acquisition instruction to the main control module 200 through the SPI signal port, so that the main control module 200 obtains the corresponding data according to the data acquisition instruction. The Ethernet conversion chip 111 receives the data sent by the main control module 200 through the SPI signal port. When the Ethernet conversion chip 111 receives the data sent by the main control module 200, the Ethernet conversion chip 111 is used to send an interrupt signal to the main control module through the INT signal port. When the Ethernet conversion chip 111 completes receiving the data sent by the main control module 200, the Ethernet conversion chip 111 sends an interrupt signal to the main control module 200 through the INT signal port again. The Ethernet conversion chip 111 converts the received data into a second Ethernet signal, and sends the second Ethernet signal to the server 300 through the signal transmission circuit 120.
[0067] In some embodiments, when the Ethernet conversion chip 111 receives a detection signal periodically sent by the main control module 200 through the SPI signal port, it generates a corresponding response signal and sends the response signal to the main control module 200 through the SPI signal port. If the main control module 200 does not receive the corresponding response signal after periodically sending the detection signal, it indicates that the working state of the Ethernet circuit 110 is abnormal, indicating that the main control module 200 needs to reset the Ethernet circuit 110. The main control module 200 generates a reset signal and sends the reset signal to the Ethernet conversion chip 111. The Ethernet conversion chip 111 receives the reset signal through the RST signal port to enable the Ethernet conversion chip 111 to work again.
[0068] See also Figure 6 , Figure 6Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The SPI signal port of the Ethernet conversion chip 111 includes a chip selection signal port SPI_CSN, a clock port SPI_CK, a data output port SPI_MISO, and a data input port SPI_MOSI, the chip selection signal port SPI_CSN, the clock port SPI_CK, the data output port SPI_MISO, and the data input port SPI_MOSI are all electrically connected to the main control module, the INT signal port INT of the Ethernet conversion chip 111 is electrically connected to the main control module 200, and the RST signal port RSTB of the Ethernet conversion chip 111 is electrically connected to the main control module 200.
[0069] In some embodiments, the Ethernet circuit further includes a crystal oscillator circuit 112, the input end of the crystal oscillator circuit 112 is electrically connected to the crystal oscillator output end X2 of the Ethernet conversion chip 111, and the output end of the crystal oscillator circuit 112 is electrically connected to the crystal oscillator input end X1 of the Ethernet conversion chip 111. The crystal oscillator circuit 112 is used to provide a clock signal for the Ethernet conversion chip 111.
[0070] In some embodiments, the crystal oscillator circuit 112 includes a crystal oscillator G1, a first capacitor C1, a second capacitor C2, and a first resistor R1. The output end of the crystal oscillator G1 is electrically connected to the crystal oscillator input end X1 of the Ethernet conversion chip 111, and the input end of the crystal oscillator G1 is electrically connected to the crystal oscillator output end X2 of the Ethernet conversion chip 111 through the first resistor R1; one end of the first capacitor C1 is electrically connected to the output end of the crystal oscillator G1, one end of the second capacitor C2 is electrically connected to the input end of the crystal oscillator G1, and the ground end of the crystal oscillator G1, the other end of the first capacitor C1, and the other end of the second capacitor C2 are all grounded. It should be noted that the crystal oscillator G1 is used to provide a clock signal to the Ethernet conversion chip; the first resistor R1 limits the driving size of the crystal oscillator G1 to prevent the crystal oscillator G1 from being overdriven, resulting in aging or early failure of the crystal oscillator G1; the first capacitor C1 and the second capacitor C2 are used to adjust the frequency of the crystal oscillator G1.
[0071] In some embodiments, the Ethernet circuit 110 includes a second resistor R2, a third capacitor C3, and a fourth capacitor C4, and the RST signal port RSTB of the Ethernet conversion chip 111 is electrically connected to one end of the second resistor R2, one end of the third capacitor C3, and one end of the fourth capacitor C4, respectively, and the other end of the second resistor R2 is electrically connected to the main control module 200, and the other end of the third capacitor C3 and the other end of the fourth capacitor C4 are both grounded. It should be noted that the third capacitor C3 and the fourth capacitor C4 are used to eliminate interference with the reset signal.
[0072] In some embodiments, the Ethernet circuit 110 includes a seventh resistor R7, an eighth resistor R8, a ninth resistor R9, a tenth resistor R10, an eighth capacitor C8, and a ninth capacitor C9, the positive transmission port TX+ of the Ethernet conversion chip 111 is electrically connected to one end of the seventh resistor R7, the negative transmission port TX- of the Ethernet conversion chip 111 is electrically connected to one end of the eighth resistor R8, one end of the eighth capacitor C8 is electrically connected between the other end of the seventh resistor R7 and the other end of the eighth resistor R8, the other end of the eighth capacitor C8 is grounded, the positive receiving port RX+ of the Ethernet conversion chip 111 is electrically connected to one end of the tenth resistor R10, the negative receiving port RX- of the Ethernet conversion chip 111 is electrically connected to one end of the ninth resistor R9, one end of the ninth capacitor C9 is electrically connected between the other end of the ninth resistor R9 and the other end of the tenth resistor R10, and the other end of the ninth capacitor C9 is grounded. It should be noted that the seventh resistor R7, the eighth resistor R8, the ninth resistor R9, and the tenth resistor R10 are all differential signal matching resistors, and the eighth capacitor C8 and the ninth capacitor C9 are used for 100 ohm impedance matching.
[0073] See also Figure 7 , Figure 7 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The Ethernet communication module 100 also includes an isolation circuit, one end of the isolation circuit 130 is electrically connected to the SPI signal port, INT signal port and RST signal port of the Ethernet conversion chip, and the other end of the isolation circuit 130 is electrically connected to the main control module 200.
[0074] In this embodiment, the isolation circuit 130 is used to electrically isolate the Ethernet conversion chip 111 from the main control module 200 .
[0075] See also Figure 8 , Figure 8 Another schematic diagram of the Ethernet communication module provided by the embodiment of the utility model is shown. The isolation circuit 130 includes a capacitive coupling circuit 131, a first optical coupling circuit 132 and a second optical coupling circuit 133, the capacitive coupling circuit 131 is electrically connected between the main control module 200 and the SPI signal port of the Ethernet conversion chip 111, the first optical coupling circuit 132 is electrically connected between the main control module 200 and the INT signal port of the Ethernet conversion chip 111, and the second optical coupling circuit 133 is electrically connected between the main control module 200 and the RST signal port of the Ethernet conversion chip 111.
[0076] In this embodiment, the capacitive coupling circuit 131 is used to electrically isolate the SPI signal port of the Ethernet conversion chip 111 from the main control module 200; the first optocoupler circuit 132 is used to electrically isolate the INT signal port of the Ethernet conversion chip 111 from the main control module 200; the second optocoupler circuit is used to electrically isolate the RST signal port of the Ethernet conversion chip 111 from the main control module 200.
[0077] In some embodiments, the capacitive coupling circuit 131 may include a capacitive coupling chip, and the first input terminal INA of the capacitive coupling chip, the second input terminal INB of the capacitive coupling chip, the third input terminal INB of the capacitive coupling chip, and the output terminal OUTD of the capacitive coupling chip are all electrically connected to the main control module 200. The first optical coupling circuit 132 may include an optical coupling chip 1, and the second port of the optical coupling chip 1 is electrically connected to the main control module 200. The second optical coupling circuit 133 may include an optical coupling chip 2, and the fourth port of the optical coupling chip 2 is electrically connected to the main control module 200.
[0078] It should be noted that a capacitive coupler is a device that uses the modulation and demodulation principle of high-frequency signals to achieve electrical isolation. The capacitive coupler modulates the electrical signal at the input end through a capacitor, and then demodulates the modulated signal back to an electrical signal through another capacitor. This transmission method achieves electrical isolation between the SPI signal port of the Ethernet conversion chip 111 and the main control module 200. An optocoupler is a device that uses the optical-electrical-optical principle to achieve electrical isolation. The input end of the optocoupler converts the electrical signal into an optical signal and transmits it to the output end of the optocoupler through an optical transmission part. The output end of the optocoupler then converts the optical signal back to an electrical signal. This transmission method achieves electrical isolation between the INT signal port of the Ethernet conversion chip 111 and the main control module 200, and electrical isolation between the RST signal port of the Ethernet conversion chip 111 and the main control module 200.
[0079] The Ethernet communication module provided by the embodiment of the utility model is arranged in the electric meter, and the Ethernet communication module includes an Ethernet circuit and a signal transmission circuit. The Ethernet circuit is electrically connected to the signal transmission circuit and the main control module of the electric meter, and the signal transmission circuit is communicatively connected to the server. The main control module of the electric meter exchanges data with the server through the Ethernet circuit and the signal transmission circuit. The Ethernet circuit is used to generate a corresponding response signal and send it to the main control module when receiving a detection signal periodically sent by the main control module, so that the main control module can detect the working state of the Ethernet circuit according to whether the corresponding response signal is received after periodically sending the detection signal, so that the working state of the Ethernet communication module can be monitored in real time, and the working state of the Ethernet communication module can be found to be abnormal in time and the Ethernet communication module can be repaired, thereby improving the accuracy of the data received by the server.
[0080] The embodiment of the utility model further provides an electric meter, which includes a main control module 200 and the above-mentioned Ethernet communication module 100 .
[0081] In some embodiments, the main control module 200 may include a main control chip, which may include an SPI signal port, an INT signal port, and an RST signal port. The SPI signal port, INT signal port, and RST signal port of the main control chip are electrically connected to the SPI signal port, INT signal port, and RST signal port of the Ethernet conversion chip 111, respectively.
[0082] Although the utility model is disclosed as above, the utility model is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the utility model. Therefore, the protection scope of the utility model shall be subject to the scope defined by the claims.
Claims
1. An Ethernet communication module, characterized in that: Arranged in an electric meter, the Ethernet communication module (100) comprises an Ethernet circuit (110) and a signal transmission circuit (120); the Ethernet circuit (110) is electrically connected to the signal transmission circuit (120) and a main control module (200) of the electric meter, and the signal transmission circuit (120) is communicatively connected to a server (300); the main control module (200) of the electric meter exchanges data with the server (300) via the Ethernet circuit (110) and the signal transmission circuit (120); The Ethernet circuit (110) is used to generate a corresponding response signal and send it to the main control module (200) when receiving a detection signal periodically sent by the main control module (200), so that the main control module (200) can detect the working state of the Ethernet circuit (110) according to whether the corresponding response signal is received after periodically sending the detection signal.
2. The Ethernet communication module according to claim 1, characterized in that: The Ethernet circuit (110) is further used to receive a first Ethernet signal sent by the server (300) through the signal transmission circuit (120), convert the first Ethernet signal into a data acquisition instruction that can be processed by the main control module (200), and send the data acquisition instruction to the main control module (200) so that the main control module (200) acquires corresponding data according to the data acquisition instruction; The Ethernet circuit (110) is also used to receive the data sent by the main control module (200), convert the data into a second Ethernet signal, and send the second Ethernet signal to the server (300) through the signal transmission circuit (120).
3. The Ethernet communication module according to claim 2, characterized in that: The Ethernet circuit (110) comprises an Ethernet conversion chip (111), the Ethernet conversion chip (111) comprises an SPI signal port, an INT signal port and an RST signal port, and the Ethernet conversion chip (111) is electrically connected to the main control module (200) via the SPI signal port, the INT signal port and the RST signal port; The Ethernet conversion chip (111) is used to send the data acquisition instruction to the main control module (200) through the SPI signal port, and is also used to receive the data sent by the main control module (200) through the SPI signal port; The Ethernet conversion chip (111) is further used for receiving the detection signal periodically sent by the main control module (200) through the SPI signal port, and is further used for sending the response signal to the main control module (200) through the SPI signal port; The Ethernet conversion chip (111) is also used to send an interrupt signal to the main control module (200) through the INT signal port to notify the main control module (200) that the data has been received or the sending of the data has been completed; The Ethernet conversion chip (111) is further used for receiving a reset signal sent by the main control module (200) through the RST signal port; the reset signal is generated by the main control module (200) when the corresponding response signal is not received.
4. The Ethernet communication module according to claim 3, characterized in that: The Ethernet communication module (100) further comprises an isolation circuit (130), one end of the isolation circuit (130) being electrically connected to the SPI signal port, the INT signal port and the RST signal port of the Ethernet conversion chip (111), and the other end of the isolation circuit (130) being electrically connected to the main control module (200); The isolation circuit (130) is used to electrically isolate the Ethernet conversion chip (111) from the main control module (200).
5. The Ethernet communication module according to claim 4, characterized in that: The isolation circuit (130) comprises a capacitive coupling circuit (131), a first optical coupling circuit (132) and a second optical coupling circuit (133); the capacitive coupling circuit (131) is electrically connected between the main control module (200) and the SPI signal port of the Ethernet conversion chip (111); the first optical coupling circuit (132) is electrically connected between the main control module (200) and the INT signal port of the Ethernet conversion chip (111); and the second optical coupling circuit (133) is electrically connected between the main control module (200) and the RST signal port of the Ethernet conversion chip (111); The capacitive coupling circuit (131) is used to electrically isolate the SPI signal port of the Ethernet conversion chip (111) from the main control module (200); The first optical coupling circuit (132) is used to electrically isolate the INT signal port of the Ethernet conversion chip (111) from the main control module (200); The second optical coupling circuit (133) is used to electrically isolate the RST signal port of the Ethernet conversion chip (111) from the main control module (200).
6. The Ethernet communication module according to claim 2, characterized in that: The signal transmission circuit (120) comprises a signal interface (121) and a transformer (122); the transformer (122) is electrically connected to the Ethernet circuit (110) and the signal interface (121) respectively, and the signal interface (121) is communicatively connected to the server (300); The signal interface (121) is used to receive the first Ethernet signal and transmit the first Ethernet signal to the transformer (122); and is also used to send the second Ethernet signal to the server (300); The transformer (122) is used to isolate the Ethernet circuit (110) from the server (300).
7. The Ethernet communication module according to claim 3, characterized in that: The Ethernet circuit (110) further comprises a crystal oscillator circuit (112), wherein an input end of the crystal oscillator circuit (112) is electrically connected to an output end of a crystal oscillator (G1) of the Ethernet conversion chip (111), and an output end of the crystal oscillator circuit (112) is electrically connected to an input end of the crystal oscillator (G1) of the Ethernet conversion chip (111); The crystal oscillator circuit (112) is used to provide a clock signal for the Ethernet conversion chip (111).
8. The Ethernet communication module according to claim 7, characterized in that: The crystal oscillator circuit (112) comprises a crystal oscillator (G1), a first capacitor (C1), a second capacitor (C2) and a first resistor (R1); the output end of the crystal oscillator (G1) is electrically connected to the input end of the crystal oscillator (G1) of the Ethernet conversion chip (111), and the input end of the crystal oscillator (G1) is electrically connected to the output end of the crystal oscillator (G1) of the Ethernet conversion chip (111) through the first resistor (R1); one end of the first capacitor (C1) is electrically connected to the output end of the crystal oscillator (G1), one end of the second capacitor (C2) is electrically connected to the input end of the crystal oscillator (G1), and the ground end of the crystal oscillator (G1), the other end of the first capacitor (C1) and the other end of the second capacitor (C2) are all grounded.
9. The Ethernet communication module according to claim 3, characterized in that: The Ethernet circuit (110) comprises a second resistor (R2), a third capacitor (C3) and a fourth capacitor (C4); an RST signal port of the Ethernet conversion chip (111) is electrically connected to one end of the second resistor (R2), one end of the third capacitor (C3) and one end of the fourth capacitor (C4), respectively; the other end of the second resistor (R2) is electrically connected to the main control module (200); the other end of the third capacitor (C3) and the other end of the fourth capacitor (C4) are both grounded.
10. An electric meter, characterized in that: The electric meter comprises a main control module (200) and an Ethernet communication module (100) according to any one of claims 1 to 9.
