Communication system based on optical coupler isolation circuit

By using the optocoupler module in the optocoupler isolation circuit communication system to control the energy supply of the communication module according to the signal status, the problems of high power consumption and low transmission rate in the gas meter are solved, and low power consumption and efficient data transmission are achieved.

CN118573173APending Publication Date: 2024-08-30ZHEJIANG WEIXING INTELLIGENT METER STOCK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410469771.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-18
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

The existing optocoupler communication system has high power consumption in gas meter applications and cannot meet the endurance requirements of alkaline battery power supply. The low transmission rate causes data transmission to take too long.

Method used

A communication system based on an optocoupler isolation circuit is designed. The optocoupler module selects and turns on the corresponding optocoupler circuit according to the received data transmission signal or transmission termination signal, and controls the energy supply of the high-power communication module. Only when Provide energy when data needs to be transmitted to reduce unnecessary current consumption.

Benefits of technology

It effectively controls the power consumption of the communication system, reduces resource consumption and operating costs, improves the efficiency of data transmission, and meets the low power consumption requirements of gas meters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573173A
    Figure CN118573173A
Patent Text Reader

Abstract

The embodiment of the invention discloses a communication system based on an optocoupler isolation circuit, and the system comprises an optocoupler module which comprises a first optocoupler circuit and a second optocoupler circuit, the optocoupler module is connected with a first pin of a switch module through the first optocoupler circuit, is connected with a second pin of the switch module through the second optocoupler circuit, and is connected with a second pin of the switch module through the second optocoupler circuit; the optocoupler module is used for responding to a received data transmission signal, conducting the first optocoupler circuit and sending an energy supply signal to the switch module; in response to the received transmission termination signal, the second optocoupler circuit is switched on, and an energy stop signal is sent to the switch module; the switch module is connected with the communication module and is used for outputting a high level to the communication module in response to the energy supply signal received by the first pin; and in response to an energy stopping signal received by the second pin, outputting a low level to the communication module, the communication module is used for transmitting and processing data under the condition that the high level output by the switch module is received; and under the condition that the low level output by the switch module is received, the working is stopped.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] One or more embodiments of the present specification relate to the field of communication technology, and in particular to a communication system based on an optocoupler isolation circuit. Background Art

[0002] Ultrasonic gas meter is a meter that uses ultrasonic technology to measure gas consumption. It needs to amplify the ultrasonic analog signal when working. In actual situations, the internal analog signal of the ultrasonic gas meter is easily interfered by the surrounding environment. When the metering board transmits data (signal) to the external main control board, the serial port is required. At this time, the external main control board and space electromagnetic interference can also affect the analog signal of the metering board through the physical connection line.

[0003] Optocoupler isolation circuit is a circuit that uses optical couplers to achieve electrical isolation between input and output signals. Optocoupler isolation circuit can effectively prevent external interference from affecting the operation of gas meters. However, the communication rate of ordinary optical couplers is low, generally only 240byte / s. When 50byte data needs to be transmitted, it will take 208ms, which is too long.

[0004] In the related art, the above problems are solved by high-speed optocouplers. For example, the high-speed optocoupler TLP2362 can provide a maximum of 15MBd, which reduces the time consumption when using TLP2362 for data transmission. However, the current provided by the chip is 5mA, which consumes a lot of power. Alkaline batteries are generally used in the gas meter field, which need to be guaranteed for more than one year. The whole machine needs to maintain a current of less than 50uA. Therefore, it is obviously not enough for TLP2362 to work all the time, and the circuit needs to be optimized. Summary of the invention

[0005] The embodiments of this specification provide a communication system and method based on an optical coupler isolation circuit, and the technical solution thereof is as follows: In a first aspect, an embodiment of the present specification provides a communication system based on an optical coupling isolation circuit, including: An optocoupler module, comprising a first optocoupler circuit and a second optocoupler circuit, wherein the optocoupler module is connected to a first pin of a switch module via the first optocoupler circuit, and is connected to a second pin of the switch module via the second optocoupler circuit, wherein the optocoupler module is used to, in response to a received data transmission signal, turn on the first optocoupler circuit and send an energy supply signal to the switch module; and, in response to a received transmission termination signal, turn on the second optocoupler circuit and send an energy stop signal to the switch module; The switch module is connected to the communication module, and is used to output a high level to the communication module in response to the first pin receiving an energy supply signal; and to output a low level to the communication module in response to the second pin receiving an energy stop signal; The communication module is used to transmit and process data when receiving a high level output by the switch module; and to stop working when receiving a low level output by the switch module.

[0006] In a second aspect, an embodiment of the present specification provides an ultrasonic gas meter, the ultrasonic gas meter comprising a metering board, the metering board adopts the communication system based on the optical coupling isolation circuit described in claims 1-8.

[0007] In a third aspect, an embodiment of this specification provides an electronic device that uses the ultrasonic gas meter as described in claim 9.

[0008] The beneficial effects brought by the technical solutions provided by some embodiments of this specification include at least: In a communication system based on an optocoupler isolation circuit, an optocoupler module, a switch module, and a communication module are included. The optocoupler module can select to turn on the first optocoupler circuit or the second optocoupler circuit based on the received data transmission signal or the transmission termination signal, and then send a corresponding control signal to the switch module to control the energy supply of the high-power communication module, so that when data needs to be transmitted, the communication module is powered and performs data transmission processing, and when data does not need to be transmitted, the communication module is not powered and stops working. Based on this, the power consumption of the communication system can be effectively controlled, reducing resource consumption and reducing operating costs. BRIEF DESCRIPTION OF THE DRAWINGS

[0009] In order to more clearly illustrate the technical solutions in the embodiments of this specification, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0010] Figure 1 It is a schematic diagram of a communication system based on an optocoupler isolation circuit provided in an embodiment of this specification.

[0011] Figure 2 It is a schematic diagram of another communication system based on an optocoupler isolation circuit provided in an embodiment of this specification.

[0012] Figure 3 It is a schematic diagram of an ultrasonic gas meter provided in an embodiment of this specification.

[0013] Figure 4It is a structural schematic diagram of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0014] The technical solutions in the embodiments of this specification will be described clearly and completely below in conjunction with the drawings in the embodiments of this specification.

[0015] The terms "first", "second", etc. in the description and claims of this specification and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices.

[0016] Ultrasonic gas meter is a meter that uses ultrasonic technology to measure gas consumption. It needs to amplify the ultrasonic analog signal when working. In actual situations, the internal analog signal of the ultrasonic gas meter is easily interfered by the surrounding environment. When the metering board transmits data (signal) to the external main control board, the serial port is required. At this time, the external main control board and space electromagnetic interference can also affect the analog signal of the metering board through the physical connection line. In this manual, the transmitted data and signal belong to the same concept.

[0017] The optocoupler isolation circuit is a circuit that uses an optocoupler to achieve electrical isolation between input and output signals. An optocoupler usually consists of a light-emitting diode (LED) and a phototransistor (or photoresistor, photosensitive capacitor, etc.), which are encapsulated in the same housing or connected by optical fiber. When there is a signal change at the input end of the optocoupler isolation circuit, the light-emitting diode is turned on, and current passes through the LED, causing it to emit light. The light signal is transmitted to the phototransistor through the optical fiber, and the photosensitive element is turned on or off according to the change in light intensity, thereby generating a corresponding electrical signal at the output end of the optocoupler isolation circuit. Since the transmission of optical signals is not affected by electromagnetic fields, the optocoupler isolation circuit has a high anti-interference ability. The optocoupler isolation circuit can effectively avoid the influence of external interference on the operation of the gas meter.

[0018] However, the communication rate of ordinary optocouplers is low, generally only 240 bytes / s. When 50 bytes of data need to be transmitted, it will take 208ms, which is too long.

[0019] In the related art, the above problems are solved by high-speed optocouplers. For example: the high-speed optocoupler TLP2362 can provide a maximum of 15MBd, which reduces the time consumption when using TLP2362 for data transmission. However, the current provided for the operation of the chip is 5mA, which consumes a lot of power and is costly. Of course, a set of optocouplers can also be added to the gas meter to control TLP2362 to reduce power consumption. However, this method requires adding an IO (input and output) port to the gas meter, so that sending and receiving will require adding 2 IO ports. For gas meters that need to open holes in the steel shell, one more signal line will occupy more space for the plug.

[0020] In order to solve the deficiencies in the related art, this specification proposes a communication system based on an optical coupling isolation circuit.

[0021] See also Figure 1 , Figure 1 FIG. 1 is a schematic diagram of a communication system based on an optical coupling isolation circuit provided in an embodiment of the present specification. Figure 1 As shown, the communication system based on the optocoupler isolation circuit includes: an optocoupler module 11 , a switch module 12 , and a communication module 13 .

[0022] The optocoupler module 11 includes a first optocoupler circuit 111 and a second optocoupler circuit 112. The first optocoupler circuit 111 and the second optocoupler circuit 112 are both optocoupler isolation circuits. The optocoupler module 11 is connected to a first pin 121 of a switch module 12 via the first optocoupler circuit 111, and is connected to a second pin 122 of the switch module 12 via the second optocoupler circuit 112.

[0023] The optocoupler module 11 is used to turn on the first optocoupler circuit 111 in response to a received data transmission signal and send a power supply signal to the switch module 12; and, in response to a received transmission termination signal, turn on the second optocoupler circuit 112 and send a power stop signal to the switch module 12.

[0024] The switch module 12 is connected to the communication module 13, and is used to output a high level to the communication module 13 in response to the first pin 121 receiving an energy supply signal; and to output a low level to the communication module 13 in response to the second pin 122 receiving an energy stop signal; The communication module 13 is used to transmit and process data when receiving a high level output by the switch module 12 ; and stop working when receiving a low level output by the switch module 12 .

[0025] In this embodiment, in the communication system based on the optocoupler isolation circuit, an optocoupler module, a switch module, and a communication module are included. The optocoupler module can select to turn on the first optocoupler circuit or the second optocoupler circuit based on the received data transmission signal or the transmission termination signal, and then send a corresponding control signal to the switch module to control the energy supply of the high-power communication module, so that when data needs to be transmitted, the communication module is powered and performs data transmission processing, and when data does not need to be transmitted, the communication module is not powered and stops working. Based on this, the power consumption of the communication system can be effectively controlled, resource consumption is reduced, and operating costs are reduced.

[0026] For specific circuit distribution, please refer to Figure 2 , Figure 2 A schematic diagram of another communication system based on an optical coupling isolation circuit provided in an embodiment of this specification is shown.

[0027] like Figure 2 As shown, the communication system includes two circuits, a serial port transmitting circuit from TXD1 to RXD2 and a serial port receiving circuit from TXD2 to RXD1. TXD represents a signal from a transmitting device to a receiving device for transmitting data. In serial communication, TXD is a data transmitting line in serial communication, which carries the data signal to be transmitted; RXD represents a signal from a receiving device to a transmitting device for receiving data. In serial communication, RXD is a data receiving line, which receives the data signal from TXD.

[0028] U2, U3, U6, and U8 are ordinary optocouplers, U1 and U7 are monostable multivibrators, and U5 and U9 are high-speed optocoupler chips, which mainly realize high-speed data communication. Taking the serial port transmission circuit as an example, U2 and U3 correspond to the second optocoupler circuit and the first optocoupler circuit respectively, U1 corresponds to the switch module, and U5 corresponds to the communication module.

[0029] Specifically, the optocoupler module also includes a first resistor-capacitor circuit and a first power supply, the first resistor-capacitor circuit is respectively connected to the first output end of the first optocoupler circuit and the first input end of the second optocoupler circuit, and the first power supply is respectively connected to the first input end of the first optocoupler circuit and the first output end of the second optocoupler circuit; when the optocoupler module receives the data transmission signal (changed from 1 to 0), the first input end and the first output end of the first optocoupler circuit form a voltage difference to turn on the first optocoupler circuit; when the optocoupler module receives the transmission termination signal (changed from 0 to 1), the first input end and the first output end of the second optocoupler circuit form a voltage difference to turn on the second optocoupler circuit.

[0030] like Figure 2As shown, the first RC circuit is composed of a resistor R4 and a capacitor C1, and the circuit is connected to U2 (the second optocoupler circuit) and U3 (the first optocoupler circuit) at one end close to the capacitor C1. Among them, U2 is configured with four pins, namely: the first input pin 1 and the first output pin 2 at one end of the optical transmitter, and pins 3 and 4 at one end of the optical receiver. U3 is also configured with four pins, namely: the first input pin 1 and the first output pin 2 at one end of the optical transmitter, and pins 3 and 4 at one end of the optical receiver.

[0031] The capacitor C1 is connected to the pin 1 (first input terminal) of U2 and the pin 2 (first output terminal) of U3 respectively. The first power source VCC is connected to the pin 2 (first output terminal) of U2 and the pin 1 (first input terminal) of U3 respectively.

[0032] In one embodiment, the byte start bit of the data processed by the communication module is 0, and the byte end bit is 1.

[0033] When there is no data to be transmitted in the communication system, TXD1 is 1. When there is data to be transmitted, the first bit of each byte of the data to be transmitted is 0. Therefore, when TXD1 changes from 1 to 0, the voltage of pin 1 of U3 is VCC and the voltage of pin 2 of U3 is 0, forming a voltage difference, which makes U3 turn on. Pin 4 of U3 is connected to pin 1 (first pin) of U1 (switch module), and pin 5 of U1 (switch module) is connected to U5 (communication module). U3 can send an energy supply signal to U1, that is, the voltage of pin 1 of U1 changes from VDD to 0. Based on the energy supply signal, U1 outputs a high level to U5 to enable U1 to work normally and realize data transmission and processing.

[0034] Furthermore, the RC circuit includes a first capacitor C1 and an adjustable resistor R4, and the adjustable resistor R4 is used to adjust the charging speed of the first capacitor C1. When the communication system transmits data, the voltage level at both ends of C1 will gradually charge to VCC, and adjusting R4 can adjust the charging rate.

[0035] When data transmission is completed, TXD1 will change from 0 to 1. Since the voltage across C1 is VCC at this time, the voltage of U2's pin 1 will instantly rise to 2VCC, while the voltage of U2's pin 2 is still at VCC. The voltage difference between U2's pins 1 and 2 is VCC, which turns on the second optocoupler circuit represented by U2, that is, U2's pins 3 and 4 are turned on, and U1's pin 1 is pulled up to VDD. At this time, U1's pin 5 outputs a low level, causing U5 to stop working, thereby reducing the power consumption of the communication module.

[0036] In one embodiment, the switch module includes a monostable multivibrator, and the oscillator is configured with the first pin and the second pin. The monostable multivibrator can generate a series of oscillation pulses, and it mainly consists of an amplifier, a feedback network and a trigger. When a trigger signal is input, the circuit switches from one stable state to another stable state and generates a series of oscillation pulses. When the trigger signal disappears, the circuit returns to the original stable state. The monostable multivibrator can be used in various applications, such as signal modulation, pulse generation, timing, etc. Its main advantages are simplicity, stability and easy adjustment.

[0037] Furthermore, the switch module also includes a second resistor-capacitor circuit, which is connected to the third pin and the fourth pin of the oscillator and is used to adjust the duration of the switch module outputting a high level after receiving the functional signal.

[0038] The second capacitor resistor is composed of a resistor R2 and a capacitor C2.

[0039] When the communication system is transmitting data, the data byte must contain a start bit 0 and an end bit 1. Whenever U1 receives a start bit 0, U1's 5th pin will continue to output a high level for R2*C2 time, until TXD1 completes sending the last byte, U1's 1st pin no longer receives a falling edge (0), and U1's 5th pin will output 0 after the delay time tw (the value of tw can be calculated based on R2 and C2, for example, R2*C2) after TXD1 sends the last byte. At this time, U5's power supply voltage is 0 and stops working.

[0040] In one embodiment, the communication module includes a high-speed optocoupler chip, and the high-speed optocoupler chip is configured with a power supply pin connected to the switch module and a data receiving pin for receiving data.

[0041] High-speed Optocoupler Chip is a semiconductor device used for conversion between electrical signals and optical signals. It usually consists of a light-emitting diode (LED) and a photodiode (Photodiode), which are packaged in the same chip to form an optically isolated channel. When the voltage at the input end (light-emitting diode) changes, the optocoupler chip will transmit this change to the output end (photodiode) through the optical path, thereby achieving signal transmission and isolation.

[0042] The main features of high-speed optocoupler chips include: high-speed response: high-speed optocoupler chips can process high-frequency signals and are suitable for high-speed data communication and analog signal transmission; signal isolation: because the optocoupler chip uses optical isolation, it can provide electrical isolation between input and output, preventing noise and interference from being transmitted from one circuit to another, while protecting user and equipment safety; anti-interference: optocoupler chips are not affected by electromagnetic interference (EMI), so they are particularly suitable for occasions with complex electromagnetic environments; miniaturization: optocoupler chips are usually small in size and easy to integrate into various electronic devices; reliability: optocoupler chips have a long service life and good temperature stability.

[0043] High-speed optocoupler chips are widely used in modern electronic systems, such as in high-speed data transmission, power electronics, industrial control, automotive electronics, and medical equipment. They play an important role in improving system performance, improving safety, and reducing electromagnetic interference. With the development of semiconductor technology, the performance and reliability of high-speed optocoupler chips are constantly improving. Therefore, this embodiment realizes data transmission and processing through high-speed optocoupler chips.

[0044] In one embodiment, the communication system has at least two communication circuits, each of which includes the optical coupling module, the switch module and the communication module, and different communication circuits communicate with other communication circuits via the communication modules included in them.

[0045] like Figure 2 As shown, the communication system includes a serial port transmission circuit from TXD1 to RXD2 and a serial port receiving circuit from TXD2 to RXD1, and the two circuits communicate with each other through U5 and U9. Of course, it does not mean that U5 can only send data and U9 can only receive data. U5 and U9 can both be the sender and receiver of data.

[0046] This specification also proposes an ultrasonic gas meter using the aforementioned communication system based on the optical coupling isolation circuit. Figure 3 As shown, the ultrasonic gas meter includes a metering board 31, and the metering board 31 is configured with the aforementioned communication system based on the optical coupling isolation circuit, so that the ultrasonic gas meter can perform data communication based on the communication system.

[0047] In this embodiment, in the communication system based on the optocoupler isolation circuit, an optocoupler module, a switch module, and a communication module are included. The optocoupler module can select to turn on the first optocoupler circuit or the second optocoupler circuit based on the received data transmission signal or the transmission termination signal, and then send a corresponding control signal to the switch module to control the energy supply of the high-power communication module, so that when data needs to be transmitted, the communication module is powered and performs data transmission processing, and when data does not need to be transmitted, the communication module is not powered and stops working. Based on this, the power consumption of the communication system can be effectively controlled, resource consumption is reduced, and operating costs are reduced.

[0048] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the embodiment of the adapter device of the power adapter, since it is basically similar to the embodiment of the communication system based on the optical coupling isolation circuit, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0049] See also Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification is shown.

[0050] like Figure 4 As shown, the electronic device 400 may include: at least one processor 401 , at least one network interface 404 , a user interface 403 , a memory 405 , an ultrasonic gas meter 406 , and at least one communication bus 402 .

[0051] The communication bus 402 may be used to realize the connection and communication among the above-mentioned components.

[0052] The user interface 403 may include buttons, and the optional user interface may also include a standard wired interface or a wireless interface.

[0053] The network interface 404 may include, but is not limited to, a Bluetooth module, an NFC module, a Wi-Fi module, etc.

[0054] Among them, the processor 401 may include one or more processing cores. The processor 401 uses various interfaces and lines to connect the various parts of the entire electronic device 400, and executes various functions and processes data of the electronic device 400 by running or executing instructions, programs, code sets or instruction sets stored in the memory 405, and calling data stored in the memory 405. Optionally, the processor 401 can be implemented in at least one hardware form of DSP, FPGA, and PLA. The processor 401 can integrate one or a combination of CPU, GPU, modem, etc. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 401, and it can be implemented separately through a chip.

[0055] Among them, the memory 405 may include RAM or ROM. Optionally, the memory 405 includes a non-transitory computer-readable medium. The memory 405 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 405 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 405 may also be at least one storage device located away from the aforementioned processor 401. The memory 405 as a computer storage medium may include an operating system, a network communication module, a user interface module and corresponding applications. The processor 401 may be used to call the application stored in the memory 405.

[0056] Among them, ultrasonic gas meter 406 and Figure 3 The ultrasonic gas meter 30 shown is similar and will not be described in detail here.

[0057] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of this specification is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted through the computer-readable storage medium. The computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state drive (SSD)).

[0058] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The aforementioned storage medium includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes. In the absence of conflict, the technical features in this embodiment and the implementation scheme can be combined arbitrarily.

[0059] The embodiments described above are merely preferred embodiments of this specification and are not intended to limit the scope of this specification. Without departing from the design spirit of this specification, various modifications and improvements made to the technical solutions of this specification by ordinary technicians in this field should fall within the scope of protection determined by the claims of this specification.

Claims

1. A communication system based on an optical coupler isolation circuit, comprising: An optocoupler module, comprising a first optocoupler circuit and a second optocoupler circuit, wherein the optocoupler module is connected to a first pin of a switch module via the first optocoupler circuit, and is connected to a second pin of the switch module via the second optocoupler circuit, wherein the optocoupler module is used to, in response to a received data transmission signal, turn on the first optocoupler circuit and send an energy supply signal to the switch module; and, in response to a received transmission termination signal, turn on the second optocoupler circuit and send an energy stop signal to the switch module; The switch module is connected to the communication module, and is used to output a high level to the communication module in response to the first pin receiving an energy supply signal; and to output a low level to the communication module in response to the second pin receiving an energy stop signal; The communication module is used to transmit and process data when receiving a high level output by the switch module; and to stop working when receiving a low level output by the switch module.

2. According to the communication system based on the optical coupling isolation circuit of claim 1, the optical coupling module further comprises a first resistor-capacitor circuit and a first power supply, the first resistor-capacitor circuit is respectively connected to the first output end of the first optical coupling circuit and the first input end of the second optical coupling circuit, and the first power supply is respectively connected to the first input end of the first optical coupling circuit and the first output end of the second optical coupling circuit; When the optical coupling module receives the data transmission signal, a voltage difference is formed between the first input terminal and the first output terminal of the first optical coupling circuit, so that the first optical coupling circuit is turned on; When the optical coupling module receives the transmission termination signal, a voltage difference is formed between the first input terminal and the first output terminal of the second optical coupling circuit, so that the second optical coupling circuit is turned on.

3. According to the communication system based on the optocoupler isolation circuit of claim 2, the resistor-capacitor circuit comprises a first capacitor and an adjustable resistor, and the adjustable resistor is used to adjust the charging speed of the first capacitor.

4. According to the communication system based on the optocoupler isolation circuit of claim 1, the switch module comprises a monostable multivibrator, and the oscillator is configured with the first pin and the second pin.

5. According to the communication system based on the optocoupler isolation circuit of claim 4, the switch module also includes a second resistor-capacitor circuit, which is connected to the third pin and the fourth pin of the oscillator and is used to adjust the duration of the switch module outputting a high level after receiving the functional signal.

6. According to a communication system based on an optocoupler isolation circuit as described in claim 1, the communication module includes a high-speed optocoupler chip, and the high-speed optocoupler chip is configured with a power supply pin connected to the switch module and a data receiving pin for receiving data.

7. According to claim 1, a communication system based on an optocoupler isolation circuit, the communication system comprises at least two communication circuits, each communication circuit comprises the optocoupler module, the switch module and the communication module, and different communication circuits communicate with other communication circuits through the communication modules they contain. 8 . According to the communication system based on the optocoupler isolation circuit of claim 1 , the byte start bit of the data processed by the communication module is 0, and the byte end bit is 1.

9. An ultrasonic gas meter, comprising a metering board, wherein the metering board adopts the communication system based on the optical coupling isolation circuit according to claims 1-8.

10. An electronic device using the ultrasonic gas meter according to claim 9.