Sponsored Content
Top Forums UNIX for Advanced & Expert Users How to set baude rate of Serial port using setserial or other command Post 56244 by Perderabo on Wednesday 29th of September 2004 11:20:35 AM
Old 09-29-2004
man cfspeed

Bear in mind that the tty driver resets stuff back to defaults at close() time if there is no other process with the tty open. (At last close, you're back to normal.) So a program that uses the tty port must set the speed itself.
 

9 More Discussions You Might Find Interesting

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

2. Linux

Urgent - serial port

Hi All, I am a begineer in Linux, I have 4 ports and 3 are operational port 1,port 2 and port 4 (when I plug in serial device I can see it working) but port 3 seems it is not working. I am sure the hardware is fine. when I give command dmesg | grep tty I get, serial 8250:ttyS0 at... (0 Replies)
Discussion started by: vr_82
0 Replies

3. Solaris

how to set the variales for serial port

Hi, I am working with Solaris 9 Sun Blade-100.I am doing some changes for serial port and by mistaken I changed the serial port /dev/term/a variables. So I need to make the changes fro /dev/term/a same as /dev/term/b. So please tell me how can I do that ?? (1 Reply)
Discussion started by: smartgupta
1 Replies

4. AIX

command to monitor the Serial port

Hi, Can anyone please tell me how to check the status of the serial port ?? for example,in Sun os we use the command pmadm to see the status of the serial port-- So is there any command or method in AIX,So that i can see the serial port status ?? thanks in advance ... (1 Reply)
Discussion started by: smartgupta
1 Replies

5. Solaris

Serial port not found

Hi, I am working with solaris 9,SUN-Blade-100 and I want to communicate with the Serial port.To check whether the port is working or not.I write code and when I execute the file,then I got the output-- According to this,serial port is not found.can anyone please tell me how to configure the... (1 Reply)
Discussion started by: smartgupta
1 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. UNIX for Advanced & Expert Users

Doubt on setserial command

My understanding is that "setserial" command is used to change the attributes of serial device files (ttyS) managed by the linux serial driver(serial module). My doubt is, using setserial command is it possible to change the attributes of other serial device files managed by a different driver... (2 Replies)
Discussion started by: Kesavan
2 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
cfgetispeed(3C) 					   Standard C Library Functions 					   cfgetispeed(3C)

NAME
cfgetispeed, cfgetospeed - get input and output baud rate SYNOPSIS
#include <termios.h> speed_t cfgetispeed(const struct termios *termios_p); speed_t cfgetospeed(const struct termios *termios_p); DESCRIPTION
The cfgetispeed() function extracts the input baud rate from the termios structure to which the termios_p argument points. The cfgetospeed() function extracts the output baud rate from the termios structure to which the termios_p argument points. These functions returns exactly the value in the termios data structure, without interpretation. RETURN VALUES
Upon successful completion, cfgetispeed() returns a value of type speed_t representing the input baud rate. Upon successful completion, cfgetospeed() returns a value of type speed_t representing the output baud rate. ERRORS
No errors are defined. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-------------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-------------------------------+ |Interface Stability |Standard | +-----------------------------+-------------------------------+ |MT-Level |MT-Safe, and Async-Signal-Safe | +-----------------------------+-------------------------------+ SEE ALSO
cfgetospeed(3C), tcgetattr(3C), attributes(5), standards(5), termio(7I) SunOS 5.10 24 Jul 2002 cfgetispeed(3C)
All times are GMT -4. The time now is 02:05 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy