Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome and Stargate
 PowerHome Messageboard : PowerHome and Stargate
Subject Topic: Stargate IP interface to PH Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: September 02 2007 at 03:21 | IP Logged Quote sharby

For those with a Stargate system, here is the direct interface to bringing it back to life with an ELK IP232 connected to the SG cable on COM1.

1. Use ELK-IP utility to set 9600 and no handshake on port 2401

2. Set up Plugin like this:

ID        PluginType      LaunchData&nbs p;         &nbs p;InitData

SG-WEBX     ActiveX  &nbs p;     PH_SOCKET.phsocket 10.1.0.235 2401


Fill in your ip address above


3. Register the attached plugin ocx with Regsvr32




2007-09-02_031947_ph-socket-Plugin.zip
Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: September 11 2007 at 20:04 | IP Logged Quote UpstateMike

Cool but what does it do exactly? Is there a readme doc?
Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: September 11 2007 at 21:33 | IP Logged Quote sharby

No readme doc. I can write one when I have more time. Basically, the above plugin gives you direct control to the Stargate system. You can do everything in Stargate via their protocol specification at http://jdstechnologies.com/protocol.html

Now you can use PH to change flags, variables, Keypad functions, etc.

So far, I've been able to update temperature settings, changes LEDs from Red to Green, and trigger IR functions on my existing SG system.

-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: September 11 2007 at 22:20 | IP Logged Quote UpstateMike

How about the other way... Can I use a Stargate input to trigger PH to send an insteon command?

Also wondering about the Elk IP232 to SG COM1... couldn't PH just talk to SG through the WEB Expander?
Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: September 12 2007 at 23:12 | IP Logged Quote sharby

Negative. Stargate has no output interface (besides the 2 serial ports) to communicate with other devices. The best that can be done today is have the ELK-IP232 connected to COM1 so that you can "IP" to it and issue commands. By coding in the Stargate WINEVM, you can issue ASCII commands out to COM1 and PH will be able to respond to them.

-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: September 12 2007 at 23:50 | IP Logged Quote UpstateMike

Too bad. I thought there might be a way to emulate the HomeRunner touch screen interface which talks through WebX. I'll have to order an Elk-IP232 so I can try this out!
Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: September 13 2007 at 00:52 | IP Logged Quote sharby

Mike,

If the machine running PH has a DB9 serial port on it, you can use the NEW Raw Comm plugin (PH_Comm.phcomm) that will link you physically to the Stargate Com1 (via the SG cable).

settings are 9600,N,8,1

-=*Sharby*=-

Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: September 13 2007 at 09:29 | IP Logged Quote UpstateMike

This might work better since I will need to switch between PH and WinEVM sometimes. This way I won't need to change the connection... just stop one program and start the other. I think there is even a program for letting 2 applications share a serial port so I could have both running at the same time!
Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: September 13 2007 at 18:56 | IP Logged Quote sharby

I'll ask Dave about a serial "pass-through" that will allow you to use the same serial comm for 2 applications.

-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: October 04 2007 at 10:35 | IP Logged Quote UpstateMike

So I read up on the Elk IP232 and noticed it supports up to 12 simultaneous sessions. If I understand this correctly, I could connect PH to stargate using the IP232 and ALSO run WinEVM at the same time (from a different PC) connecting to the IP 232 on a second session (would need a utility running on the WinEVM PC to establish this connection). Am I understanding this correctly?
Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: October 07 2007 at 01:11 | IP Logged Quote sharby

Affirmative. It's so awesome.

-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 
UpstateMike
Senior Member
Senior Member


Joined: February 18 2006
Location: United States
Online Status: Offline
Posts: 142
Posted: November 03 2007 at 08:11 | IP Logged Quote UpstateMike

OK, I have ordered the ELK IP232 and should have it next week. Sometime after that I will be looking for some help writing SG variables. First thing I want to do is copy the data from my PH weather station variables into SG variables whenever the value changes. This way I can trigger things in SG schedules based on wind gust, etc.

Back to Top View UpstateMike's Profile Search for other posts by UpstateMike
 
sharby
Groupie
Groupie


Joined: May 13 2007
Location: United States
Online Status: Offline
Posts: 50
Posted: November 10 2007 at 11:17 | IP Logged Quote sharby

Ok sounds good,

Here are two command I have for triggers to change "FLAGS" and actual "VALUE" of the counters in Stargate

ph_picmd(5,"SG-WEBX",1,0,0,"##%2601" + right(ph_numtohex(ph_getvar_n(2,4)),2) + "01~r","")

under the protocol spec

Direct Variable Command

This command will instruct the TimeCommander to modify a particular variable.

>##%26aabbcc[cr] /* Direct Variable Command */

aa - Variable number
bb - Load Value (if loading variable)
cc - *Variable CMD is:

0 - NOP
1 - Load Variable
2 - Clear Variable
3 - Increment Variable
4 - Decrement Variable

The TimeCommander will respond with:
##0






Then I can toggle a flag on Stargate by doing this:

ph_picmd(5,"SG-WEBX",1,0,0,"##%250101~r","")


based on the protocal spec of

Direct Flag Command

This command will instruct the TimeCommander to set/clear the specified flag.

>##%25xxyy[cr] /* Direct flag Command */

where xx is the flag number (hex)

where yy is the state to change the flag to. 00 = clear, 01 = set.

The TimeCommander will respond with:

##0






-=*Sharby*=-
Back to Top View sharby's Profile Search for other posts by sharby
 

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