07-13-2006
How to set the DSR pin using a C Code
Hi,
I am a newbie using linux. I want to use the 9 pins of the COM port for data transmission. I am trying to write a code to toggle the DTR pin in /dev/ttyS0.
Can any one help by giving a sample code or links that will help me pick up fast
Regards
8 More Discussions You Might Find Interesting
1. UNIX Desktop Questions & Answers
Hello everybody! I need some help.
Is there a way to pin a window to the desktop in Linux?
I have a list of tasks in Calc. And I want the window of Calc to be always before my eyes, so that it sort of reminds me of my tasks. The window must be «stuck» to the desktop, and when I click the... (0 Replies)
Discussion started by: alex777
0 Replies
2. Programming
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
3. Programming
Hi
Can any one tell me from where can i get the code/library(c/c++(Sun)) for PIN generation.
Actually i need to generate a new PIN for the user in case sombody reset his PIN.
Thanks in Advance. (1 Reply)
Discussion started by: unisuraj
1 Replies
4. Programming
hi
i am student doing project in ns2.34.
i hav to add field in route cache and packet of DSR routing protocol.
which files hv to be changed...pl help me (1 Reply)
Discussion started by: khubalkar
1 Replies
5. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
want to add field to route cache and packet of DSR routing protocol in ns2.34, add field, DSR package in ns2.34... (2 Replies)
Discussion started by: khubalkar
2 Replies
6. IP Networking
Dears
How to configure RHEL6 to support Aleton 4408 in DSR(Direct Server Return) mode
We have config Aleton 4408 + Windows 2008R2
then Windows set loopback interface with VIP.
the exec the following command in CMD
netsh interface ipv4 set interface "net" weakhostreceive=enabled
netsh... (0 Replies)
Discussion started by: nnnnnnine
0 Replies
7. IP Networking
Hello
I have a question about routing in MANET using Dynamic Source Routing protocol.
IN RFC4728 (DSR) in section "IP fields" of RREP (Route Reply) packet we have this:
ok.
I read in several books and also in rfc4728 that: when a source node (node that initiate route discovery process)... (1 Reply)
Discussion started by: acu281
1 Replies
8. Shell Programming and Scripting
hello i wanted to see if anyone can analyze the following code and see where the error lies. it is supposed to echo the current date and start counting from 0000-9999 and show the approximate range that it is at. here is a pic of what the output should look like:... (3 Replies)
Discussion started by: Kooftness
3 Replies
LEARN ABOUT DEBIAN
statserial
STATSERIAL(1) User Commands STATSERIAL(1)
NAME
statserial - display serial port modem status lines
SYNOPSIS
statserial [-n | -d | -x] <device-name>
DESCRIPTION
Statserial displays a table of the signals on a standard 9-pin or 25-pin serial port, and indicates the status of the handshaking lines. It
can be useful for debugging problems with serial ports or modems.
The optional device-name parameter is the full name of the device file for the serial port in question. If not specified, the default is
taken from the environment variable MODEM if set, otherwise /dev/cua1.
COMMAND-LINE OPTIONS
Each of the command line options is mutually exclusive.
-n Normally statserial will loop continuously, updating the status at one second intervals; you can exit using Control-C. The -n option
disables looping.
-d
With this option the status of the modem is printed as a decimal number. The bits are encoded as follows (XXX indicates unused bits):
+---+---+---+---+---+---+---+---+---+
| 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
+---+---+---+---+---+---+---+---+---+
|DSR|RI |DCD|CTS|XXX|XXX|RTS|DTR|XXX|
+---+---+---+---+---+---+---+---+---+
-x This option is the same as -d, except that the output is in hexadecimal.
BUGS
/LIMITATIONS
Statserial only works with devices that support the TIOCMGET ioctl.
You need permission to read the device file.
The device file may be locked if other applications are using it.
AUTHOR
Statserial was written by Jeff Tranter (Jeff_Tranter@Mitel.COM), later updated by Frank Baumgart (godot@uni-paderborn.de) and is released
under the conditions of the GNU General Public License. See the file COPYING and notes in the source code for details.
SEE ALSO
setserial(8) stty(1)
/usr/src/linux/drivers/char/serial.c /usr/include/linux/termios.h
Linux 17 December 1994 STATSERIAL(1)