摘  要
课题是关于无线总线协议的研究,它基于TCP/IP协议完成的。协议完成基本的通讯功能,能够在一般的情况下以不同的通讯方式来完成通讯,不同的通讯协议也会对应不同的需求。无线总线协议的设计基于多线程的方式完成,拥有不同的处理错误的方式,和节点增加方式。协议经过三个月的时间设计和实现,整体的功能基本实现。在协议中体现了两套不同协议,也为以后的拓展和开发提供了很多方便。协议经过了一系列的测试,在比较差的环境下依然能够很好的完成要求,但是对于协议的优化还有待提高,整体的设计还是比较好的。
关键词:通信协议,TCP/IP,CRC
 
 
 
ABSTRACT
The topic is the research on wireless bus protocol, which is based on TCP / IP protoc -ol. The basic communication functions should be completed,and it can communicate with each other in different way in normal circumstances. Wireless bus protocol design is based on multi-threaded, it has a different way to handle errors, and ways to increase the node. After three months of the time protocol design and implementation, it is finished basic implementation function. Embodied in the agreement two different protocols, but also for future expansion and development to provide a lot of convenience. Agreement through a series of tests, in the relatively poor environment can still complete the requirements well, but for optimization of the agreement to be improved, the overall design is quite good.
Keywords: Communication Protocol, TCP / IP, CRC
目  录
摘  要 I
ABSTRACT II
第1章  绪论 1
1.1 研究背景及意义 1
1.2 国内外研究进展 1
1.3 研究内容 1
1.4本文研究结构 2
1.5本章小结 2
第2章  系统的关键技术 3
2.1 linux操作系统 3
2.2 多线程 3
2.3 本章小结 4
第3章  协议的层次和结构分析 5
3.1 协议的层次 5
3.2 协议的各个层次包结构 6
3.2.1 协议底层 6
3.2.2 协议中层 6
3.2.3 协议上层 7
3.3 本章小结 8
第4章  协议的具体实现 9
4.1 协议实现的准备 9
4.1.1 系统的开发环境 9
4.1.2 环境搭建 9
4.1.3 所用外部库 10
4.1.4 调试环境 10
4.2 协议实现的要点 10
4.2.1 模块介质的实现 10
4.2.2 协议底层的实现 14
4.2.3 协议中层的实现 18
4.2.4 协议上层的实现 21
4.2.5 协议内部的实现 21
4.3协议实现的功能 22
4.4 本章小结 22
第5章  系统的测试 23
5.1 模拟环境的测试 23
5.2 协议层的测试 23
5.3 本章小结 23
结  论 24
参考文献 25
附  录 26
致  谢 37