User manual


DocumentMT0100P.N
©XsensTechnologiesB.V. MTiandMTxUserManualandTechnicalDocumentation
24
5 Basiccommunication
5.1 Introduction
Thissection describes thebasicsof how to communicatewiththeMTi / MTxdirectlyon lowlevelusingRS
232/422/485 serial communication with orwithout the use of an Xsens USBserialconverter.Foradetailed
andcompletelistofallmessagespleaserefertotheMTLowlevelCommunicationDocumentation.
NOTE:YoucanskipthischapterifyouplantoonlyinterfacewiththedeviceusingXsens’GUIsoftwareorSDK
API.
Thecommunicationprotocol,whichismessagebased,enablestheusertochangetheconfigurationoftheMTi
orMTx and toretrievethe datafromthedevice. The communicationprotocolused for theMTi and MTx is
compliant to the MotionTracker communication protocol
18
. The configuration is fully usersettable, e.g.
samplefrequency,in‐ &outputsynchronization,baudrateand data output modes, can all bechangedto fit
yourrequirements.
All configuration changes must be made while the device is in the socalled Config State. In this state the
device accepts messages that set the output mode or changes to other settings. Whenever the preferred
configurationiscompletedtheusercansetthedevicetoMeasurementState.Inthisstatethedeviceoutputs
databasedthecurrentconfigurationsettings.
5.2 States
TheMTi/MTxhastwostates,i.e.ConfigState and MeasurementState.IntheConfigStatevarioussettings
can be read and written. In the Measurement State the device will output its data message whichcontains
datadependentonthecurrentconfiguration.
There are two different ways to enter the Config State or the Measurement State. At powerup the device
startstheWakeUpprocedure,ifnoactionistaken itwillthenenterMeasurementStatebydefault,usingits
lateststoredconfiguration.
PriortoenteringtheMeasurementState,theConfigurationmessageisalwayssenttothehost
19
.Thisis
the configuration that is read from the internal nonvolatile memory and will be used in the Measurement

18
The MotionTrackerhost protocol is a fully documented standard message based protocol developed by
Xsenstailormadefortheneedsofinertialsensors.
19
If the device is set to RAW OutputMode the device will send additional encrypted data to the host after
sendingtheConfigurationmessage.Theencrypteddataprimarilycontainsthecalibrationvaluesofthe
Measurement
WakeUp
procedure
WakeUpAck
received by device
No WakeUpAck
received by device
GotoMeasurement
GotoConfig
Config