ts-7000
[Top] [All Lists]

[ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console throu

To:
Subject: [ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console through DB9
From: "dannyd5000" <>
Date: Wed, 11 Apr 2012 13:57:56 -0000
Thanks for all the replies.


I emailed support and was told the xuart0 Rx and Tx out of the DB9 on the 752 
Baseboard was already RS232 and I did not need to convert TTL/Rs232.   

It wasn't clear to me in the documentation but I can't believe I didn't think 
to try that.


Anyway, I am now able to read and write over xuart0 Rx Tx on the DB9.  I still 
ran into a few problems with my termios settings.

I have been able to talk to the same device over RS232 from my linux machine 
(fedora) so I checked to see what my termios settings were there since I know 
it worked there.  I then copied the same settings to the program I am running 
on the board and everything is working.

//If i hardcode this for my settings (fedora settings)it works
newtio.c_cflag = 0x83d;
newtio.c_iflag = 0x1;
newtio.c_oflag = 0;
newtio.c_lflag = 0;
newtio.c_cc[VTIME]    = 5;
newtio.c_cc[VMIN]     = 1;  

tcflush(serialPortDescriptor_,TCIFLUSH );
tcsetattr(serialPortDescriptor_, TCSANOW, &newtio);

Now I just need to make sense of why I cant get the same settings when I use 
the bit masking, but I can take it from here.  Just wanted to let everyone know 
I'm close.

Thanks for the responses


--- In  "dannyd5000" <> wrote:
>
> 
> Hello,  I have been trying to get this working for a while now without luck.
> 
> I am using the TS-7500 with the 752 (Eval Break out Board). 
> 
> I cut a rs232 cable in half hooked up the good end to the Eval kit DB9 
> connector, and broke out the wires according the the 752 DB9 diagram.  I 
> ringed out all the pins so I am positive I mapped the wire to the proper pins.
> 
> My goal is to do the following
> 
> *break out serial console (pins 2,3,5) to another serial cable so i can get 
> the console on my PC  (SUCCESSFUL)
> 
> *Break out the XUART0TX and XUART0RX (Pins 7 and 8) to a TTL/RS232 converter 
> and read and write to a serial device on the other end(FAILING)
> 
> For sanity sake, Is there anyone else out there using the 7500 with the 752 
> and also using the XUART0 with console?  Also are you using it with a 
> TTL/Rs232 converter?
> 
> 
> When I open the XUART0 and write to it I am able to see garbage get written 
> out. I used the settings in the xuart wiki example, with many many other 
> variations.  I am using Hyperterm on the other end for testing.
> 
> here are my termios settings
> system("xuartctl --port 0 --speed 9600 --server");
> newtio.c_cflag = CRTSCTS | CS8 | CLOCAL | CREAD | B9600;
> newtio.c_iflag = IGNPAR;
> newtio.c_oflag = 0;
> 
> /* set input mode (non-canonical, no echo,...) */
>  newtio.c_lflag = 0;
> 
> Thanks in advance...
>



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

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