date
Sat Oct 21 02:47:04 UTC 2006
surface:~$ listPorts loc
SIAM version $Name: october20_2006-2 $
Node 1446 has 14 ports

Port name    ISI-ID  Service                              Status   
---------    ------  -------                              ------   
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK       
/dev/ttySX2  1150    Dummy                                OK       
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK       
/dev/ttySX15 1447    MSP430 (sidearm4.25)                 OK       
/dev/ttySA2  1441    Medusa card s/n 2.007                OK       

surface:~$ atp/testport.sh loc /dev/ttySX15
bash: atp/testport.sh: No such file or directory
surface:~$ at  gosiam
surface:/mnt/hda/siam$ gosiamatp/testport.sh loc /dev/ttySX15
node=//loc/node
port=/dev/ttySX15
SIAM version $Name: october20_2006-2 $
Node 1446 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK          4   0   0
/dev/ttySX2  1150    Dummy                                OK        240   0   0
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK         24   0   0
/dev/ttySX15 1447    MSP430 (sidearm4.25)                 OK        100   0   0
/dev/ttySA2  1441    Medusa card s/n 2.007                OK         48   0   0

0 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
666 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
667 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1688 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.200, port=1025, server host=loc
1689 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2345 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.200, port=1025, server host=loc
2346 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: october20_2006-2 $
MSP430 (sidearm4.25):
parentID=1446, recordType=1
devid=1447, t=1161398893419, seqNo=27, mdref=3
nBytes=79
$PEDATA, P1013.90, T29.25, H41.16, GFL-459.07, GFH218.55, C12.39, TC1.00, *3920
press: 1013.9 millibar
tmprt: 29.25 deg C
humid: 41.16 rel %
GF-low: -459.07 microAmps
GF-high: 218.55 microAmps
heading: 12.39 deg
nTurns: 1 turns
Press any key to get most recent sample from instrument on port  /dev/ttySX15 :
SIAM version $Name: october20_2006-2 $
parentID=1446, recordType=1
devid=1447, t=1161398893419, seqNo=27, mdref=3
nBytes=79
$PEDATA, P1013.90, T29.25, H41.16, GFL-459.07, GFH218.55, C12.39, TC1.00, *3920
Press any key to suspend service on port  /dev/ttySX15 :
SIAM version $Name: october20_2006-2 $
SIAM version $Name: october20_2006-2 $
Node 1446 has 14 ports

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK          4   0   0
/dev/ttySX2  1150    Dummy                                OK        240   0   0
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK         24   0   0
/dev/ttySX15 1447    MSP430 (sidearm4.25)                 SUSPEND   101   0   0
/dev/ttySA2  1441    Medusa card s/n 2.007                OK         48   0   0

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

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK          5   0   0
/dev/ttySX2  1150    Dummy                                OK        240   0   0
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK         24   0   0
/dev/ttySX15 1447    MSP430 (sidearm4.25)                 OK        102   0   0
/dev/ttySA2  1441    Medusa card s/n 2.007                OK         48   0   0

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

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK          5   0   0
/dev/ttySX2  1150    Dummy                                OK        241   0   0
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK         24   0   0
/dev/ttySX15 -       -                                    -        -           
/dev/ttySA2  1441    Medusa card s/n 2.007                OK         48   0   0

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

Port name    ISI-ID  Service                              Status    S  : E : R 
---------    ------  -------                              ------   ----------- 
/dev/ttySX0  -       -                                    -        -           
/dev/ttySX1  1502    Snubber Node Power Control           OK          5   0   0
/dev/ttySX2  1150    Dummy                                OK        241   0   0
/dev/ttySX3  -       -                                    -        -           
/dev/ttySX4  -       -                                    -        -           
/dev/ttySX5  -       -                                    -        -           
/dev/ttySX6  -       -                                    -        -           
/dev/ttySX7  -       -                                    -        -           
/dev/ttySX8  -       -                                    -        -           
/dev/ttySX9  -       -                                    -        -           
/dev/ttySX10 -       -                                    -        -           
/dev/ttySX11 1590    Garmin GPS s/n 81108743              OK         25   0   0
/dev/ttySX15 1447    MSP430 (sidearm4.25)                 OK          1   0   0
/dev/ttySA2  1441    Medusa card s/n 2.007                OK         48   0   0

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=1446, recordType=0
devid=1447, t=1161399008775, seqNo=0, mdref=0
 cause=just checking
<SRVC_MD>
powerOnDelaySec=0
instrumentName=UNKNOWN
nominalCurrentMa=1000
className=moos.devices.msp430.MSP430$Attributes
serviceName=MSP430 (sidearm4.25)
parentID=1446
maxSummarySamples=0
currentLimitMa=3000
turnsSetpoint=0
packetSetSize=10
sampleSchedule=R */0 */10 */0 */0 * * * * GMT *
setTurns=false
defaultSkipInterval=0
extendedVersion=UNK
frameworkVersion=$Name: october20_2006-2 $
errCacheLimit=5
UUID=a92f763a-29ff-11da-80c8-00306e389969
powerPolicy=ALWAYS
timeSynch=false
maxSampleTries=3
isiID=1447
peakCurrentMa=5000
summaryTriggerCount=0
sampleTimeoutMsec=10000
commPowerPolicy=ALWAYS
serviceStatus=0
startDelayMsec=500
</SRVC_MD>
<SVP_MD>
isiID = 1447
serviceName = MSP430 (sidearm4.25)
currentLimitMa = 3000
sampleSchedule = 600
UUID = a92f763a-29ff-11da-80c8-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/1447.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 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: graybeal $" lastUpdate="$Date: 2006/04/29 08:29:47 $" >

	<Deployment role="instrument" >
		<Device id="1447" name="SideARM MSP430" type="Environment Monitor-System" 
			mfgName="MBARI" mfgModel="MSP430v4" mfgSerialNumber="4.25" 
			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="1" 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="relative_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=""/-->
					</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:1447 key=6
Schedule: R */0 */10 */0 */0 * * * * GMT *
  Status: Waiting	566006


1 DEBUG  NodeUtility [main]: getNodeURL(): input=//loc/node
Looking for node server stub at rmi://loc/node
651 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=loc, port=1099, server host=loc
652 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
1698 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.200, port=1025, server host=loc
1699 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Got proxy for node service "moos.deployed.NodeService"
2313 DEBUG  SiamSocketFactory [main]: SiamSocketFactory.createSocket() - host=134.89.36.200, port=1025, server host=loc
2315 DEBUG  SiamSocketFactory [main]: return new Socket(host, port)...
Test complete.
surface:/mnt/hda/siam$ 