PUCKVB – Verify baud rate support

Copyright © 2012 Open Geospatial Consortium. 19 PUCK RX: PUCKVB 1234CR PUCK TX: NOCRPUCKRDYCR

8.2.13 PUCKSB – Set PUCK-enabled instrument baud rate

REQ reqrs232cmdspucksb: The PUCKSB command is used to change the RS232 PUCK baud rate. The PUCKSB command followed by an ASCII representation of a valid baud rate SHALL cause the PUCK-enabled instrument to set its UART to the requested baud rate. The PUCK implementation SHALL return the PUCKRDYCR prompt at the newly requested baud rate if successful. If the requested baud rate is not available then the PUCK implementation SHALL return an error code indicating that the requested baud rate is invalid for this implementation of RS232 PUCK. The host can determine if a particular baud rate is valid by using the PUCKVB command. PUCKSB applies to RS232 PUCK only. Errors Timeout: 500 milliseconds ERR 0010 – Invalid baud rate requested Example PUCK RX: PUCKSB 19200CR PUCK TX: PUCKRDYCR

8.2.14 PUCKIP – Get instrument port number

REQ reqipcmdspuckip: The PUCKIP command returns an IP port number that is used for native instrument commands. The port is expressed as a decimal number followed by a carriage return, followed by the PUCKRDYCR prompt. PUCKIP applies to IP PUCK only. Example PUCK RX: PUCKIPCR PUCK TX: 49201CRPUCKRDYCR 20 Copyright © 2012 Open Geospatial Consortium.

8.3 PUCK Error Codes

Table 6: PUCK error codes Error Code Description 0004 No command match 0010 Invalid baud rate requested 0020 Bytes requested for read or write out of range 0021 Address requested out of range 0022 Write attempted to read only memory 0023 Write attempted to non-initialized memory 9 PUCK Instrument Datasheet REQ reqcoredatasheetmap: The PUCK instrument datasheet SHALL occupy the first contiguous 96 bytes of PUCK memory. Fields within the datasheet SHALL be ordered as shown in Table 7, e.g. the UUID is located at address 0. The instrument datasheet may optionally be read-only. In the case of embedded PUCK, it is desirable to have a read- only instrument datasheet, as the information should never change for the life of the instrument. It can be determined whether an instrument datasheet is read-only via the PUCKTY command. The formats shown in the Format column of Table 7 are as follows: U32 – an unsigned 32-bit integer stored in big endian format U16 – an unsigned 16-bit integer stored in big endian format UUID – the Leach-Salz variant of a universally unique identifier CHAR ARRAY – an array of ASCII characters