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: john <>
Date: Tue, 17 Nov 2009 15:11:47 -0800


Jim Jackson wrote:
 


Try reading up on what /dev/pts is. It's all about PSEUDO TERMINAL
stuff.

What PHYSICAL port are you using? Try using that.

xuart0.
u have to use xuartctrl to make it available.
 I just got a code fix from technologic, thank you Deric Hildreth that fixes a problem with this uart, for the version of software that I have.  He is using the same scheme of echo to the port and cat back to initially test it.  So am optimistic.


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

Yes, the reason I posted my question is in fact I already went their, tried code that was ok on my desktop using ttyS0, but did not work on the TS7500 /dev/pts/0



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?
>
>




__._,_.___


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