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:16:58 -0800 (PST)


The default inittab file was running a login script on both COM ports. This is why I couldn't communicate with Port 2 from a program launched from the Com1 console.
I commented out the appropriate line in inittab and everything works. Thank-you for your help!
kristeen


From: Walter Marvin <>
To: "" <>
Sent: Monday, December 5, 2011 8:30 PM
Subject: Re: [ts-7000] another newbie question about serial ports



A better way might be to disable the getty for the console.  
That might take some startup script reading


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