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

📄 bluetooth_lib2.mdl

📁 关于蓝牙的很好的仿真程序(simulink加matlab)
💻 MDL
📖 第 1 页 / 共 5 页
字号:
";\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"
      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
	  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]
	    }
	    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]
	      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
	  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]
	    }
	    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]
	      ShowName		      off
	      Value		      "rate"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Mode2"
	      Position		      [40, 133, 115, 147]
	      ShowName		      off
	      Value		      "999"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out"
	      Position		      [390, 58, 420, 72]
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator2"
	      SrcPort		      1
	      DstBlock		      "Out"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In"
	      SrcPort		      1
	      Points		      [145, 0; 0, 25]
	      DstBlock		      "Logical\nOperator"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator1"
	      SrcPort		      1
	      Points		      [20, 0; 0, -55]
	      DstBlock		      "Logical\nOperator2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Mode"
	      SrcPort		      1
	      Points		      [0, 0; 90, 0]
	      Branch {
		Points			[0, 55]
		DstBlock		"Logical\nOperator1"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Logical\nOperator"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "If rate set to 999\nturn-on always"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator1"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Mode1"

⌨️ 快捷键说明

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