PDA

View Full Version : Serial Control of Toshiba TDP-MT200 Projector



yano
July 26th, 2007, 03:31 PM
Hi there,

I'm trying to control my projector via serial control and I've done some looking around the forums to figure out how to do it. So far I've come up with a serial plug-in(attached) but I'm trying to figure out how to work in the acknowledgements indicating that the projector has received the command. I then believe that you would see these acknowledgements in the Logging Console right? I was wondering if someone could help me out...

Attached is also the serial command sheet from the manual...

Thanks

Rob H
July 26th, 2007, 04:06 PM
Yet another badly designed protocol! I really don't know what these companies think they're doing.

Okay, rant over :)

Change the CallbackType to serial.CB_FIXEDLENGTH and add a line


ReceiveFixedLength = 10,


Then, in the ReceiveResponse method add the following code before the call to serial.Classes.Queued.ReceiveResponse :-


if (math.band(code, serial.INCOMPLETERESPONSETIMEOUT) > 0) and (data ~= nil) then
print(serial.bytetohex(data))
end

yano
July 27th, 2007, 11:14 AM
Thanks - Works great!