MBARI OASIS Mooring Guide

OASIS Constants

Serial Setup Constants

The following constants are related to serial communications on OASIS3. They appear in serial.h.

Name
Value
Description

BIT8

0
8 bit characters

BIT7

4
7 bit characters
STOP2
8
2 stop bits
STOP1
0
1 stop bit
NO_PTY
0
No parity
EVEN_PTY
1
Even parity
ODD_PTY
2
Odd parity
FLOW
0x10
Bit 4 on for XON/XOFF flow control
ECHO
0x20
Bit 5 on for local echo mode
NMODE
0xc0
Bits 6& 7 are \n mode
AUTOCR
0x40
01 = Add CR before LF
NEWCR
0x80
10 = Replace newline with CR
NOLF
0xc0
11 = Don't output LF
BIG_TX_BUF
0x100
Bit 8 = set TxBuf to 1024 (rather than 256). Used for radio_drv, to make buffer big enough for when you CON into ADCP.

 

Driver Parameters

Enumeration of driver parameter numbers; Used in the driver list and drvparm.

Note that in OASIS3, these are now 32 bit parameters (in OASIS they were 16 bit parameters). Among other things, this allows us to make INTERVAL as large as we like (up to 68 years), to make PWR_CTRL control all 32 power bits, and make TOD_MASK an hourly mask (was 2-hour mask).

Name
Value
Description
INTERVAL
0
Seconds between samples
SER_PORT
1
Logical serial port to use (0-31) ERROR if none
SER_BAUD
2
Serial port baud rate
SER_SETUP
3
Serial port ctrl bits (as above)
PWR_CTRL
4
Power control bit to use
SAMPLE_TYPE
5
Sample type field
TOD_MASK
6
24 bit mask for hours to be off
TIMEOUT
7
Normal timeout in seconds
PARM0
8
Extra parameter
PARM1
9
Extra parameter
PARM2
10
Extra parameter

DRV_PARMS

(PARM2 + 1)
Number driver parameters