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

📄 bluetooth_voice_article.mdl

📁 Bluetooth Voice with Simulink and MatLab
💻 MDL
📖 第 1 页 / 共 5 页
字号:
	      DstBlock		      "Short-Time FFT1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Mean"
	      SrcPort		      1
	      DstBlock		      "Transpose2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Transpose1"
	      SrcPort		      1
	      DstBlock		      "Mean"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Transpose2"
	      SrcPort		      1
	      DstBlock		      "dB Conversion1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Constant1"
	      SrcPort		      1
	      Points		      [0, -25]
	      DstBlock		      "Relational\nOperator1"
	      DstPort		      2
	    }
	    Line {
	      Name		      "Bluetooth Tx"
	      Labels		      [0, 0]
	      SrcBlock		      "Buffer"
	      SrcPort		      1
	      DstBlock		      "Relational\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In2"
	      SrcPort		      1
	      DstBlock		      "Matrix\nConcatenation2"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      DstBlock		      "Matrix\nConcatenation2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Matrix\nConcatenation2"
	      SrcPort		      1
	      DstBlock		      "Downsample"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Relational\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Multiport\nSelector"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Bluetooth Tx"
	      Labels		      [-1, 1]
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      1
	      Points		      [95, 0]
	      DstBlock		      "Matrix\nConcatenation1"
	      DstPort		      1
	    }
	    Line {
	      Name		      "802.11 Tx"
	      Labels		      [-1, 1]
	      SrcBlock		      "Multiport\nSelector"
	      SrcPort		      2
	      DstBlock		      "Matrix\nConcatenation1"
	      DstPort		      2
	    }
	  }
	}
	Block {
	  BlockType		  ToWorkspace
	  Name			  "To Workspace"
	  Position		  [370, 419, 450, 451]
	  ShowName		  off
	  VariableName		  "Num_802_packets"
	  MaxDataPoints		  "1"
	  Decimation		  "1"
	  SampleTime		  "-1"
	  SaveFormat		  "Array"
	}
	Line {
	  SrcBlock		  "Rx"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Tx"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Tx_802"
	  SrcPort		  1
	  DstBlock		  "Subsystem"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Tx_802 Envelope"
	  SrcPort		  1
	  DstBlock		  "Counter"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "State"
	  SrcPort		  1
	  Points		  [50, 0]
	  DstBlock		  "Subsystem"
	  DstPort		  enable
	}
	Line {
	  SrcBlock		  "Counter"
	  SrcPort		  1
	  Points		  [0, 0; 20, 0]
	  Branch {
	    DstBlock		    "802.11 Packets \nTransmitted"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 90]
	    DstBlock		    "To Workspace"
	    DstPort		    1
	  }
	}
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "Master Transmitter\n(Cellphone)"
      Ports		      [0, 2]
      Position		      [55, 157, 155, 248]
      FontName		      "Arial"
      ShowPortLabels	      on
      TreatAsAtomicUnit	      off
      RTWSystemCode	      "Auto"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      MaskDisplay	      "plot(0,0,100,100,[30,60,60,55,55,30,30],[10,10,"
"90,90,70,70,10],[35,35,55,55,35],[64,45,45,64,64])"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Master Transmitter\n(Cellphone)"
	Location		[53, 127, 944, 620]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"automatic"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Reference
	  Name			  "Access Code"
	  Ports			  [0, 1]
	  Position		  [340, 58, 415, 92]
	  ShowName		  off
	  SourceBlock		  "dspsrcs3/DSP\nConstant"
	  SourceType		  "DSP Constant"
	  Value			  "Access_Code"
	  InterpretAs1D		  "off"
	  SampleMode		  "Discrete"
	  Ts			  "30*(1/Input_Fs)"
	  FramebasedOutput	  "on"
	  Port {
	    PortNumber		    1
	    Name		    "Access Code"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Bluetooth\nClock"
	  Ports			  [0, 1]
	  Position		  [370, 353, 425, 377]
	  SourceBlock		  "bluetooth_lib/Bluetooth\nClock"
	  SourceType		  "Bluetooth Clock"
	  Ts			  "(1/1600)/2"
	  Port {
	    PortNumber		    1
	    Name		    "Hop"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Bluetooth\nHEC Generator"
	  Ports			  [1, 1]
	  Position		  [200, 168, 280, 202]
	  ShowName		  off
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "Bluetooth HEC Generator"
	  MaskDescription	  "Compute the Bluetooth Header Error Check (H"
"EC) as specified in section 5.4 of the Bluetooth specification.  The Upper Ad"
"dress Part (UAP) is used to initialize the state of the encoder.  The UAP is "
"an 8-bit vector, LSB first."
	  MaskPromptString	  "UAP:"
	  MaskStyleString	  "edit"
	  MaskTunableValueString  "on"
	  MaskEnableString	  "on"
	  MaskVisibilityString	  "on"
	  MaskToolTipString	  "on"
	  MaskVariables		  "uap=@1;"
	  MaskDisplay		  "disp('Bluetooth\\nHEC Generator')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "[1 0 0 1 0 1 1 0]"
	  Port {
	    PortNumber		    1
	    Name		    "HEC"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	  }
	  System {
	    Name		    "Bluetooth\nHEC Generator"
	    Location		    [276, 394, 785, 557]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "automatic"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [20, 48, 50, 62]
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Frame Status\nConversion"
	      Ports		      [1, 1]
	      Position		      [105, 39, 155, 71]
	      ShowName		      off
	      SourceBlock	      "dspsigattribs/Frame Status\nConversion"
	      SourceType	      "Frame Status Conversion"
	      growRefPort	      "off"
	      outframe		      "Sample-based"
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Frame Status\nConversion1"
	      Ports		      [2, 1]
	      Position		      [350, 42, 420, 93]
	      ShowName		      off
	      SourceBlock	      "dspsigattribs/Frame Status\nConversion"
	      SourceType	      "Frame Status Conversion"
	      growRefPort	      "on"
	      outframe		      "Sample-based"
	    }
	    Block {
	      BlockType		      "S-Function"
	      Name		      "S-Function Builder"
	      Ports		      [1, 1]
	      Position		      [195, 26, 300, 84]
	      AncestorBlock	      "simulink3/Functions\n& Tables/Basic S-F"
"unction\nBuilder "
	      CopyFcn		      "set_param(gcb,'LinkStatus','none')"
	      OpenFcn		      "sfunctionwizard(gcbh)"
	      FunctionName	      "scomdemohecgen"
	      Parameters	      "uap"
	      PortCounts	      "[]"
	      SFunctionModules	      "scomdemohecgen_wrapper "
	      WizardData	      "DataTag0"
	      MaskInitialization      "val = [[.9  0.75 0.75 1 1 .9 .9 1]',[1 "
"1 0.75 0.75 .9 .9 1 .9]'];\nsys = get_param(gcb,'FunctionName');"
	      MaskDisplay	      "plot(val(:,1),val(:,2))\ndisp(sys)"
	      MaskIconFrame	      on
	      MaskIconOpaque	      on
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "normalized"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Out1"
	      Position		      [460, 63, 490, 77]
	      Port		      "1"
	      OutputWhenDisabled      "held"
	      InitialOutput	      "[]"
	    }
	    Line {
	      SrcBlock		      "Frame Status\nConversion"
	      SrcPort		      1
	      DstBlock		      "S-Function Builder"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Frame Status\nConversion1"
	      SrcPort		      1
	      DstBlock		      "Out1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "In1"
	      SrcPort		      1
	      Points		      [0, 0; 30, 0]
	      Branch {
		Points			[0, 80; 250, 0]
		DstBlock		"Frame Status\nConversion1"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Frame Status\nConversion"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "S-Function Builder"
	      SrcPort		      1
	      DstBlock		      "Frame Status\nConversion1"
	      DstPort		      1
	    }
	  }
	}
	Block {
	  BlockType		  Reference
	  Name			  "Buffer into\nFrames at\nSCO rate"
	  Ports			  [1, 1]
	  Position		  [325, 220, 340, 270]
	  SourceBlock		  "dspbuff3/Buffer"
	  SourceType		  "Buffer"
	  N			  "240"
	  V			  "0"
	  ic			  "One_Zero_Payload"
	  Port {
	    PortNumber		    1
	    Name		    "Payload"
	    TestPoint		    off
	    LinearAnalysisOutput    off
	    LinearAnalysisInput	    off
	    RTWStorageClass	    "Auto"
	  }
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "CVSD\nEncode"
	  Ports			  [1, 1]
	  Position		  [215, 217, 285, 273]
	  ShowName		  off
	  ShowPortLabels	  on
	  TreatAsAtomicUnit	  off
	  RTWSystemCode		  "Auto"
	  RTWFcnNameOpts	  "Auto"
	  RTWFileNameOpts	  "Auto"
	  MaskType		  "CVSD Encoder"
	  MaskDescription	  "Encode a 64 K samples per sec speech signal"
" into a 64Kbps bit stream."
	  MaskPromptString	  "Minimum Step Size|Maximum Step Size|Accumul"
"ator Decay|Step Decay"
	  MaskStyleString	  "edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on"
	  MaskCallbackString	  "|||"
	  MaskEnableString	  "on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on"
	  MaskToolTipString	  "on,on,on,on"
	  MaskVariables		  "min_step=@1;max_step=@2;accum_decay=@3;step"
"_decay=@4;"
	  MaskInitialization	  "pos_accum_max = 2^15 - 1;\nneg_accum_max = "
"-2^15 + 1;"
	  MaskDisplay		  "disp('CVSD\\nEncode')"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "10|1280|1-1/32|1-1/1024"
	  MaskVariableAliases	  ",,,"
	  System {
	    Name		    "CVSD\nEncode"
	    Location		    [48, 86, 956, 707]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "In1"
	      Position		      [25, 63, 55, 77]
	      Port		      "1"
	      LatchInput	      off
	      Interpolate	      on
	      Port {
		PortNumber		1
		Name			"u"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
	      }
	    }
	    Block {
	      BlockType		      Reference
	      Name		      "Bipolar to\nUnipolar\nConverter1"
	      Ports		      [1, 1]
	      Position		      [740, 48, 795, 92]
	      ShowName		      off
	      SourceBlock	      "commutil2/Bipolar to\nUnipolar\nConvert"
"er"
	      SourceType	      "Bipolar to Unipolar Converter"
	      M			      "2"
	      polarity		      "Negative"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "Gain"
	      Position		      [95, 53, 160, 87]
	      ShowName		      off
	      Gain		      "32768"
	      Multiplication	      "Element-wise(K.*u)"
	      SaturateOnIntegerOverflow	on
	    }
	    Block {
	      BlockType		      Rounding
	      Name		      "Rounding\nFunction"
	      Position		      [185, 53, 220, 87]
	      ShowName		      off
	      Operator		      "round"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Set any 0's to 1's"
	      Ports		      [1, 1]
	      Position		      [495, 47, 560, 93]
	      ShowPortLabels	      on
	      TreatAsAtomicUnit	      off
	      RTWSystemCode	      "Auto"
	      RTWFcnNameOpts	      "Auto"
	      RTWFileNameOpts	      "Auto"
	      Port {
		PortNumber		1
		Name			"y"
		PropagatedSignals	"y"
		TestPoint		off
		LinearAnalysisOutput	off
		LinearAnalysisInput	off
		RTWStorageClass		"Auto"
	      }
	      System {
		Name			"Set any 0's to 1's"
		Location		[202, 130, 679, 383]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"automatic"
		Pape

⌨️ 快捷键说明

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