extractPuck [-b baudHint] [-t triesPerBaud] port


The extractPuck utility retrieves the payload content stored in PUCK memory. Payloads will be extracted to the current working directory.


Option Description Values
-b baudHint Suggested baud rate will be tried first to save time. By default, the utility will try at different baud rates. 300, 2400, 4800, 9600, 19200, 38400, 57600, 115200
-t triesPerBaud Number of retries at each communication rate when trying to establish communication with the PUCK interface -
port Communications port to use for the PUCK connection. COM1, /dev/tty.KeySerial1, /dev/ttyS0

Example output:

					extractPuck -b 115200 /dev/tty.KeySerial1 
					Experimental:  JNI_OnLoad called.
					Stable Library
					Native lib Version = RXTX-2.1-7
					Java lib Version   = RXTX-2.1-7
					RXTX Warning:  Removing stale lock file. /var/lock/LK.006.010.012
					Assuming PUCK v1.3 protocol
					0 INFO   Puck_1_3 [main]: Found PUCK mode at 115200 baud
					uuid = 00000001-0002-0003-0004-000000000005
					version = 2
					size = 96
					mfrID = 1
					mfrModel = 0
					mfrVersion = 0
					serialNumber = 12345
					instrument = MBARI Reference Design PUCK
					Payload capacity = 1081248 bytes
					<puck_payload type=MBARI.test size=6756 md5=bc7173714fb3dcc24b2fad764e30e256 next_addr=-1 />
					Writing file ""...done.
					Retrieved all payloads
					[directory listing shows extracted payload called]
					$ ls


The following environment variables must be set:

Variable Description Example
JAVA_HOME location of Java installation
/j9, /opt/java/jdk1.3.1, etc.
JAVA Path to JVM command For MMC

For Sun JVM (e.g. linux, win32, mac OS)
SIAM_HOME top of the SIAM directory tree -
SIAM_CLASSPATH Path including all SIAM and supporting classes For MMC

For linux/win32

See Also