User Manual

26
AppendixA:CommandsetofCaMate
Protocol:
Toavoidcommunicationconflictswhenseveraldevicestryingtosenddataatthe sametime,all
transmissionandreceptionarecontrolledbythehostcomputer.Thebasic formisa
command/responseprotocolwiththehostinitiatingthesequence.WhentheCaMatedevicesarenot
transmitting,theyareinthelisteningmode.ThehostsendsacommandtoCaMatewithaspecified
addressandwaitsacertainamountoftimefortheCaMatedevicestorespond.
Theformatforacommandis:
Byte1 Byte2 Byte3 Byte4 Byte5 Byte6 Byte7 Byte8
SyncByte Address Command Data1 Data2 Data3 Data4 Checksum
Allvaluesbelowareshowninhexadecimal.
Thesynchronizationbyteisalways0xFF.
TheaddressisthelogicaladdressoftheCaMatebeingcontrolled.
Thechecksumisthe8bitsum ofthepayloadbytes(bytes2through7)inthecommand.
CommandsetTable:defaultaddressis0x01
CommandName CommandSyntax Description
SoftwareReset FF01100000000112
ReadSerialNo FF01140000000015 Reply:FF0114(data)chks,data:16bytes
ReadModelID FF01150000000016 Reply:FF0115ddddddddchks,dddddddd=modelID
ReadF/Wversion FF01160000000017 Reply:FF0116ddddccccchks,dddd:version,cccc:checksum
ReadMax/Default
current
FF01170000000018 Reply:FF011700mm00ccchks,mm:percentageofmaxcurrent,
cc:percentageofdefaultcurren t
ReadLensangle FF01180000000019 Reply:FF0118ppqqrrsschks,unit:degree
pp:Lens1teleangle,qq:Lens1wideangle
rr:Lens2teleangle,ss:Lens2wideangle
ReadFactorydate FF0119000000001A Reply:FF0119yyyymmddchks,
yyyy/mm/dd=year/month/day
ReadFactorytime FF011A000000001B Reply:FF011A00hhmmsschks,
hh/mm/ss=hours/minutes/seconds
ReadConfiguration
Data
FF01200000000021 Reply:FF0120ddddddddchks,
dddddddd:32bitconfigurationdata
WriteConfiguration FF0121ddddddddchks configurationdatadddddddd:(boldfontisdefaultvalue)