This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Monday, April 7, 2008

[oopic] Re: oSerialL - Really confused

DLC,

So it seems that my only other option would be to use the oSerialH
object. It looks as if this would send the output through the db9
programming port on the ooPIC-R.

-GeorgeOrr

--- In oopic@yahoogroups.com, <dennis.clark@...> wrote:
>
> George,
>
> The PIC MSSP is unable to do async. serial, so that isn`t an option.
>
> DLC
>
> ooPIC Tech Support
>
> -----Original Message-----
>
> From: "design.wonk" <design.wonk@...>
> Subj: [oopic] Re: oSerialL - Really confused
> Date: Mon Apr 7, 2008 9:20 am
> Size: 6K
> To: oopic@yahoogroups.com
>
> DLC,
>
> No problem. I just ordered a converter from Pololu. I am not sure
> if the problems are with the ooPIC-R or the Daisy MP3 player, but
> they don't seem to want to talk to each other. Do you know if the I2C
> network connector can be used for async serial IO to another device?
>
> -GeorgeOrr
>
>
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@> wrote:
> >
> > Sorry, I was looking at one things and thinking another. Yes, you
are
> > setting it to IOline 31. Make sure that you are using the pin for
> > IOline 31 and not pin 31. Also, you are correct, you need to use a
> > RS232 converter to get RS232 from an oSerialL line. Pololu,
Sparkfun,
> > Acroname and the Mark III store all sell simple ones for about
$10. My
> > favorite one is the Acroname "Brainstem" one that you can get for
> $10 at
> > www.junun.org (Mark III Store).
> >
> > DLC
> >
> > design.wonk wrote:
> > > In the example, I thought that I was setting the IO line property of
> > > the oSerailL object to pin 31. Don't I need some type of
converter to
> > > connect the TTL - level IO to a real RS232 port?
> > >
> > > -GeorgeOrr
> > >
> > >
> > > --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@>
> wrote:
> > >
> > >> Have you tried connecting up directly to your PC and using a
> terminal
> > >> emulator like Hyperterm or Teraterm? I use the object all the
> time and
> > >> it works fine. Also - You are not sending the ASCII values you
are
> > >> sending the binary value of "31" with what you are doing there.
> > >>
> > >> DLC
> > >>
> > >> design.wonk wrote:
> > >>
> > >>> I only have to send. I am trying to control a Daisy MP3 player
> (open
> > >>> source kit from Make Magazine) with the ooPIC using the Daisy's
> Simple
> > >>> Serial Mode (see below). According to the docs for both
devices, the
> > >>> only thing I should have to do select track 1 would be something
> like:
> > >>>
> > >>> oSerialL MP3 = New oSerialL;
> > >>>
> > >>> // Init Values
> > >>>
> > >>> MP3.IOLineS = 31;
> > >>> MP3.Baud = cv9600;
> > >>>
> > >>> Void main(Void){
> > >>>
> > >>> MP3.Value = 1;
> > >>>
> > >>> }
> > >>>
> > >>>
> > >>> I an not sure if I am missing something.
> > >>>
> > >>>
> > >>> Here is what the Daisy is looking for....
> > >>>
> > >>> SIMPLE SERIAL MODE
> > >>> Jumpers: X only
> > >>>
> > >>> In this mode the player accepts one byte at a time over the serial
> > >>> port, and depending on the
> > >>> value of the byte will perform certain operations. The bytes
are not
> > >>> ascii, they are just pure
> > >>> bytes. So sending an ascii "0" is actually sending a 0x30 (decimal
> > >>> 48). Be careful in your code!
> > >>>
> > >>> If the byte is 0 to 180, it will play track 0 to 180.
> > >>> If the byte is 192 to 255, it will set the volume.
> > >>> Value 184 toggles pause on and off.
> > >>> Value 183 turns looping mode on.
> > >>> Value 182 turns looping mode off.
> > >>> Value 181 is a kind of reset. It kills the present song and sets
> it to
> > >>> "not pausing" mode.
> > >>>
> > >>>
> > >>> --- In oopic@yahoogroups.com, "dan michaels" <oric_dan@> wrote:
> > >>>
> > >>>
> > >>>> --- In oopic@yahoogroups.com, "design.wonk" <design.wonk@> wrote:
> > >>>>
> > >>>> I believe oSerialL is the same as oSerialX on the previous
> versions
> > >>>> of the oopic firmware, and it has some serious problems with use
> > >>>> on "receive". Transmit works ok, but forget about using receive,
> > >>>> unless hardware handshaking is employed.
> > >>>>
> > >>>> Dennis, this didn't get fixed on the new firmware, did it?
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>
> > >>>>> I am trying to use the oSerialL to communicate with a another
> > >>>>>
> > >>>>>
> > >>>> device, but don't understand the results that I am getting. In
> > >>>>
> > > doing
> > >
> > >>>> dome debugging, it seems that the value of the oSerialL object is
> > >>>>
> > > all
> > >
> > >>>> over the place, even if it is not attached to anything. If I do
> > >>>> something like:
> > >>>>
> > >>>>
> > >>>>> oSerialL MP3 = New oSerialL;
> > >>>>>
> > >>>>>
> > >>>>> // Init Values
> > >>>>>
> > >>>>> MP3.IOLineS = 31;
> > >>>>> MP3.Baud = cv9600;
> > >>>>>
> > >>>>> ...
> > >>>>>
> > >>>>> when I run this and open a dialog box, the value of the oSerialL
> > >>>>> object constantly changes, even if nothing is attached to
line 31.
> > >>>>> What am I missing? If no data is being transmitted or received,
> > >>>>> shouldn't the value of the object remain 0?
> > >>>>>
> > >>>>> thanks
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>
> > >>> ------------------------------------
> > >>>
> > >>> Yahoo! Groups Links
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >> --
> > >> ------------------------------------------------------
> > >> Dennis Clark ooPIC Tech Support
> > >> www.oopic.com
> > >> ------------------------------------------------------
> > >>
> > >>
> > >
> > >
> > >
> > > ------------------------------------
> > >
> > > Yahoo! Groups Links
> > >
> > >
> > >
> > >
> > >
> > >
> >
> > --
> > ------------------------------------------------------
> > Dennis Clark ooPIC Tech Support
> > www.oopic.com
> > ------------------------------------------------------
> >
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>
>
> --
> BEGIN-ANTISPAM-VOTING-LINKS
> ------------------------------------------------------
>
> Teach CanIt if this mail (ID 9724079) is spam:
> Spam:

http://mx1.websitesource.com/canit/b.php?i=9724079&m=b756789b74fb&c=s
> Not spam:

http://mx1.websitesource.com/canit/b.php?i=9724079&m=b756789b74fb&c=n
> Forget vote:
http://mx1.websitesource.com/canit/b.php?i=9724079&m=b756789b74fb&c=f
> ------------------------------------------------------
> END-ANTISPAM-VOTING-LINKS
>

------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: