ADICON Support Forum Applied Digital, Inc.
Page 1 of 1 1
Topic Options
#20911 - 02/21/09 01:23 PM Ascii Bobcat - timing problems
DonJ Offline
newbie


Registered: 10/31/08
Posts: 14
I am having problems with the serial Bobcat. I am trying to send 13 or so messages. Most messages are 5-10 bytes, but some are up to 20.

I see the following 3 problems in the output:
Completely missed messages (a message will be skipped entirely). This happens mostly to short messages.

Sometimes the longer (20 char) messages get truncated.

Sometimes the long messages get characters thrown in the middle of the message in place of some correct characters. No idea where they come from.

I have written a very simple program to determine the problem. It is clearly related to the delay between message sends. But, the delays are huge. For example, I need a 4+ second delay after sending 1-20 character message!!!

The shorter messages typically need about 1.5 seconds to be consistently stable.

What is going on here? This kind of a situation makes the Bobcat essentially useless for any serious application (logging etc) My application is a 4 line display. It takes 30 seconds to update the display!!!

PS - I have checked this out with a terminal program and it really is the Bobcat. I see the messed up data on the terminal program, and I can update the display much faster with the terminal program...

I will send anyone my test program and data if you think the problem is my software.


Does the OCelot have the same limitation?

Thanks

Top
#20912 - 02/21/09 01:29 PM Re: Ascii Bobcat - timing problems [Re: DonJ]
DonJ Offline
newbie


Registered: 10/31/08
Posts: 14
Guy;
I just read you comment to Chris Anderson "the Ocelot checks the status of each device every few cycles" I have 3 SECU-16, and the Bobcat.

Could it be the delay in the Ocelot processing the Bobcat that is hanging me?

It looks like the Ocelot has no buffer, so too rapid a command would blow up the Ocelot send buffer???

Top
#20913 - 02/21/09 01:38 PM Re: Ascii Bobcat - timing problems [Re: DonJ]
Guy Lavoie Administrator Offline
Beyond All Hope
*****

Registered: 12/21/02
Posts: 6244
Loc: Montreal, QC, Canada
That's right, the Ocelot does not have an output queue for the serial bobcat. So if your C-Max program requests that a message be sent and the previous one had not been sent yet, it will be overwritten and you will never see that previous message. That's unfortunately the way it is.
_________________________
"If you don't know what you're doing, do it neatly..."

Top
#20914 - 02/21/09 03:04 PM Re: Ascii Bobcat - timing problems [Re: Guy Lavoie]
DonJ Offline
newbie


Registered: 10/31/08
Posts: 14
FYI - I tried the same program but using the Ocelot as the serial output. I got down to a 200 msec delay with complete reliability. Much Better!!!
Top
Page 1 of 1 1


Moderator:  Dan Smith, Monte G, ADI Tech Support, Guy Lavoie 
Hop to:
Who's Online
0 registered and 5 anonymous users online.
Recent Posts
Get Latched -vs- Get Real Time I/O
by Guy Lavoie
Yesterday at 06:18 PM
New Ocelot driver for Elve!
by Deane Johnson
09/07/10 07:13 AM
How to Send an X10 Command ... propertly
by John Hughes
09/06/10 08:21 PM
To send an IR command
by John Hughes
09/05/10 08:28 PM
C-Max & OS X compatibility
by bvnoldguy
09/03/10 08:24 PM
Shout Box

Newest Members
Madon, jsdds, Dave W, stevenotts, wesmo
2633 Registered Users
Forum Stats
2633 Members
19 Forums
3727 Topics
22065 Posts

Max Online: 58 @ 12/05/07 03:33 PM
September
Su M Tu W Th F Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30