英飞拓矩阵控制协议rs232.docx
- 文档编号:11093517
- 上传时间:2023-02-25
- 格式:DOCX
- 页数:16
- 大小:22.90KB
英飞拓矩阵控制协议rs232.docx
《英飞拓矩阵控制协议rs232.docx》由会员分享,可在线阅读,更多相关《英飞拓矩阵控制协议rs232.docx(16页珍藏版)》请在冰豆网上搜索。
英飞拓矩阵控制协议rs232
APPLICATIONNOTE
ASCIICONTROLCOMMANDS
FOR
MATRIXSWITCHINGSYSTEMS
AN001
TABLEOFCONTENTS
Section
GENERALDESCRIPTION1.0
CAMERATOMONITORCALL-UP2.0
TOUR/SEQUENCECONTROL3.0
PAN/TILT/LENSCONTROL4.0
ALARMCALL-UPCONTROL5.0
AD168PAN/TILT/LENSCONTROL6.0
ASCIICOMMANDTABLEApp
NewtekCorp.PrincetonU.S.A.
1.0GENERALDESCRIPTION
ThisdocumentdefinesthecodestructurenecessaryforthecontrolandoperationofanAmericanDynamicsmatrixswitchingsystemfromanexternaldevicesuchasacomputerorterminal.
ControlofAmericanDynamicsmatrixsystemisaccomplishedusingASCIIcommandstringstransmittedfromthecontrollingdevice(keyboard,computer,terminal,etc.)tothematrixsystemCPUviaRS-232.Operationsdescribedincludecamera-to-monitorswitching,tour/sequencecontrol,PTZcontrol(telemetry),andalarminterface.
Thematrixswitchingsystem’sCPU,whetherinternalorexternal,hasmultiplefullduplexRX-232controlports.Eachportisconfigurablethroughthematrixsystem’sinternalmenustoacceptdatawordswith7or8databits,1or2stopbitsandparityselection(none,evenorodd).Baudratesareselectablebetween1200,2400,4800or9600baud.PortuseshouldbesettoTERMINAL.ThedefaultportsettingisforKEYBOARDat1200baudwith8databits,1stopbitandnoparity.The7-bitASCIIcodesetisusedforcontrolcommands.
Allcommandsmustbefollowedbyaterminatingcharactersuchascarriagereturn
Theexamplesinthisdocumentshowhowtoperformvariousfunctionsforcontrolofthematrixswitchingsystem.Notallavailablefunctionsaredescribed.Foralistingofinterfacecodes,pleaserefertothecodedescriptiontableintheAppendix.
2.0CARMERATOMONITORCALL-UP
Inordertoswitchcamerastoamonitor,themonitormustfirstbeaddressed.Oncethemonitorisselectedallcameraswitchselectionsshallbeforthatmonitoruntilanothermonitorisaddressed.Subsequentcameraselectionstothesamemonitordonotrequirere-selectingthatmonitor.Thefollowingexamplesshowhowtoselectamonitorandcallacamera.
MonitorSelection
ThedatastringforselectingamonitorconsistsoftheMonitorNumber,MonitorFunctionDescriptorandtheStringTerminator.
Example:
Selectmonitor10toinitiatecameracall-up
String:
MonitorNumber10FunctionDescriptorMStringTerminatora
ASCII:
10MaHEX:
31304D61
CameraSelection
ThedatastringforcallingacameratoapreviouslyselectedmonitorconsistsofCameraNumber,CameraFunctionDescriptorandtheStringTerminator.
Example:
Callcamera25topreviouslyselectedmonitor
String:
CameraNumber25FunctionDescriptor#StringTerminatora
ASCII:
25#aHEX:
32352361
3.0TOUR/SEQUENCECONTROL
Toursorsequencesofcamerasarecontrolledbyfirstaddressingthemonitorandselectingtheappropriateaction.Therearetwotypesoftours/sequences:
MonitorToursandUniversalTours.Adescriptionofthetouroperationislocatedinthemanualsfortheindividualmatrixwitchingsystem.
MonitorTourOperation
TorunaMonitorTour,twodatastringsmustbesent.First,themonitormustbeselected,andthenthetourisinitiatedwithRUNcommand.ThedatastringconsistsoftheMonitorNumber,MonitorFunctionDescriptorandtheStringTerminatorfollowedbytheRunFunctionDescriptorandtheStringTerminator.
Example:
Runmonitortour(scratchpadtour)onmonitor10
String:
MonitorNumber10FunctionDescriptorMStringTerminatora
FunctionDescriptorSStringTerminatora
ASCII:
10MaSaHEX:
31304D615361
UniversalTourOperation
TorunaUniversalTour,threedatastringsmustbesent.First,themonitormustbeselected,thentheTourNumberandRuncommandmustbesent,andfinallytheAcknowledgecommandissent.ThedatastringwillconsistoftheMonitorNumber,MonitorFunctionDescriptorandtheStringTerminator,theTourNumber,RunFunctionDescriptorandtheStringTerminatorandtheAcknowledgeFunctionDescriptorandtheStringTerminator.
Example:
RunUniversalTour5onmonitor10
String:
MonitorNumber10FunctionDescriptorMStringTerminatora
TourNumber5FunctionDescriptorSStringTerminatora
FunctionDescriptorStringTerminatora
ASCII:
10Ma5SaaHEX:
31304D613553615F61
HoldingaTourOperation
Toholdatourthatispresentlyrunning,twodatastringsmustbesent.Firstselectthemonitor,andtheninitiatetheHoldcommand.ThedatastringwellconsistoftheMonitorNumber,MonitorFunctionDescriptorandtheStringTerminatorfollowedbytheHoldFunctionDescriptorandtheStringTerminator.
Example:
Holdatourrunningonmonitor10
String:
MonitorNumber10FunctionDescriptorMStringTerminatora
FunctionDescriptorHStringTerminatora
ASCII:
10MaHaHEX:
31304D614861
4.0PAN/TILT/LENSCONTROL
Torequestcontinuousrealtimeactionssuchaspan,tilt,zoom,focusoririscontrol,theASCIIcodeforthedesiredactionfollowedbyaterminatormustbesentaminimumoffivetimesandrepeatedforaslongastheactionisdesired.Toensuresmoothcontinuousaction,thecodemustberepeatedatarateofapproximately15timespersecond.Thesecommandswillcontrolthecameracurrentlydisplayedontheaddressedmonitor.
FixedSpeedPan/TiltControl
Forcontroloffixedspeedpan/tilts,thedesiredDirectionFunctionDescriptormustbesentfollowedbyaStringTerminatoratarateof15timespersecond.
Example:
Pancurrentlydisplayedcameraonselectedmonitortotheright
String:
RightCommandRStringTerminatora(Repeat15times/seconduntiltargetis
reached)
ASCII:
RaRaetc.HEX:
52615261etc.
VariableSpeedPan/TiltControl
Forcontrolofvariablespeedpan/tiltunits,eightproportionalspeedsareavailableineachdirection.ThespeedsaredefinedbyaSpeedNumberfrom0to6,where0istheslowestspeedand6isthesecondhighestspeed.Forfullspeedoperation,nospeednumberisrequired(seeexampleabove).Commandsmustbesentatarateof15timespersecond.
Example:
Pancurrentlydisplayedcameraonselectedmonitortotheleftathalfspeed
String:
SpeedNumber4LeftCommandLStringTerminatora(Repeat15times/second
untiltargetisreached)
ASCII:
4La4Laetc.HEX:
344C61344C61etc.
DiagonalPan&TiltOperation
Tocontrolboththepanandtiltfunctionssimultaneously,ie.onadiagonal,thecommandsforbothpanandtiltdirectionsmustbeinterleavedinthedatastreamatarateof15timespersecond.
Example:
Forthecameracurrentlydisplayedonthemonitor,panrightandtiltup
simultaneously
String:
RightCommandRStringTerminatoraUpCommandUStringTerminatora
(Repeat15times/seconduntiltargetisreached)
ASCII:
RaUaRaUaetc.HEX:
5261556155615561etc.
LensControl
Forlenscontrol,thedesiredFunctionDescriptor(zoomwideortelephoto,focusnearorfar,irisopenorclose)mustbesentfollowedbytheStringTerminatoratarateof15timespersecond.
Example:
Operatezoomlensintelephotomode(ie.zoomin)
String:
TelephotoCommandTStringTerminatora(Repeat15times/seconduntil
targetisreached)
ASCII:
TaTaetc.HEX:
54615461etc.
Preset(Shot)Control
Tocallapresetscene(orshot)forthecurrentcamera,apreviouslydefinedpresetscenenumbermustbesentfollowedbytheCallShotFunctionDescriptorandaStringTerminator.
Example:
Callpresentscene3oncurrentcamera
String:
PresetSceneNumber3CallShotFunctionDescriptor\StringTerminatora
ASCII:
3\aHEX:
335C61
AuxiliaryControl
Auxiliaryrelaysatsuitablyequippedcamerasitesareconfiguredaseitherlatchingormomentary.Toactivateamomentaryauxiliaryrelay,theAuxiliaryNumberandAuxOnFunctionDescriptormustbesentatarateof15timesperseconduntilthedesiredactivityiscompleted.Toturnonorturnoffalatchingrelay,theAuxiliaryNumberandtheAuxOnorAuxOffFunctionDescriptormustbesentrespectivelytoattainthedesiredresult.EachcommandmustbeproceededbyaStringTerminator.
Example:
Activatemomentaryauxiliaryrelay1
String:
AuxiliaryNumber1AuxOnFunctionDescriptorAStringTerminatora(repeat
at15times/seconduntilactioniscompleted)
ASCII:
1Aa1Aaetc.HEX:
314161314161etc.
Example:
Turnonlatchingauxiliaryrelay2
String:
AuxiliaryNumber2AuxOnFunctionDescriptorAStringTerminatora
ASCII:
2AaHEX:
324161
Example:
Turnofflatchingauxiliaryrelay2
String:
AuxiliaryNumber2AuxOffFunctionDescriptorBStringTerminatora
ASCII:
2BaHEX:
324161
5.0ALARMCALL-UPCONTROL
Analarmcommandcanbeusedtoautomaticallyswitchcamera(s)tomonitor(s)withtheoccurrenceofanalarmcondition.Auserdefinedalarm/cameratableinstoredinthematrixswitchingsystematsystemset-up,andisaccessedbythealarmcommanddatastring.Forinformationonalarmsandalarmprogrammingpleasereviewtherespectivematrixsystemmanual(s).Thefollowingexamplesshowhowtoinitiate,clearandacknowledgeanalarm.
NewAlarm
Thiscommandinitiatesanewalarmforautocameracall-up.ThedatastringconsistsoftheAlarmContactNumber,FunctionDescriptorandtheStringTerminator.
Example:
Activatealarmcontact25
String:
AlarmContactNumber25FunctionDescriptorEStringTerminatora
ASCII:
25EaHEX:
32354561
End(Clear)Alarm
Thiscommandis
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 英飞拓 矩阵 控制 协议 rs232