# External Device Interface Set-Up
#
# Soil Machine Dynamics Ltd
# Wincomblee Rd, Low Walker
# Newcastle-upon-Tyne,   UK
# NE6 3QS.
# Tel: +00 44 (0)191-234-2222
# Fax: +00 44 (0)191-234-0444
#
# This file is used to define the configuration
# of the External Device Manager
#
# Note: no spaces after the '=' for text items.
#		this bug to be sorted. 
#
# General System Definitions
#

[DEVICE_MANAGER]
# How many device port are required 
# Supports upto 10 ports
MaxDevice=3

# general update rate
UpdateRate=500000000

# can generate alarms if links fail
AlarmSourceID=2
AlarmSourceText=DM
SourceName=devman

ProcessName=device_man
RegisterName=/SMD/DEVMAN_S01
DataServerName=/SMD/DS
ConfigFileName=device_man.ini
PartNo=
Priority=15
Schedule=
Node=1
Verbose=1

# Server manager collects data for output
[SERVER_MANAGER]
ProcessName=serverman
RegisterName=
ConfigFileName=device_man.svr
PartNo=pe4333
Priority=15
Schedule=DECAY
Node=
Verbose=0

# special format message processing by separate modules
[DEVICE_1]
Type=SMD_VAR
Mode=INOUT
Port=//2/dev/ser1
PortSettings=9600,8,n,1

Timeout=0

ResetOnTimeout=0

InputChannels=2
OutputChannels=5

InputName1=UHS LINESPEED
InputUnit1=m/s
InputName2=Recip Ship Heading
InputUnit2=deg
OutputName1=CPU AutoA SetPoint
OutputName2=CPU AutoD SetPoint
OutputName3=CPU AutoH SetPoint
OutputName4=ADV Observ Mode OP
OutputName5=CPU Rotation

[SMD_VAR]
StringType=VARIABLE
InputFormat=ttttttttdAAAAAAAAAdBBBBBBcl
InputHeader=$NVP_VAR
OutputFormat=ttttttttdAAAAAdBBBBBdCCCCCdDDDDDDdEEEEEcl
OutputHeader=$DVC_VAR


[DEVICE_2]
Type=MBARI_GPZDA
Mode=IN
Port=//2/dev/ser2
PortSettings=9600,8,n,1

Timeout=0

ResetOnTimeout=0

InputChannels=7
OutputChannels=0

InputName1=UTCTIME
InputPrecision1=2
InputName2=DAY
InputName3=MONTH
InputName4=YEAR
InputName5=Hours Local
InputName6=Min Local
InputName7=Csum

[MBARI_GPZDA]
StringType=VARIABLE
InputFormat=ttttttdAAAAAAAAAdBBdCCdDDDDdEEdFFdtEEcl
InputHeader=$GPZDA


[DEVICE_3]
Type=SMD_SURVEY_PWR
Mode=OUT
Port=//2/dev/ser3
PortSettings=9600,8,n,1

Timeout=0

ResetOnTimeout=0

InputChannels=0
OutputChannels=14

OutputName1=PWR Rov Pod On DI
OutputName2=CPU Pod Telem Ok
OutputName3=CPU JB1 Telem Ok
OutputName4=CPU JB2 Telem Ok
OutputName5=DVL CommsOk AI
OutputName6=ALT Comms Ok AI
OutputName7=FOG Comms OK AI
OutputName8=DQ Comms OK AI
OutputName9=JB1 Depth Sensor Pwr DO
OutputName10=JB1 Octans Pwr DO
OutputName11=POD DVL Power Isolate DO
OutputName12=JB1 Ctd Pwr DO
OutputName13=JB1 O2 Sensor Pwr DO
OutputName14=JB1 Altimiter Pwr DO

[SMD_SURVEY_PWR]
StringType=VARIABLE
InputFormat=
InputHeader=
OutputFormat=tttttttttttdAdBdCdDdEdFdGdHdIdJdKdLdMdNcl
OutputHeader=$SURVEY_PWR

