Sponsored Content
Operating Systems Linux Red Hat Setting serial port configuration Post 302953914 by Anjan Ganguly on Wednesday 2nd of September 2015 02:23:14 PM
Old 09-02-2015
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 is as follows.
Code:
Baud Rate:- 9600
Data Bit: - 9
Parity: - None
Stop Bit: - 1
Flow Control :- None

How to set these parameters for this COM port(I guess ttyS0 is the required COM port) in Red Hat Linux 5.9?

Last edited by Don Cragun; 09-02-2015 at 04:52 PM.. Reason: Add CODE and ICODE tags.
 

10 More Discussions You Might Find Interesting

1. 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

2. Linux

modem - usb to serial configuration

I have a serial modem connected to a usb port using an adapter cable. The system is a HP DL360. RedHat ES3.0 I am using the device /dev/ttyUSB0 When I issue the command "mgetty ttyUSB0" I get the following output in the log file. How do I get the system to see the modem. 12/02 14:17:55... (2 Replies)
Discussion started by: jshoovie
2 Replies

3. SCO

Serial port configuration

Hi I have just re-installed Compaq ML350 G2 Server with Unix SCO 5.0.5 and informix DBMS . on this server we have 2 serial ports , unfortunately its not working. Can anyone help me to check the serial ports working or not OR guide me to reconfigure it. I have attached a device with... (1 Reply)
Discussion started by: munirh
1 Replies

4. Programming

Serial port programming

I am developing an application in c with Linux OS, where a radio modem working at baud rate 9600 will be attached to PC on serial port. More than four such units will be communicating at one time, so there may be jamming or data corruption. Each module will be transmitting Data packets less than... (2 Replies)
Discussion started by: raj8109
2 Replies

5. Solaris

Serial port problem

I am working with solaris 9 sparc and I want to connect physical device in serial port but when I am connecting it,It is showing the error window saying-- So can any1 tell me the reason or is there any package I have to add to work with serial port??? (2 Replies)
Discussion started by: smartgupta
2 Replies

6. Solaris

Serial port issue

Hi, I am working with Sun Solaris 9 Sparc,Sun-Blade-100.In my application,I need to monitor the UPS using Serial port. When I am using JRE 1.4 in my application,I am able to monitor it but when I am upgrading the JRE version from 1.4 to JRE1.6. I am not able to monitor the UPS.It is showing the... (1 Reply)
Discussion started by: smartgupta
1 Replies

7. 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

8. 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

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

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... (2 Replies)
Discussion started by: Anjan Ganguly
2 Replies
KISSATTACH(8)						   Linux System Managers Manual 					     KISSATTACH(8)

NAME
kissattach, spattach - Attach a KISS or 6PACK interface SYNOPSIS
kissattach [-b] [-6] [-l] [-m mtu] [-v] tty port [inetaddr] spattach [-b] [-l] [-m mtu] [-v] tty port [inetaddr] DESCRIPTION
Attach a KISS or a 6PACK interface to what is normally a tty line connected to a TNC in KISS or 6PACK mode. This program will turn itself into a background process. To down an interface send its attach process a SIGTERM. Kissattach takes many of the parameters for the port from the axports(5) file. If the speed parameter in the file is not equal to zero then it is used for the serial port speed, a zero value means that no speed is set. The paclen parameter is used for the device mtu unless over- ridden by a value on the command line. The tty argument will typically be that of a serial port with a KISS or 6PACK TNC attached, although it could be a pseudo tty or a KISS port emulator such as an SCC card. Kissattach supports BSD-style pseudo-terminals as well as the Unix98 pty's. If the tty argument is "/dev/ptmx", then Unix98 behaviour will automaticaly take effekt. With Unix98 pty's, the slave tty name could not be forseen. That's why kissattach will print the corresponding slave pty name as a separate line on stdout. The port argument is the name of a port as given in the axports(5) file. The optional inetaddr argument is the IP address of the new interface. Some time it was mandatory argument (although due to historical rea- sons this restriction is lifted if the old -i option is used). But there's really not a need for the interface to have an IP address assigned to. OPTIONS
-6 Use the 6PACK line discipline instead of KISS. This is the default if the program is called as spattach. -i inetaddr Set the internet address of the interface. This address may either be a dotted decimal address or a host name. This option is now depreciated and the program will complain about it, though still work. -l Log messages to the system log, the default is not to. -b Allow broadcasts on the interface (default no - because for e.g. samba broadcasts are a pain..) -m mtu Sets the mtu of the interface. If this value is not given then the value is taken from the paclen parameter in axports. -v Display the version. SEE ALSO
kill(1), stty(1), ax25(4), axparms(4), axports(5), ifconfig(8). AUTHOR
Alan Cox GW4PTS <alan@cymru.net> Jonathan Naylor G4KLX <g4klx@g4klx.demon.co.uk> Linux 4 July 1999 KISSATTACH(8)
All times are GMT -4. The time now is 02:11 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy