12-23-2015
Serial Port Setting Automatically changes
I am trying to change the setting of serial port baud rate in Red Hat Linux 5.9 by the following command.
>> stty 9600 cs8 -parenb -ixon -cstopb -echo -F /dev/ttyS0
The serial port will be used by our custom application in 2 separate servers which are the replica of one another.
The port setting got automatically changes when the application got start in one of the server. Where as on the other server it is not happening.
Can I able to see the process which are using the serial ports?I do not set any serial port configuration through my custom application.It only check the ./dev/ttyS0 file and nothing else.
Can some body help me out to trouble shoot the issue
10 More Discussions You Might Find Interesting
1. Programming
Hai there,
Can any one provide me with a ansi c source code for
opening com1 or com2 and read data. The port is connected to
another serial communication device on rs232 port.
The o/s is Sco Unix 5.0.6
Matter urgent
Viswanath (0 Replies)
Discussion started by: viswanath
0 Replies
2. UNIX for Dummies Questions & Answers
I am having trouble with a device connected through a serial port on my sun workstation ( I am running solaris 7).
The seriel device works on an identical workstation running the same o/s version but when I move it to the initial workstation it doesn't work. I am using an rs232 serial cable and... (1 Reply)
Discussion started by: Henrik
1 Replies
3. Programming
I'm writing a journal_write() function and I want it to:
- be a possible drop in replacement for write()
- write entries to the journal ;-) Could be a regular file (journal.txt), a serial printer or a // printer.
- handle printer status if needed.
fstat() tells weather or not we're dealing with... (2 Replies)
Discussion started by: starless
2 Replies
4. Linux
I think my serial port(on board) is not working ......
because when I am running same code on two machines its working good....but when my system comes into picture ....it doesnt show any output comming from serial port..........
can anybody tell me how to configure my serial port.........or to... (16 Replies)
Discussion started by: arunchaudhary19
16 Replies
5. Programming
Hello!
Can someone advice me which method I will use if I want to communicate with device via RS232 serial port with this requirements:
1. Serial port is opened in non-canonical mode.
2. All the time I need to check is there something to read.
3. If I have to write something I need to write it... (6 Replies)
Discussion started by: jvrlic
6 Replies
6. Shell Programming and Scripting
Hi,
I have a external board connected to my serial port. I need to execute "shutdown -r now" command when system boot up. When system boots up it requires a username ans password. Then I need to run my command. I can use rc script but that is rebooting system before it asks for username and... (0 Replies)
Discussion started by: charlie.arya
0 Replies
7. Solaris
Hi Everyone,
In my environment, I have few T5220. On the iLOM Management Card, I have both Network and Serial port are cabled, I don't have any issues while I try to connect using Network Management port, but when I try to connect the serial port for the same server which is actually connected... (3 Replies)
Discussion started by: bobby320
3 Replies
8. Web Development
I need to set a serial port to 9600 7E1. How do I accomplish this?
I've tried every combination, with no luck. (6 Replies)
Discussion started by: Meow613
6 Replies
9. Solaris
Hello,
I have an unloaded T5140 machine and want to access the ILOM for the first time and subsequently the network port after that., and then load Solaris 10 the final January 2011 build.
The first part is what confuses me -the cabling.
I am coming from a Windows machine (w/appropriate... (5 Replies)
Discussion started by: joboy
5 Replies
10. Red Hat
I have 1 serial port (9 Pin) attached with my Linux server.If I give
$dmesg | grep tty , it provides me the following.
ttyS0 and ttyS1.
I have 1 COM port with my server mother board. I have 1 customized application
that requires this COM port to be used.
The parameter to be set for COM port... (4 Replies)
Discussion started by: Anjan Ganguly
4 Replies
mdc(4) Kernel Interfaces Manual mdc(4)
Name
mdc - DS5100 serial line driver
Syntax
device mdc0 at ibus? vector mdcintr
device mdc1 at ibus? vector mdcintr
device mdc2 at ibus? vector mdcintr
Description
A DS5100 base system (mdc0) provides four asynchronous ports. An optional asynchronous card (mdc1 and mdc2 ) can be added to supply eight
additional ports.
The mdc ports are used as follows:
Port Usage Connector
0 Console port 6-pin MMJ on CPU board
1 Local terminal 6-pin MMJ on CPU board
2 Full modem control port 25-pin D-Sub on CPU board
3 Local terminal 6-pin MMJ on CPU board
An optional asynchronous board provides an additional eight lines:
4 Local terminal 6-pin MMJ
5 Local terminal 6-pin MMJ
6 Full modem control port 25-pin D-Sub
7 Local terminal 6-pin MMJ
8 Local terminal 6-pin MMJ
9 Local terminal 6-pin MMJ
10 Local terminal 6-pin MMJ
11 Local terminal 6-pin MMJ
The console baud rate is set to 9600 baud by default. You can change this by setting the baud environment variable from console prompt.
Each communication port from the serial line controller behaves as described in the reference page and can be set to run at any of 16
speeds. For the encoding, see
You can establish the state of port 2 (port 6) by specifying either modem or nomodem as part of the file entry.
Restrictions
The speed default is to 9600 baud on the console port. The console device must be set for 8-bit character length with one stop bit and no
parity. The driver enforces these restrictions; that is, changing speeds with the command may not always work on console ports.
Files
Console terminal
Full modem control or local terminal
See Also
console(4), devio(4), tty(4), ttys(5), MAKEDEV(8)
RISC mdc(4)