Shop OBEX P1 Docs P2 Docs Learn Events
Say it Commands — Parallax Forums

Say it Commands

TimCTimC Posts: 77
edited 2009-11-18 19:18 in BASIC Stamp
Hi all I am having trouble understanding how to send some commands to the say it Module
I started with the Request firmware ID but I don't think I have gotten very far
Here is what I have so far:

' Inputs:
'   VRA1 = nothing
VR_GetVersion:
  SEROUT COM_TX, COM_SPEED, [noparse][[/noparse]"x"]
  SEROUT COM_TX, COM_SPEED, [noparse][[/noparse]"A"]
  SERIN COM_RX, COM_SPEED, 200, VR_CommFailed, [noparse][[/noparse]VRA]
  SEROUT COM_TX, COM_SPEED, [noparse][[/noparse]" "]   ' send ack
  DEBUG cr,"Version(",VRA,")="
  SERIN COM_RX, COM_SPEED, 200, VR_CommFailed, [noparse][[/noparse]VRA]
  DEBUG VRA     ' tried DEC VRA too
  RETURN





The COM_TX, COM_SPEED and timeouts all work since these are all working in other parts of the program

The answer I am getting is:

Version(x)=A

So is "A" the first version, just a repeat of what I sent, or ???
I started with get version because I thought it would be easy oh well
Regards
Tim

Comments

  • JDJD Posts: 570
    edited 2009-11-18 19:18
    TimC,

    The Say It module is a new product, so the A version makes since for you to get. Also, you wouldn't be able to see the echo from the SEROUT command that you sent in your SERIN statements. I hope this helps

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Respectfully,


    Joshua Donelson
    www.parallax.com
Sign In or Register to comment.