ts-7000
[Top] [All Lists]

Re: [ts-7000] another newbie question about serial ports

To: "" <>
Subject: Re: [ts-7000] another newbie question about serial ports
From: Kristeen Palmer <>
Date: Tue, 6 Dec 2011 11:13:02 -0800 (PST)


larry,
thank-you so much.
the default inittab was indeed running  login scripts on both ports 1 and 2.
i commented out the port 2 line as you suggested and my com2 serial handler works fine.
have a great holiday season.
kristeen


From: Larry <>
To:
Sent: Monday, December 5, 2011 7:58 PM
Subject: Re: [ts-7000] another newbie question about serial ports



Kristeen
  One thing that you need to check if you haven't already is check the file /etc/inittab.
This file is used, among other things, to generate logins for serial ports.
Make sure that if the port you're trying to use is listed that you comment that line out with a # character.
If you are trying to do I/O on a com port that has a login running on it, it's hopeless.
You are looking for a line something like this:
t2:2345:respawn:/sbin/getty tty2 9600 vt100
which you change to this:
# t2:2345:respawn:/sbin/getty tty2 9600 vt100

Larry

On 12/5/2011 7:19 PM, kristeenpalmer wrote:
 
hi,
i found tons of serial port info online but i have one problem that is driving me nuts. i wrote a program that parses ascii command strings on COM port 2(/dev/ttyAM1). I am running this program from the console on COM1. I'm pretty sure my configuration is correct and I can write out COM2 okay to a PC running puTTY. but, when i try to read COM2 (canonical, no echo) the read() function still outputs data to COM2 and crashes puTTY. I want to have total control over COM2 output. Am i overlooking a flag?
Any help would be appreciated. I've exhausted the usual documentation online. Kristeen







__._,_.___


Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: =Email Delivery: Digest | m("yahoogroups.com?subject","ts-7000-fullfeatured");=Change Delivery Format: Fully Featured">Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | =Unsubscribe

__,_._,___
<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU