ts-7000
[Top] [All Lists]

[ts-7000] read from a com port besides com 1 in c & why does /dev/pts/0

To:
Subject: [ts-7000] read from a com port besides com 1 in c & why does /dev/pts/0 change to pts/1 ?
From: "john s" <>
Date: Tue, 17 Nov 2009 18:37:37 -0000
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