Thursday, July 19, 2007

[oopic] Re: Question about serial communication

--- In oopic@yahoogroups.com, "klingonhero" <klingonhero@...> wrote:
>
> Firstly, I apologize for two things:
> 1. You've probably heard this question a thousand times before and
are
> sick of it
> 2. This is more my ignorance about serial communications and
programming
>

Hello Mike. To my knowledge, there are no nicely packaged pieces of
software that run on a PC under Windows for generally commanding
devices over the serial port. People have to write their own
interfaces using Visual Basic, etc, and which is a nontrivial
endeavor. OTOH, you can use a simple ASCII interface to command the
OOPic using a terminal emulator like Hyperterm or Teraterm running on
the PC.

You just use the serial port objects on the OOPic to interpret the
commands. I have OOPic code here .... see bottom of page for the jp1-
1.txt file. It uses ASCII "F" for forward. "B" for backward, etc.

http://www.oricomtech.com/projects/roland.htm

This program operates either directly via serial port connection, or
via RF-link as I use it.

- dan michaels
www.oricomtech.com
--- OOBOT40 Boards ---
========================

> I've been trying to get my oopic to move a dc motor when I send
> commands like "fw" or "bk". I tried looking in OOpic programming
book
> and googled online. I see lots of example on how to send a message
from
> the oopic back to a computer, but not the opposite. I managed to
find
> an example program that did flow control and everything. It used
two
> oBuffer objects to store two commands "red" and "green" to light
two
> LEDs. I needed more commands and the compiler complained that I
> couldn't add more objects because of memory. So... I would change
the
> value of the obuffer object inline (in the loop) and then compare
the
> value against the actual serial buffer. Not everything was working
> right. It seemed that if I changed the object more than twice
strange
> things would happen. End of long story and on to the question.
>
> Is there a detailed template or flowchart for how this is done? I
would
> much prefer if there was a program someone could just post, but I
> understand if no one wants to do this. I don't mind the hard work
of
> programming it as long as I understand what I need to do. I just
don't
> understand how this is supposed to be done.
>
> Thanks,
> Mike
>

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! News

Kevin Sites

Get coverage of

world crises.

Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Moderator Central

Get answers to

your questions about

running Y! Groups.

.

__,_._,___

No comments:

Post a Comment