X-Spam-Check-By: sourceware.org Message-ID: <45D51CD5.9060500@avegasystems.com> Date: Fri, 16 Feb 2007 13:54:13 +1100 From: David le Comte User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Lost support for baud rate of 230400 after minor Cygwin upgrade References: <45D4EC76 DOT 50404 AT avegasystems DOT com> In-Reply-To: Content-Type: multipart/mixed; boundary="------------010007080709060109030200" X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com --------------010007080709060109030200 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Brian Ford wrote: > On Fri, 16 Feb 2007, David le Comte wrote: > > >> Note that using stty -F /dev/comX where X is the "Comm port number" >> still works, ie it can still set the baud rate to 230400 (or even >> 250000). >> > > Sorry, but note also that if you are going to use Posix style termio > calls, you need to use the Posix device name (/dev/ttySx). > > Are you sure Brian? I am running Cygwin on WinXP, and using stty on /dev/ttyX fails, whereas on /dev/comX it works (where X is valid of course). Similarly open("/dev/ttyX",O_RDWR) returns -1, but returns a valid file ID with open("/dev/comX",O_RDWR). My understanding is, that on a PC, psuedo-device files of the form "/dev/ttyX" do not exist? At any rate, the code has been working for two months using the /dev/comX naming convention. regards, David le Comte --------------010007080709060109030200 Content-Type: text/plain; name="setup_stty.sh" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="setup_stty.sh" stty -F /dev/$1 $2 stty -F /dev/$1 intr ^- quit ^- erase ^- kill ^- eof ^- stty -F /dev/$1 eol ^- eol2 ^- swtch ^- start ^Q stop ^S susp ^- rprnt ^- werase ^- lnext ^- stty -F /dev/$1 flush ^- min 0 time 0 -parenb -parodd cs8 -hupcl -cstopb -cread clocal -crtscts stty -F /dev/$1 -ignbrk -brkint ignpar -parmrk -inpck -istrip -inlcr -igncr -icrnl -ixon -ixoff stty -F /dev/$1 -iuclc -ixany -imaxbel -opost -olcuc -ocrnl -onlcr -onocr -onlret -ofill -ofdel stty -F /dev/$1 nl0 cr0 tab0 bs0 vt0 ff0 -isig -icanon -iexten -echo -echoe -echok -echonl stty -F /dev/$1 -noflsh -tostop -echoctl -echoke --------------010007080709060109030200 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ --------------010007080709060109030200--