10-26-2002
The following algorithm works on Unix OS , I hope it does so on Linux.
First open the non modem control com port by issusing open ( ) function.Then save the current serial port settings by tcgetattr( ) function.Now intialize the terminal settings and all control characters for the port.Clean the line and activate the settings for the port.In an conditional loop do read/write operation.
5 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Does anyone know if Redhat 7.2 allows for file access control lists as you can in Solaris ?
And if so, can you give me the basic command as I'm having trouble finding documentation on this.
Thanx (1 Reply)
Discussion started by: ianf
1 Replies
2. Linux
Hi
anyone know how to setup a setup a virtual IP to control 2 server load for linux? i only have 2 server, i don want to buy another just for the load balance... is there a way to do it?
Sumemr (0 Replies)
Discussion started by: summerpeh
0 Replies
3. UNIX for Advanced & Expert Users
Hello everyone!. I am wondering if it is possible to take control of a tty session???!!!.
For example: imagine you are running a command in a unix server that will take 12 hours to compleate... now, imagine you are at your home and you want to check how the command is performing or if errors... (2 Replies)
Discussion started by: dragonov7
2 Replies
4. Linux
I would like to add ^M (CTRL V CTRL M) to all lines of the file.
This is easy using unix2dos command in SunOS,
unix2dos commands appends ^M for all the lines in SUnOS
but I dont see the same beahaviou in Linux.
My files on Linu'x to be added with ^M at the end of each line.
is there any... (3 Replies)
Discussion started by: LinuxLearner
3 Replies
5. Shell Programming and Scripting
has anyone got experience using jsch?
Does it give me a prompt when I run a command/ print result back to me.
I need to send commands to a linux database like restart,shutdown,stop database caching etc.
But in java I want to build a GUI I can use. TO call database commands. and do these... (3 Replies)
Discussion started by: Samuel12
3 Replies
dc(4) Kernel Interfaces Manual dc(4)
Name
dc - serial line/mouse/keyboard
Syntax
device dc0 at ibus? vector dcintr
Description
The serial line controller provides four ports, with modem control on two of the ports. The DECstation 3100 and DECstation 2100 only pro-
vide partial modem control. The DECstation 5000 provides full modem control. The ports are used as follows:
Port Usage
0 Graphics device keyboard at 4800 BPS
1 Mouse or tablet at 4800 BPS
2 Communications port 1 (w/modem control)/local terminal
3 Communications port 2 (w/modem control)/local terminal
Each communication port from the serial line controller behaves as described in and can be set to run at any of 16 speeds. For the encod-
ing, see
When a graphics device is not being used as the system console, communications port 2 becomes the system console. In this configuration,
the port can only be used at 9600 BPS and no modem control is supported.
The serial line driver operates in interrupt-per-character mode (all pending characters are flushed from the silo on each interrupt).
Restrictions
Speed must be set to 9600 BPS on the console port and 4800 BPS on ports used by graphics devices. The serial line driver enforces this
restriction; that is, changing speeds with the command may not always work on these ports.
Files
console terminal
local terminal
local terminal
See Also
console(4), devio(4), tty(4), ttys(5), MAKEDEV(8)
RISC dc(4)