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

📄 bluetooth_full_duplex.mdl

📁 Matlab环境下的各种无线系统的仿真例程
💻 MDL
📖 第 1 页 / 共 5 页
字号:
"nWed Dec 15 12:08:45 2004"
	  HorizontalTextAlignment "Center"
	  LeftAlignmentValue	  "0.5"
	  SourceBlockDiagram	  "bluetooth_full_duplex"
	  TagMaxNumber		  "20"
	}
	Annotation {
	  Name			  "This model simulates full duplex communicat"
"ion between two Bluetooth [1] devices.\nVoice packet types supported include:"
" HV1, HV2, HV3 and SCORT [2]\nData Packet types supported include: DM1 (two-w"
"ay, no NULL packet)\n\nNotes:\n* Set EsNo level in workspace, default is 18dB"
"\n* Data transmission with DM1 packet is two-way (NULL packet not currently s"
"upported)\n\nFile dependancies:\n* bluetooth_init.m: Workspace initialization"
" routine called by PreLoadFcn\n* device_init.m: Device mask initialization fu"
"nction\n* bluetooth_lib2.mdl: Library containing complete devcice, 802.11b tr"
"ansmitter, BT hop generator and BT clock\n* poiss_gaus_prc.m: Variable time-s"
"tep M Code S-function to generate 802.11b poisson packets\n* code_data.mat: 2"
"/3 hanning code matrices and variables\n* Input1.wav: Input wave file\n* Inpu"
"t2.wav: Input wave file\n* The model will also generate 2 output wave files\n"
"\nReferences:\n[1] Bluetooth spec: www.bluetooth.com\n[2]SCOR T spec: IEEE 80"
"2.15-01/145r0"
	  Position		  [46, 249]
	  HorizontalAlignment	  "left"
	  FontName		  "Arial"
	  FontSize		  12
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Instrumentation \n(Remove for Speed)"
      Ports		      [3]
      Position		      [500, 394, 570, 476]
      TreatAsAtomicUnit	      on
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Instrumentation"
      MaskInitialization      "\n"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Instrumentation \n(Remove for Speed)"
	Location		[101, 180, 651, 577]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Tx"
	  Position		  [60, 143, 90, 157]
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Tx_802"
	  Position		  [60, 208, 90, 222]
	  NamePlacement		  "alternate"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Rx"
	  Position		  [60, 273, 90, 287]
	  NamePlacement		  "alternate"
	  Port			  "3"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "State"
	  Position		  [215, 20, 245, 50]
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Subsystem"
	  Ports			  [3, 0, 1]
	  Position		  [215, 118, 425, 312]
	  TreatAsAtomicUnit	  on
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  System {
	    Name		    "Subsystem"
	    Location		    [-9, 78, 986, 648]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Tx"
	      Position		      [25, 123, 55, 137]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Tx_802"
	      Position		      [25, 153, 55, 167]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Rx"
	      Position		      [20, 428, 50, 442]
	      Port		      "3"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	    }
	    Block {
	      BlockType		      EnablePort
	      Name		      "Enable"
	      Ports		      []
	      Position		      [500, 40, 520, 60]
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [320, 130, 350, 160]
	      ShowName		      off
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer"
	      Ports		      [1, 1]
	      Position		      [400, 120, 450, 170]
	      ShowName		      off
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "60*440"
	      V			      "59*440"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer1"
	      Ports		      [1, 1]
	      Position		      [395, 290, 445, 340]
	      ShowName		      off
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "60*440"
	      V			      "59*440"
	      ic		      "0"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Buffer2"
	      Ports		      [1, 1]
	      Position		      [725, 410, 775, 460]
	      ShowName		      off
	      SourceBlock	      "dspbuff3/Buffer"
	      SourceType	      "Buffer"
	      N			      "60"
	      V			      "59"
	      ic		      "-70"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant1"
	      Position		      [455, 175, 485, 205]
	      ShowName		      off
	      Value		      "0"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Constant2"
	      Position		      [425, 370, 455, 400]
	      ShowName		      off
	      Value		      "-1"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "DSP\nConstant"
	      Ports		      [0, 1]
	      Position		      [45, 356, 155, 394]
	      ShowName		      off
	      SourceBlock	      "dspsrcs4/DSP\nConstant"
	      SourceType	      "DSP Constant"
	      ShowPortLabels	      "on"
	      Value		      ".2*[ones(1,366*88) zeros(1,625*88-366*8"
"8)]'"
	      SampleMode	      "Discrete"
	      discreteOutput	      "Frame-based"
	      continuousOutput	      "Sample-based"
	      sampTime		      "625e-6"
	      framePeriod	      "625e-6"
	      additionalParams	      "off"
	      allowOverrides	      "on"
	      dataType		      "Inherit from 'Constant value'"
	      isSigned		      "on"
	      wordLen		      "16"
	      udDataType	      "sfix(16)"
	      fracBitsMode	      "Best precision"
	      numFracBits	      "15"
	      InterpretAs1D	      "off"
	      Ts		      "625e-6"
	      FramebasedOutput	      "on"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Downsample"
	      Ports		      [1, 1]
	      Position		      [235, 128, 280, 162]
	      ShowName		      off
	      SourceBlock	      "dspsigops/Downsample"
	      SourceType	      "Downsample"
	      N			      "125"
	      phase		      "0"
	      ic		      "0"
	      smode		      "Allow multirate"
	      fmode		      "Maintain input frame rate"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Downsample1"
	      Ports		      [1, 1]
	      Position		      [270, 298, 315, 332]
	      ShowName		      off
	      SourceBlock	      "dspsigops/Downsample"
	      SourceType	      "Downsample"
	      N			      "125"
	      phase		      "0"
	      ic		      "0"
	      smode		      "Allow multirate"
	      fmode		      "Maintain input frame rate"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Marker"
	      Ports		      [0, 1, 1]
	      Position		      [105, 298, 180, 332]
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Marker"
		Location		[145, 364, 934, 690]
		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		  [385, 35, 405, 55]
		}
		Block {
		  BlockType		  Reference
		  Name			  "DSP\nConstant"
		  Ports			  [0, 1]
		  Position		  [280, 137, 365, 173]
		  SourceBlock		  "dspsrcs4/DSP\nConstant"
		  SourceType		  "DSP Constant"
		  ShowPortLabels	  "on"
		  Value			  ".1*[ones(1,366*88) zeros(1,625*88-3"
"66*88)]'"
		  SampleMode		  "Discrete"
		  discreteOutput	  "Frame-based"
		  continuousOutput	  "Sample-based"
		  sampTime		  "625e-6"
		  framePeriod		  "625e-6"
		  additionalParams	  "off"
		  allowOverrides	  "on"
		  dataType		  "Inherit from 'Constant value'"
		  isSigned		  "on"
		  wordLen		  "16"
		  udDataType		  "sfix(16)"
		  fracBitsMode		  "Best precision"
		  numFracBits		  "15"
		  InterpretAs1D		  "off"
		  Ts			  "625e-6"
		  FramebasedOutput	  "on"
		}
		Block {
		  BlockType		  Outport
		  Name			  "Tx"
		  Position		  [455, 148, 485, 162]
		  IconDisplay		  "Port number"
		  BusOutputAsStruct	  off
		  OutputWhenDisabled	  "reset"
		  InitialOutput		  "0"
		}
		Line {
		  SrcBlock		  "DSP\nConstant"
		  SrcPort		  1
		  DstBlock		  "Tx"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Matrix\nConcatenation"
	      Ports		      [2, 1]
	      Position		      [625, 134, 635, 216]
	      SourceBlock	      "simulink/Math\nOperations/Matrix\nConca"
"tenation"
	      SourceType	      "Matrix Concatenation"
	      numInports	      "2"
	      catMethod		      "Horizontal"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Matrix\nConcatenation1"
	      Ports		      [3, 1]
	      Position		      [830, 126, 840, 224]
	      ShowName		      off
	      SourceBlock	      "simulink/Math\nOperations/Matrix\nConca"
"tenation"
	      SourceType	      "Matrix Concatenation"
	      numInports	      "3"
	      catMethod		      "Horizontal"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Matrix\nConcatenation2"
	      Ports		      [2, 1]
	      Position		      [155, 113, 210, 177]
	      ShowName		      off
	      SourceBlock	      "simulink/Math\nOperations/Matrix\nConca"
"tenation"
	      SourceType	      "Matrix Concatenation"
	      numInports	      "2"
	      catMethod		      "Horizontal"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Mean"
	      Ports		      [1, 1]
	      Position		      [340, 415, 395, 455]
	      DialogController	      "dspDDGCreate"
	      DialogControllerArgs    "DataTag0"
	      SourceBlock	      "dspstat3/Mean"
	      SourceType	      "Mean"
	      run		      "off"
	      reset_popup	      "None"
	      additionalParams	      "off"
	      allowOverrides	      "on"
	      outputMode	      "Same as accumulator"
	      outputWordLength	      "32"
	      outputFracLength	      "30"
	      accumMode		      "Same as input"
	      accumWordLength	      "32"
	      accumFracLength	      "30"
	      roundingMode	      "Floor"
	      overflowMode	      "off"
	      LockScale		      "off"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Multiport\nSelector"
	      Ports		      [1, 3]
	      Position		      [690, 126, 700, 224]
	      ShowName		      off
	      SourceBlock	      "dspindex/Multiport\nSelector"
	      SourceType	      "Multiport Selector"
	      rowsOrCols	      "Columns"
	      idxCellArray	      "{ 1,2,3}"
	      idxErrMode	      "Clip Index"
	      Port {
		PortNumber		1
		Name			"Bluetooth Tx"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		2
		Name			"802.11b Tx"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"Slots"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      RelationalOperator
	      Name		      "Relational\nOperator1"
	      Position		      [510, 137, 540, 168]
	      ShowName		      off
	      Operator		      ">"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Reshape"
	      Ports		      [1, 1]
	      Position		      [135, 423, 165, 447]
	      SourceBlock	      "simulink/Math\nOperations/Reshape"
	      SourceType	      "Reshape"
	      OutputDimensionality    "Customize"
	      OutputDimensions	      "[440,125]"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector1"
	      Ports		      [1, 1]
	      Position		      [580, 417, 600, 453]
	      ShowName		      off
	      Elements		      "[257:512 1:256]"
	      InputPortWidth	      "512"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Selector2"
	      Ports		      [1, 1]
	      Position		      [650, 417, 670, 453]
	      ShowName		      off
	      Elements		      "7:506"
	      InputPortWidth	      "512"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Short-Time FFT1"
	      Ports		      [1, 1]
	      Position		      [205, 407, 270, 463]
	      ShowName		      off
	      SourceBlock	      "dspspect3/Periodogram"
	      SourceType	      "Periodogram"
	      ShowPortLabels	      "on"
	      wintype		      "Hanning"
	      Rs		      "50"
	      beta		      "5"
	      winsamp		      "Periodic"

⌨️ 快捷键说明

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