01-26-2012
We are not "on call" here. If you don't get a reply instantly,
wait!
Let me hunt up the code I use...
---------- Post updated at 11:48 AM ---------- Previous update was at 11:44 AM ----------
Try perror("read failed"); to see
why read failed.
I rolled my own serial-port-opening function to make ordinary rs232 communication less of a hassle, with the result being
tcgets.h and
tcgets.c. You can open a serial port like
int fd=termios_open("/dev/ttyS0", "2400N81");. Even if you don't use it, it should hopefully be a good example
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a network consisting of Linux Server, Win-Nt & 95 OS. I am able to connect from Linux to Win-NT using either ftp / telnet in time. But it takes me around & more than 50 seconds to connect from Wint -Nt/95 to Linux using either ftp/telnet. My network is small & it hardly consists 20-25... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies
2. Programming
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? (1 Reply)
Discussion started by: ManishSaxena
1 Replies
3. UNIX for Advanced & Expert Users
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
4. UNIX for Dummies Questions & Answers
hi there!
I have a small, probably very dumb question. Is it possible to connect two linux boxes with each other over COM ports for terminal connection? (4 Replies)
Discussion started by: D-Lexy
4 Replies
5. Solaris
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
6. UNIX for Advanced & Expert Users
Hello
i want to connect my solaris & Linux boxes to ntp server
i used the command
/usr/sbin/ntpdate -s -b -p 8 -u <NTP-IP>
and added the NTP server as server in /etc/ntp.conf
please help in completing the process and verifying it (1 Reply)
Discussion started by: learn82
1 Replies
7. UNIX for Dummies Questions & Answers
I just installed the latest version of unbuntu server and want to connect from windows using a ssh client. This is my first linux server, so bare with me =)
For my server...
cat /etc/hostsgives me
127.0.0.1 localhost
127.0.1.1 ubuntuHomeI tried using ssh secure shell and putty in vista.... (11 Replies)
Discussion started by: Bandit390
11 Replies
8. UNIX for Advanced & Expert Users
Hi experts - I hope you can help me.
I am trying to resolve Windows host names (aka Netbios names, aka "UNC names) from a Linux box.
I have added "dns wins" to the "hosts" line at /etc/nsswitch.conf, and installed samba 3.2.2 and ran "winbindd -D".
Now, when I go: "wbinfo -N venus" (where... (1 Reply)
Discussion started by: maryg
1 Replies
9. Red Hat
Hi Friends,
I configured CVS Repository in RHEL 5.3 Server. But connecting the CVS Repository get the error like.
# cvs -d:pserver:cvs@localhost:/backup/cvs/cvsrep login
Logging in to :pserver:cvs@localhost:2401/backup/cvs/cvsrep
CVS password:
cvs : connect to :2401 failed: Connection... (0 Replies)
Discussion started by: srinivas814
0 Replies
10. Hardware
I have been trying to get bluetooth working correctly on Linux for a while now. I am using two systems that are having identical issues: Linux Mint 15 64-bit & Ubuntu 13.04 32-bit. Both are using the Cinnamon desktop. I have the following bluetooth dongle:
... (6 Replies)
Discussion started by: Deluge
6 Replies
TERM(1) General Commands Manual TERM(1)
NAME
term - turn PC into a dumb terminal [IBM]
SYNOPSIS
term [baudrate] [parity] [bits_per_character] [-dial_string] [device]
EXAMPLES
term 2400 # Talk to modem at 2400 baud
term 1200 7 even # 1200 baud, 7 bits/char, even parity
term 8 9600 /dev/tty01
# 9600 baud, 8 bits/char, no parity, use tty01
term -atdt12345 /dev/tty01
# Start with a command to dial out
DESCRIPTION
Term allows MINIX to talk to a terminal or modem over RS232 port 1. The program first sets the baudrate, parity and character length, and
then forks. The parent sits in a loop copying from stdin (usually the console's keyboard), to the terminal or modem (/dev/tty00). The
child sits in a loop copying from the terminal or modem (/dev/tty00) to standard output. Thus when RS232 port 1 is connected to a modem,
every keystroke typed on the keyboard is sent to the modem, and every character arriving from the modem is displayed. Standard input and
output may be redirected, to provide a primitive file transfer program, with no checking. Any argument that starts with a minus ('-') is
sent out to the modem, usually to dial out. Term accepts several commands that are formed by typing the escape character, CTRL-], and a
letter. Type CTRL-]? to see a list of commands. The subshell command is very important, it allows you to type in a ZMODEM command to
transfer data. Do not quit term to do this, or your modem line will be reset! Term keeps the modem line open on file descriptor 9 while
running the subshell, so you can type
<&9 >&9
at the end of your ZMODEM command to connect it to the modem.
Important note: to use term, it is essential that /etc/ttytab is configured so that there is no shell hanging on /dev/tty01. If there is,
both the shell and term will try to read from /dev/tty01, and nothing will work.
SEE ALSO
rz(1), sz(1).
TERM(1)