Author |
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 14 2008 at 15:00 | IP Logged
|
|
|
Hi,
I'm wondering if PH supports the GC-100 serial interface. If so, how do I send commands to the serial port via PH?
|
Back to Top |
|
|
BeachBum Super User
Joined: April 11 2007 Location: United States
Online Status: Offline Posts: 1880
|
Posted: December 14 2008 at 15:08 | IP Logged
|
|
|
I’ve heard of others using Global Cache. Setup has it listed as a Controller. Once you are there I would assume it will list Com ports.
__________________ Pete - X10 Oldie
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 14 2008 at 15:16 | IP Logged
|
|
|
I've set it up as a controller. I just can't seem to figure out how to send serial commands to it. If I create a macro, there's nothing related to the GC-100 listed as a device to send something to.
|
Back to Top |
|
|
jbbtex Senior Member
Joined: February 15 2007 Location: United States
Online Status: Offline Posts: 181
|
Posted: December 14 2008 at 15:29 | IP Logged
|
|
|
I don't think Dave has added that functionality to GC-100 support.
However, you can communicate with the GC-100 serial port by using Lantronix Redirector. Last I saw there is still a free version.
It redirects one of the com ports on your computer to your LAN. Choose the port number you want to use and tell it the IP for your GC-100 and that's it.
I tried it in an attempt to connect a CG-IRE. The redirector worked great but I never had any luck decoding the incoming IR commands.
In order for PH to talk to the serial port you'll have to create a macro along the lines of Tony's CID macros.
__________________ Brady
"Never tell people how to do things. Tell them what to do and they will surprise you with their ingenuity." - Gen. George S. Patton
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 14 2008 at 17:32 | IP Logged
|
|
|
Thanks Pete and Brady!
That's what I was afraid of. I hope Dave puts that functionality in soon. I'm planning on communicating to my Denon equipment via serial. Things like MVUP<CR> to move the master volume up, etc. This will also send back what the current volume is set to. I can then show that on my XLobby screen.
Brady, I'll give the Lantronix Redirector a go to at least test out some functions.
Thanks again.
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 15 2008 at 14:02 | IP Logged
|
|
|
Dave,
Do you have an ETA to when this functionality will be in PH?
__________________ Mark
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 16 2008 at 17:21 | IP Logged
|
|
|
Does anyone have examples of how to send data out to a serial port via PH? I've searched through the forum for the CID macro(lots of various messages return), but so far haven't been able to see an example.
__________________ Mark
|
Back to Top |
|
|
nadler Super User
Joined: February 25 2006 Location: United States
Online Status: Offline Posts: 354
|
Posted: December 16 2008 at 17:44 | IP Logged
|
|
|
Try doing a search on RS232. There should be a couple
of examples on the board. Here is one -
http://www.power-home.com/forum/forum_posts.asp?
TID=874&KW=RS+232
|
Back to Top |
|
|
nadler Super User
Joined: February 25 2006 Location: United States
Online Status: Offline Posts: 354
|
Posted: December 16 2008 at 17:56 | IP Logged
|
|
|
This might help you more. It's a macro I use to control
the Up volume on my Denon:
insert into macroheader values ('RVOL UP','RECEIVER MUTE
OFF',0,0,1);
insert into macrodetail values ('RVOL
UP',1,38,'',0,'ph_comopen(2,1,9600,"N",8,1,1,0,0,0,0,0,0
,"?","")',0,'');
insert into macrodetail values ('RVOL
UP',2,15,'[LOCAL2]',NULL,'"MV"+(ph_getglobal_n("RVOL")+5
)+"\013"',0,'');
insert into macrodetail values ('RVOL
UP',3,38,'',1,'ph_comsendstring(2,"[LOCAL2]")',0,'');
insert into macrodetail values ('RVOL
UP',4,10,'RVOL',NULL,'(ph_getglobal_n("RVOL")+5)',0,'');
insert into macrodetail values ('RVOL
UP',5,38,'',NULL,'ph_comclose(2)',0,'');
It reads a global variable RVOL and then adds 5 to that
number and raises the volume relative to what it was
previously. It then sets thee RVOL global variable to
the new higher value. I have other macros which control
vol down, on, off, tuner up/down etc. But they are all
similar.
|
Back to Top |
|
|
ficklma1 Groupie
Joined: December 08 2007 Location: United States
Online Status: Offline Posts: 59
|
Posted: December 17 2008 at 14:07 | IP Logged
|
|
|
Hi nadler,
Cool! That is exactly what I've been looking for. Are you using a GC-100 or do you have a direct RS232 connection from your PC to the Denon receiver?
If you don't mind, would you send me the macros you have for the Denon?
__________________ Mark
|
Back to Top |
|
|
nadler Super User
Joined: February 25 2006 Location: United States
Online Status: Offline Posts: 354
|
Posted: December 17 2008 at 14:30 | IP Logged
|
|
|
The Denon is connected to the PC using the RS232 port on
the PC and Denon. It's 3 rooms away from the PC. I
used Cat5 and a Cat5 -> RS232 connector on each end.
All the macros will take a while to collect, export and
post, but I will do it and post it to the Repository on
the board when I get a chance.
For now, all you have to do is change
the"MV"+(ph_getglobal_n("RVOL")+5
) in the macro above to the RS232 command that you want
to send to your Denon and it should work.
Noel
|
Back to Top |
|
|
nadler Super User
Joined: February 25 2006 Location: United States
Online Status: Offline Posts: 354
|
Posted: December 19 2008 at 13:47 | IP Logged
|
|
|
Macros to control a Denon Receiver via RS232 are now
posted in the repository forum section.
Noel
|
Back to Top |
|
|