🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pilot.programmer.codewarrior
Article #42

Re: CW7 Serial Question

#42
From: dodah12
Date: Mon, 10 Sep 2001 12:56
45 lines
3137 bytes
"James M. Wadkins" <james@vtat.com> wrote in message
news:3B9C5D32.AC76ABA5@vtat.com...
> I have an application that uses the serial port to control a custom
> piece of gear( hard coded to 34,000 8, N, 1). I am using CW7, 3.5SDK and
> the old serial manager (the palms are 111e's with 3.1 - non-flashable).
>
> I need to send a short string like "!|01C\r\n" out the serial port. I
> have all the serial code working okay only it seems to work off and on.
> I have the same application running in VB on a Windows laptop and it
> runs perfectly. I have used a serial program called "Online" to send the
> command on the palm. With that program, if I type in the characters and
> hit return(send) nothing happens. Then when I put the string into a
> macro on that same software I get the same problem as on the palm,
> sometimes it works and sometime it does not. The software has a feature
> called "PACE" and when I set the Pace function to a higher setting,
> suddenly it send the macro and my equipment send backs the correct
> response every single time.
>
> What their help manual says is it sends one character at a time with
> short waits in between characters. What i want to know, it this feature
> of the Palm OS or a routine I would have to write?
>
> Thanks,

james,

To 'pace' your output you would have to try either 2 stop bits (does the
Palm do that, would have to look it up.)   Or sprinkle more code to emulate
it.

To wit:

SrmSend one char...
SrmSendWait  for the char to complete...
SysTaskDelay  some amount to time between characters.

On second thought the SrmSendWait might not be needed, but IMHO would be
more correct.

The bottomline may be that the device has a software UART and can't handle
back to back bytes.

As such you can just toss some string into the output buffer and let it fly.

Bob
Technical Details
Message-ID: <9nicrm$n4e$1@zappa.falch.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!westfalen.de!NNTP-from-news.falch.net!news.falch.net!not-for-mail
References: <3B9C5D32.AC76ABA5@vtat.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109d41,741438b56a451e5e
X-Google-Attributes: gid109d41,public
X-Google-Thread: 10baa0,741438b56a451e5e
X-Google-Attributes: gid10baa0,public
X-Google-Thread: 10c638,741438b56a451e5e
X-Google-Attributes: gid10c638,public
X-Google-ArrivalTime: 2001-09-16 18:22:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeed00.sul.t-online.de!t-online.de!news1.dtag.de!westfalen.de!NNTP-from-news.falch.net!news.falch.net!not-for-mail
From: "dodah12" <bob@aol.com>
Newsgroups: pilot.programmer.codewarrior,pilot.programmer,codewarrior.palm
Subject: Re: CW7 Serial Question
Date: Mon, 10 Sep 2001 08:56:46 -0400
Organization: Falch.net as
Lines: 47
Message-ID: <9nicrm$n4e$1@zappa.falch.net>
References: <3B9C5D32.AC76ABA5@vtat.com>
NNTP-Posting-Host: pool-151-203-34-62.bos.east.verizon.net
X-Trace: zappa.falch.net 1000126134 23694 151.203.34.62 (10 Sep 2001 12:48:54 GMT)
X-Complaints-To: usenet@zappa.falch.net
NNTP-Posting-Date: 10 Sep 2001 12:48:54 GMT
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-Mimeole: Produced By Microsoft MimeOLE V5.50.4807.1700