README for Hardware Knob Boxes

============================================================

Details of configuration for first EPICS Knob Box deployment:
------------------------------------------------------------

1. Using Digi PortServer TS 16 MEI terminal server

        User's guide: http://ftp1.digi.com/support/documentation/90000583_J.pdf

        settings
                nodename:       ts-mcc0-kn01
                subnet:         LCLSINST
                location:       MCC network closet

2. Terminal server serial ports configured with these settings (used default
for all other settings):

        port profile
                profile:        TCP Sockets
        basic serial settings
                baud rate:      115200
                data bits:      8
                parity:         none
                stop bits:      1
                flow control:   none
        MEI serial settings
                MEI mode:       EIA-422/EIA-485, Terminated, 2-wire
                transm. control:Always keep transmitter enabled
        advanced serial settings
                enable port logging

3. Setting knob box hardware address

        Set the hardware address to the knob box number. (Note: the software 
        addresses the box CPU by 4 times that number. Don't let this confuse you. 
        Just use the box number to set the hw address.)

        ex: Knob Box 1 hardware address is set to 1 

        Set the hardware address using binary addition (x*2^0 + y*2^1 + z*2^2... where x, y, z 
        are either 0 or 1 depending on whether each jumper or switch is set or unset, aka on or off.)
        See notes below for the eccentricities of each box.

        Miranova:

                In the knob box there is a group of Address Select pins and jumpers. Ignore 
                the numbers next to the pins and any pairs which were removed and soldered 
                together. Looking only at the pins that are still intact, and using the binary 
                number system, these are their values:
                1
                2
                4
                8
                16

                The box address will be equal to the sum of the pin pairs which are NOT set
                (i.e. NOT jumpered). For example, for box 3, jumper pin pair values 4, 8, and 16. 
                Leave 1 and 2 un-jumpered.

        Knob Box Pro:

                In the knob box there is a group of 8 toggle switches. Each switch is a bit of the 
		address. The least-significant bit is on the left and should be labelled so. 
		The switches are labelled from 1, but again, their values starting from the left-hand side are:
                1
                2
                4
                8
                16
                ...               

		The position labelled 'Off' or 'Rocker Down' is actually the ON position. (There is text
		on the circuit board indicating this, but it is easy to miss.) The box address will be equal
                to the sum of the switches which are set ON. For example, for box 9 set switch values 1 and 8 ON.
                Set the remaining switches OFF.

4. Other info:

	The Knob Box Pro has a hardware restore button used to set an attached device to the value it had
	when assigned. At this time, the SCP does not support this message, so using this button for a SCP 
	device will have no effect.
