The invention relates to the technical field of electric meter
infrared communication, in particular to a circuit for realizing two-path
infrared self-matching
software and hardware communication, which comprises: A, a CPU (
Central Processing Unit) adopting ESP32-S3,
multiplexing the CPU into a UART (Universal Asynchronous
Receiver /
Transmitter) interface through two paths of GPIOs (
General Purpose Input / Output), driving PORT-X and PORT-Y
infrared links, and configuring at least two paths of GPIOs as link enabling control ends; according to the invention, through the design of two-way
infrared communication, transverse acquisition communication and longitudinal acquisition communication technologies are realized, more communication selectivity requirements can be realized in different environments, and through the design of
adaptive software and hardware communication, transverse acquisition communication and longitudinal acquisition communication technologies can be realized. According to the method and the device, fitting and self-adaptive communication with an electric meter channel port can be realized,
firmware does not need to be updated back and forth, the maintenance cost of a user is greatly reduced, non-filtering communication in a conventional design is replaced by using an
infrared communication filtering technology, and the communication reliability and the communication stability of a product are both improved.