Sponsored Content
Full Discussion: Doubt on setserial command
Top Forums UNIX for Advanced & Expert Users Doubt on setserial command Post 302895067 by Corona688 on Friday 28th of March 2014 11:42:15 AM
Old 03-28-2014
I have never heard of 'setserial' but assume it is equivalent to stty. It's the same system call either way, in the end.

Yes, baud rate should work for any kind of terminal interface that actually has a baud rate... I have used it to set the baud rates of USB to serial converters which use the 'ftdi-sio' module, for example.

There are terminal interfaces that don't actually have baud rates of course. Virtual terminals, for example -- as far as an application can tell, every console window, including ssh and xterms, communicate over serial ports. You can change their baud rate all you want but it won't do a thing, because the data wasn't ever transmitted over a real serial port.

The same goes for certain kinds of USB interfaces that pretend to be serial ports for application convenience, but don't actually output real RS232 on the other end.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How to set baude rate of Serial port using setserial or other command

Hello, I am encountering problems when I use termios structure to set my baud rate of serial port. Pls give me a way by which I can set the same using a different command (1 Reply)
Discussion started by: zaheer031
1 Replies

2. UNIX for Dummies Questions & Answers

doubt in tr command

Hi, I am trying to understand a script and found a line as follows: tr '\211\233\240' '\040' < $IN_FILE | tr -cd '\11\12\15\40-\176' > $TEMP_FILE Can any one explain the above line .. What are they trying to translate using the tr command.. I have not used tr command.. so feeling little bit... (2 Replies)
Discussion started by: risshanth
2 Replies

3. Shell Programming and Scripting

doubt in grep command

Hello i am new shell scripting. I have a file like this, $ cat myfile ;/abc/abc.cpp@@/main/1;xyz ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;abc ;/abc/abc.cpp@@/main/2;usr2 ;/abc/abc.cpp@@/main/1;usr1 when i grep the file. $ grep "abc" myfile... (8 Replies)
Discussion started by: tsaravanan
8 Replies

4. Shell Programming and Scripting

Doubt with ftp command

Hi linux experts, I am using ftp command as : ftp hostname but it says unable to connect, if i am using the same in sftp it is working : sftp hostname it works. so please help me how should i use ftp command. (8 Replies)
Discussion started by: salil2012
8 Replies

5. UNIX for Dummies Questions & Answers

doubt in tar command

Hello sir, We can archive a file by :tar -cvf a.tar a.txt AND We can get it back by : tar -xvf a.tar I want to save the file extracted from a.tar into a specific location.How can I give the destination path in the above command ??? (2 Replies)
Discussion started by: nsharath
2 Replies

6. UNIX for Dummies Questions & Answers

Doubt on free command

All, I have doubts related to free command in Linux. My environment is RHEL5 - 64 bit OS We have 2 node RAC database installed Query output from node 1 is Free -g Total used free shared buffers cached Mem: 32 25 7 0 5 15 -/+ buffers/cache: 4 27 Swap: 30 0 30 Query... (2 Replies)
Discussion started by: user7509
2 Replies

7. UNIX for Dummies Questions & Answers

setserial not working on linux running on Beagleboard (ARM development board)

Hi, I'm trying to develop an application to work with serial infra-red module, but I'm having difficulties to even get my module started. My HW is Beagleboard, which has 1 UART serial port, normally used for console, which I have disabled (I re-created the boot.scr, without the console... (0 Replies)
Discussion started by: julumme
0 Replies

8. Shell Programming and Scripting

command substitution doubt

Hi, I almost always use back quotes in scripts to assigin output of a command to a variable. eg: file=`basename a/b/c/d/file` year_mon=`date +%Y%m` But the same can be achieved like: file=$(basename a/b/c/d/file) year_mon=$(date +%Y%m) I would like to know if there is... (3 Replies)
Discussion started by: wanderingmind16
3 Replies

9. UNIX for Dummies Questions & Answers

Doubt in ls command

dear users and experts, i am stuck withis command and i am unable to understand what is it doing?? ls -d * (7 Replies)
Discussion started by: seshank
7 Replies

10. Shell Programming and Scripting

Grep command doubt

Hi all, I need to find the line by using grep command with the two occurence of word in the same line. I tried the below example it prints the word choice. cat nohup.out Dictionary utl is completed. file is completed. Dictionary file is completed. grep 'Dictionary\|file'... (0 Replies)
Discussion started by: arun888
0 Replies
PPP(1)							      General Commands Manual							    PPP(1)

NAME
pppclient, pppserver - point to point protocol SYNOPSIS
pppclient [ -d ][ -b baudrate ][ -i myipaddr ][ -p peeripaddr ][ dialdevice ] pppserver [ -d ] ndev myipaddr firstipaddr firstdev [ baud0 baud1 ... ] DESCRIPTION
The Point to Point Protocol is used to encapsulate Internet Protocol packets for transfer over serial lines or other protocol connections. Pppclient makes a connection to a PPP server and passes IP packets over the connection. If dialdevice is omitted, standard input and out- put are used as the connection. If dialdevice begins with a slash, pppclient assumes it is a file name, open(2)'s it, and uses the result as the connection. Otherwise, dialdevice is passed as the destination address to dial(2) to set up the connection. If the connection is successful, pppclient creates a pipe, pushes the IP line discipline onto it, and sets the local and remote addresses of the IP interface to myipaddr and peeripaddr. It then loops transferring packets between the pipe and the connection. If either myi- paddr or peeripaddr is omitted, pppclient requests them from the server. The options are d print debugging information. b baud rate of the serial line. p peer ip address (in case the peer asks for its ip address over IPCP). i the local ip address to be established for this connection. Pppserver treats serial lines as PPP connections, switching packets between them and the local machine. It creates a pipe for a local IP interface (address myipaddr), opens a set of serial lines, and switches packets between the local interface and the serial lines. Ndev specifies the number of serial devices to serve. The devices are named /dev/eia{firstdev} through /dev/eia{firstdev+ndev-1}. Their remote IP addresses are firstipaddr through firstipaddr+ndev-1. The default baud rate is 9600. If any arguments follow firstdev (baud0, baud1, ...), they are used as baud rates for the serial lines. The only option, -d, turns on debugging output. Both pppclient and pppserver accept all options defined in RFCs 1331 and 1332. EXAMPLES
Start up a server for serial lines /dev/eia[2-6] with remote IP addresses 131.107.1.100 through 131.107.1.103 and baud rates of 19200, 2400, 9600, 9600. The local IP address is 131.107.1.1. pppserver 4 131.107.1.1 131.107.1.100 2 19200 2400 SOURCE
/sys/src/cmd/ppp PPP(1)
All times are GMT -4. The time now is 12:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy