国产精品婷婷久久久久久,国产精品美女久久久浪潮av,草草国产,人妻精品久久无码专区精东影业

基于linux內(nèi)核的嵌入式串口通訊程序設計.doc

約28頁DOC格式手機打開展開

基于linux內(nèi)核的嵌入式串口通訊程序設計,基于linux內(nèi)核的嵌入式串口通訊程序設計1.3萬字 28頁摘 要本設計討論了簡易嵌入式linux環(huán)境下的串口聯(lián)網(wǎng)問題。在如今的工業(yè)控制領域,嵌入式設備通訊能力的優(yōu)劣已經(jīng)成為了一個尤為重要的評判標準,是否能夠進行網(wǎng)絡通信將是十分重要的。對于由于特殊要求而不能訂制一些網(wǎng)絡硬件的嵌入式設備來說,我們希望通過最為簡單且經(jīng)濟的...
編號:10-34443大小:401.50K
分類: 論文>計算機論文

內(nèi)容介紹

此文檔由會員 usactu 發(fā)布

基于Linux內(nèi)核的嵌入式串口通訊程序設計
1.3萬字 28頁



摘 要
本設計討論了簡易嵌入式Linux環(huán)境下的串口聯(lián)網(wǎng)問題。
在如今的工業(yè)控制領域,嵌入式設備通訊能力的優(yōu)劣已經(jīng)成為了一個尤為重要的評判標準,是否能夠進行網(wǎng)絡通信將是十分重要的。對于由于特殊要求而不能訂制一些網(wǎng)絡硬件的嵌入式設備來說,我們希望通過最為簡單且經(jīng)濟的方式來解決網(wǎng)絡問題,由此我們自然希望在盡力不改變設備原有資源的情況下給設備添加網(wǎng)絡功能,并且將設備原先的功能所產(chǎn)生的沖突減到最小,選擇具有普遍廣泛應用的串口來實現(xiàn)串口聯(lián)網(wǎng)將是十分具有現(xiàn)實意義的。
本設計通過使用虛擬一些聯(lián)網(wǎng)必備的網(wǎng)絡硬件,通過串口來通信的方法來完成聯(lián)網(wǎng)的實現(xiàn),具體涉及到偽網(wǎng)絡驅(qū)動程序和串口通信程序的開發(fā)。在不保證可靠通信和吞吐量的前提下,該設計能夠?qū)崿F(xiàn)簡單的網(wǎng)絡通信,包括Telnet等。

關鍵字:Linux環(huán)境,串口通訊,網(wǎng)絡通訊,嵌入式

Design Of Embedded Serial Communication Based On Linux
Abstract
This design researches serial networking which runs under the simple kernel of Linux.
Now in the field of industrial control, the capacity of communications has become a particularly important evaluation criterion in the embedded equipment. For some embedded equipments as a special request which can not be made in some of the embedded network hardware equipments, we hope that through the most simple and economical way to solve network problems. By the time we naturally hope to make every effort not to change the original equipment resources that we can add to the network function under the equipment, and the original equipment functions arising from the conflict could be minimized. It is very realistic significance to select the widespread application serial to achieve serial network link.
The design takes the use of virtual networking to pretend some essential network hardware. Through serial communications to approach to the realization of network link, it will be specifically related to the pseudo-network driver and serial communication program development. Without guaranteed throughput and reliable communications on the premise the design can be achieved by simple network communications, including Telnet and so on.

Keywords:Linux,serial communication,network,embedded

目 錄
1緒論 1
1.1網(wǎng)絡通信 1
1.1.1網(wǎng)絡通信原理 1
1.1.2網(wǎng)絡通信現(xiàn)狀及前景 2
1.2串口通訊 4
1.2.1串口通信原理 4
1.2.2串口通信現(xiàn)狀及前景 5
1.3測試架構 6
2 設計平臺及環(huán)境簡介 7
2.1硬件平臺 7
2.1.1設計平臺 7
2.1.2通信平臺 7
2.2軟件平臺 7
2.2.1嵌入式Linux 7
2.3虛擬機簡介 8
3 串口網(wǎng)絡通訊原理設計 10
3.1簡單串口上網(wǎng)的實現(xiàn)原理 10
3.2串口上網(wǎng)設備加載和注銷形式 11
4 串口網(wǎng)絡通訊具體開發(fā)與實現(xiàn) 13
4.1字符設備驅(qū)動程序 13
4.2偽網(wǎng)絡驅(qū)動設備程序 16
4.3用戶空間串口通信程序 19
總結(jié) 22
致謝 23
參考文獻 24



參考文獻
[6]鐘丹華.串行通信口的正確使用[J].江蘇通信技術.
[7]王為民.一種擴充串口通信的方法[J].中國計算機用戶.
[8]戴志遠.Linux下的串口通信系統(tǒng)[J].計算機系統(tǒng)應用.
[9]夏風.Linux &Unix C程序員參考大全[M].森林圖書工作室.北京:國防工業(yè)出版社.
[10]Neil Matthew.Richard Stones.Linux程序設計[M].北京:機械工業(yè)出版社.
[11]張建軍,陳志雄,韓江洪. Linux平臺下串行口全雙工通訊的實現(xiàn)[N].合肥工業(yè)大學學報