To: | "" <> |
---|---|
Subject: | Re: [ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console through DB9 |
From: | Walter Marvin <> |
Date: | Wed, 11 Apr 2012 08:09:10 -0700 (PDT) |
The serial I/O on the ts7500 dos not have a standard device assigned to it. you must go through Technologic's serial servers. This is a problem for those who want to do programmatic serial communications. I had two solutions for this 1) It is possible to read the source code for Technologic's servers and communicate through them directly via internal sockets. The extra kernel to user space transitions and socket overhead slows down the serial when used in conjunction with other threads. 2) It is also possible to write your own serial driver from the hardware I/O description. Unfortunately, Technologic also limited access to the sbus via a user space semaphore and this
must be gotten around. It enormously complicates the task. To date Technologic refuses to acknowledge this problem, referring one to "user space interrupts" as the solution. Unfortunately these "user space interrupts" add exponentially to the total system load when other system tasks are running. Technologic gives lip service to this problem by proclaiming that you can either have good latency characteristics, or you can have good throughput characteristics. A standard serial driver on the TS7500 would solve both problems. In addition, if you want to do modem controls on your serial line, you must modify their servers, which do no provide them out of the box. It is possible to do this, but you have to wade through their server code, which is substandard in terms of readability. good
luck Walter From: dannyd5000 <> To: Sent: Wednesday, April 11, 2012 9:57 AM Subject: [ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console through DB9 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... > __._,_.___
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> |
---|---|---|
|
Previous by Date: | [ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console through DB9, dannyd5000 |
---|---|
Next by Date: | Re: [ts-7000] Re: high resolution timers and real time, Walter Marvin |
Previous by Thread: | [ts-7000] Re: Ts7500 with 752 board using XUART0 and Rs232 Console through DB9, dannyd5000 |
Next by Thread: | [ts-7000] daqctl in ts-7550 without ts-754, marcioomonte |
Indexes: | [Date] [Thread] [Top] [All Lists] |
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