Strange behavior

SCHMUCK Philippe philippe-schmuck at orange.fr
Wed Oct 9 17:44:10 EDT 2013


Yes, I'm using a TCW181B-CM_R2 Terracom ethernet controller to turn on and off my remote speakers.
I installed it for more than 5 months now and had never any problem with it until now!

In the pseudo units that represent my speakers, I have an On and an Off script which just does : 
do shell script "curl http://device.ip.address/status.xml?rX=1" to Turn Relay X ON
or do shell script "curl http://device.ip.address/status.xml?rX=0" to Turn Relay X OFF

I never read the status which is returned as a xml file as I do not now how and as I do not need to read it; but there is obviously a problem occurring around this, even if the strange behavior I saw in the log seems not directly related to the use of the pseudo units at this specific time.

So let's assume that the status.xml file is send somewhere after my order and seems to corrupt after a while something in XTension, where and how should I get it in a script to be sure to flush any input waiting somewhere?

Thanks,

Philippe

P.S. The xml file should be something like (see attached file)



Le 9 oct. 2013 à 22:06, James Sentman <james at sentman.com> a écrit :

> Phillippe, that looks like output from one of the terracom ethernet controllers? I haven't any clue how they work, but it looks like you're doing some querying of them from within an XTension script and getting back some XML data with their statuses. 
> 
> But XTension seems to look like you're asking the XML for a status, but that could just be an artifact of the weirdness of something else happening in the script.  Add some debug logging to your scripts between the point where the data is returned and you start asking for status verbs. Something in there is no longer working.
> 
> Or I could be totally wrong since I'm completely guessing what all this is about. I can tell you that they aren't XTension error messages. XTension is refusing to reply to a status of verb or the target of that verb has gotten turned around and you're not actually asking XTension but some other part of the script. It's something in these scripts that you use to manage this device.
> 
> 
> On Oct 9, 2013, at 3:12 PM, SCHMUCK Philippe <philippe-schmuck at orange.fr> wrote:
> 
>> I had a very strange behavior this afternoon; here is what I saw in the log file; I had to restart XTension with the Alt key to try to get a fresh start.
>> Any clue about what's going on?
>> 
>> Philippe
>> 
>> 9 oct. 2013 15:04:04 Executing global script: Update All view
>> 9 oct. 2013 15:04:04 Update All viewOSAError -1708: "<?xml version=\"1.0\" encoding=\"utf-8\"?>
>> <Monitor>
>> <Device>TCW181B-CM</Device>
>> <FW>2.06</FW>
>> <DigitalInput>OPEN</DigitalInput>
>> <Relay1>ON</Relay1>
>> <Relay2>OFF</Relay2>
>> <Relay3>OFF</Relay3>
>> <Relay4>OFF</Relay4>
>> <Relay5>ON</Relay5>
>> <Relay6>OFF</Relay6>
>> <Relay7>OFF</Relay7>
>> <Relay8>OFF</Relay8>
>> </Monitor>" doesn’t understand the status message.
>> 
>> 
>> 9 oct. 2013 17:02:32 Jardin Lumiere maisonetteOSAError -1728: Can’t get is_maitre of "<?xml version=\"1.0\" encoding=\"utf-8\"?>
>> <Monitor>
>> <Device>TCW181B-CM</Device>
>> <FW>2.06</FW>
>> <DigitalInput>OPEN</DigitalInput>
>> <Relay1>ON</Relay1>
>> <Relay2>OFF</Relay2>
>> <Relay3>OFF</Relay3>
>> <Relay4>OFF</Relay4>
>> <Relay5>ON</Relay5>
>> <Relay6>OFF</Relay6>
>> <Relay7>OFF</Relay7>
>> <Relay8>OFF</Relay8>
>> </Monitor>".
>> 
>> 
>> _______________________________________________
>> XTensionList mailing list
>> XTensionList at shed.com
>> http://shed.com/mailman/listinfo/xtensionlist
> 
> Thanks,
> 	James
> 
> 
> James Sentman                       http://sentman.com		http://MacHomeAutomation.com
> 
> 
> 
> _______________________________________________
> XTensionList mailing list
> XTensionList at shed.com
> http://shed.com/mailman/listinfo/xtensionlist




Turn Relay X OFF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://shed.com/pipermail/xtensionlist/attachments/20131009/2ba04b89/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture d??cran 2013-10-09 ? 23.40.01.png
Type: image/png
Size: 36628 bytes
Desc: not available
URL: <http://shed.com/pipermail/xtensionlist/attachments/20131009/2ba04b89/attachment.png>


More information about the XTensionList mailing list