Sponsored Content
Operating Systems Linux Red Hat Serial Port Setting Automatically changes Post 302963050 by Anjan Ganguly on Wednesday 23rd of December 2015 12:54:40 AM
Old 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

serial port reading

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

serial port configuration

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

Telling apart serial from // port

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

urgent......Serial port

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

Programming serial port

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

Need help with serial port

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

How to enable Serial port on ILOM, when Network Port is enabled in parallel

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

Setup Serial Port

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

Cabling and adapters to communicate to service processor serial port from Windows PC with USB port.

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

Setting serial port configuration

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
ncpd(8) 						  System administration commands						   ncpd(8)

NAME
ncpd - Daemon which handles the serial link to a Psion SYNOPSIS
ncpd [-V] [-h] [-v log-class] [-d] [-e] [-p [host:]port] [-s device] [-b baud-rate] [long-options] DESCRIPTION
ncpd is the daemon which handles the serial link to your Psion. It listens at port 7501 for local connections and provides basic PLP/NCP services for plpfuse and plpftp and other front-ends. It auto-connects to the psion, even after unplugging/switching off therefore it can run all the time if you can dedicate a serial device to it. OPTIONS
-V, --version Display the version and exit -h, --help Display a short help text and exit. -e, --autoexit Exit automatically if the device is disconnected. Furthermore, use the current tty as I/O device. This option is intended for start- ing ncpd on demand using mgetty's auto-detect function. (A patch for mgetty is needed for that). -v, --verbose=log-class Increase the logging level of the program. the possible values for log-class are: nl Set NCP debug level to LOG nd Set NCP debug level to DEBUG ll Set Link debug level to LOG ld Set Link debug level to DEBUG pl Set Packet debug level to LOG pd Set Packet debug level to DEBUG ph Set Packet debug level to HANDSHAKE m Set overall debug level to verbose all Turn on all the above logging on. -d, --dontfork Do not background the daemon. -p, --port=[host:]port Specify the port to listen on - by default the value for the host is 127.0.0.1 and the value for the port is looked up in /etc/ser- vices using the key psion/tcp. If it is not found there, a default value of 7501 is used. -s, --serial=device Specify the serial device to use to connect to the Psion - this defaults to /dev/ttyS0 -b, --baudrate=baud-rate Specify the baud rate to use for the serial connection. If the word auto is specified, ncpd cycles through baud-rates of 115200, 57600, 38400, 19200 and 9600 baud. Default setting is auto. SEE ALSO
plpfuse(8), plpprintd(8), plpftp(1), sisinstall(1) AUTHOR
Fritz Elfert Heavily based on p3nfsd by Rudolf Koenig (rfkoenig@immd4.informatik.uni-erlangen.de) and plp_1_7 by Philip Proudman (phil@proud- man51.freeserve.co.uk) Patches from Matt Gumbley (matt@gumbley.demon.co.uk) Man page by John Lines (john+plpman@paladin.demon.co.uk) plptools 1.0.9 2008/03/13 ncpd(8)
All times are GMT -4. The time now is 11:25 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy