mcmt update
starting protocol for MCMTII
Line 6: Line 6:


The current source available from the [http://www.astrosurf.com/mcmtii/telechargt.htm download page] is quite old. [[:File:McmtII_dll_v1.2.3.8_source.zip|Here]] is a local copy of this file, version 1.2.3.8. A newer version will be requested soon as well as protocol documentation. It is developed by [http://www.alcor-system.com Alcor System], so does PRISM. The code in Delphi language for Windows.
The current source available from the [http://www.astrosurf.com/mcmtii/telechargt.htm download page] is quite old. [[:File:McmtII_dll_v1.2.3.8_source.zip|Here]] is a local copy of this file, version 1.2.3.8. A newer version will be requested soon as well as protocol documentation. It is developed by [http://www.alcor-system.com Alcor System], so does PRISM. The code in Delphi language for Windows.
==RS232 protocol==
The protocol for the serial link is quite simple, based on request-response exchanges.
The windows DLL opens and closes the serial port for each write and read operation.
Three types of messages exist, as explained in the following table. axis_id is `E0' for alpha axis (right ascension), `E1' for delta axis (declination). In the fields request and response of the table, values or identifiers represent bytes, and they are separated by commas. Comments are between parentheses.
{|
!Command
!Request
!Response
|-
|''device ready''
|axis_id, FF
|01 (success value)
|-
|''read encoder''
|axis_id, F1 + byte number [0..3]
|the requested byte from the int32 value
|-
|''special command''
|axis_id, '''{7 bytes maximum for the command}'''
|06, {data} (if response data is available)
|}
Most commands then fall into the special command category. Data is mostly ascii text, and commands start with an identifier, which is generally a letter. The following table lists these commands ''(to be done soon)''.
{|
!Command
!Request
!Response
|}

Revision as of 00:26, 29 August 2012

MCMTII

Link to official webpage (in French).

Recent versions (2011) of the MCMTII, which have undergone a few evolutions since MCMTII has been described on the website, only work with the non-free PRISM software (for windows) in versions 7 or 8 or the Ascom driver.

The current source available from the download page is quite old. Here is a local copy of this file, version 1.2.3.8. A newer version will be requested soon as well as protocol documentation. It is developed by Alcor System, so does PRISM. The code in Delphi language for Windows.

RS232 protocol

The protocol for the serial link is quite simple, based on request-response exchanges. The windows DLL opens and closes the serial port for each write and read operation.

Three types of messages exist, as explained in the following table. axis_id is `E0' for alpha axis (right ascension), `E1' for delta axis (declination). In the fields request and response of the table, values or identifiers represent bytes, and they are separated by commas. Comments are between parentheses.

Command Request Response
device ready axis_id, FF 01 (success value)
read encoder axis_id, F1 + byte number [0..3] the requested byte from the int32 value
special command axis_id, {7 bytes maximum for the command} 06, {data} (if response data is available)

Most commands then fall into the special command category. Data is mostly ascii text, and commands start with an identifier, which is generally a letter. The following table lists these commands (to be done soon).

Command Request Response