Sponsored Content
Top Forums Programming RS232 communication optimisation Post 18898 by ManishSaxena on Thursday 4th of April 2002 04:33:59 AM
Old 04-04-2002
Lightbulb RS232 communication optimisation

Need help for RS232 communication with switches in order to optimise the data traffic. How to manipulate different flags in termios struct to do the same?
 

8 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

VNC via Rs232

Hi ! Is there somebody who is able to connect a VNC session via serial cable ? There is a hint on the VNC homepage that it is possible to configure that. But how? thanks joerg (2 Replies)
Discussion started by: joerg
2 Replies

2. Solaris

rs232 pci-card

hello mates, do you know a manufactor for rs232 serial pci cards for the sparc architecture? it seems that there is no original product from sun for that purpose. strange, isn't it? problem is that i have a V250 with only one db9 rs232 serial port, and i need it for a modem connection, but i also... (1 Reply)
Discussion started by: pressy
1 Replies

3. Programming

Using non standard baudrate 28800 with rs232

Hi, can somebody help me with this one? I have to configure rs232 write/read inside a C program. I'm using the termios.h (POSIX) The problem is that the only baudrate that works for me is 28800 and it is not supported any more from this driver. :( So I can't write : cfsetispeed(&options,... (4 Replies)
Discussion started by: palexo
4 Replies

4. UNIX for Advanced & Expert Users

RS232 programming problem

Hi all I encountered a strange phenomenon when reading / writing to RS232 serial device (on my machine /dev/ttyS0) I have simple 2 processes: 1) process which WRITE characters from /dev/ttyS0 For example write the characters... (2 Replies)
Discussion started by: dudi.forum
2 Replies

5. AIX

Transferring files via RS232 cable

Current setup: Some old AIX standalone machine (F series) My WinXP laptop Null modem cable from laptop to AIX machine (console port). On Hypterminal on WinXP I can connect to the AIX machine (serial connection), but when I try to transfer file, it will just sit there. I'm guessing the... (3 Replies)
Discussion started by: apra143
3 Replies

6. Programming

How to read the CTS and DSR of RS232 in Unix using C language?

Hello to all Gurus out there, Could you show me a source code in Unix platform using C language. I want to read the status or voltage level of the DSR and CTS. Thanks a lot, Swing5 (2 Replies)
Discussion started by: Swing5
2 Replies

7. UNIX for Dummies Questions & Answers

Can A File Be Copied to an RS232 Port on Unix?

We have a text/csv file (4mb) sitting on a Unix box. The PC belongs to a retail store and they're asking me to bring the file over to Windows so they can import the file. Can a file be copied to an rs232 port? If so how? The idea is that I'll hook up a null modem cable to the Unix com port,... (2 Replies)
Discussion started by: alivebyscience
2 Replies

8. UNIX for Dummies Questions & Answers

Connecting PIC16F877A using Easypic5 via RS232 with Linux

I searched the forums for RS232 issues, but all of the results don't help me solving my problem, so I had to open new thread. This is the problem: I have PIC16F877A micro-controller and I'm programming it with Easypic5(the PIC programming device(board) from MikroElektronika) and I want to... (1 Reply)
Discussion started by: ivan_vasileski
1 Replies
tcgetattr(3)						     Library Functions Manual						      tcgetattr(3)

NAME
tcgetattr - Gets the parameters associated with the terminal LIBRARY
Standard C Library (libc.so, libc.a) SYNOPSIS
#include <termios.h> int tcgetattr ( int filedes, struct termios *termios_p ); STANDARDS
Interfaces documented on this reference page conform to industry standards as follows: tcgetattr(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags. PARAMETERS
Specifies an open file descriptor associated with a terminal. Points to a termios structure. DESCRIPTION
The tcgetattr() function gets the parameters associated with the object referenced by the filedes parameter and stores them in the termios structure referenced by the termios_p parameter. If the device does not support split baud rates, the input baud rate stored in the termios structure will be 0 (zero). The tcgetattr() function may be called from any process. RETURN VALUES
Upon successful completion, 0 (zero) is returned. Otherwise, -1 is returned and errno is set to indicate the error. ERRORS
The tcgetattr() function sets errno to the specified values for the following conditions: The filedes parameter is not a valid file descriptor. The file associated with the filedes parameter is not a terminal. RELATED INFORMATION
Functions: tcsetattr(3) Files: termios(4) Standards: standards(5) delim off tcgetattr(3)
All times are GMT -4. The time now is 08:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy