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
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
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
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
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
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
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
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
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
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
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
FPIT(4) Kernel Interfaces Manual FPIT(4)
NAME
fpit - Fujitsu Stylistic input driver
SYNOPSIS
Section "InputDevice"
Identifier "idevname"
Driver "fpit"
Option "Device" "devpath"
...
EndSection
DESCRIPTION
fpit is an Xorg input driver for Fujitsu Stylistic Tablet PCs.
The fpit driver functions as a pointer input device, and may be used as the X server's core pointer.
SUPPORTED HARDWARE
This driver supports the touchscreen of the Stylistic LT and (with special options) of the Stylistic 500, 1000, 1200, 2300, and 3400. Mod-
ern FinePoint MP800 devices will also work with this driver.
Under Linux the Fujitsu's serial port is not, by default, detected. Therefore the port must be configured manually as described in the
accompanying readme.txt file.
For example, add the following to your startup scripts for Stylistic xx00 devices:
setserial /dev/ttyS3 autoconfig
setserial /dev/ttyS3 IRQ 15 baud_base 115200 port 0xfce8
This driver now supports Stylistic 3400 (and possibly other passive-pen systems) with a special "Passive" paramter. Try this serial config-
uration for the 3400:
setserial /dev/ttyS3 autoconfig
setserial /dev/ttyS3 uart 16450 irq 5 port 0xfd68
CONFIGURATION DETAILS
Please refer to xorg.conf(5x) for general configuration details and for options that can be used with all input drivers. This section only
covers configuration details specific to this driver.
The device supports the following options:
Option "MaximumXPosition" "number"
Sets the maximum X position, use this to calibrate your touchscreen's right hand edge.
Option "MinimumXPosition" "number"
Sets the minimum X position, use this to calibrate your touchscreen's left hand edge.
Option "MaximumYPosition" "number"
Option "MinimumYPosition" "number"
Same as for X axis, but for Y axis.
Option "InvertX"
Option "InvertY"
Invert the specified axis.
Option "SwapXY"
Swap the X and Y axis (after inversions).
Option "Rotate" "CW"
Option "Rotate" "CWW" Manipulate the invert and swap options to match screen rotations. (Will behave strangely if combined with
invert or swap options.) New users should consider the "TrackRandR" option instead.
Option "DeviceName" "name"
Option "DeviceName" "name" sets the name of the X device.
Option "AlwaysCore" "on"
enables the sharing of the core pointer. When this feature is enabled, the device will take control of the core pointer (and
thus will emit core events) and at the same time will be able, when asked so, to report extended events. You can use the last
available integer feedback to control this feature. When the value of the feedback is zero, the feature is disabled. The fea-
ture is enabled for any other value.
Option "DebugLevel" number
sets the level of debugging info reported.
Option "BaudRate" "38400", "19200" (default) or "9600"
changes the serial link speed.
Option "Passive"
decodes the passive pen. Option "TrackRandR" automatically keeps the cursor synchronized with the pen's position, even when
the screen is resized or rotated. (Recommended for tablet PC's.)
Example, for Stylistic LT setup is:
Section "InputDevice"
Identifier "mouse0"
Driver "fpit"
Option "Device" "/dev/ttyS3"
# Option "TrackRandR"
EndSection
And for other Stylistic devices try:
Section "InputDevice"
Identifier "mouse0"
Driver "fpit"
Option "Device" "/dev/ttyS3"
Option "BaudRate" "19200"
Option "MaximumXPosition" "6250"
Option "MaximumYPosition" "4950"
Option "MinimumXPosition" "130"
Option "MinimumYPosition" "0"
Option "InvertY"
# Option "TrackRandR"
EndSection
For Stylistic 3400:
Section "InputDevice"
Identifier "mouse0"
Driver "fpit"
Option "Device" "/dev/ttyS3"
Option "BaudRate" "9600"
Option "MaximumXPosition" "4070"
Option "MaximumYPosition" "4020"
Option "MinimumXPosition" "0"
Option "MinimumYPosition" "0"
Option "Passive"
Option "SendCoreEvents"
# Option "TrackRandR"
EndSection
SEE ALSO
Xorg(1), xorg.conf(5), Xserver(1), X(7).
AUTHORS
Original FPIT port: Rob Tsuk <rob@tsuk.com> and John Apfelbaum <johnapf@linuxslate.com>
X4 Port: Richard Miller-Smith <richard.miller-smith@philips.com>, based on Elographics code from: Patrick Lecoanet
X4.2 Cleanup: Alan Cox
X Version 11 xf86-input-fpit 1.3.0 FPIT(4)