Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: queryplc command  (Read 52941 times)

pconroy

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 294
Re: queryplc command
« Reply #15 on: March 21, 2010, 12:34:31 PM »

I'm curious - how does (or how *did*) queryplc work?

Did the unit have a little NVRAM and keep track of the last state of a module?

I mean - I thought you couldn't ask a LM465 what it's state is?
The LM14's - yes - but not a Lamp or Appliance module.

I'm storing the last update sent in a mySQL database.
Cuz that's what I thought I had to do.

thanks!
Logged

dbemowsk

  • Hero Member
  • *****
  • Helpful Post Rating: 21
  • Posts: 428
    • PHP Web Scripting
Re: queryplc command
« Reply #16 on: March 21, 2010, 02:44:48 PM »

The CM15A remembers the state of modules that it controls.  There are drawbacks to that.  For instance, I have some WS13A wall switches in my house.  If I go and manually turn them on at the switch, the CM15A doesn't know that I did that because the WS13A didn't transmit a signal to it telling it that I activated it.  However, if I use AHP to activate it, the CM15A is what is turning it on or off and remembers it.  The same goes for an RF remote.  Since the RF remote runs through the CM15A, it can remember the state.

Hope that all makes sense

Dan B.
Logged
Dan Bemowski
Owner of PHP Web Scripting LLC
Programmer of RemoteWatch X10
User of any X10 products I can get my hands on.

-Bill- (of wgjohns.com)

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 81
  • Posts: 1340
  • He's just this guy. You know?
    • wgjohns.com
Re: queryplc command
« Reply #17 on: March 21, 2010, 08:13:42 PM »

To expand on dbemowsk's explanation:

The CM15A itself remembers what it last sent out to each of the 16 X10 addresses in the "Monitored House Code".

The CM15A driver software on the computer remembers what it last sent to all 256 X10 addresses.

So, when you first boot the computer, the status of most X10 modules will be unknown and only the ones in the "Monitored House Code" will likely be correct, as the driver software can read those from the CM15A, but not the rest.

 >!
« Last Edit: March 21, 2010, 08:15:26 PM by -Bill- (of wgjohns.com) »
Logged
-Bill- (of wgjohns.com)
bill@wgjohns.com

In the real world, the only constant is change.

When I'm online you can find me in the Home Automation Chat Room!

pconroy

  • Hero Member
  • *****
  • Helpful Post Rating: 9
  • Posts: 294
Re: queryplc command
« Reply #18 on: March 21, 2010, 11:13:12 PM »

<Ed McMahon Voice>

Thank you sir!
I did not know that!   :)

</Ed McMahon Voice>
Logged
Pages: 1 [2]
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.