ts-7000
[Top] [All Lists]

Re: [ts-7000] Missing characters in Serial I/P

To:
Subject: Re: [ts-7000] Missing characters in Serial I/P
From: Donal <>
Date: Sun, 22 Feb 2009 18:59:43 +0000
Hi,

Actually I should have probably mentioned it is using a Virtual Com port.
The device I use is running one of these VCP's http://www.ftdichip.com/Drivers/VCP.htm

So I am working of /dev/ttyUSB0

You think that may have anything to do with it?

Cheers.

Regards,
Donal

On Sun, Feb 22, 2009 at 6:52 PM, Gopi Flaherty <> wrote:

Perhaps a silly question...but did you disable the serial console? Two apps on the same serial port will cause behavior like that. I forgot to do that when I first got my board. 

Thanks,



On Feb 22, 2009, at 10:48, Donal <> wrote:

Hi There,

I have an application that constantly reads/writes to serial. It is written in QT, using QExtSerialPort POSIX library.
I send a command and the response ends around 250ms later. But since all commands are different, I don't want to sleep
for the worst case (bout 300ms) and then read. Instead I want to keep reading until I hit a '>' character that is always the end of a response.
This works fine, I get my responses in about 230ms.

However the problem is, when I am using the app on my TS7390, I randomly miss the '>' character.
This could happen in 1 minute after starting my app, or it could keep going for say 10 minutes.
This results in a loop to infinity waiting for the > character that was supposed to come but never did.

My theory is that since I am running of SD, I may be getting those random SD writes that hang the system.
Would this cause a character to be dropped and not even get into the serial buffer?
I am currently in development stages, so can't move onto NAND just yet.

Alternatively I can implement a timeout feature, but my main question here is, with a SD write operation, is it possible for
the serial in buffer to reject or drop a character.

It's a bit of an annoying problem!

Oh yeah, memory, CPU usage of this application isn't a problem. A healty 8% CPU use, with about 14% mem usage.

Thanks,

Regards,
Donal




__._,_.___


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