atp/ts eset  tport.sh loc /dev/ttySX3
node=//loc/node
port=/dev/ttySX3
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK        280   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1120   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
1884 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
1885 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
5095 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
5096 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
6531 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
6532 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Press any key to sample instrument on port  /dev/ttySX3 :number of args: 2
SIAM version $Name: october16_2006-3 $

Garmin GPS s/n 81106819:
parentID=1481, recordType=1
devid=1591, t=1161210676304, seqNo=287, mdref=7
nBytes=70
$GPRMC,223116,A,3648.2024,N,12147.2571,W,000.0,346.5,181006,014.8,E*6B
Parser not implemented.
Press any key to get most recent sample from instrument on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
parentID=1481, recordType=1
devid=1591, t=1161210676304, seqNo=287, mdref=7
nBytes=70
$GPRMC,223116,A,3648.2024,N,12147.2571,W,000.0,346.5,181006,014.8,E*6B
Press any key to suspend service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              SUSPEND   281   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1121   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Service hould now be SUSPENDED on port  /dev/ttySX3
Press any key to resume service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK        281   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1121   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Service hould now be OK/SAMPLING on port  /dev/ttySX3
Press any key to shutdown service on port  /dev/ttySX3 :SIAM version $Name: october16_2006-3 $
Shutdown port /dev/ttySX3
OK
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1121   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Should now be no service on port  /dev/ttySX3
Press any key to load service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
Scan port /dev/ttySX3
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1125   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Should now be service running on port  /dev/ttySX3
Press any key to get instrument metadata from port  /dev/ttySX3 :
Looking for node server stub at rmi://loc/node
Got proxy for node service "moos.deployed.NodeService"
Requesting packet...components = 0x1f
Packet received:

parentID=1481, recordType=0
devid=1591, t=1161210798581, seqNo=0, mdref=0
 cause=just checking
<SRVC_MD>
powerOnDelaySec=0
instrumentName=UNKNOWN
nominalCurrentMa=1000
className=moos.devices.garmin.GarminGPS$Attributes
serviceName=Garmin GPS s/n 81106819
parentID=1481
maxSummarySamples=0
currentLimitMa=3000
packetSetSize=10
sampleSchedule=R */0 */10 */0 */0 * * * * GMT *
defaultSkipInterval=0
fixTimeoutMsec=900000
extendedVersion=UNK
frameworkVersion=$Name: october16_2006-3 $
errCacheLimit=5
UUID=c18cf238-5d53-11db-adb2-bb4672561f45
powerPolicy=ALWAYS
timeSynch=false
maxSampleTries=15
isiID=1591
peakCurrentMa=5000
summaryTriggerCount=0
sampleTimeoutMsec=10000
commPowerPolicy=SAMPLING
serviceStatus=0
startDelayMsec=2000
</SRVC_MD>
<SVP_MD>
isiID = 1591
serviceName = Garmin GPS s/n 81106819
powerPolicy = always
commPowerPolicy = sampling
sampleSchedule = 600
currentLimitMa = 3000
UUID = c18cf238-5d53-11db-adb2-bb4672561f45
</SVP_MD>
<DEV_MD>
$PGRMC,A,-10.3,100,,,,,,A,3,1,1,4,30*4F
$PGRMC,A,-10.3,100,,,,,,A,3,1,1,4,30*4F

</DEV_MD>
<DOC_MD>
<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /home/cvs/puckxml/1591.xml,v 1.1 2006/10/16 21:55:17 kgomes Exp $	-->
<!-- Last edited by $Author: kgomes $	$Date: 2006/10/16 21:55:17 $   -->
<Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="http://new-ssds.mbari.org/ssds-docs/xml/schema/SSDS_Metadata.xsd" 
	majorVersion="1" minorVersion="1" 
	lastAuthor="$Author: kgomes $" lastUpdate="$Date: 2006/10/16 21:55:17 $" >
	<Deployment role="instrument" >
		<Device	id="1591" name="GPS" type="GPS" mfgName="Garmin" mfgModel="GPS16-HVS" mfgSerialNumber="81106819">
			<description>GPS positioning sensor</description>
			<Person	firstname="Lance" surname="McBride" organization="MBARI" email="lance@mbari.org"/>
		</Device>
		<output>
			<DataStream>
				<description>GPS data stream</description>
				<!-- Comments:
					- Doesn't use fixedPosition parsing yet
				-->
				<RecordDescription bufferStyle="ASCII"
				bufferParseType="ordered"
				bufferItemSeparator=","
				bufferLengthType="variable"
				parseable="true" recordType="1">
					<!-- COMMAND Sent:
						$PGRM0,,2
						$PGRM0,GPRMC,1
						$PGRM0,GPGSV,1
						$PGRM0,PGRMT,1
					-->
					<!-- Sample Record:
						$GPRMC,164220,A,3648.2034,N,12147.2594,W,000.0,226.9,090304,014.8,E*6C
					-->
					<!-- Accuracy:
						Position accuracy: Differential	GPS: 5m	RMS, Non-differential, 15m RMS
						(100m w/Selective Availability on)
						Velocity accuracy 0.2m/s RMS steady state (subject to Selective	Availability)
					-->
					<!--
						Comments:
						- One could parse for $GPRMC as	a double-check - if that isn't found, record is	bad.
					-->
					<RecordVariable
						name="RecordLabel"
						longName="Label	of GPS Record"
						units="noUnits"	
						columnIndex="1"
						format="String"	>
							<description>label indicating type of GPS record returned (if different
							than $GPRMC, indicates an error	or other record	type)</description>
					</RecordVariable>
					<RecordVariable
						name="Time"
						longName="Time of GPS Fix"
						units="hhmmss" 
						columnIndex="2"
						format="int"
						validMin="0" validMax="240000" >
							<description>Time the GPS fix was obtained, in hhmmss format</description>
						<StandardVariable name="time" namespaceUriString="http://marinemetadata.org/ssds"/>
					</RecordVariable>
					<!--	Comments:
						- We could parse for 'A' as a double-check - if	that isn't found, record is bad.
					-->
					<RecordVariable
						name="GPS Status"
						longName="Status of GPS	Fix"
						units="noUnits"	referenceScale="none"
						columnIndex="3"
						format="String">
							<description>GPS status	flag: A=Valid position,	V=NAV receiver warning</description>
					</RecordVariable>
					<RecordVariable
						name="Latitude String"
						longName="GPS Absolute Latitude"
						units="degreesLatitude"	
						columnIndex="4"
						format="String" >
							<description>latitude of GPS fix, in ddmm.mmm format (decimal degrees, minutes, 4 places) (leading 0s will be transmitted)</description>
					</RecordVariable>
					<RecordVariable
						name="Latitude Hemisphere"
						longName="Hemisphere of	Latitude Position"
						units="NorS"
						columnIndex="5"
						format="String">
							<description>hemisphere	of GPS latitude	fix, N=north, S=south</description>
					</RecordVariable>
					<RecordVariable
						name="Longitude String"
						longName="GPS Absolute Longitude"
						units="degreesLongitude" 
						columnIndex="6"
						format="String" >
							<description>longitude of GPS fix, in dddmm.mmm format (decimal degrees, minutes, 4 places) (leading 0s will be transmitted)</description>
					</RecordVariable>
					<RecordVariable
						name="Longitude	Hemisphere"
						longName="Hemisphere of	Longitude Position"
						units="EorW" referenceScale="none"
						columnIndex="7"
						format="String">
							<description>hemisphere	of GPS longitude fix, N=north, S=south</description>
					</RecordVariable>
					<RecordVariable
						name="Speed"
						longName="Speed	over Ground"
						units="knots" 
						columnIndex="8"
						format="float"
						validMin="0.0" validMax="999.9"	>
							<description>measured speed over ground	since last fix
							(leading 0s will be transmitted)</description>
						<StandardVariable name="platform_speed_wrt_ground" namespaceUriString="http://marinemetadata.org/cf"/>
					</RecordVariable>
					<RecordVariable
						name="Course"
						longName="Course Made Good"
						units="degreesHeadingTrue" 
						columnIndex="9"
						format="float"
						validMin="0.0" validMax="359.9"	>
							<description>measured direction	of travel, true	north =	0
							(leading 0s will be transmitted)</description>
						<StandardVariable name="platform_course" namespaceUriString="http://marinemetadata.org/cf"/>
					</RecordVariable>
					<RecordVariable
						name="Date"
						longName="Date of GPS Fix"
						units="yearMonthDay" 
						columnIndex="10"
						format="int"
						validMin="000000" validMax="991231" >
							<description>date of GPS fix, expressed	in ddmmyy format</description>
					</RecordVariable>
					<RecordVariable
						name="Magnetic Variation"
						longName="Absolute Magnetic Variation at Location"
						units="degreesHeading" 
						columnIndex="11"
						format="float"
						validMin="0.0" validMax="180.0"	>
							<description>Absolute value of determined magnetic variation at	location of fix (leading 0s will be transmitted)</description>
					</RecordVariable>
					<RecordVariable
						name="Magnetic Variation Direction * Checksum"
						longName="Direction of Magnetic	Variation at Location and Checksum"
						units="EorW" 
						columnIndex="12"
						format="String" >
							<description>direction of magnetic variation at	location of fix, a westerly variation adds to true course * Checkum value</description>
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
		<output>
			<DataStream>
				<description>GPS error stream</description>
				<RecordDescription bufferStyle="ASCII"
					bufferLengthType="variable"
					parseable="false" recordType="2">
					<!--
						Comments:
						- Error record is variable length, it collects as much info as possible.
						-->
					<RecordVariable
						name="GPS Error Record"
						longName="GPS Error String When No Fix"
						units="noUnits"	
						columnIndex="1"
						format="String"	>
						<description>GPS collects and returns 
							as much information as possible</description>
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
	</Deployment>
</Metadata>

</DOC_MD>

Press any key to show schedule for instrument on  /dev/ttySX3 :
2 [main] ERROR moos.operations.utils.ShowSchedule  - ShowSchedule: lookAhead value undefined or invalid; using default (3600)

 
    Name: Default
   Owner: moos.devices.garmin.GarminGPS:1591 key=4
Schedule: R */0 */10 */0 */0 * * * * GMT *
  Status: Waiting	568135


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
604 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
606 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1581 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1582 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2227 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2228 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Test complete.
node21:/mnt/hda/siam$ atp/testport.sh loc /dev/ttySX3 15
node=//loc/node
port=/dev/ttySX15
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1126   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
852 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
853 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1980 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1981 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2550 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2551 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Press any key to sample instrument on port  /dev/ttySX15 :
number of args: 2
SIAM version $Name: october16_2006-3 $
MSP430 (sidearm4.21):
parentID=1481, recordType=1
devid=1483, t=1161210848566, seqNo=287, mdref=7
nBytes=75
$PEDATA, P1024.96, T26.48, H42.86, GFL0.00, GFH0.25, C281.64, TC0.00, *3715
press: 1024.96 millibar
tmprt: 26.48 deg C
humid: 42.86 rel %
GF-low: 0 microAmps
GF-high: 0.25 microAmps
heading: 281.64 deg
nTurns: 0 turns
Press any key to get most recent sample from instrument on port  /dev/ttySX15 :
SIAM version $Name: october16_2006-3 $
parentID=1481, recordType=1
devid=1483, t=1161210848566, seqNo=287, mdref=7
nBytes=75
$PEDATA, P1024.96, T26.48, H42.86, GFL0.00, GFH0.25, C281.64, TC0.00, *3715
Press any key to suspend service on port  /dev/ttySX15 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 SUSPEND  1127   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Service hould now be SUSPENDED on port  /dev/ttySX15
Press any key to resume service on port  /dev/ttySX15 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK       1127   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        553   6  68

Service hould now be OK/SAMPLING on port  /dev/ttySX15
Press any key to shutdown service on port  /dev/ttySX15 :
SIAM version $Name: october16_2006-3 $
Shutdown port /dev/ttySX15
OK
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 -       -                                    -        -           
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        554   6  68

Should now be no service on port  /dev/ttySX15
Press any key to load service on port  /dev/ttySX15 :
SIAM version $Name: october16_2006-3 $
Scan port /dev/ttySX15
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          1   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        554   6  68

Should now be service running on port  /dev/ttySX15
Press any key to get instrument metadata from port  /dev/ttySX15 :
Looking for node server stub at rmi://loc/node
Got proxy for node service "moos.deployed.NodeService"
Requesting packet...components = 0x1f
Packet received:

parentID=1481, recordType=0
devid=1483, t=1161210947383, seqNo=0, mdref=0
 cause=just checking
<SRVC_MD>
powerOnDelaySec=0
instrumentName=UNKNOWN
nominalCurrentMa=1000
className=moos.devices.msp430.MSP430$Attributes
serviceName=MSP430 (sidearm4.21)
parentID=1481
maxSummarySamples=0
currentLimitMa=3000
turnsSetpoint=0
packetSetSize=10
sampleSchedule=R */0 */10 */0 */0 * * * * GMT *
setTurns=false
defaultSkipInterval=0
extendedVersion=UNK
frameworkVersion=$Name: october16_2006-3 $
errCacheLimit=5
UUID=a677c1d6-65f5-11da-950b-00306e389969
powerPolicy=ALWAYS
timeSynch=false
maxSampleTries=3
isiID=1483
peakCurrentMa=5000
summaryTriggerCount=0
sampleTimeoutMsec=10000
commPowerPolicy=ALWAYS
serviceStatus=0
startDelayMsec=500
</SRVC_MD>
<SVP_MD>
isiID = 1483
serviceName = MSP430 (sidearm4.21)
currentLimitMa = 3000
sampleSchedule = 600
UUID = a677c1d6-65f5-11da-950b-00306e389969
</SVP_MD>
<DEV_MD>
$PSID, V2.3.1-Q [Mar 12 2004], *1811




$PALEVEL, PL0.000000, PH0.000000, TL0.000000, TH0.000000, HL0.000000, HH0.000000, GFLL0.000000, GFLH0.000000, GFHL0.000000, GFHH0.000000, CL0.000000, CH0.000000, TCL0.000000, TCH0.000000, *984


$PAMASK, 00, *729




$PALARM, 00, *729





</DEV_MD>
<DOC_MD>
﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /home/cvs/puckxml/1483.xml,v 1.3 2006/06/13 15:48:15 kgomes Exp $	-->
<!-- Last edited by $Author: kgomes $	$Date: 2006/06/13 15:48:15 $   -->

<Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="http://ssds.mbari.org/xml/schema/SSDS_Metadata.xsd" 
	majorVersion="1" minorVersion="2" 
	lastAuthor="$Author: kgomes $" lastUpdate="$Date: 2006/06/13 15:48:15 $" >

	<Deployment role="instrument" >
		<Device id="1483" name="SideARM MSP430" type="Environment Monitor-System" 
			mfgName="MBARI" mfgModel="MSP430v4" mfgSerialNumber="4.21" 
			preferredDeploymentRole="instrument">
			<description>environmental signal processor</description>
			<Person firstname="Lance" surname="McBride" organization="MBARI" 
			email="lance@mbari.org" phone="831-775-2046"/>
		</Device>
		
		<output>
			<DataStream>
				<description>MSP 430 environmental data stream</description>
	
				<RecordDescription bufferStyle="ASCII" 
					bufferParseType="ordered"   
					bufferItemSeparator="," 
					bufferLengthType="fixed"  
					parseable="true" recordType="1">
					<!-- Sample Record: 
						$PEDATA, P1024.01, T26.71, H37.10, GFL0.38, GFH-0.28, C338.20, TC0.00, *3742 
					-->
					
					<RecordVariable 
						name="RecordStatus" 
						longName="Status of MSP Record" 
						units="noUnits"  
						columnIndex="1" 
						format="string">
							<description>tag string at beginning of data</description>
							<!--StandardVariable name="checkString"/-->
					</RecordVariable>
					<RecordVariable 
						name="Pressure" 
						longName="Pressure Inside MMC Can" 
						units="millibars"  
						columnIndex="2" 
						format="double" parseRegExp="P(\d+\.\d+)" 
						validMin="0.0" validMax="5000.0" >
							<description>atmospheric pressure measured inside the MMC controller pressure housing</description>
							<!--StandardVariable name="pressure"/-->
					</RecordVariable>
					<RecordVariable 
						name="Temperature" 
						longName="Temperature Inside MMC Can" 
						units="degrees C" referenceScale="none" 
						columnIndex="3" 
						format="double" parseRegExp="T(\d+\.\d+)" >
							<description>temperature measured inside the MMC controller pressure housing</description>
							<!--StandardVariable name="temperature"/-->
					</RecordVariable>
					<RecordVariable 
						name="Humidity" 
						longName="Relative Humidity Inside Can" 
						units="percent"  
						columnIndex="4" 
						format="double" parseRegExp="H(\d+\.\d+)" 
						validMin="0.0" validMax="100.0" >
							<description>relative humidity measured inside the MMC controller pressure housing</description>
							<!--StandardVariable name="humidity"/-->
					</RecordVariable>
					<RecordVariable
						name="Ground Fault Low" 
						longName="Ground Fault Low Voltage" 
						units="volts"  
						columnIndex="5" 
						format="double" parseRegExp="GFL(-*\d+\.\d+)" >
							<description>ground fault voltage measured on low voltage circuit</description>
					</RecordVariable>
					<RecordVariable
						name="Ground Fault High" 
						longName="Ground Fault High Voltage" 
						units="volts"  
						columnIndex="6" 
						format="double" parseRegExp="GFH(-*\d+\.\d+)" 
						validMin="0.0" validMax="240.0" >
							<description>ground fault voltage measured on high voltage circuit</description>
							<!--StandardVariable name="longitude"/-->
					</RecordVariable>
					<RecordVariable 
						name="Compass Heading" 
						longName="Heading per Environmental Compass" 
						units="degrees" referenceScale="trueNorth(?)" 
						columnIndex="7" 
						format="double" parseRegExp="C(\d+\.\d+)" 
						validMin="0.0" validMax="360.0" >
							<description>Heading measured by the compass on the MSP430</description>
							<!--StandardVariable name="heading"/-->
					</RecordVariable>
					<RecordVariable 
						name="Compass Turns Count" 
						longName="Number of Compass Turns Since Reset" 
						units="totalCount"  
						columnIndex="8" 
						format="int" parseRegExp="TC(-*\d+\.\d+)" >
							<description>Accumulated number of turns measured by the Compass Heading since the last reset.  (Positive = clockwise, negative = counter-clockwise.)</description>
							<!--StandardVariable name="count"/-->
					</RecordVariable>
					<RecordVariable 
						name="CheckSum" 
						longName="checksum of data packet" 
						units="tbd"  
						columnIndex="9" 
						format="int" parseRegExp="\*(\d+)" >
							<description>checksum</description>
							<!--StandardVariable name="checksum"/-->
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
	</Deployment>
</Metadata>

</DOC_MD>

Press any key to show schedule for instrument on  /dev/ttySX15 :
2 [main] ERROR moos.operations.utils.ShowSchedule  - ShowSchedule: lookAhead value undefined or invalid; using default (3600)

 
    Name: Default
   Owner: moos.devices.msp430.MSP430:1483 key=5
Schedule: R */0 */10 */0 */0 * * * * GMT *
  Status: Waiting	570222


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
625 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
626 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...

1602 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1603 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2169 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2170 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Test complete.
node21:/mnt/hda/siam$ 
node21:/mnt/hda/siam$ atp/testport.sh loc /dev/ttySX15   A2
node=//loc/node
port=/dev/ttySA2
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          1   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        554   6  68

1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
615 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
616 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1602 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1603 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2145 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2146 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Press any key to sample instrument on port  /dev/ttySA2 :
number of args: 2
SIAM version $Name: october16_2006-3 $
Medusa card s/n 2.004:
parentID=1481, recordType=1
devid=1442, t=1161210995874, seqNo=569, mdref=3
nBytes=28
 

-> No SFP Modules Powered
Parser not implemented.
Press any key to get most recent sample from instrument on port  /dev/ttySA2 :
SIAM version $Name: october16_2006-3 $
parentID=1481, recordType=1
devid=1442, t=1161210995874, seqNo=569, mdref=3
nBytes=28
 

-> No SFP Modules Powered
Press any key to suspend service on port  /dev/ttySA2 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          2   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                SUSPEND   555   6  68

Service hould now be SUSPENDED on port  /dev/ttySA2
Press any key to resume service on port  /dev/ttySA2 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          2   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK        555   6  68

Service hould now be OK/SAMPLING on port  /dev/ttySA2
Press any key to shutdown service on port  /dev/ttySA2 :
SIAM version $Name: october16_2006-3 $
Shutdown port /dev/ttySA2
OK
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          2   0   0
/dev/ttySA2  -       -                                    -        -           

Should now be no service on port  /dev/ttySA2
Press any key to load service on port  /dev/ttySA2 :
SIAM version $Name: october16_2006-3 $
Scan port /dev/ttySA2
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1591    Garmin GPS s/n 81106819              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          5   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK          1   0   0

Should now be service running on port  /dev/ttySA2
Press any key to get instrument metadata from port  /dev/ttySA2 :
Looking for node server stub at rmi://loc/node
Got proxy for node service "moos.deployed.NodeService"
Requesting packet...components = 0x1f
Packet received:

parentID=1481, recordType=0
devid=1442, t=1161211134701, seqNo=0, mdref=0
 cause=just checking
<SRVC_MD>
powerOnDelaySec=0
instrumentName=UNKNOWN
nominalCurrentMa=1000
className=org.mbari.isi.interfaces.InstrumentServiceAttributes
serviceName=Medusa card s/n 2.004
parentID=1481
maxSummarySamples=0
currentLimitMa=3000
packetSetSize=10
sampleSchedule=R */0 */5 */0 */0 * * * * GMT *
defaultSkipInterval=0
extendedVersion=UNK
frameworkVersion=$Name: october16_2006-3 $
errCacheLimit=5
UUID=06e59ef6-e4dc-11d9-b8bc-00306e389969
powerPolicy=NEVER
timeSynch=false
maxSampleTries=3
isiID=1442
peakCurrentMa=5000
summaryTriggerCount=0
sampleTimeoutMsec=1000
commPowerPolicy=NEVER
serviceStatus=0
startDelayMsec=2000
</SRVC_MD>
<SVP_MD>
isiID = 1442
serviceName = Medusa card s/n 2.004
currentLimitMa = 3000
UUID = 06e59ef6-e4dc-11d9-b8bc-00306e389969
</SVP_MD>
<DEV_MD>
META:
CPU MAC address: 00:0c:6a:01:02:04

CPU IP address: 134.89.36.54

CPU IP netmask: 255.255.0.0

CPU IP gateway: 134.89.36.200

SideARM IP address: 134.89.36.21

Medusa serial number: 2.004

Medusa ECO level: B

Firmware build: v2.60 [Oct 10 2006 16:47:04]

Toolchain: Rowley gcc 3.4.4

Trunk Failovers: 0 0

Backplane wakeup interrupts: 0

PORTS:
Port   Status   PHY Stat  Optical   LHB Stat  Last Evt  Fail  LHB OK

F  0  unknown   pwr save  pwr off   disabled  no event     0     0

F  1  unknown   pwr save  pwr off   disabled  no event     0     0

F  2  unknown   pwr save  pwr off   disabled  no event     0     0

F  3  unknown   pwr save  pwr off   disabled  no event     0     0

C  4     up      normal      ---    disabled  no event     0     0

C  5     up      normal      ---    disabled  port up      0     0

NVSHOW:
nvshow: sig[cf] ver[01] firstItemPg[1] numItem[32]

nvshow: firstDataPg[33] numData[32] configCrc16[ff42]



Item  0 [macaddr]:	0000: 00 0c 6a 01 02 04 

Item  1 [ipaddr]:	0000: 86 59 24 36 

Item  2 [gateway]:	0000: 86 59 24 c8 

Item  3 [netmask]:	0000: ff ff 00 00 

Item  4 [serial]:	0000: 32 2e 30 30 34 

Item  5 [ecolevel]:	0000: 42 

Item  6 [saipaddr]:	0000: 86 59 24 15

UIPSTAT:
uipstat: IP Packets Rx[5] Tx[0] Drop[0]

uipstat: ICMP Packets Rx[0] Tx[0] Drop[0]

uipstat: TCP Packets Rx[0] Tx[0] Drop[0]

uipstat: TCP Packets Retrans[0] Conn Attempts[0]

EVENT:
event: Zarlink events[7] rxFrame[6] ctrl1[1] ctrl2[0] reset[0]

U0STAT:
u0stat: maxTx[256] maxRx[1] maxIsrPass[1]

u0stat: txDrop[0] rxDrop[0] spurInt[0] lsrInt[0]

SFPDIAG:
No SFP Modules Powered
SHOWSTATS[0]:

--- Zarlink port stats for port [0] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
SHOWSTATS[1]:

--- Zarlink port stats for port [1] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
SHOWSTATS[2]:

--- Zarlink port stats for port [2] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
SHOWSTATS[3]:

--- Zarlink port stats for port [3] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
SHOWSTATS[4]:

--- Zarlink port stats for port [4] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
SHOWSTATS[5]:

--- Zarlink port stats for port [5] ---

  TX: bytes[0 0]  unicastFrame[0]  frameTxFail[0]

  RX: bytes[0 0]  frames[0 0]  totalBytes[0 0]  totalFrames[0]

  RX: mcastFrames[0]  bcastFrames[0]  flowCtrlFrames[0]

 ERR: align[0]  runt[0]  crc[0]  shortEvent[0]

FLOW: flowCtrlFramesRecv[0]  flowCtrlSent[0]

 PKT: len64[0]  len65-127[0]  jabber[0]  oversize[0]

 LEN: 128-255[0]  256-511[0]  512-1023[0]  1024-1522[0]

OOPS: fragment[0]  dropped[0]  filterCount[0]  delayExceedDiscard[0]
</DEV_MD>
<DOC_MD>
﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /home/cvs/puckxml/1442.xml,v 1.2 2006/04/29 08:29:47 graybeal Exp $	-->
<!-- Last edited by $Author: graybeal $	$Date: 2006/04/29 08:29:47 $   -->

<Metadata lastAuthor="$Author: graybeal $" lastUpdate="$Date: 2006/04/29 08:29:47 $" 
	majorVersion="1" minorVersion="2" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ssds.mbari.org/xml/schema/SSDS_Metadata.xsd">

	<Deployment role="instrument">
		<Device id="1442" name="Medusa Board" type="Network Hub-Power Controller"
			mfgModel="Medusa" mfgName="MBARI" mfgSerialNumber="2.004"
			preferredDeploymentRole="Instrument">
			<description>Medusa Board</description>
			<Person email="headley@mbari.org" firstname="Kent" organization="MBARI"
				surname="Headley"></Person>
		</Device>
		<!-- Sample Record:
		    channel=3, temp=46.48, vcc=3.2482, txBiasI=2.5593, txPower=-2.7114, rxPower=-5.3160, status=0x0
		-->
		<output>
			<DataStream>
				<description>Medusa Data Stream</description>
				<RecordDescription bufferLengthType="variable" 
					bufferStyle="ASCII" 
					parseable="false"
					recordType="1">
					<RecordVariable columnIndex="1" 
						format="String" 
						longName="Medusa" 
						name="Medusa"
						units="noUnits">
						<description>Medusa board channel report, repeats for multiple channels.
							Must be decoded by external program for use.</description>
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
	</Deployment>
</Metadata>

</DOC_MD>

Press any key to show schedule for instrument on  /dev/ttySA2 :
2 [main] ERROR moos.operations.utils.ShowSchedule  - ShowSchedule: lookAhead value undefined or invalid; using default (3600)

 
    Name: Default
   Owner: moos.devices.medusa.Medusa:1442 key=6
Schedule: R */0 */5 */0 */0 * * * * GMT *
  Status: Waiting	255786


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
623 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
624 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1651 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1651 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2195 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2196 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Test complete.
node21:/mnt/hda/siam$ 
node21:/mnt/hda/siam$ atp/testport.sh loc /dev/ttySX3
node=//loc/node
port=/dev/ttySX3
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1504    Garmin GPS s/n 81106809              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          3   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                INIT        0   0   0

1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
784 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
785 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1741 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1741 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2489 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2490 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Press any key to sample instrument on port  /dev/ttySX3 :
number of args: 2
SIAM version $Name: october16_2006-3 $
Garmin GPS s/n 81106809:
parentID=1481, recordType=1
devid=1504, t=1161211423432, seqNo=1, mdref=0
nBytes=70
$GPRMC,224343,A,3648.1991,N,12147.2547,W,000.0,000.0,181006,014.8,E*6B
Parser not implemented.
Press any key to get most recent sample from instrument on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
parentID=1481, recordType=1
devid=1504, t=1161211423432, seqNo=1, mdref=0
nBytes=70
$GPRMC,224343,A,3648.1991,N,12147.2547,W,000.0,000.0,181006,014.8,E*6B
Press any key to suspend service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1504    Garmin GPS s/n 81106809              SUSPEND     2   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          5   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK          1   0   0

Service hould now be SUSPENDED on port  /dev/ttySX3
Press any key to resume service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1504    Garmin GPS s/n 81106809              OK          2   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          5   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK          1   0   0

Service hould now be OK/SAMPLING on port  /dev/ttySX3
Press any key to shutdown service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
Shutdown port /dev/ttySX3
OK
SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          5   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK          1   0   0

Should now be no service on port  /dev/ttySX3
Press any key to load service on port  /dev/ttySX3 :
SIAM version $Name: october16_2006-3 $
Scan port /dev/ttySX3
eth0: suspended

pm_do_suspend: *** made it back from resume

eth0: resumed

eth0: suspended

pm_do_suspend: *** made it back from resume

eth0: resumed

SIAM version $Name: october16_2006-3 $
Node 1481 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  -       -                                    -        -           
/dev/ttySX2  -       -                                    -        -           
/dev/ttySX3  1504    Garmin GPS s/n 81106809              OK          1   0   0
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 -       -                                    -        -           
/dev/ttySX15 1483    MSP430 (sidearm4.21)                 OK          9   0   0
/dev/ttySA2  1442    Medusa card s/n 2.004                OK          1   0   0

Should now be service running on port  /dev/ttySX3
Press any key to get instrument metadata from port  /dev/ttySX3 :
Looking for node server stub at rmi://loc/node
Got proxy for node service "moos.deployed.NodeService"
Requesting packet...components = 0x1f
Packet received:

parentID=1481, recordType=0
devid=1504, t=1161211682889, seqNo=0, mdref=0
 cause=just checking
<SRVC_MD>
powerOnDelaySec=0
instrumentName=UNKNOWN
nominalCurrentMa=1000
className=moos.devices.garmin.GarminGPS$Attributes
serviceName=Garmin GPS s/n 81106809
parentID=1481
maxSummarySamples=0
currentLimitMa=3000
packetSetSize=10
sampleSchedule=R */0 */10 */0 */0 * * * * GMT *
defaultSkipInterval=0
fixTimeoutMsec=900000
extendedVersion=UNK
frameworkVersion=$Name: october16_2006-3 $
errCacheLimit=5
UUID=a36ed0b8-8dd5-11da-92c6-00306e389969
powerPolicy=ALWAYS
timeSynch=false
maxSampleTries=15
isiID=1504
peakCurrentMa=5000
summaryTriggerCount=0
sampleTimeoutMsec=10000
commPowerPolicy=SAMPLING
serviceStatus=0
startDelayMsec=2000
</SRVC_MD>
<SVP_MD>
isiID = 1504
serviceName = Garmin GPS s/n 81106809
powerPolicy = always
commPowerPolicy = sampling
sampleSchedule = 600
currentLimitMa = 3000
UUID = a36ed0b8-8dd5-11da-92c6-00306e389969
</SVP_MD>
<DEV_MD>
$PGRMC,A,3.1,100,,,,,,A,3,1,1,4,30*52
$PGRMC,A,2.6,100,,,,,,A,3,1,1,4,30*54

</DEV_MD>
<DOC_MD>
﻿<?xml version="1.0" encoding="UTF-8"?>
<!-- $Header: /home/cvs/puckxml/1504.xml,v 1.3 2006/05/26 19:00:24 graybeal Exp $	-->
<!-- Last edited by $Author: graybeal $	$Date: 2006/05/26 19:00:24 $   -->

<Metadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ssds.mbari.org/xml/schema/SSDS_Metadata.xsd" 
	majorVersion="2" minorVersion="1" 
	lastAuthor="$Author: graybeal $" lastUpdate="$Date: 2006/05/26 19:00:24 $" >

	<Deployment role="instrument" >
		<Device	id="1504" name="GPS" type="GPS"	
			mfgName="Garmin" mfgModel="GPS" mfgSerialNumber="81106809"
			preferredDeploymentRole="instrument">
			<description>GPS positioning sensor</description>
			<Person	firstname="Kent" surname="Headley" organization="MBARI"
			email="headley@mbari.org" phone="831-775-1822"/>
		</Device>
		
		<output>
			<DataStream>
				<description>GPS data stream</description>
				<!-- Comments:
					- Doesn't use fixedPosition parsing yet
				-->
				<RecordDescription bufferStyle="ASCII"
					bufferParseType="ordered"
					bufferItemSeparator=","
					bufferLengthType="variable"
					parseable="true" recordType="1">
					<!-- COMMAND Sent:
						$PGRM0,,2
						$PGRM0,GPRMC,1
						$PGRM0,GPGSV,1
						$PGRM0,PGRMT,1
					-->
					<!-- Sample Record:
						$GPRMC,164220,A,3648.2034,N,12147.2594,W,000.0,226.9,090304,014.8,E*6C
					-->
					<!--
						Comments:
						- One could parse for $GPRMC as	a double-check - if that isn't found, record is	bad.
					-->
					<RecordVariable
						name="RecordLabel"
						longName="Label	of GPS Record"
						units="noUnits"	
						columnIndex="1"
						format="String"	>
						<description>label indicating type of GPS record returned (if different
							than $GPRMC, indicates an error	or other record	type)</description>
						<!--StandardVariable name="checkString"/-->
					</RecordVariable>
					<RecordVariable
						name="Time"
						longName="Time of GPS Fix"
						units="hhmmss" 
						columnIndex="2"
						format="int"
						validMin="0" validMax="240000" >
						<description>Time the GPS fix was obtained, in hhmmss format</description>
						<StandardVariable name="time"/>
					</RecordVariable>
					<!--	Comments:
						- We could parse for 'A' as a double-check - if	that isn't found, record is bad.
					-->
					<RecordVariable
						name="GPS Status"
						longName="Status of GPS	Fix"
						units="noUnits"	referenceScale="none"
						columnIndex="3"
						format="String">
						<description>GPS status	flag: A=Valid position,	V=NAV receiver warning</description>
						<!--StandardVariable name="checkString"/-->
					</RecordVariable>
					<RecordVariable
						name="Latitude String"
						longName="GPS Absolute Latitude"
						units="degreesLatitude"	
						columnIndex="4"
						format="String" >
						<description>latitude of GPS fix, in ddmm.mmm format (decimal degrees, minutes, 4 places) (leading 0s will be transmitted)</description>
						<!--StandardVariable name="latitude"/-->
					</RecordVariable>
					<RecordVariable
						name="Latitude Hemisphere"
						longName="Hemisphere of	Latitude Position"
						units="NorS"
						columnIndex="5"
						format="String">
						<description>hemisphere	of GPS latitude	fix, N=north, S=south</description>
					</RecordVariable>
					<RecordVariable
						name="Longitude String"
						longName="GPS Absolute Longitude"
						units="degreesLongitude" 
						columnIndex="6"
						format="String" >
						<description>longitude of GPS fix, in dddmm.mmm format (decimal degrees, minutes, 4 places) (leading 0s will be transmitted)</description>
						<!--StandardVariable name="longitude"/-->
					</RecordVariable>
					<RecordVariable
						name="Longitude	Hemisphere"
						longName="Hemisphere of	Longitude Position"
						units="EorW" referenceScale="none"
						columnIndex="7"
						format="String">
						<description>hemisphere	of GPS longitude fix, N=north, S=south</description>
					</RecordVariable>
					<RecordVariable
						name="Speed"
						longName="Speed	over Ground"
						units="knots" 
						columnIndex="8"
						format="float"
						validMin="0.0" validMax="999.9"	>
						<description>measured speed over ground	since last fix
							(leading 0s will be transmitted)</description>
						<StandardVariable name="platform_speed_wrt_ground"/>
					</RecordVariable>
					<RecordVariable
						name="Course"
						longName="Course Made Good"
						units="degreesHeadingTrue" 
						columnIndex="9"
						format="float"
						validMin="0.0" validMax="359.9"	>
						<description>measured direction	of travel, true	north =	0
							(leading 0s will be transmitted)</description>
						<StandardVariable name="platform_course"/>
					</RecordVariable>
					<RecordVariable
						name="Date"
						longName="Date of GPS Fix"
						units="yearMonthDay" 
						columnIndex="10"
						format="int"
						validMin="000000" validMax="991231" >
						<description>date of GPS fix, expressed	in ddmmyy format</description>
						<!--StandardVariable name="Date"/-->
					</RecordVariable>
					<RecordVariable
						name="Magnetic Variation"
						longName="Absolute Magnetic Variation at Location"
						units="degreesHeading" 
						columnIndex="11"
						format="float"
						validMin="0.0" validMax="180.0"	>
						<description>Absolute value of determined magnetic variation at	location of fix (leading 0s will be transmitted)</description>
						<!--StandardVariable name="unitsName"/-->
					</RecordVariable>
					<RecordVariable
						name="Magnetic Variation Direction * Checksum"
						longName="Direction of Magnetic	Variation at Location and Checksum"
						units="EorW" 
						columnIndex="12"
						format="String" >
						<description>direction of magnetic variation at	location of fix, a westerly variation adds to true course * Checkum value</description>
						<!--StandardVariable name="unitsName"/-->
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
		<output>
			<DataStream>
				<description>GPS error stream</description>
				<RecordDescription bufferStyle="ASCII"
					bufferLengthType="variable"
					parseable="false" recordType="2">
					<!--
						Comments:
						- Error record is variable length, it collects as much info as possible.
					-->
					<RecordVariable
						name="GPS Error Record"
						longName="GPS Error String When No Fix"
						units="noUnits"	
						columnIndex="1"
						format="String"	>
						<description>GPS collects and returns 
							as much information as possible</description>
					</RecordVariable>
				</RecordDescription>
			</DataStream>
		</output>
	</Deployment>
</Metadata>

</DOC_MD>

Press any key to show schedule for instrument on  /dev/ttySX3 :
2 [main] ERROR moos.operations.utils.ShowSchedule  - ShowSchedule: lookAhead value undefined or invalid; using default (3600)

 
    Name: Default
   Owner: moos.devices.garmin.GarminGPS:1504 key=4
Schedule: R */0 */10 */0 */0 * * * * GMT *
  Status: Waiting	562665


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
624 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
625 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...

1596 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
1597 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2367 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.21, port=1024, server host=loc
2368 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Test complete.
node21:/mnt/hda/siam$ 
node21:/mnt/hda/siam$ 