The invention relates to a
data acquisition board supporting multi-protocol interface
dynamic switching and a configuration method thereof. The acquisition board comprises a
microprocessor module, an acquisition interface module and a
software system, wherein the acquisition interface module consists of a GPIO (
General Purpose Input / Output) port of the
microprocessor module and a
peripheral circuit. A plurality of GPIO (
General Purpose Input / Output) ports of the acquisition interface module can be configured into a target port group, electrical characteristics (such as level conversion and pull-up resistance) are adjusted through a
peripheral circuit, and protocols such as UART (Universal Asynchronous
Receiver /
Transmitter), IIC (Inter-
Integrated Circuit) and SPI (Serial
Peripheral Interface) are A
software system analyzes a configuration command, a GPIO port is dynamically recombined into a new target port group (formed by continuous / discontinuous GPIO ports), and flexible switching of the number of protocol
signal lines (for example, a two-line IIC is converted into a four-line SPI) is supported. And during switching, a logic of firstly configuring a new interface and then breaking an old interface is adopted, so that the service continuity is ensured. According to the method, hardware does not need to be replaced, multi-protocol
adaptation is achieved through local / remote configuration, the method is suitable for miniature intelligent weather stations, environment monitoring and other scenes, operation and maintenance cost is reduced, and data collection continuity is improved.