file: fetswbd_cmnd.html
22 Feb 2007

FETSWBD2 Power Control/Regulator Board Ver1.x Command Set


Refer to Latest Version Information for reference info on latest firmware version numbers.

NOTE: in current use, the FETSWBD2 is setup for 4.4 VDC regulated output on Switch 1 (for NAL A3LA-D modem), approx. 9 VDC regulated output on Switch 2 (for Cerfboard SBC), and Switch 3 is unused. See schematic for reference.

Command Descriptions

ALL COMMANDS ARE TERMINATED IN CARRIAGE RETURN <cr> - don't forget! It's assumed for all commands below

Note: commands sent are indicated in BOLD, responses in normal text. <crlf> represents ASCII carriage return and line feed.


        A       Address acknowledge
                - returns address of module, terminated by <crlf>
                - e.g. #SBD01A SBD01<crlf>
                - NOTE 1: SBD01 is the default address of the FETSWBD2 module;
                it may be changed by the 'U' command but any failure of 
                EEPROM will result in the use of the default address.  In
                addition, use of defaults is reported in the 'L' command.

        D       Output current power switch status
                - on system powerup, there is a built-in power ON of all 
		switches for 5 minutes before dropping into the programmed
		ON/OFF cycle.
                - example:
                #SBD01D 
                207 minutes elapsed of 235 minutes power switch 1 OFF time
                207 minutes elapsed of 235 minutes power switch 2 OFF time
                207 minutes elapsed of 235 minutes power switch 3 OFF time

		

        H       Help
                - #SBD01H - a multiple line response with text similar to 
                the first line of each command description in this 
                document as the help line, with each line terminated 
                <crlf>, as follows:
                Firmware FETSWBD45 v1.01
                A - Address acknowledge
                D - Display Power Switch ON/OFF time
                H - Display Help message
                STAT - System Status info
                T - Test turns on all power - ESC to exit
                UOK - Update EEPROM constants

        STAT    Report ID, serial #, ON/OFF setup info, etc.
                - the 'STAT' command provides miscellaneous status information 
                about the module in a multi-line response. 
		-  after an initial <crlf>, 6 lines of info are provided, 
		as follows:
        
                #SBD01STAT
                module id from EEPROM
		model name from EEPROM
                module serial number from EEPROM
                firmware name and version from program EPROM
		power switch on/off time settings from EEPROM
		current status: running or power-up delay

                - example normal response (5 lines plus initial <crlf>):
                SBD01
                Model: FETSWBD
                SerNum: 001
                Firmware: FETSWBD45 v1.01
                Power Switch ON/OFF settings: 5, 235, 5, 235, 5, 235,
                Running...


        T       Enter test mode
                - responds with "Test command<crlf>" and turns ON all power
		switches.
               - exits on receipt of ESC character with "done!<crlf>" reply

        U       Update EEPROM contents
                - enters the update mode after confirmation of 'OK' password.
                New EEPROM values may be entered in this mode.
                - upon initial entry, you must send the letters OK after the 
                command or the command is ignored, e.g. #SBD01UOK may be sent
                as one.  Upon receipt of the correct 'password', the response will
                be OK if current parameters are valid, or NEW if parameters
                have never been entered or are suspicious (i.e. EEPROM failure or
                bad internal checksum).
                - response to an unknown command is '?'
                - IMPORTANT! command letter or letters will respond with the current 
		setting when issued followed by <cr> only .  If followed by =xxx<cr>, 
		where xxx is some appropriate value, the EEPROM setting will be changed pending
                receipt of 'WRTOK' command to make it permanent.  Subsequent requests for current 
		settings will report the new value while still in update mode.  However, if 
		update mode is exited with 'ABORT', the original settings of all parameters will 
		remain intact.

                - the following commands are available in EEPROM update mode:
                    ADR - module Address (1 to 5 characters)
                    ABORT - Quit without writing new info to EEPROM
                    CD - Cal Date
                    PWRUP - Power up delay - all power ON for duration of this time 
                    P1ON, P2ON, P3ON - the time in minutes (1-255) that power will be ON
		    P1OFF, P2OFF, P3OFF - the time in minutes (1-255) that power will be OFF
                    WRTOK - Write new info to EEPROM and exit

                - examples:
                    To change the current module address:
                    ADR=SWB01<cr>

                    To see the address:
                    ADR<cr>

                    To see the current P1OFF time:
                    P1OFF<cr>

                    To change it:
                    P1OFF=225<cr>

                NOTE: Upon completion, the newly updated module address 
                will not take effect until the next reset or power-up.

Revision history: