Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: use of ph com port commands Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
npavkov
Groupie
Groupie


Joined: February 29 2004
Location: United States
Online Status: Offline
Posts: 91
Posted: September 26 2004 at 20:51 | IP Logged Quote npavkov

Dave, Hope you are winning over the numerous hurricanes down there lately.
I was hoping either yourself or some other PH user could help me with examples of how to use the com port commands within ph, to detect a phone ring on the modem and answer the modem, read or write data to/from the com port, then hangup.

I would like to experiment with a ph phone control application and another one that I would like to toy with is maybe a tv recording scheduler,,,, but I need to "play" with doing these in either svripts (vbscript or other) or ph native commands...... can anyone help????

Thanks Nick
Back to Top View npavkov's Profile Search for other posts by npavkov
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: September 27 2004 at 07:27 | IP Logged Quote TonyNo

I want to convert my VB CID program to a set of macros. Looking over the COM control functions, it seems that it should be fairly easy, but, I just haven't done it yet. That should be my next project.

The recording scheduler would also seem to be be pretty easy using a timed event to send power on, channel change, and record commands.
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: September 27 2004 at 19:08 | IP Logged Quote TonyNo

Dave,

Since I already have this in VB, would it be better to make it a script, or, to translate it into a macro?

Thanks,
Tony
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 28 2004 at 19:17 | IP Logged Quote dhoward

Nick,

I havent played to much with interfacing with a modem so Im not sure if the internal PowerHome COM functions would be useful. I will try to play around with a modem (gosh...if I can find one ...thank goodness for high speed internet) and see what I can do. If the internal commands dont have enough flexibility, then you should be able to put something together in VB and interface it to PowerHome using the Windows Messaging interface. Actually, if you are able to put a skeleton together in VB, I would be able to convert it to PowerHome commands for you.

When I finish the plug-in interface for PowerHome, this would be perfect for this type of application.

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 28 2004 at 19:24 | IP Logged Quote dhoward

Tony,

It would probably be better to translate into a macro. I think you sent me the source of your program once but I have no idea where it is. If I remember correctly, it is triggered by data arriving at the serial port. This would be difficult to do completely in a script. You would need to open the com port and give the id of a macro. This macro, in turn could call a vbscript however and you should be able to access the port using the ph.com commands.

In any event, Im currently working on the plug-in interface for PowerHome and would like to have it ready for the release version (no promises ). This would be the ideal way to do this.

It would be interesting however to see what could be done using strictly the PowerHome internal commands if you're up for the challenge

Dave.
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: September 28 2004 at 20:39 | IP Logged Quote TonyNo

Cool! A plug-in interface!

I'll see what I can come up with for a set of macros to handle CID. Looks like a real challenge!
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: September 29 2004 at 16:24 | IP Logged Quote dhoward

Uhmmm...you may want to hold up just a little. See this post here for more info

http://power-home.com/forum/display_topic_threads.asp?ForumID=2&TopicID=341&PagePosition=1
Back to Top View dhoward's Profile Search for other posts by dhoward Visit dhoward's Homepage
 
TonyNo
Moderator Group
Moderator Group
Avatar

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: September 29 2004 at 22:53 | IP Logged Quote TonyNo

Hehehe. I'll circle for a bit then...
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 

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