AnsweredAssumed Answered

vrf Whats the proper way to send commands to serial devices.

Question asked by dkramarsky68 on Dec 6, 2005

i am new to VEE,  but I wanted to know whats the proper way to send commands to,  and
'expect' output from a serial device such as a unix/linux host.  The UUT is a small linux
router.  I have created an 'instrument' in the Instrument Manager under the interface of
Serial1 and called it simply "DUT".  And under "Advanced Instrument Properties" I select
the baud rate, start bits, stop bits, etc.    The serial interface works properly.   What
is not working is the reading in of all of the serial port's receive buffer contents.

For Example:

0.   Boot the DUT.    ( during boot, the DUT sends 60 to 80 lines of text to the serial
port. )

1.   VEE should wait for login prompt "Login:"

2.   VEE should then send a username: "user-x"

3.   VEE should wait for password prompt" "Password:"

4.   VEE should then send a password:  "mypassword"

For these steps I used "Direct I/O" and the functions WRITE TEXT and READ TEXT.   With

My problem is that step #1 is failing.  It doesnt see the "login" prompt at the end of
the boot sequence.  What it does see is a lot of the "boot" sequence text.  Is there a
way to 'flush' the serial port buffers?  Or am I not doing this the right way.

-dan k.

Yahoo! DSL  Something to write home about.
Just $16.99/mo. or less.

You are currently subscribed to vrf as:
To subscribe send a blank email to "".
To unsubscribe send a blank email to "".
To send messages to this mailing list,  email "". 
If you need help with the mailing list send a message to "".
Search the "unofficial vrf archive" at "".