ts-7000
[Top] [All Lists]

Re: [ts-7000] Allocate port problem in TS-7500

To:
Subject: Re: [ts-7000] Allocate port problem in TS-7500
From: John Spooner <>
Date: Tue, 17 Nov 2009 11:25:10 -0800


Can you show me some simple example c code to read from a uart port.  I have setup talking between hyperterminal and a uart port , write from TS7500 is easy and working   read is not working.  and worse still it seems like after an attempted read if i do another xuartctl to make sure the port is ok, it chooses /pts/1.   

should i be using tcsetattr or just merely try to read from the port? 


On Mon, Nov 16, 2009 at 1:06 AM, skuruz <> wrote:
 

Hi,
I m using TS-7500 and TS-752 A for develop, and I want to use specific serial port for communication on it. For example I set the XUART#5 (port 5) as a start-up script in rc2 like
xuartctl --port 5 --server â€"-speed 115200
and it returns to me ttyname=/dev/pts/0
there is not problem in this step I can use /dev/pts/0 in my C code easily.
But when i disconnect TS-7500 from TS-752 and use my own card then --port 5 sometimes can be allocated and connected as /dev/pts/0 or /dev/pts/1. And sometimes I read from /dev/pts/0 console output data but at the manual it said that console pins are only #7 and #8 and it is connected to /dev/ttyS0. Because of that problem I cant say to my code open port always as /dev/pts/0.
Can I allocate and connect any port to any specific directory like always /dev/pts/1 with 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