MARTINLightJockeyRS232代码

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

RS-232ProtocolTheRS-232protocolisbasedona3bytebinaryprotocol.Theformatforallcommandsareidentical:[Command][Data1(MSB)][Data2(LSB)]All3bytesmustbesenttoLightJockeywithin0.2seconds,otherwiseanincompletecommandtimesout.Allbyteswithavalueof128orabovearetreatedasa[command]byte.Consequentlyalldatabytesmusthaveavalueof127orlower.WhentheboththedatabytesareusedtosendavaluethevaluemustbesplitintoanMSBandanLSBpair.Examples:Toloadcuenumber130:Send[129][1][2]-129istheLoadCuecommand,and1*128+2selectscuenumber130.Toloadcuelistnumber2Send[128][0][2]-128istheloadcuelistcommand,and0*128+2selectscuelistnumber2.ListedbelowarethevariouscommandsacceptedbytheRS-232interfaceapplicationFunction[Cmd][Data1][Data2]NotesLoadcuelist[128]Cuelist#MSBCuelist#LSBsend#0tostopcurrentLoadcue[129]Cue#MSBCue#LSBsend#0toclearcurrentLoadbackgroundcue[130][BGCue#MSB][BGCue#LSB]send#0toclearcurrentFlashSequenceon[131][Sequence#MSB][Sequence#LSB]send#0toclearcurrentSmokeOff[132][0][0]seesmokeControlSmokeOn[132][0][1]seesmokecontrolSmoketimeroff[132][1][0]seesmokecontrolSmoketimeron[132][1][1]seesmokecontrolBlackout[132][2][1]seeblackout/restoreRestore[132][2][0]seeblackout/restoreFadein[132][3][0]seemasterintensity,usespresettimeFadeout[132][3][1]seemasterintensity,usespresettimeEnablestaticentry[133][Static#][1]seestaticscontrolDisablestaticentry[133][Static#][0]seestaticscontrolCurrentcuelistGo[134][1][1]manualcuelistsonly,seecuelistCurrentcuelistBack[134][1][2]manualcuelistsonly,seecuelistCuecontrolsloton[135][slot#][1]seecuecontrolCuecontrolslotoff[135][slot#][0]seecuecontrolBackgroundcuesloton[136][slot#][1]seebackgroundcueBackgroundcueslotoff[136][slot#][0]seebackgroundcue

1 / 2
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功