PDA

View Full Version : Say it Commands



TimC
11-17-2009, 07:32 AM
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, ["x"]
SEROUT COM_TX, COM_SPEED, ["A"]
SERIN COM_RX, COM_SPEED, 200, VR_CommFailed, [VRA]
SEROUT COM_TX, COM_SPEED, [" "] ' send ack
DEBUG cr,"Version(",VRA,")="
SERIN COM_RX, COM_SPEED, 200, VR_CommFailed, [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

JD
11-19-2009, 02:18 AM
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 (http://www.parallax.com)