rs-232 - understanding

Share and exchange RS232 codes here

rs-232 - understanding

Postby vaporhat on Tue Jul 22, 2008 1:39 am

I have collected some manufactures documentation for RS-232 PC control over
a few products I own and I am starting to incorporate that control into XL.
The documentation for some components is better then others. I have some
codes that I have successfully incorporated into XL however others I am
missing some knowledge to complete my task at hand. The XL portion of the
task has been working out well with the help of one of Wes's posts.

Maybe someone here with a little more experience could help me out?

Using my Optoma H78DC3 projector as an example

The interface setting is straight forward.. I believe I got that much.
Although how do I calculate what the command sequence would be to power on
the unit?
I have located a few other examples of other codes although it's not clear
to me how the data string was calculated.
In need of a little schooling here. I really want to lean how to do this..
Attachments
Optoma_H78DC3_RS232.pdf
(543.64 KiB) Downloaded 318 times
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Tue Jul 22, 2008 2:47 am

Try the following

1. Make sure the communications settings are as follows:

Baud Rate : 9600
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control : None

2. RS232 ASCII Strings, the "\r" after the ASCII string provides a carraige return.

Example turn power on (Timer Delays between the OK may be required)
OKOKOKOKOK\r

Example turn power off
* 0 002\r

Example Menu
* 0 IR 008\r

RS232 Example 1.jpg


RS232 Example 2.jpg



Please let me know if this works, if not I can try it on our projector tomorrow. :D


Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Tue Jul 22, 2008 10:25 pm

:(

I did not have any luck.. could you please test?
Tested my port and cable with other rs-232 commands to my receiver and it worked. So clearly its something int he way I am providing the command.
Tried, On, Off, menu: all had no response from the projector.

Also, how do you add a timer in-between a single sting? I see the timer in the list of commands but how is XL instructed to insert that timer in-between string commands like 'OKOKOKOKOK' ?
Attachments
rs232-menu.jpg
rs232-0ff.jpg
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Wed Jul 23, 2008 4:59 am

The carriage return at the end should be "\r", not "/r"

Try this
Power Off
* 0 IR 002\r

Power On
OKOKOKOKOK

Try this, create this power on event in this order

send string O
xLobby Timer Wait 5ms
send string K
xLobby Timer Wait 5ms
send string O
xLobby Timer Wait 5ms
send string K
xLobby Timer Wait 5ms
send string O
xLobby Timer Wait 5ms
send string K
xLobby Timer Wait 5ms
send string O
xLobby Timer Wait 5ms
send string K
xLobby Timer Wait 5ms
send string O
xLobby Timer Wait 5ms
send string K
xLobby Timer Wait 5ms
send string \r

We had to do this for our Optoma projector, our RS232 commands are different then yours but the structure is similar

Screenshot02ss (2).jpg


Screenshot02ss (3).jpg


Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Thu Jul 24, 2008 4:48 pm

wesblack wrote:The carriage return at the end should be "\r", not "/r"


I believe I was reaching and trying a few combinations at the time I captured the image. Checked again to be sure, as well as the 'Power On' command... still no response. :?

There isn't anything in the Optoma service menu I have to switch on to be able to accept rs-232 commands is there?

I'm really at a loss.. I must be doing something wrong. Any other ideas I can try?

Thanks.
rs232.JPG
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Thu Jul 24, 2008 5:34 pm

What kind of RS232 connector is on your unit DB9, 9 pin or a 3 pin mini din style. In any case what cable connects between your serial port and the projector and what is the distance between the projector.


Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Thu Jul 24, 2008 9:44 pm

wesblack wrote:What kind of RS232 connector is on your unit DB9, 9 pin or a 3 pin mini din style. In any case what cable connects between your serial port and the projector and what is the distance between the projector.


Image

Wes Black \ Calrad


the distance is ~25', standard DB-9, just like the other end going to the PC.
Again, using the same cable I was able to transmit codes to my Harmon Kardon receiver without issue.
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Thu Jul 24, 2008 10:00 pm

Your Com port is definately Com3.



Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Thu Jul 24, 2008 10:02 pm

Yes sir. modified my commands for the HK receiver using that port to be sure.


wesblack wrote:Your Com port is definately Com3.



Image

Wes Black \ Calrad
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Fri Jul 25, 2008 4:56 am

Lets try this. Try omitting the spaces, you may have to call Optoma directly, maybe the RS232 port is dead or we are missing some other details of sending the correct strings or the command structure has changed. In any case every product we have tested via RS232 with xLobby has worked.

Power off: *0IR002\r




Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Fri Jul 25, 2008 2:47 pm

I tried no spaces and only some spaces before, but I will try again tonight.

Question:
Is it possible to read the IR code from the manufactures remote and convert that code into an rs232 command string into XL? I have all these codes already programed in my MX3000 Universal remote, not sure if that helps?

I also saw these guys http://rs232codes.com/
They offer an IR to rs-232 hardware.. thinking maybe I can generate my database of rs-232 codes to build into XL?

Does Calrad offer similar hardware?
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Fri Jul 25, 2008 2:50 pm

Please call me. 1-800-821-8536.


Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby wesblack on Wed Jul 30, 2008 3:43 pm

Eric,

My crestron contact confirmed the same codes we have with the carriage return. Not sure why your unit is not working, maybe the RS232 port is bad. Try a short premade RS232 cable between the projector and a PC using hyperterminal if you still have issues most likely its the projector or the codes listed are incorrect.

Good Luck.............. :)



Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Re: rs-232 - understanding

Postby vaporhat on Mon Aug 04, 2008 1:35 pm

OK, I got it :) :)

Used a shorted cable with these codes:

Power Off
* 0 IR 002\r

Power On:

send string OK
xLobby Timer Wait 0.01ms
send string OK
xLobby Timer Wait 0.01ms
send string OK
xLobby Timer Wait 0.01ms
send string OK
xLobby Timer Wait 0.01ms
send string OK
xLobby Timer Wait 0.01ms
send string \r

Is there any way I can save my RS-232 codes and post them here for someone else to use?
-3RiC
vaporhat
 
Posts: 273
Joined: Tue Nov 27, 2007 11:56 pm
Location: CT, U.S.A.

Re: rs-232 - understanding

Postby wesblack on Mon Aug 04, 2008 2:19 pm

Eric,

Excellent ! :D , send your RS232 codes to me and I will put them in the RS232 section.
Also we sell a solution over Cat5e cable, If your interested call me. See the link below.

http://www.calrad.com/download/72-130.pdf







Image

Wes Black \ Calrad
wesblack
 
Posts: 1134
Joined: Mon Mar 05, 2007 5:02 pm
Location: Valencia, Ca

Next

Return to RS232 Control Library

Who is online

Users browsing this forum: No registered users and 0 guests

cron