The invention relates to a gateway for achieving the general adaptation function. The gateway comprises an Internet of Things gateway, a system platform and an interface configuration, wherein the system platform is used in cooperation with the Internet of Things gateway, and the interface configuration is arranged between the Internet of Things gateway and the system platform. The Internet of Things gateway comprises an interface module, an interface communication module, a device protocol analysis module, an interface communication mode configuration table, a configuration table control module and a wired/wireless transmission module. The system platform comprises a wired/wireless transmission module, an interface communication module, a device protocol analysis module, a protocol processing alarm module, a service processing module and a gateway interface communication mode configuration module. According to the technical scheme, the gateway for achieving the general adaptation function has the advantages that sensing devices with different protocols can have access to the Internet of Things gateway in a compatible mode, and great convenience is brought to customers; multi-protocol analysis management can be conveniently conducted, hardware and software in the gateway do not need to be changed, and compatibility and data analysis of unknown sensing devices can be achieved.