This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Setting com port speed.


What is the correct way to change the baud rate of com ports
under cygwin.

I'm running windows 2000 and have set the desired baud rate of
com7 to 38400.

Running "stty -F com7" speed reports that com7 is set to run at
9600 baud.

I have tried the command "stty -F com7 ispeed 38400" but receive
the error message "stty: com7: unable to perform all requested
operations". Then checking the speed of the port will show that
it is still set to 9600 baud.

Am I going the correct way about this? The main objective here is
to be able to enter the command "cat com7" and view the data on
that port correctly.



The output of cygcheck.exe follows:

Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Aug  1 09:48:07 2001

WinNT Ver 5.0 build 2195 Service Pack 1

Path:	/usr/local/bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

PWD = `/'
USER = `Administrator'
MAKE_MODE = `unix'
HOME = `/cygdrive/p'

Use `-r' to scan registry

c:  hd  FAT32   5715Mb  67% CP    UN           
d:  cd  CDFS       0Mb -2147483548%    CS              Audio CD
g:  net NTFS    4996Mb  80% CP CS UN PA FC     
l:  net NTFS   17359Mb  96% CP CS UN PA FC     
m:  net NTFS   17359Mb  96% CP CS UN PA FC     
p:  net NTFS    3137Mb  95% CP CS UN PA FC     Personal_Software
q:  net NTFS   17359Mb  96% CP CS UN PA FC     
r:  net NTFS   17359Mb  96% CP CS UN PA FC     
s:  net NTFS   17359Mb  96% CP CS UN PA FC     
t:  net NTFS   17359Mb  96% CP CS UN PA FC     
v:  net NTFS    3137Mb  95% CP CS UN PA FC     Personal_Software
x:  net NTFS     996Mb  53% CP CS UN PA FC     Xchange

C:\cygwin\bin  /usr/bin  system  binmode
C:\cygwin\lib  /usr/lib  system  binmode
C:\cygwin  /        system  binmode
c:    /cygdrive/c  user    binmode,noumount
d:    /cygdrive/d  user    binmode,noumount
g:    /cygdrive/g  user    binmode,noumount
l:    /cygdrive/l  user    binmode,noumount
m:    /cygdrive/m  user    binmode,noumount
p:    /cygdrive/p  user    binmode,noumount
q:    /cygdrive/q  user    binmode,noumount
r:    /cygdrive/r  user    binmode,noumount
s:    /cygdrive/s  user    binmode,noumount
t:    /cygdrive/t  user    binmode,noumount
v:    /cygdrive/v  user    binmode,noumount
x:    /cygdrive/x  user    binmode,noumount

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   56k 2000/12/03 C:\cygwin\bin\cygbz21.0.dll
  119k 2001/06/06 C:\cygwin\bin\cygjpeg6b.dll
   18k 2000/10/23 C:\cygwin\bin\cyggdbm.dll
  163k 2001/05/06 C:\cygwin\bin\cygpng2.dll
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll
   21k 2001/06/28 C:\cygwin\bin\cyghistory5.dll
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll
  135k 2001/06/28 C:\cygwin\bin\cygreadline5.dll
   41k 2001/07/04 C:\cygwin\bin\cygXpm-noX4.dll
   45k 2001/07/04 C:\cygwin\bin\cygXpm-X4.dll
   81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll
   35k 2000/12/05 C:\cygwin\bin\cygitk30.dll
  390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll
    5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll
   10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll
  623k 2000/12/05 C:\cygwin\bin\cygtk80.dll
  245k 2001/06/12 C:\cygwin\bin\cygtiff3.dll
   49k 2001/02/03 C:\cygwin\bin\cygz.dll
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll
   45k 2001/07/04 C:\cygwin\bin\cygjbig1.dll
  678k 2001/05/21 C:\cygwin\bin\cygwin1.dll
    Cygwin DLL version info:
        dll major: 1003
        dll minor: 2
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 39
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        cygdrive flags: cygdrive flags
        cygdrive prefix: cygdrive prefix
        cygdrive default prefix: 
        build date: Sun May 20 23:28:17 EDT 2001
        shared id: cygwin1S3

Use -h to see help about each section

Unsubscribe info:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]