论文题目:基于嵌入式ARM的MODBU协议的研究与实现专业:电子信息工程学生:孙玉鑫签名:指导教师:孙弋教授签名:摘要电子技术的迅速发展极大的改善了人们的生活,彻底的改变了世界的面貌。在工业控制领域现场总线控制系统(FCS)的出现和发展彻底改变了传统的可编程控制器(PLC)和分散式控制系统(DCS)基本结构。现场总线系统技术极大地简化了传统控制系统繁琐且技术含量较低的布线工作量,使各种并行通信转向串行通信,使系统检测和控制单元的分布更趋合理。Modbus通信协议作为现场总线的一种,具有数据传输量大、可扩展性好、可靠性好等优点,它目前已成为自动控制和通信领域使用非常广泛的通信语言。Linux操作系统以其开源、免费、易于移植,支持众多的处理器而得到了广泛的应用。ARM处理器具有成本低、功耗低、易开发和性能好等特点,其中的S3C2410性价比、可靠性较高可作为本系统的硬件平台。本论文首先介绍了Modbus协议的规范,协议的通信原理以及对协议的具体实现过程。之后对嵌入式Linux操作系统平台的建立、构造以及内核的制作、移植、烧录等过程也进行了的阐述,最后实现了基于RS485接口的Modbus串口编程。【关键字】ARM嵌入式LinuxModbus总线串口通信【论文类型】设计型Title:ResearchandImplementationofModbusProtocolonARM-BasedEmbeddedSystemMajor:ElectronicinformationengineeringName:SunYuxinSignature:Supervisor:ProfessorSunYiSignature:AbstractTherapiddevelopmentofelectronictechnologyhasgreatlyimprovedpeople'slives,completelychangedtheworld.Theemergenceanddevelopmentinthefieldofindustrialcontrolfieldbuscontrolsystem(FCS)completelychangedthebasicstructureofthetraditionalprogrammablelogiccontroller(PLC)anddistributedcontrolsystems(DCS).FieldBusSystemgreatlysimplifiestheworkloadofthetediousandlow-techefforttraditionalcontrolsystemwiring,whichturnsavarietyofparallelcommunicationtoserialcommunication,atthesametimemakesthedistributionofthesystemdetectionandcontrolunitmorereasonable.Asamemberoffieldbus,Modbusprotocolhasbeenwidelyusedinthefieldofautomaticcontrolandcommunicationbecauseofitsgoodcapacityofdatatransmission,anditsexpandabilityandreliability.Linuxisopen-source,free,easytoport,andsupportingalargenumberofprocessors,soitiswidelyused,particularlyintheembeddedfield.ARMprocessorwithitslowcost,lowpowerconsumption,easydevelopmentandgoodperformancecharacteristics,whichS3C2410cost-effective,highreliabilitycanbeusedasthehardwareplatform.First,theModbusprotocolspecification,protocolcommunicationsprinciplesandaspecificimplementationoftheModbusprotocolareintroduced.EmbeddedLinuxoperatingsystemplatform,aftertheestablishment,structureandcoreproduction,transplant,burnandotherprocesseshavealsobeenelaborated,andfinallytoachieveinterfacebasedonRS485Modbusserialprogramming.【Keywords】ARMEmbeddedLinuxModbusBUSSerialCommunication【TypeofThesis】Design目录1.绪论............................................11.1引言...............................................11.2课题研究背景与现状...................11.3研究内容.......................................21.4论文组织与安排...........................22.MODBUS现场总线综述.........................42.1现场总线的实质和优点..................42.2MODBUS现场总线协议概述................52.3Modbus协议在串行链路上的实现....62.3.1Modbus串行链路协议OSI模型对应关系...............................................62.3.2Modbus主站/从站协议原理........72.3.3两种串行传输模式..................82.4MODBUS应用层协议.........................142.4.1MODBUS功能码...........................142.4.2MODBUS异常响应.......................153.嵌入式硬件平台.....