Agilent Technologies E1300B Computer Hardware User Manual


 
Transmitting Using a CAT
Command
On HP-UX systems you can use the cat command to transfer the device driver.
The appropriate device file must exist. All shell commands are assumed to be
executed from either the /bin/sh or /bin/ksh shell.
1. Start a process that opens the device file to be used. This process should
keep the device file open long enough for the transfer to begin. This step
is done so that the following command to set the device file
configurations will remain in effect for the transfer. A command that will
do this is:
(cat < device file > /dev/null; sleep 1000) &
2. Set the required configuration of the device file using the stty command
The following command will set the device file to work with the default
System Instrument configuration.
stty -opost 9600 ixon -ixoff cs8 -cstopb ignpar < device file
3. Transfer the file to the System instrument with the cat command.
cat filename > device file
Transmitting Using Custom
Software
If the COPY command on your computer cannot directly implement
handshaking, or if you wish to trap errors and abort or otherwise modify the
transmission process, you must use a program to handle the download process.
This procedure assumes that your computer has some means of looking at data
being echoed from the System Instrument, and can check for a return character
without having to have a character returned. Since the actual driver file bytes
sent over the RS-232 interface are not echoed, the lack of ability to do this
would put the system into an infinite wait at the first byte that was not echoed.
1. Set up the appropriate handshake mode and data format on your system,
and the matching handshake mode in the System Instrument.
2. Transfer the driver file over the RS-232 interface using a program that
follows the outline in figure 5-3.
Check Driver Status Make sure that the drivers were properly downloaded by checking their status
using the DIAG:DRIV:LIST:RAM? command. This will give you a list of all the
drivers currently found in DRAM.
5-14 Downloading Device Drivers