Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: Qn about ph_insteonwithret Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: October 22 2008 at 23:37 | IP Logged Quote jeffw_00

Hi - The definition of this function reads in part...

Return value
Integer. Returns the CMD2 value from the Insteon acknowledgement if successful (a positive value). Returns - 100 if the ID cannot be found. -1 is returned if the controller is not available, -2 is returned if the controller does not support Insteon.

What does it mean if an insteon (lamp/appliance) module, that works 99% of the time, occasionally returns a -2?

thanks!
/j



Edited by jeffw_00 - October 22 2008 at 23:37
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: November 04 2008 at 13:55 | IP Logged Quote jeffw_00

bump?
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: November 05 2008 at 22:13 | IP Logged Quote dhoward

Jeff,

I traced the code to this function and found some problems with the Help documentation.

-100 will be returned if the requested ID cannot be found in the InsteonDevices table.

-1 will be returned if the "Controller" associated with the requested ID cannot be found in the active controllers list.

-1 will also be returned if the "Controller" associated with the requested ID is not an Insteon controller (this shouldnt happen but you never know ).

-2 will be returned if the requested ID did not respond to the Insteon command. This could be a timeout, the device is not physically connected, COMM error, etc. Basically PowerHome sent the Insteon command and did not get a reply.

-3 will be returned if the "Controller" for the requested ID is in the active controller list, supports Insteon, but is not "Connected" (ie. you ran the ph_disconnect function or the controller never connected properly).

This should cover all possible error return values.

HTH,

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
jeffw_00
Super User
Super User


Joined: June 30 2007
Online Status: Offline
Posts: 929
Posted: November 05 2008 at 22:30 | IP Logged Quote jeffw_00

Very helpful Dave. I appreciate it!
/j

(ps - looking forward to the cleanup release of PH2!)
Back to Top View jeffw_00's Profile Search for other posts by jeffw_00
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum