Current production serial command sets are described below:
Both modems support a number of commands, each of which has the same meaning regardless of the operating mode. Some of these can be used by a user interface application to identify which modem is connected, and what commands are supported:
DOC
This returns the "doc string" which lists the commands that are supported by the modem. In future revisions, the DOC string will support detailed query of individual commands, to better support fully-generic user interfaces.
VERSION
Query the version string of the firmware.
MODE
Query the operating mode of the modem. This will return either CW or RTTY.
ECHO
Set or query terminal echo. ECHO=0 will disable echo of all data sent to the modem. ECHO=1 will enable echo of all bytes sent to the modem, whether commands or data. ECHO=2 will enable echo for transmit data only, and is intended for use when the modem is being driven by a dedicated application, rather than a simple terminal. Echoing the data but not the commands simplifies the task of separating the data and command streams.
EC
Erases the EEPROM when set to a value of 1. This is handy when reusing a board that already has EEPROM data stored in it.
DEV
Returns a smoothed and scaled value indicating the received signal offset from the center frequency of the modem. The value returned is unitless, and possibly subject to scale and offset values configured with other commands.
PTTIN
Get or set the number of milliseconds between asserting PTT and starting to send transmit data.
PTTOUT
Get or set the number of milliseconds between the trailing edge of the last transmitted data element, and when PTT is released.
LEVEL
Returns the normalized audio level, in the range of 0 to 100. This value is latched and resets each time this is called. The value returned is the largest value encountered since the last LEVEL call, making this a 'peak' level query.
LINEIN
Get or set the volume level of the LINE IN channel of the codec's mixer. Valid values are zero to 15, and each value corresponds to a specific peak-to-peak input voltage that will produce full scale readings from the A/D converter, these voltage levels are documented within the INO file. Larger values produce more gain. This setting should be adjusted to match the radio output to produce the largest LEVEL value that does not clip on strong signals.
DS
Returns the current state of the detector; the value is mode-dependent, and is mainly for debugging.
Text from Matt Roberts http://www.kk5jy.net/modem-v2/