Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome General
 PowerHome Messageboard : PowerHome General
Subject Topic: ph_comm plugin question Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 13 2020 at 20:08 | IP Logged Quote smarty

Rather than re-write some of my working code (that I
want to update), I thought I would ask first....

I have a Global Cache 100 in my living room that
provides the a serial port for my TV (port 20), and
one for my reciever (port 21). The Global Cache
plugin set up looks like below:

GC-LVRM-PORT1, PH_VSP.phvsp, 20 4999 192.168.0.189
CG-LVRM-PORT2, PH_VSP.phvsp, 21 5000 192.168.0.189

Presently I am using the INTERNAL comm controls of PH
for both of these two items - see below:

ph_comopen({COM NUM AVR LIVRM},{COM PORT AVR
LIVRM},9600,"N", 8, 1, 1, 0, 0, 0, 0, 1, 1, "?","COM
PORT AVR LIVE RM")

and

ph_comopen({COM NUM LIVING TV},{COM PORT LIVING
TV},9600,"N", 8, 1, 1, 0, 0, 0, 1, 1, 1, "?","COM PORT
TV")

As Dave has stated in the past, PH has a limit of 5
internal COM's, (and they run within the PH
thread),... .... but through the use of the ph_comm
plugin, you can have many more COM controls, and they
have the benefit of running in their own thread (the
reason I want to convert to the ph_comm plugin).

Here is my question: Since I have to "define" the com
ports (20 & 21) for the Global Cache in the PH Plugin
Section, and if I change from PH's internal comm
control to the external ph_comm plugin control which
also has to be defined in the PH Plugin Section, will
this lead to problems/issues regarding plugin load
order or plugin start up timing?

I would think I would want to define the Global Cache
plugins first, and then define the ph_comm plugins for
each port farther down the plugin list (question is,
how much further down..and will this be an issue?)

I have never put this combination of plugins together
before and was looking to hear if anyone has any
useful input.



Edited by smarty - July 13 2020 at 20:11


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 
dhoward
Admin Group
Admin Group
Avatar

Joined: June 29 2001
Location: United States
Online Status: Offline
Posts: 4447
Posted: July 14 2020 at 20:23 | IP Logged Quote dhoward

Steve,

I do this exact same thing in my own setup (love the serial ports on Global Cache). Just make sure that the virtual serial ports are
defined before (lower in the Load Order) the ph_comm plugins that are going to use them. Ive got a total of 4 virtual serial ports on
3 different Global Cache units and 2 of them are used by another two plugins for controlling my video matrix switchers (CRM88's).

I definitely think this is the way to go which is why Ive never bumped up the internal COM control (was going to bump to 10 awhile
ago). The resources needed for the plugin are much lower than the internal control and not really that much more complicated to setup.

Hope this helps,

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

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: July 16 2020 at 06:35 | IP Logged Quote smarty

Super!

That was exactly the answer I was hoping for.


__________________
Elk - Insteon - BlueIris - DMC1 - PowerHome - XLobby - HA_Bridge w/Dots - Brultech
Back to Top View smarty's Profile Search for other posts by smarty
 

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