基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì).doc
約28頁(yè)DOC格式手機(jī)打開(kāi)展開(kāi)
基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì),基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì)1.3萬(wàn)字 28頁(yè)摘 要本設(shè)計(jì)討論了簡(jiǎn)易嵌入式linux環(huán)境下的串口聯(lián)網(wǎng)問(wèn)題。在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評(píng)判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對(duì)于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來(lái)說(shuō),我們希望通過(guò)最為簡(jiǎn)單且經(jīng)濟(jì)的...
內(nèi)容介紹
此文檔由會(huì)員 usactu 發(fā)布
基于Linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì)
1.3萬(wàn)字 28頁(yè)
摘 要
本設(shè)計(jì)討論了簡(jiǎn)易嵌入式Linux環(huán)境下的串口聯(lián)網(wǎng)問(wèn)題。
在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評(píng)判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對(duì)于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來(lái)說(shuō),我們希望通過(guò)最為簡(jiǎn)單且經(jīng)濟(jì)的方式來(lái)解決網(wǎng)絡(luò)問(wèn)題,由此我們自然希望在盡力不改變?cè)O(shè)備原有資源的情況下給設(shè)備添加網(wǎng)絡(luò)功能,并且將設(shè)備原先的功能所產(chǎn)生的沖突減到最小,選擇具有普遍廣泛應(yīng)用的串口來(lái)實(shí)現(xiàn)串口聯(lián)網(wǎng)將是十分具有現(xiàn)實(shí)意義的。
本設(shè)計(jì)通過(guò)使用虛擬一些聯(lián)網(wǎng)必備的網(wǎng)絡(luò)硬件,通過(guò)串口來(lái)通信的方法來(lái)完成聯(lián)網(wǎng)的實(shí)現(xiàn),具體涉及到偽網(wǎng)絡(luò)驅(qū)動(dòng)程序和串口通信程序的開(kāi)發(fā)。在不保證可靠通信和吞吐量的前提下,該設(shè)計(jì)能夠?qū)崿F(xiàn)簡(jiǎn)單的網(wǎng)絡(luò)通信,包括Telnet等。
關(guān)鍵字:Linux環(huán)境,串口通訊,網(wǎng)絡(luò)通訊,嵌入式
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)絡(luò)通信 1
1.1.1網(wǎng)絡(luò)通信原理 1
1.1.2網(wǎng)絡(luò)通信現(xiàn)狀及前景 2
1.2串口通訊 4
1.2.1串口通信原理 4
1.2.2串口通信現(xiàn)狀及前景 5
1.3測(cè)試架構(gòu) 6
2 設(shè)計(jì)平臺(tái)及環(huán)境簡(jiǎn)介 7
2.1硬件平臺(tái) 7
2.1.1設(shè)計(jì)平臺(tái) 7
2.1.2通信平臺(tái) 7
2.2軟件平臺(tái) 7
2.2.1嵌入式Linux 7
2.3虛擬機(jī)簡(jiǎn)介 8
3 串口網(wǎng)絡(luò)通訊原理設(shè)計(jì) 10
3.1簡(jiǎn)單串口上網(wǎng)的實(shí)現(xiàn)原理 10
3.2串口上網(wǎng)設(shè)備加載和注銷形式 11
4 串口網(wǎng)絡(luò)通訊具體開(kāi)發(fā)與實(shí)現(xiàn) 13
4.1字符設(shè)備驅(qū)動(dòng)程序 13
4.2偽網(wǎng)絡(luò)驅(qū)動(dòng)設(shè)備程序 16
4.3用戶空間串口通信程序 19
總結(jié) 22
致謝 23
參考文獻(xiàn) 24
參考文獻(xiàn)
[6]鐘丹華.串行通信口的正確使用[J].江蘇通信技術(shù).
[7]王為民.一種擴(kuò)充串口通信的方法[J].中國(guó)計(jì)算機(jī)用戶.
[8]戴志遠(yuǎn).Linux下的串口通信系統(tǒng)[J].計(jì)算機(jī)系統(tǒng)應(yīng)用.
[9]夏風(fēng).Linux &Unix C程序員參考大全[M].森林圖書(shū)工作室.北京:國(guó)防工業(yè)出版社.
[10]Neil Matthew.Richard Stones.Linux程序設(shè)計(jì)[M].北京:機(jī)械工業(yè)出版社.
[11]張建軍,陳志雄,韓江洪. Linux平臺(tái)下串行口全雙工通訊的實(shí)現(xiàn)[N].合肥工業(yè)大學(xué)學(xué)報(bào)
1.3萬(wàn)字 28頁(yè)
摘 要
本設(shè)計(jì)討論了簡(jiǎn)易嵌入式Linux環(huán)境下的串口聯(lián)網(wǎng)問(wèn)題。
在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評(píng)判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對(duì)于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來(lái)說(shuō),我們希望通過(guò)最為簡(jiǎn)單且經(jīng)濟(jì)的方式來(lái)解決網(wǎng)絡(luò)問(wèn)題,由此我們自然希望在盡力不改變?cè)O(shè)備原有資源的情況下給設(shè)備添加網(wǎng)絡(luò)功能,并且將設(shè)備原先的功能所產(chǎn)生的沖突減到最小,選擇具有普遍廣泛應(yīng)用的串口來(lái)實(shí)現(xiàn)串口聯(lián)網(wǎng)將是十分具有現(xiàn)實(shí)意義的。
本設(shè)計(jì)通過(guò)使用虛擬一些聯(lián)網(wǎng)必備的網(wǎng)絡(luò)硬件,通過(guò)串口來(lái)通信的方法來(lái)完成聯(lián)網(wǎng)的實(shí)現(xiàn),具體涉及到偽網(wǎng)絡(luò)驅(qū)動(dòng)程序和串口通信程序的開(kāi)發(fā)。在不保證可靠通信和吞吐量的前提下,該設(shè)計(jì)能夠?qū)崿F(xiàn)簡(jiǎn)單的網(wǎng)絡(luò)通信,包括Telnet等。
關(guān)鍵字:Linux環(huán)境,串口通訊,網(wǎng)絡(luò)通訊,嵌入式
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)絡(luò)通信 1
1.1.1網(wǎng)絡(luò)通信原理 1
1.1.2網(wǎng)絡(luò)通信現(xiàn)狀及前景 2
1.2串口通訊 4
1.2.1串口通信原理 4
1.2.2串口通信現(xiàn)狀及前景 5
1.3測(cè)試架構(gòu) 6
2 設(shè)計(jì)平臺(tái)及環(huán)境簡(jiǎn)介 7
2.1硬件平臺(tái) 7
2.1.1設(shè)計(jì)平臺(tái) 7
2.1.2通信平臺(tái) 7
2.2軟件平臺(tái) 7
2.2.1嵌入式Linux 7
2.3虛擬機(jī)簡(jiǎn)介 8
3 串口網(wǎng)絡(luò)通訊原理設(shè)計(jì) 10
3.1簡(jiǎn)單串口上網(wǎng)的實(shí)現(xiàn)原理 10
3.2串口上網(wǎng)設(shè)備加載和注銷形式 11
4 串口網(wǎng)絡(luò)通訊具體開(kāi)發(fā)與實(shí)現(xiàn) 13
4.1字符設(shè)備驅(qū)動(dòng)程序 13
4.2偽網(wǎng)絡(luò)驅(qū)動(dòng)設(shè)備程序 16
4.3用戶空間串口通信程序 19
總結(jié) 22
致謝 23
參考文獻(xiàn) 24
參考文獻(xiàn)
[6]鐘丹華.串行通信口的正確使用[J].江蘇通信技術(shù).
[7]王為民.一種擴(kuò)充串口通信的方法[J].中國(guó)計(jì)算機(jī)用戶.
[8]戴志遠(yuǎn).Linux下的串口通信系統(tǒng)[J].計(jì)算機(jī)系統(tǒng)應(yīng)用.
[9]夏風(fēng).Linux &Unix C程序員參考大全[M].森林圖書(shū)工作室.北京:國(guó)防工業(yè)出版社.
[10]Neil Matthew.Richard Stones.Linux程序設(shè)計(jì)[M].北京:機(jī)械工業(yè)出版社.
[11]張建軍,陳志雄,韓江洪. Linux平臺(tái)下串行口全雙工通訊的實(shí)現(xiàn)[N].合肥工業(yè)大學(xué)學(xué)報(bào)
相關(guān)文檔
- 基于odbc的學(xué)生信息管理系統(tǒng)-第二部分(...rar
- 利用asp實(shí)現(xiàn)網(wǎng)上數(shù)據(jù)庫(kù)的查詢及維護(hù).doc
- 組件設(shè)計(jì)系統(tǒng)開(kāi)發(fā)與實(shí)現(xiàn).doc
- 中小企業(yè)電子商務(wù)發(fā)展戰(zhàn)略分析.doc
- asp企業(yè)網(wǎng)絡(luò)管理系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn).doc
- 學(xué)校網(wǎng)絡(luò)的建立.doc
- 防火墻功網(wǎng)關(guān)系統(tǒng).doc