smarty Super User 
          
  
  Joined: May 21 2006 Location: United States
 Online Status: Offline Posts: 729
          | 
        
         
          
           | Posted: July 13 2020 at 20:08 | IP Logged
		     | 
                    
            		  
           | 
           
          
           
  | 
           
          
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
         |