ts-7000
[Top] [All Lists]

Re: [ts-7000] read from a com port besides com 1 in c & why does /dev/pt

To:
Subject: Re: [ts-7000] read from a com port besides com 1 in c & why does /dev/pts/0 change to pts/1 ?
From: Jim Jackson <>
Date: Tue, 17 Nov 2009 21:43:59 +0000 (GMT)
Try reading up on what /dev/pts is. It's all about PSEUDO TERMINAL
stuff.

What PHYSICAL port are you using? Try using that.

google is your friend, e.g.

  http://linux.die.net/man/4/pts

and reading and writing to serial ports try

  http://www.faqs.org/docs/Linux-HOWTO/Serial-Programming-HOWTO.html




On Tue, 17 Nov 2009, john s wrote:

> Having trouble reading from uart com ports in c (or bash for that matter)?  I 
> need to keep com1 as a terminal.  I know I have seen posts about this and in 
> particular the why /pts/0 changes to /pts/1 even tho i am not aware i added a 
> new port.  But I cant find one now.
>
> I have been able to setup a comport using xuartctl.
>
> I am able to echo > 'sometuff\r' > /dev/pts/0 and see the 'somestuff' appear 
> on hyper terminal.  And do the same thing in c.
>
> But I have not been able to do a cat and see anythng typed into 
> hyperterminal.  Worse still, I ran an example c program from the web and when 
> it closed the fd for /dev/pts/0' it seems that the xuartctl for port 0 now 
> referred to /dev/pts/1.
>
> Is there an example c program that is ok?  Should i be using tcsetattr or 
> just depend on the port being configure ok per the xuartctl command?
>
>


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<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