| With the deep integration of industrialization and informatization becoming a general trend,the combination of the Internet of Things and traditional industries has entered a new stage of development.However,a large number of traditional manufacturing enterprises have a low level of informatization.Industrial control systems are usually closed within the enterprise,industrial field data cannot be deeply explored,and enterprises cannot achieve remote monitoring and management of factories.Therefore,building equipment management and monitoring systems based on cloud platforms has become the key to the digital transformation of manufacturing companies.Among them,as the hub connecting the industrial site and the cloud platform,the industrial IoT gateway has become a research focus in the entire industrial IoT system.This thesis took the opportunity of the transformation and upgrading of a printing company’s field equipment to design and implement an industrial Internet of Things gateway from both hardware and software aspects.The hardware system is developed around the AM3352 chip.The schematic design of the power supply,Ethernet port,serial port and 4G modules is completed,and the production and debugging of the whole machine are completed.The software system has designed related functions in a modular manner,including modules such as data collection,data forwarding,remote control,remote debugging,and device management.In the data collection module,in order to increase the proportion of effective information in the collected messages,a variable-length block data collection strategy is proposed.In the data forwarding module,the subscription / publishment mechanism is used to interact with the cloud platform,and the protocol message body is customized.At the same time,the data forwarding function based on the client / server mechanism is also developed for compatibility with local manufacturing execution systems.In the remote debugging module,a data transparent transmission scheme based on M2 M protocol and VPN is designed,which solves the problem that the host computer cannot remotely debug the device connected under the gateway because the wireless gateway uses dynamic IP.In the device management module,it provides solutions for gateway remote status tracking,remote reboot,and remote firmware upgrade.At the same time,it also designs solutions for device data management under abnormal network conditions.Finally,the overall test environment is built by connecting with field devices,and the hardware and software tests of the gateway designed in this paper are carried out.The test results show that the hardware system runs stably and the functional modules are normal;the data collection,data forwarding,remote control,remote debugging and other modules in the software system function normally and the data transmission delay is within a reasonable range. |