
240 AppendixBLogicControl—MIDIImplementation
GlobalControlMessages
HostConnectionandInitialization
Received:
<Hdr>00F7
DeviceQuery
<Hdr>02ssssssssssssssrrrrrrrrF7
HostConnectionReply
<Hdr>0F7FF7
GoOffline
Transmitted:
<Hdr>01ssssssssssssssllllllllF7
HostConnectionQuery
<Hdr>03ssssssssssssssF7
HostConnectionConfirmation
<Hdr>04ssssssssssssssF7
HostConnectionError
ss =Serialnumber(7bytesASCIItext,nonnull-terminated)
ll =Challengecode(4bytes)
rr =Responsecode(4bytes)
OfflineMode:
LogicControlemploysaquerysystemtomaintainaconnectiontothehostsoftware.
WhenLogicControlisinitiallypoweredup,itdefaultstoOfflinemode.InOfflinemode,
LogicControl’sfadersmovetotheirlowestsetting,andtheLCDreads“EMAGICLOGIC
CONTROL--byMACKIE.”Afterpower-on,LogicControlalsotransmitsasystem
exclusiveHostConnectionQuerymessagethatisused(bythehost)todetecta
connection,andwhattypeofdeviceisconnected(LogicControl/LogicControlXT).
CommunicationsInitialization:
WhenthehostsoftwarereceivesaHostConnectionQuerymessage(containingaserial
numberandarandomchallengecode),itshouldtransmitaHostConnectionReply
commandwithin300mstoinitializeLogicControl.Thecommandmustcontainthe
sameserialnumberandthecorrec tresponsecodeforthechallengecode.Hereisthe
algorithm(l1tol4=challengecodebytes1to4,r1tor4=responsecodebytes1to4):
r1=0x7F&(l1+(l2^0xa)–l4);
r2=0x7F&((l3>>4)^(l1+l4));
r3=0x7F&(l4-(l3<<2)^(l1|l2));
r4=0x7F&(l2-l3+(0xF0^(l4<<4)));
LogicControlwill,inturn,respondwitheither:
 aHostConnectionConfirmationmessagethatcontainstheserialnumber,andswitch
toOnlinemode—whereitwillawaitfurtherinstructionsfromthehost,or
 replywithaHostConnectionErrormessage,iftheresponsecodewaswrong.
Kommentare zu diesen Handbüchern