Active TopicsActive Topics  Display List of Forum MembersMemberlist  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin
PowerHome Programming
 PowerHome Messageboard : PowerHome Programming
Subject Topic: RS232 ph_comsendstring - Pioneer TV 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: March 16 2008 at 14:25 | IP Logged Quote smarty

I have had very good luck controlling my Onkyo AV reciever with PH via RS 232 control. I now am trying to control my TV via RS-232.

See the link that describes Pioneer's RS232 protocal: PioneerLink

It is the first one: PRO-1540HD_RS232


In the "start-up" macro I open my com port (#3):
ph_comopen(3,3,9600,"O", 8, 1, 1, 0, 0, 0, 0, 1, 1, "?","TV COM PORT")

I use com 2 with similar settings (other than the parity) with great results for the Onkyo:
ph_comopen(2,2,9600,"N", 8, 1, 1, 0, 0, 0, 0, 1, 1, "?","AV COM PORT")


I have tried:
ph_comsendstring(3,"02h**PON03h")
ph_comsendstring(3,"02,**,PON,03")

What am I missing?

Edited by smarty - March 16 2008 at 14:26


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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: March 16 2008 at 19:07 | IP Logged Quote TonyNo

Try this...

ph_comsendstring( 3, "\x02**PON\x03")
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 17 2008 at 13:17 | IP Logged Quote smarty

Still no luck...

...time to take the laptop to the TV for more direct troublshooting...

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: March 17 2008 at 14:01 | IP Logged Quote TonyNo

Ah ha! You need No parity, but it looks like you are selecting Odd. Try this...

ph_comopen(3,3,9600,"N", 8, 1, 1, 0, 0, 0, 0, 1, 1, "?","TV COM PORT")
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: March 17 2008 at 21:57 | IP Logged Quote smarty

Tony,

Your sharp as ever, but the Pioneer doc shows parity set to "O" (bottom of page #2). I thought that seemed odd as well, so I also tried your sugestion...... but still no luck.

Steve

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: March 17 2008 at 23:33 | IP Logged Quote TonyNo

OK, dang it. Now it's personal! LOL

The bottom of page two says, "Parity: 0 (no parity)". That's a zero, not a letter O.

Double-check that the TV is set to 9600.

What about the cable... Is it all straight through (2-2, 3-3, 5-5)?

Have you tried lower case?
Back to Top View TonyNo's Profile Search for other posts by TonyNo Visit TonyNo's Homepage
 
jbbtex
Senior Member
Senior Member


Joined: February 15 2007
Location: United States
Online Status: Offline
Posts: 181
Posted: March 18 2008 at 07:21 | IP Logged Quote jbbtex


From the manual (bottome of page 3):
Code:
Input 1 Command when using a Crestron brand controller: \x02**inps01\x03.


So like Tony said this - ph_comsendstring(3,"\x02**PON\x03") - should work when the parity is set right.

Edited by jbbtex - March 18 2008 at 07:23


__________________
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 View jbbtex's Profile Search for other posts by jbbtex
 
smarty
Super User
Super User
Avatar

Joined: May 21 2006
Location: United States
Online Status: Offline
Posts: 728
Posted: June 28 2008 at 20:12 | IP Logged Quote smarty

Update:
TonyNo: You were right about the formatting of the com command. Turns out that I did not have the TV set to accept 232 commands. After I did that, all commands work smoothly. Wahoo!!!!!!!

From the Pioneer manual....below is what I should have done first!!!


1.0 Communication mode
The default communication mode for many of our newer displays is SR+ mode. In this mode the display will not receive RS232C commands.
Before using RS232C control you must set the communication mode.
The remote control can be used to change the communication mode.
(Note) RS232C control and SR+ function cannot be used simultaneously.
1.1 Communication mode - From SR+ to RS-232C
Communication mode and baud rate selected by Integrator menu
With the plasma display in “Standby”, press and release the Home Menu key then press and release the Power key within 3 seconds. The Integrator Menu will appear.
A. Default is SR+ ON. B. Left (<) key turns SR+ OFF. C. Down (\/) key then Left or Right
keys to set the desired Baud Rate.
In this menu the user can change the communication mode and baud rate using the Left and Right keys.
UART SELECT: 1200bps/2400bps4800bps/9600bps (232C default)/19200bps/38400bps

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

Joined: December 05 2001
Location: United States
Online Status: Offline
Posts: 2889
Posted: June 29 2008 at 00:16 | IP Logged Quote TonyNo

Good to hear ya finally got it!
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