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
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