Help required with Device Response

A plugin that allows for end user development of multiple RS232 device control systems.
dwarfer
New Member
New Member
Posts: 47
Joined: Wed Nov 08, 2006 1:58 pm
Contact:

Help required with Device Response

Postby dwarfer » Thu Feb 05, 2009 10:07 am

I am trying to populate a variable with the response from a Pioneer tv.

Command Name: Pioneer_Power_Status
MLS Variable: Pioneer_Power_Status
Device Response: <<\02>>PO<<VAR>>

Use Script selected with the following script:

Function ReturnValue()
If "<<VAR>>" = "F" then
ReturnValue = "OFF"
Else
ReturnValue = "ON"
end if
End Function

When I send a PON command to the tv, the tv is turned on but the "Pioneer_Power_Status" variable does not get populated. This is what I get in the debug:

Processing - Pioneer~PowerOn from
CMD: Pioneer~PowerOn FROM:
Sending command for PIONEER - PON via COM: 4
Buffer partially filled - Waiting for additional data
Buffer - Processing - Pioneer~PowerOn from
CMD: Pioneer~PowerOn FROM:
Sending command for PIONEER - PON via COM: 4
Buffer partially filled - Waiting for additional data
Buffer - XXXPONPOFXXXXXXPONPOFPONPOFPONXXXPOFPONPOFPONPOFPONXXX
Last character in buffer = > 3

The device returns PON for the PON command and XXX if it is already ON.

Is my problem with the device response and instructing MLGenericDevice to look out for  as the string terminator?

Any help greatly apreciated.

Thankyou

Return to “MLGenericDevice”

Who is online

Users browsing this forum: No registered users and 1 guest