第40卷第3期计算机应用与软件Vol.40No.32023年3月ComputerApplicationsandSoftwareMar.2023基于MQTT协议的物联网岸电监控系统曹小华李泊桓徐上尉(武汉理工大学物流工程学院湖北武汉430000)收稿日期:2020-07-22。国网岸电科技项目(5418-201971157A-0-0-00)。曹小华,教授,主研领域:智能装备与控制。李泊桓,硕士生。徐上尉,硕士生。摘要目前港口岸电系统地域分布较广且供电运行数据无法及时掌握。针对这一问题,设计并开发一种基于MQTT协议的物联网岸电监控系统,利用前端数据采集装置对供电系统的供电运行参数、用户信息、电力信息、设备状态等数据进行实时采集,经过数据处理和封装打包后,采用移动4G模块将封装好的数据通过MQTT协议上传至云端服务器,数据传输采用MD5数据加密算法,实现前端数据采集设备和监控系统之间的可靠数据通信,实时监控岸电系统运行状态,同时利用手机App对岸电系统参数进行实时监控与参数修改,增强物联网岸电监控系统的灵活性和便捷性。关键词MQTT协议传输层岸电监控物联网数据交互中图分类号TP319文献标志码ADOI:10.3969/j.issn.1000-386x.2023.03.002SHOREPOWERMONITORINGSYSTEMOFINTERNETOFTHINGSBASEDONMQTTPROTOCOLCaoXiaohuaLiBohuanXuShangwei(SchoolofLogisticsEngineering,WuhanUniversityofTechnology,Wuhan430000,Hubei,China)AbstractAtpresent,theportshorepowersystemiswidelydistributedandthepowersupplyoperationdatacannotbegraspedintime.Aimingatthisproblem,thispaperdesignsandimplementsashorepowermonitoringsystemfortheInternetofThingsbasedontheMQTTprotocol.Thefront-enddataacquisitiondevicewasusedtocollectthepowersupplyoperatingparameters,userinformation,powerinformation,equipmentstatusandotherdataofthepowersupplysysteminrealtime.Afterdataprocessingandpackaging,themobile4GmodulewasusedtouploadtheencapsulateddatatothecloudserverthroughtheMQTTprotocol.ThedatatransmissionusedtheMD5dataencryptionalgorithmtoachievereliabledatacommunicationbetweenthefront-enddatacollectionequipmentandthemonitoringsystem,andrealizereal-timemonitoringoftheshorepowersystemoperation.Atthesametime,themobilephoneAppwasusedtomonitorandmodifytheparametersoftheshorepowersysteminrealtimetoenhancetheflexibilityandconvenien...