⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 bluetooth_lib2.mdl

📁 本文通过对各种环境下的蓝牙的双工传输进行了仿真
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	  Ports			  [0, 1]
	  Position		  [135, 82, 210, 138]
	  SourceBlock		  "bluetooth_lib2/802.11b\nTransmitter"
	  SourceType		  "Unknown"
	  On			  "on"
	  rate			  "50"
	  m			  "(192+1024*8)*1e-6 %(preamble size + 1024 by"
"tes) x bit rate"
	  v			  "0"
	  power			  "16"
	  Freq_Number		  "39"
	  rate_seed		  "rate_802_seed"
	  awgn_seed		  "awgn_802_seed"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Interference"
	  Position		  [360, 103, 390, 117]
	  IconDisplay		  "Port number"
	  BusOutputAsStruct	  off
	}
	Line {
	  SrcBlock		  "802.11b\nTransmitter"
	  SrcPort		  1
	  Points		  [0, 0]
	  DstBlock		  "Interference"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "802.11b\nTransmitter"
      Ports		      [0, 1]
      Position		      [155, 27, 230, 83]
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskPromptString	      "Turn On 802.11|Average Rate (no accurate) (1/se"
"c) (999 for constant)|Mean Length (secs)|Length Variance (sec^2)|Power (dBm)|"
"Frequency Number (0-78)|Rate Seed|Noise seed"
      MaskStyleString	      "checkbox,edit,edit,edit,edit,edit,edit,edit"
      MaskTunableValueString  "on,on,on,on,on,on,on,on"
      MaskCallbackString      "|||||||"
      MaskEnableString	      "on,on,on,on,on,on,on,on"
      MaskVisibilityString    "on,on,on,on,on,on,on,on"
      MaskToolTipString	      "on,on,on,on,on,on,on,on"
      MaskVarAliasString      ",,,,,,,"
      MaskVariables	      "On=@1;rate=@2;m=@3;v=@4;power=@5;Freq_Number=@6"
";rate_seed=@7;awgn_seed=@8;"
      MaskInitialization      "if On==1\n   str='On';\nelse\n  str='Off';\nend"
";\n\nadjusted_rate=rate/(1-rate*m); % account for finite packet length reduci"
"ng rate\n"
      MaskDisplay	      "disp(['802.11b\\nInterferer\\n' str])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      MaskValueString	      "off|300|17e-3|0|16|39|rate_802_seed|awgn_802_se"
"ed"
      MaskTabNameString	      ",,,,,,,"
      System {
	Name			"802.11b\nTransmitter"
	Location		[392, 365, 954, 642]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  ZeroOrderHold
	  Name			  "1/110packet\nresolution"
	  Position		  [160, 81, 185, 109]
	  SampleTime		  "(1/1600)/110"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "22MHz noise in\n100MHz signal"
	  Ports			  [0, 1, 1]
	  Position		  [285, 150, 350, 220]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "22MHz noise in\n100MHz signal"
	    Location		    [93, 290, 955, 627]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [215, 15, 235, 35]
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "22MHz\nwhite noise"
	      Ports		      [0, 1]
	      Position		      [35, 126, 70, 164]
	      UserDataPersistent      on
	      UserData		      "DataTag0"
	      Diagnostics	      "AllowInheritedTsInSrc"
	      SourceBlock	      "dspsrcs4/Random\nSource"
	      SourceType	      "Random Source"
	      SrcType		      "Gaussian"
	      NormMethod	      "Ziggurat"
	      CltLength		      "12"
	      Min		      "0"
	      Max		      "1"
	      Mean		      "0"
	      Var		      "power"
	      RepMode		      "Specify seed"
	      Seed		      "awgn_seed"
	      Inherit		      "off"
	      SampMode		      "Discrete"
	      SampTime		      "1/22e6"
	      SampFrame		      "62500/500"
	      DataType		      "Double"
	      OutComplex	      "Complex"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "DSP\nConstant"
	      Ports		      [0, 1]
	      Position		      [35, 233, 115, 267]
	      ShowName		      off
	      SourceBlock	      "dspsrcs4/DSP\nConstant"
	      SourceType	      "DSP Constant"
	      Value		      "Freq_Number"
	      SampleMode	      "Discrete"
	      discreteOutput	      "Sample-based"
	      continuousOutput	      "Sample-based"
	      sampTime		      "500*(1/88e6)"
	      framePeriod	      "500*(1/88e6)"
	      additionalParams	      "off"
	      dataType		      "Inherit from 'Constant value'"
	      wordLen		      "16"
	      udDataType	      "sfix(16)"
	      fracBitsMode	      "Best precision"
	      numFracBits	      "15"
	      InterpretAs1D	      "off"
	      Ts		      "500*(1/88e6)"
	      FramebasedOutput	      "off"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Digital\nFilter Design"
	      Ports		      [1, 1]
	      Position		      [250, 117, 315, 173]
	      ShowName		      off
	      UserDataPersistent      on
	      UserData		      "DataTag1"
	      SourceBlock	      "dsparch4/Digital\nFilter Design"
	      SourceType	      "Digital Filter Design"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Frame Status\nConversion"
	      Ports		      [1, 1]
	      Position		      [160, 234, 210, 266]
	      ShowName		      off
	      SourceBlock	      "dspsigattribs/Frame Status\nConversion"
	      SourceType	      "Frame Status Conversion"
	      growRefPort	      "off"
	      outframe		      "Frame-based"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [180, 129, 230, 161]
	      ShowName		      off
	      Gain		      "sqrt(4)"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Mix"
	      Ports		      [2, 1]
	      Position		      [360, 136, 405, 169]
	      RndMeth		      "Floor"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Mixed to \none of bluetooth\nfrequencie"
"s\n"
	      Ports		      [1, 1]
	      Position		      [230, 225, 305, 275]
	      SourceBlock	      "commdigbbndfm2/M-FSK\nModulator\nBaseba"
"nd"
	      SourceType	      "M-FSK Modulator Baseband"
	      M			      "79"
	      InType		      "Integer"
	      Enc		      "Binary"
	      freqSep		      "1e6"
	      phaseType		      "Continuous"
	      numSamp		      "500"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Set to 0dBm"
	      Ports		      [1, 1]
	      Position		      [425, 137, 480, 173]
	      SourceBlock	      "dspmathops/dB Gain"
	      SourceType	      "dB Gain"
	      dB		      "-22"
	      intype		      "Amplitude"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Tx Power"
	      Ports		      [1, 1]
	      Position		      [510, 137, 565, 173]
	      SourceBlock	      "dspmathops/dB Gain"
	      SourceType	      "dB Gain"
	      dB		      "power"
	      intype		      "Amplitude"
	    }
	    Block {
	      BlockType		      Display
	      Name		      "Tx power"
	      Ports		      [1]
	      Position		      [765, 95, 855, 125]
	      Decimation	      "1"
	    }
	    Block {
	      BlockType		      Display
	      Name		      "Tx power1"
	      Ports		      [1]
	      Position		      [675, 20, 765, 50]
	      ShowName		      off
	      Decimation	      "1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Upsample\nto 88 MHz"
	      Ports		      [1, 1]
	      Position		      [110, 128, 145, 162]
	      SourceBlock	      "dspsigops/Upsample"
	      SourceType	      "Upsample"
	      N			      "4"
	      phase		      "0"
	      ic		      "0"
	      mode		      "Maintain input frame rate"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Variance"
	      Ports		      [1, 1]
	      Position		      [615, 92, 665, 128]
	      ShowName		      off
	      SourceBlock	      "dspstat3/Variance"
	      SourceType	      "Variance"
	      run		      "off"
	      reset_popup	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Variance1"
	      Ports		      [1, 1]
	      Position		      [525, 17, 575, 53]
	      ShowName		      off
	      SourceBlock	      "dspstat3/Variance"
	      SourceType	      "Variance"
	      run		      "off"
	      reset_popup	      "None"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "dB Conversion"
	      Ports		      [1, 1]
	      Position		      [685, 91, 745, 129]
	      ShowName		      off
	      SourceBlock	      "dspmathops/dB Conversion"
	      SourceType	      "dB Conversion"
	      dBtype		      "dBm"
	      intype		      "Power"
	      R			      "1"
	      fuzz		      "on"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "dB Conversion1"
	      Ports		      [1, 1]
	      Position		      [595, 16, 655, 54]
	      ShowName		      off
	      SourceBlock	      "dspmathops/dB Conversion"
	      SourceType	      "dB Conversion"
	      dBtype		      "dBm"
	      intype		      "Power"
	      R			      "1"
	      fuzz		      "on"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [650, 148, 680, 162]
	      IconDisplay	      "Port number"
	      BusOutputAsStruct	      off
	      OutputWhenDisabled      "reset"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      "Digital\nFilter Design"
	      SrcPort		      1
	      DstBlock		      "Mix"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Variance"
	      SrcPort		      1
	      DstBlock		      "dB Conversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Gain"
	      SrcPort		      1
	      DstBlock		      "Digital\nFilter Design"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "DSP\nConstant"
	      SrcPort		      1
	      DstBlock		      "Frame Status\nConversion"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mixed to \none of bluetooth\nfrequencie"
"s\n"
	      SrcPort		      1
	      Points		      [35, 0]
	      DstBlock		      "Mix"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Frame Status\nConversion"
	      SrcPort		      1
	      DstBlock		      "Mixed to \none of bluetooth\nfrequencie"
"s\n"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "22MHz\nwhite noise"
	      SrcPort		      1
	      DstBlock		      "Upsample\nto 88 MHz"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mix"
	      SrcPort		      1
	      DstBlock		      "Set to 0dBm"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Upsample\nto 88 MHz"
	      SrcPort		      1
	      DstBlock		      "Gain"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "dB Conversion"
	      SrcPort		      1
	      DstBlock		      "Tx power"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Variance1"
	      SrcPort		      1
	      DstBlock		      "dB Conversion1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "dB Conversion1"
	      SrcPort		      1
	      DstBlock		      "Tx power1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Set to 0dBm"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -120]
		DstBlock		"Variance1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Tx Power"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Tx Power"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"Out"
		DstPort			1
	      }
	      Branch {
		Points			[0, -45]
		DstBlock		"Variance"
		DstPort			1
	      }
	    }
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer to same\nframe-size\nas channel"
	  Ports			  [1, 1]
	  Position		  [410, 160, 445, 210]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "55000"
	  V			  "0"
	  ic			  "0"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Enable control"
	  Ports			  [1, 1]
	  Position		  [215, 71, 280, 119]
	  ShowName		  off
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskDisplay		  "disp('Enable\\n\nLogic')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  System {
	    Name		    "Enable control"
	    Location		    [255, 311, 732, 510]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In"
	      Position		      [60, 13, 90, 27]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "If rate set to 999\nturn-on always"
	      Position		      [150, 112, 180, 143]
	      Operator		      "=="
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [2, 1]
	      Position		      [260, 37, 290, 68]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [260, 107, 290, 138]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator2"
	      Ports		      [2, 1]
	      Position		      [335, 47, 365, 78]
	      ShowName		      off
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Mode"
	      Position		      [40, 49, 110, 71]
	      ShowName		      off
	      Value		      "On"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Mode1"
	      Position		      [40, 106, 115, 124]

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -