06-26-2007
Quote:
Originally Posted by
porter
Indeed they do but serial normally refers to RS232 ports in these contexts.
Normally, I refer to all serial communications as serial communications.
If you want more context, please provide it. Your short replies without context are not the norm here at unix.com.
In other words, normal is relative
Thanks.
Neo
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I'm just starting out with UNIX and have figured some stuff out. I just need some help with accepting user input on the command line. For instance, I created a number counter that counts down from any positive hard coded number. But, I want the commnad line line to read "Countdown 20" where 20... (1 Reply)
Discussion started by: scott78
1 Replies
2. Shell Programming and Scripting
He guys.
Basically I want to make a script that can add, delete and view stuff in a external file called config.txt. I can open it up in Joe but im not sure how to read in the user input or using commands automatically in joe to edit, save then quit.
Problem area below:
1) echo "Add... (1 Reply)
Discussion started by: Pits
1 Replies
3. Shell Programming and Scripting
i need to accept the user input in my c shell script before executing next command. i have the following code which ask for user input, but does not store this value.
set req
echo " Enter your input(Y/N)?"
read req
if (req = Y)
echo " print $req"
else
echo " print $req"
... (3 Replies)
Discussion started by: skumar11
3 Replies
4. Shell Programming and Scripting
hi
I am trying to invoke another application script from my script like
---------------------------
main
.
.
./new appl <<EOF
Input 1
Input 2
EOF
.
.
exit
------------------------
But is exits the new application after input command 2, I want that it should not exit and accept... (1 Reply)
Discussion started by: ashish_uiit
1 Replies
5. UNIX for Dummies Questions & Answers
I how do i accept a input date in script which is lesser than a specified day? ex: to accept a date less than or equal to 100 days(from today).?:(
Thanks for the help in advance.:) (1 Reply)
Discussion started by: abhi_123
1 Replies
6. Shell Programming and Scripting
Is there a way to display the default answer when accepting input from the user in the unix script..
e.g.
ans="n"
read $ans?"Enter y to continue n to exit:"
altough ans contains n the message doesn't display the current contents on ans .. you get
Enter y to continue n to exit: (8 Replies)
Discussion started by: flopster
8 Replies
7. Shell Programming and Scripting
basically im trying to promt the user to create a name for a file then send the file name to a file with the list of the file names he has created. Also i want to code if the user doesnt enter any text to just print "Default Folder"
so far my code looks like:
if
then
echo "create `$1`... (1 Reply)
Discussion started by: bravens52
1 Replies
8. Shell Programming and Scripting
Hi All,
Can we pass arguments while calling the perl script and as well as ask user input during execution of the script?
My program is as below:
I am passing arg1 and arg2 as argements to test.pl
]./test.pl arg1 arg2
Inside the test.pl I have :
print "Do you want a name ? (y/n) : ";... (2 Replies)
Discussion started by: jisha
2 Replies
9. Shell Programming and Scripting
Hi I am trying to get my script to accept input regardless if the person enters a or A. here is the portion of the code where I get the input.
echo -n 'Please enter your choice:' # prompt user for input.
read reply # read input
echo
case $reply in #... (2 Replies)
Discussion started by: DualPandas
2 Replies
10. Solaris
Ran into this issue today and wanted to share how I fixed it as there is not a lot a lot of info online on this issue.
We upgraded our NetApp controllers to Ontap 9 and reboot all our iSCSI attached LDOMs after. One of the LDOM did not come up cleanly and it would not accept any keyboard inputs... (0 Replies)
Discussion started by: ncherukuri
0 Replies
UART(4) BSD Kernel Interfaces Manual UART(4)
NAME
uart -- driver for Universal Asynchronous Receiver/Transmitter (UART) devices
SYNOPSIS
device uart
device puc
device uart
device scc
device uart
In /boot/device.hints:
hint.uart.0.disabled="1"
hint.uart.0.baud="38400"
hint.uart.0.port="0x3f8"
hint.uart.0.flags="0x10"
With
flags
encoded as:
0x00010 device is potential system console
0x00080 use this port for remote kernel debugging
0x00100 set RX FIFO trigger level to ``low'' (NS8250 only)
0x00200 set RX FIFO trigger level to ``medium low'' (NS8250 only)
0x00400 set RX FIFO trigger level to ``medium high'' (default, NS8250 only)
0x00800 set RX FIFO trigger level to ``high'' (NS8250 only)
DESCRIPTION
The uart device driver provides support for various classes of UARTs implementing the EIA RS-232C (CCITT V.24) serial communications inter-
face. Each such interface is controlled by a separate and independent instance of the uart driver. The primary support for devices that
contain multiple serial interfaces or that contain other functionality besides one or more serial interfaces is provided by the puc(4), or
scc(4) device drivers. However, the serial interfaces of those devices that are managed by the puc(4), or scc(4) driver are each indepen-
dently controlled by the uart driver. As such, the puc(4), or scc(4) driver provides umbrella functionality for the uart driver and hides
the complexities that are inherent when elementary components are packaged together.
The uart driver has a modular design to allow it to be used on differing hardware and for various purposes. In the following sections the
components are discussed in detail. Options are described in the section that covers the component to which each option applies.
CORE COMPONENT
At the heart of the uart driver is the core component. It contains the bus attachments and the low-level interrupt handler.
HARDWARE DRIVERS
The core component and the kernel interfaces talk to the hardware through the hardware interface. This interface serves as an abstraction of
the hardware and allows varying UARTs to be used for serial communications.
SYSTEM DEVICES
System devices are UARTs that have a special purpose by way of hardware design or software setup. For example, Sun UltraSparc machines use
UARTs as their keyboard interface. Such an UART cannot be used for general purpose communications. Likewise, when the kernel is configured
for a serial console, the corresponding UART will in turn be a system device so that the kernel can output boot messages early on in the boot
process.
KERNEL INTERFACES
The last but not least of the components is the kernel interface. This component ultimately determines how the UART is made visible to the
kernel in particular and to users in general. The default kernel interface is the TTY interface. This allows the UART to be used for termi-
nals, modems and serial line IP applications. System devices, with the notable exception of serial consoles, generally have specialized ker-
nel interfaces.
HARDWARE
The uart driver supports the following classes of UARTs:
o NS8250: standard hardware based on the 8250, 16450, 16550, 16650, 16750 or the 16950 UARTs.
o SCC: serial communications controllers supported by the scc(4) device driver.
FILES
/dev/ttyu? for callin ports
/dev/ttyu?.init
/dev/ttyu?.lock corresponding callin initial-state and lock-state devices
/dev/cuau? for callout ports
/dev/cuau?.init
/dev/cuau?.lock corresponding callout initial-state and lock-state devices
SEE ALSO
puc(4), scc(4)
HISTORY
The uart device driver first appeared in FreeBSD 5.2.
AUTHORS
The uart device driver and this manual page were written by Marcel Moolenaar <marcel@xcllnt.net>.
BSD
March 12, 2008 BSD