Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

RS-232 commands for a Sony TV connected to a DMP

Hi,

Has anyone successfully sent an RS-232 command from a DMP to turn a SONY LCD TV (32" or 40") on or off?

I have created the following commands in System Tasks:

Sony TV On :

Name : Sony Screen On

Description: Turn Sony Display On

Request Type: Set

Request: rs232.tx_hex=8C 00 00 02 01 8F (tried with spaces and without spaces between values)

I also tried Request: rs232.tx_hex=8C 00 00 02 01 8F 0D (0D Hex for carriage return) unsuccessfully.

Sony TV Off :

Name : Sony Screen Off

Description: Turn Sony Display Off

Request Type: Set

Request: rs232.tx_hex=8C 00 00 02 00 8E

I can confirm that the same command " rs232.tx_hex=" is set for the Panasonic Screens (hex value is different as below) and the screens do turn on and off successfully.

Panasonic TV On:

Name : Panasonic Screen On

Description: Turn Panasonic Display On

Request Type: Set

rs232.tx_hex=02504f4e03

Panasonic TV Off:

Name : Panasonic Screen Off

Description: Turn Panasonic Display Off

Request Type: Set

rs232.tx_hex=02504f4603

When I connect the same RS-232 cable used between the DMP and Sony TV to my laptop and to the Sony LCD TV and run a sendhex.exe command 8C 00 00 02 00 8E the TV does turn off, 8C 00 00 02 01 8F does turn the TV on.

The sendhex.exe was provided by Sony and I can't see the underlying code but apparently all it does is send the hex value entered down the RS-232 cable.

Thank you

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

I am glad that you have had some success with this issue. Pointing a browser to the DMP IP address to see the settings is the only method I know to check the configuration.

However, to see the the RS232 settings, you can use : https://<dmp IP address>/get_param?p=rs232.*

Jeff

14 REPLIES
Cisco Employee

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

My apologies, but:

* What versions of firmware are you running on the DMP (ie. 5.1, 5.2)?

* What model of DMP?

* What is the model# of the Sony TV?

thank you,

T.

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Hi Tomas,

DMP firmware running is version 5.1 (will be upgrading to 5.2 in the next few weeks)

DMP model is 4400g

Model of Sony TV: FWD32LX2S

Thank you for your assistance

Cisco Employee

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

Sorry for the delay.

It does appear that the code strings are correct and you

have tested as you mentioned.

Please configure two custom Advance Tasks in

the DMM-Digital Signs Module

----------------------------------------------------------------------

Sony (Turn ON)

Set

rs232.tx_hex=8c000002018f

Sony (Turn OFF)

Set

rs232.tx_hex=8c000002008e

*  Once configured please attach the Sony LCD to a DMP and

test the strings above.

Also, you may want to try an Enquiry also to see if any is returned:

Sony (POWER Enquiry)

Get

rs232.tx_hex=830000ffff81

Please try and let me know what your results are..

Thanks

T.

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

I have had the same experience as Linda. I am running DMS 5.2 and trying to use Custom Advanced Tasks to turn my Sony FWD-40LX2 monitor on/off. Like LInda, I have been trying the following without success.

Sony (Turn ON)

Set

rs232.tx_hex=8c000002018f

Sony (Turn  OFF)

Set

rs232.tx_hex=8c000002008e

I have also had no success with the following enquiry command. I get a null response.

Sony  (POWER Enquiry)

Get

rs232.tx_hex=830000ffff81

Any help you can provide is much appreciated.

Jeff

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Hi Tomas and Jeff,

I have tried executing the suggested commands and still no luck.

When I executed the enquiry command:

Sony  (POWER Enquiry)

Get

rs232.tx_hex=830000ffff81

I received the following dialogue in a new browser session but no actual response:

http:// id>:@:7777/get_param?rs232.tx_hex=830000ffff81
===========================================
10:06:50 AM
===========================================


When I ran the screen Off command (TV was on):

Sony (Turn  OFF)

Set

rs232.tx_hex=8c000002008e

Screen didn't turn off.

I opened a browser session and added the following: http://:7777/get_param?p=*.*:

and could see the command in the output:

rs232.tx_hex     T_STRING     8c000002008e

I also checked to ensure the rs232 service was enabled:

init.startService_rs232     T_STRING     yes

So it appears that the commands are being passed to the DMP.

I'm going to try another test where I connect the rs-232 cable from my laptop to the DMP and I'll send the command using hyperterminal to see if the DMP will respond.  I'll let you know the outcome in a few hours as I have to go to another building to perform the test.

Cheers

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Gentlemen,

I ran the following test as suggested by Chip (Cisco Support) and the outcome wasn't as I had hoped.

1) Connected my Windows laptop to one end of the rs232 cable and the

other end to the DMP

2) Opened up hyperterminal on my Windows laptop and set it to use

the comm port of the laptop with 9600, 8, n, 1, with no flow control

3) Used a browser to send the following command to the DMP connected to:

http:///set_param?rs232.tx_hex=8C000002008E 

What I was hoping to see was a response from the DMP on the hyperterminal but unfortunately all I saw was a blank screen.

I ran the following command on a new browser to see the output :

http://:7777/get_param?p=*.*

and could see the following lines in the output as expected:

init.startService_rs232 T_STRING yes

rs232.tx_hex T_STRING 8C000002008E

Not sure what else to try.  If you have any ideas, please let me know.

Cheers

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

All-

We are successfully controlling a Sony FWD-40LX2F monitor by creating two custom Advance Tasks in the DMM-Digital Signs Module

using the following RS232 code and a "null modem" cable.

Sony (Turn ON)

Set

rs232.tx_hex=8c000002018f

Sony (Turn OFF)

Set

rs232.tx_hex=8c000002008e

Jeff

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Hi Jeff,

Can you tell me what you did to get your commands to work as you had the same problem as me until your last post?

Also, is it possible to send me a copy of the output after you execute your command (either to turn the TV on or off)?  You can get the output by entering the following into a browser?

http://:7777/get_param?p=*.*

where is the IP address of your DMP that you are using to control the TV.

I would like to see if your DMP is configured differently to mine.

Many thanks

Linda

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

1.) I created an Advanced Task to turn RS232 On and Off as follows:

"RS232 ON"

request type = "set"
request=  init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

"RS232 OFF"
request type = "set"
request =  init.startService_rs232=no&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

2.) Then I connected my DMP to the Sony FWD-40LX2F monitor using a "null modem" cable.

3.) I sent the "RS232 ON" command to the DMP.

4.) Then I ran the https:///get_param?p=rs232.*  in by browser to confirm the port was on.

Your results should be:

rs232.device     T_STRING     /dev/ttyS1
rs232.speed     T_STRING     9600
rs232.parity     T_STRING     none
rs232.data_size     T_STRING     8
rs232.stop_bits     T_STRING     1
rs232.flow_ctrl     T_STRING     none
rs232.tx_hex     T_STRING     
rs232.tx_str     T_STRING     
rs232.rx_buf     T_STRING     
rs232.rx_overflow_flag     T_STRING     false
rs232.tx_cnt     T_STRING     0
rs232.rx_cnt     T_STRING     0

5.) I was then able to send the following command to the monitor via the DMP.

Sony (Turn ON)

Set

rs232.tx_hex=8c000002018f

Sony (Turn  OFF)

Set

rs232.tx_hex=8c000002008e

6.) I ran the following in my browser to get the results that I have attached to this response as DMP.txt

http://:7777/get_param?p=*.*

I hope this works for you.

Jeff


New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Thank you Jeff.

Details you sent were great help.

I found a difference between your output and mine which I think may be causing the issue.

The RS-232: Control supported, non-DMTech displays command sent to my DMP before any commands to turn the TV on/off were sent: init.startService_dmttv=no&init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

My output showed:

init.startService_rs232 T_STRING yes

.

.

rs232.device T_STRING /dev/ttyS0
rs232.speed T_STRING 9600
rs232.parity T_STRING none
rs232.data_size T_STRING 8
rs232.stop_bits T_STRING 1
rs232.flow_ctrl T_STRING none
rs232.tx_hex T_STRING 8C000002008E
rs232.tx_str T_STRING
rs232.rx_buf T_STRING
rs232.rx_overflow_flag T_STRING false
rs232.tx_cnt T_STRING 6
rs232.rx_cnt T_STRING 0

Your output showed:

init.startService_rs232 T_STRING yes

.

.

rs232.device T_STRING /dev/ttyS1
rs232.speed T_STRING 9600
rs232.parity T_STRING none
rs232.data_size T_STRING 8
rs232.stop_bits T_STRING 1
rs232.flow_ctrl T_STRING none
rs232.tx_hex T_STRING 8c000002018f
rs232.tx_str T_STRING
rs232.rx_buf T_STRING e9
rs232.rx_overflow_flag T_STRING false
rs232.tx_cnt T_STRING 60
rs232.rx_cnt T_STRING 15

The line: rs232.device T_STRING /dev/ttyS0  is different from yours: rs232.device T_STRING /dev/ttyS1

I don't understand why the "RS-232: Control supported, non-DMTech displays" clearly states: &rs232.device=/dev/ttyS1 but the output post sending the command shows: &rs232.device=/dev/ttyS0

My understanding is that /dev/ttyS0 is a different comm port than /dev/ttyS1 and that could be causing the issue.

Do you know how to check the permissions on the DMP for /dev/ttyS0 and /dev/ttyS1?  I'm thinking if the permissions are not set correctly then the commands will not flow to the correct port....in this instance /dev/ttyS1.

Thanks

Linda

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

I am not sure how to check the permissions on the DMP for /dev/ttyS0 and /dev/ttyS1. However, you may want to try this:

1.) Go into your DMP settings and "Restore Default Settings."

2.) Instead of using the "RS-232: Control supported, non-DMTech displays" action from the Advanced Tasks try creating our own RS-232 on/off commands using:

"RS232 ON"

request type = "set"
request=   init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

"RS232 OFF"
request type = "set"
request =   init.startService_rs232=no&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

3.) Then try your Sony commands:

Sony (Turn ON)

Set

rs232.tx_hex=8c000002018f

Sony (Turn  OFF)

Set

rs232.tx_hex=8c000002008e

4.) If this doesn't work, I would try another DMP.

I will let you know if I find anything else.

Jeff

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Hi Jeff,

I believe my issue is in the way the DMPs have been configured.

I was able to finally get to a DMP attached to a Panasonic TV where the RS-232 commands worked so I unplugged the DMP and then plugged it into Sony TV and was able to successfully send the RS-232 commands to both turn the TV on and off.

I now need to compare the configuration of the two DMPs to see what's different (the DMPs were not configured by me but rather by two separate companies).

Other than pointing a browser to the DMP IP address to see the settings, do you know where the file containing the configuration (particularly the baud rate details) is located and how can I access it?

Many thanks for your help so far.

Cheers

Linda

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Linda,

I am glad that you have had some success with this issue. Pointing a browser to the DMP IP address to see the settings is the only method I know to check the configuration.

However, to see the the RS232 settings, you can use : https://<dmp IP address>/get_param?p=rs232.*

Jeff

New Member

Re: RS-232 commands for a Sony TV connected to a DMP

Hi Jeff,

Finally I can control Sony 50", 32" and 40" TVs using RS-232 commands.

In my previous comment I mentioned that the device parameter rs232.device T_STRING /dev/ttyS0 was different from yours rs232.device T_STRING /dev/ttyS1, talking to a Cisco support person, I was told "that's the right tty for the 4400."

I created a new System Task to replicate the non-DMTech command but I set the dmttv to yes rather than no :

Original non-DMTECH command:

init.startService_dmttv=no&init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

my new command I executed before sending the TV on/off command:

init.startService_dmttv=yes&init.startService_rs232=yes&rs232.device=/dev/ttyS1&mib.save=1&mng.reboot=1

this command rebooted the DMP and after that sending the TV Off and On commands (as per our earlier posts) worked. 

I'm still not sure why the Sony TV requires dmttv = yes but I'm just relieved it works.

Also just a note, the 50" Sony requires a straight RS-232 cable connected to the DMP whereas the 32" and 40" requires a cross-over RS-232 cable for the commands to work.

Thank you for your assistance, this issue is now resolved.

Cheers

Linda

8258
Views
0
Helpful
14
Replies
CreatePlease to create content