基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì).doc
約28頁DOC格式手機(jī)打開展開
基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì),基于linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì)1.3萬字 28頁摘 要本設(shè)計(jì)討論了簡易嵌入式linux環(huán)境下的串口聯(lián)網(wǎng)問題。在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來說,我們希望通過最為簡單且經(jīng)濟(jì)的...
內(nèi)容介紹
此文檔由會員 usactu 發(fā)布
基于Linux內(nèi)核的嵌入式串口通訊程序設(shè)計(jì)
1.3萬字 28頁
摘 要
本設(shè)計(jì)討論了簡易嵌入式Linux環(huán)境下的串口聯(lián)網(wǎng)問題。
在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來說,我們希望通過最為簡單且經(jīng)濟(jì)的方式來解決網(wǎng)絡(luò)問題,由此我們自然希望在盡力不改變設(shè)備原有資源的情況下給設(shè)備添加網(wǎng)絡(luò)功能,并且將設(shè)備原先的功能所產(chǎn)生的沖突減到最小,選擇具有普遍廣泛應(yīng)用的串口來實(shí)現(xiàn)串口聯(lián)網(wǎng)將是十分具有現(xiàn)實(shí)意義的。
本設(shè)計(jì)通過使用虛擬一些聯(lián)網(wǎng)必備的網(wǎng)絡(luò)硬件,通過串口來通信的方法來完成聯(lián)網(wǎng)的實(shí)現(xiàn),具體涉及到偽網(wǎng)絡(luò)驅(qū)動(dòng)程序和串口通信程序的開發(fā)。在不保證可靠通信和吞吐量的前提下,該設(shè)計(jì)能夠?qū)崿F(xià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測試架構(gòu) 6
2 設(shè)計(jì)平臺及環(huán)境簡介 7
2.1硬件平臺 7
2.1.1設(shè)計(jì)平臺 7
2.1.2通信平臺 7
2.2軟件平臺 7
2.2.1嵌入式Linux 7
2.3虛擬機(jī)簡介 8
3 串口網(wǎng)絡(luò)通訊原理設(shè)計(jì) 10
3.1簡單串口上網(wǎng)的實(shí)現(xiàn)原理 10
3.2串口上網(wǎng)設(shè)備加載和注銷形式 11
4 串口網(wǎng)絡(luò)通訊具體開發(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].中國計(jì)算機(jī)用戶.
[8]戴志遠(yuǎn).Linux下的串口通信系統(tǒng)[J].計(jì)算機(jī)系統(tǒng)應(yīng)用.
[9]夏風(fēng).Linux &Unix C程序員參考大全[M].森林圖書工作室.北京:國防工業(yè)出版社.
[10]Neil Matthew.Richard Stones.Linux程序設(shè)計(jì)[M].北京:機(jī)械工業(yè)出版社.
[11]張建軍,陳志雄,韓江洪. Linux平臺下串行口全雙工通訊的實(shí)現(xiàn)[N].合肥工業(yè)大學(xué)學(xué)報(bào)
1.3萬字 28頁
摘 要
本設(shè)計(jì)討論了簡易嵌入式Linux環(huán)境下的串口聯(lián)網(wǎng)問題。
在如今的工業(yè)控制領(lǐng)域,嵌入式設(shè)備通訊能力的優(yōu)劣已經(jīng)成為了一個(gè)尤為重要的評判標(biāo)準(zhǔn),是否能夠進(jìn)行網(wǎng)絡(luò)通信將是十分重要的。對于由于特殊要求而不能訂制一些網(wǎng)絡(luò)硬件的嵌入式設(shè)備來說,我們希望通過最為簡單且經(jīng)濟(jì)的方式來解決網(wǎng)絡(luò)問題,由此我們自然希望在盡力不改變設(shè)備原有資源的情況下給設(shè)備添加網(wǎng)絡(luò)功能,并且將設(shè)備原先的功能所產(chǎn)生的沖突減到最小,選擇具有普遍廣泛應(yīng)用的串口來實(shí)現(xiàn)串口聯(lián)網(wǎng)將是十分具有現(xiàn)實(shí)意義的。
本設(shè)計(jì)通過使用虛擬一些聯(lián)網(wǎng)必備的網(wǎng)絡(luò)硬件,通過串口來通信的方法來完成聯(lián)網(wǎng)的實(shí)現(xiàn),具體涉及到偽網(wǎng)絡(luò)驅(qū)動(dòng)程序和串口通信程序的開發(fā)。在不保證可靠通信和吞吐量的前提下,該設(shè)計(jì)能夠?qū)崿F(xià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測試架構(gòu) 6
2 設(shè)計(jì)平臺及環(huán)境簡介 7
2.1硬件平臺 7
2.1.1設(shè)計(jì)平臺 7
2.1.2通信平臺 7
2.2軟件平臺 7
2.2.1嵌入式Linux 7
2.3虛擬機(jī)簡介 8
3 串口網(wǎng)絡(luò)通訊原理設(shè)計(jì) 10
3.1簡單串口上網(wǎng)的實(shí)現(xiàn)原理 10
3.2串口上網(wǎng)設(shè)備加載和注銷形式 11
4 串口網(wǎng)絡(luò)通訊具體開發(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].中國計(jì)算機(jī)用戶.
[8]戴志遠(yuǎn).Linux下的串口通信系統(tǒng)[J].計(jì)算機(jī)系統(tǒng)應(yīng)用.
[9]夏風(fēng).Linux &Unix C程序員參考大全[M].森林圖書工作室.北京:國防工業(yè)出版社.
[10]Neil Matthew.Richard Stones.Linux程序設(shè)計(jì)[M].北京:機(jī)械工業(yè)出版社.
[11]張建軍,陳志雄,韓江洪. Linux平臺下串行口全雙工通訊的實(shí)現(xiàn)[N].合肥工業(yè)大學(xué)學(xué)報(bào)