| DOCUMENTATION |
| |
The MCP communicate through standard RS232 interface. In the PRO, EL and USB
version the serial com port is emulated by the USB port through a USB-RS232 chip
converter (internal in the MCP hardware).
The serial communication settings are 38400,N,8,1:
Baud Rate = 38400
Parity = none
Num bit for data = 8
Stop bit = 1
MCP use an ASCII protocol where command is transmitted as a string followed by a binary
zero as a terminator, so the command Q001 (see Command List) is built by an ASCII
string ( Q001 ) + an end binary character ( 0 )
Some commands related to the configuration and analog/digital I/O have a mix of ASCII
and binary data. This exception is used to optimize data transmission where necessary.
Command are sent by the MCP only when a data changes; same commands may be used
towards the MCP to set display value and key-light status.
| |
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
| EXTERNAL MODULES |
| |
This modules can transmit and receive commands to and from the PC software through MCP using daisy chain connection.
The modules transmit commands to the PC only when something on the hardware change, for example when you push a button,
move a switch or change some display value.
Transmit a data to the module is a little more complex bacause need to respect the hardware internal timeout.
In this case need to wait both MCP timeout than modules timeout for each command. The MCP timeout is 10 mS and the modules Timeout is 30 mS.
For this reason for each command sent to an external modules you need to wait 40 ms. You can also packing the command (remeber always the '0'
char between the command), this allow you to save time becuase you have to add the MCP timeout only one time. Follow an example to clarify.
If for example you want to set to NAV1 the frequency 114.20 and on NAV2 the frequency 117,97 you have to respect this timeout.
Send a command one at the time:
Out = "E0035025152" ; set 114.20 to NAV1
wait 40 mSec, 10mSec for the MCP and 30 for the modules.
Out = "E0035226039" ; set 117.97 to NAV2
wait 40 mSec, 10mSec for the MCP and 30 for the modules.
Packing the command (optimized mode, suggested):
Out = "E0035025152" + chr(0) +"E0035226039" +chr(0) ; set 114.20 to NAV1 and set 117.97 to NAV2
In this case you'll wait 30 mSec for each command and 10mSec for the MCP. So you save 10 mSec. If you need to send 5 command together
you can save 50 mSec.
| |
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|
| |
|
|