The invention discloses a self-adaptive and flexibly-expanded centralized protocol conversion device and method suitable for heterogeneous peripherals of an aircraft
engineering simulator. Compatible communication between the peripherals and the host is achieved through the control self-adaption module and the communication self-adaption module, and the problem that heterogeneous peripherals are not compatible is solved. The control adaptive module comprises a hardware interface module, a
bus identification module, an electrical conversion module, a master control MCU and an interface expansion module, and is responsible for electrical
signal conversion and identification of a multi-
bus protocol. The communication self-adaption module is composed of a
configuration management module, a data receiving module, a protocol identification module, a data preprocessing module, a
JSON coding and decoding
library module, a data coding and decoding module and a data sending module, and
data analysis and transmission are achieved. Multi-
bus self-adaptive conversion is carried out by adopting a uniform interface, resource waste caused by fixed interface limitation is avoided, and equipment can be used after being inserted. And the data is analyzed through the
JSON decoding
library separated from the development platform, so that the
system compatibility is improved, and the communication requirements of different devices are met.