




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、無線樓宇數(shù)據(jù)傳輸系統(tǒng)的仿真1. 摘要本實(shí)驗(yàn)的內(nèi)容是無線樓宇數(shù)據(jù)傳輸仿真,分析915M的樓宇通信特性,建立樓宇數(shù)據(jù)通信系統(tǒng)的仿真模型,采用無線收發(fā)芯片NRF905,依據(jù)其性能參數(shù)來判斷樓宇內(nèi)兩點(diǎn)能否進(jìn)行數(shù)據(jù)傳輸。2. 實(shí)驗(yàn)內(nèi)容:無線樓宇數(shù)據(jù)傳輸系統(tǒng)的仿真。分析915M的樓宇通信特性,建立樓宇數(shù)據(jù)通信系統(tǒng)的仿真模型,采用無線收發(fā)芯片NRF905,依據(jù)其性能參數(shù)來判斷樓宇內(nèi)兩點(diǎn)之間能否進(jìn)行數(shù)據(jù)傳輸。路徑損耗(Path Loss)主要是由三個(gè)方面的因素導(dǎo)致的:一是發(fā)射機(jī)和接收機(jī)之間相隔的距離;二是同一樓層的軟隔板;三是豎直方向的混凝土墻。它們造成的路徑損耗可用以下公式表示:PL(d)dB=20*log
2、10(4*pi*d/l)+p*AF(soft partition)dB+q*AF(concret wall)dB.其中d是收發(fā)之間相隔的距離(m),l是芯片發(fā)出信號的波長(l= c / f = 300 M / 914 M = 0. m),p是軟隔墻數(shù),其相應(yīng)的AF(soft partition)=1.39dB,q是混凝土墻數(shù),其相應(yīng)的 AF(concret wall)=2.38dB。由此,考慮此仿真系統(tǒng)為二維。即:當(dāng)知道軟隔墻數(shù)p和混凝土墻數(shù)q時(shí),根據(jù)平面兩點(diǎn)之間距離公式,可以得到收發(fā)之間相隔的近似距離:d=sqrt(p*x)2+(q*y)2).其中x為每兩個(gè)軟隔墻之間的水平距離,y為每兩個(gè)混
3、凝土墻樓層之間的豎直高度。x,y為已知參數(shù)。所以程序需輸入p、q兩個(gè)變量,即可得到收發(fā)之間相隔的近似距離,進(jìn)而算出收發(fā)之間的路徑損耗。無線收發(fā)芯片NRF905的最大輸出功率為10dBm=-20dB,接收分辨功率(能接收到的最小功率)為-100dBm=-130dB,所以其能允許的最大衰減范圍為-20-(-130)=110dB,當(dāng)路徑損耗在此范圍內(nèi)芯片能夠收發(fā)信號。程序中先算出發(fā)射機(jī)和接收機(jī)之間的路徑損耗,再與110dB相比較。若小于110dB,則在允許的衰減范圍內(nèi),能夠進(jìn)行無線樓宇數(shù)據(jù)通信;若大于110dB,則超出允許的衰減范圍,不能進(jìn)行無線樓宇數(shù)據(jù)通信。最后,程序分別繪制出路徑損耗隨軟隔墻數(shù)p
4、和混凝土墻數(shù)q的變化曲線。即同一樓層(q=0)的路徑損耗隨軟隔墻數(shù)的增加(水平距離的增大)的變化曲線;和豎直方向上(p=0)路徑損耗隨混凝土墻數(shù)的增加(豎直高度的增加)的變化曲線。3. 實(shí)驗(yàn)程序及結(jié)果:function varargout = Wirelesscommunication_building(varargin)% WIRELESSCOMMUNICATION_BUILDING M-file for Wirelesscommunication_building.fig% WIRELESSCOMMUNICATION_BUILDING, by itself, creates a new W
5、IRELESSCOMMUNICATION_BUILDING or raises the existing% singleton*.% H = WIRELESSCOMMUNICATION_BUILDING returns the handle to a new WIRELESSCOMMUNICATION_BUILDING or the handle to% the existing singleton*.% WIRELESSCOMMUNICATION_BUILDING('CALLBACK',hObject,eventData,handles,.) calls the local%
6、 function named CALLBACK in WIRELESSCOMMUNICATION_BUILDING.M with the given input arguments.% WIRELESSCOMMUNICATION_BUILDING('Property','Value',.) creates a new WIRELESSCOMMUNICATION_BUILDING or raises the% existing singleton*. Starting from the left, property value pairs are% applie
7、d to the GUI before Wirelesscommunication_building_OpeningFunction gets called. An% unrecognized property name or invalid value makes property application% stop. All inputs are passed to Wirelesscommunication_building_OpeningFcn via varargin.% *See GUI Options on GUIDE's Tools menu. Choose "
8、;GUI allows only one% instance to run (singleton)".% See also: GUIDE, GUIDATA, GUIHANDLES% Edit the above text to modify the response to help Wirelesscommunication_building% Last Modified by GUIDE v2.5 18-May-2006 22:38:07% Begin initialization code - DO NOT EDITgui_Singleton = 1;gui_State = st
9、ruct('gui_Name', mfilename, . 'gui_Singleton', gui_Singleton, . 'gui_OpeningFcn', Wirelesscommunication_building_OpeningFcn, . 'gui_OutputFcn', Wirelesscommunication_building_OutputFcn, . 'gui_LayoutFcn', , . 'gui_Callback', );if nargin && isch
10、ar(varargin1) gui_State.gui_Callback = str2func(varargin1);endif nargout varargout1:nargout = gui_mainfcn(gui_State, varargin:);else gui_mainfcn(gui_State, varargin:);end% End initialization code - DO NOT EDIT% - Executes just before Wirelesscommunication_building is made visible.function Wirelessco
11、mmunication_building_OpeningFcn(hObject, eventdata, handles, varargin)% This function has no output args, see OutputFcn.% hObject handle to figure% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% varargin command line argu
12、ments to Wirelesscommunication_building (see VARARGIN)% Choose default command line output for Wirelesscommunication_buildinghandles.output = hObject;% Update handles structureguidata(hObject, handles);% UIWAIT makes Wirelesscommunication_building wait for user response (see UIRESUME)% uiwait(handle
13、s.figure1);% - Outputs from this function are returned to the command line.function varargout = Wirelesscommunication_building_OutputFcn(hObject, eventdata, handles) % varargout cell array for returning output args (see VARARGOUT);% hObject handle to figure% eventdata reserved - to be defined in a f
14、uture version of MATLAB% handles structure with handles and user data (see GUIDATA)% Get default command line output from handles structurevarargout1 = handles.output;function edit1_Callback(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a fut
15、ure version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit1 as text% str2double(get(hObject,'String') returns contents of edit1 as a double% Read the input value edit1 = str2double(get(hObject,'String
16、39;);% Check whether the input is a numberif isnan(edit1) set(hObject, 'String', 1); errordlg('Input must be a number','Error');endif (edit1<0|edit1>4) errordlg('發(fā)射機(jī)和接收機(jī)相隔的樓層數(shù)必須在零到四層之間','Error');end;% Save the new valuedata = getappdata(gcbf, 'metric
17、data');data.edit1 = edit1;setappdata(gcbf, 'metricdata', data);% - Executes during object creation, after setting all properties.function edit1_CreateFcn(hObject, eventdata, handles)% hObject handle to edit1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% ha
18、ndles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundC
19、olor','white');endfunction edit2_Callback(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents
20、of edit2 as text% str2double(get(hObject,'String') returns contents of edit2 as a double% Read the input valueedit2 = str2double(get(hObject,'String');% Check whether the input is a numberif isnan(edit2) set(hObject, 'String', 1); errordlg('Input must be a number',
21、9;Error');endif edit2<0 errordlg('發(fā)射機(jī)和接收機(jī)相隔的距離必須大于0','Error');end;% Save the new valuedata = getappdata(gcbf, 'metricdata');data.edit2 = edit2;setappdata(gcbf, 'metricdata', data);% - Executes during object creation, after setting all properties.function edit2_
22、CreateFcn(hObject, eventdata, handles)% hObject handle to edit2 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.
23、if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundColor','white');endfunction edit3_Callback(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined i
24、n a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit3 as text% str2double(get(hObject,'String') returns contents of edit3 as a double% Read the input valueedit3 = str2double(get(hObject,'St
25、ring');% Check whether the input is a numberif isnan(edit3) set(hObject, 'String', 1); errordlg('Input must be a number','Error');endif edit3<0 errordlg('收發(fā)之間的軟隔墻數(shù)必須大于或等于0','Error');end;% Save the new valuedata = getappdata(gcbf, 'metricdata');d
26、ata.edit3 = edit3;setappdata(gcbf, 'metricdata', data);% - Executes during object creation, after setting all properties.function edit3_CreateFcn(hObject, eventdata, handles)% hObject handle to edit3 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty
27、- handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundColor',
28、39;white');endfunction edit4_Callback(hObject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)% Hints: get(hObject,'String') returns contents of edit4 as
29、text% str2double(get(hObject,'String') returns contents of edit4 as a double% Read the input valueedit4 = str2double(get(hObject,'String');% Check whether the input is a numberif isnan(edit4) set(hObject, 'String', 1); errordlg('Input must be a number','Error'
30、);endif edit4<0 errordlg('收發(fā)之間的混凝墻數(shù)必須大于或等于0','Error');end;% Save the new valuedata = getappdata(gcbf, 'metricdata');data.edit4 = edit4;setappdata(gcbf, 'metricdata', data);% - Executes during object creation, after setting all properties.function edit4_CreateFcn(hO
31、bject, eventdata, handles)% hObject handle to edit4 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles empty - handles not created until after all CreateFcns called% Hint: edit controls usually have a white background on Windows.% See ISPC and COMPUTER.if ispc &
32、;& isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor') set(hObject,'BackgroundColor','white');end% - Executes on button press in pushbutton1.function pushbutton1_Callback(hObject, eventdata, handles)% hObject handle to pushbutton1 (see GCBO)% eventdata reserved - to be defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)data = getappdata(gcbf, 'metricdata');p=data.edit3; %收發(fā)之間的軟隔墻數(shù)q=data.edit4; %收發(fā)之間的混凝土墻數(shù)x=5; %每兩個(gè)軟隔墻之間的距離(m)y=3; %每一樓層的高度(m)d=sq
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 造橋技術(shù)轉(zhuǎn)讓合同協(xié)議
- 更改性名協(xié)議書
- 車輛維修合同補(bǔ)充協(xié)議
- 燙傷和解協(xié)議書
- 無償捐獻(xiàn)協(xié)議書
- 服務(wù)支持協(xié)議書
- 貨車土方運(yùn)輸合同協(xié)議
- 滴管工程協(xié)議書
- 晚托學(xué)校協(xié)議書
- 道閘設(shè)備轉(zhuǎn)讓合同協(xié)議
- 建筑企業(yè)材料成本管理
- 人衛(wèi)官方預(yù)防醫(yī)學(xué)課件下載
- 《雷達(dá)干擾技術(shù)概述》課件
- 中韓勞動(dòng)法比較研究
- 大學(xué)禮儀操活動(dòng)方案
- 舞蹈活動(dòng)費(fèi)用方案模板
- 比賽對陣表模板
- 電子競技員技能理論考試復(fù)習(xí)題庫(含答案)
- 博物館保安服務(wù)投標(biāo)方案
- (完整版)煤礦技術(shù)員考試試題
- 思想道德與法治2023版教學(xué)設(shè)計(jì)第六章 學(xué)習(xí)法治思想 提升法治素養(yǎng)
評論
0/150
提交評論