Vera - Smarter Home Control Forum

General => AV Control => Topic started by: lastmacuser on April 26, 2012, 12:31:55 pm

Title: Sharp TV ethernet control
Post by: lastmacuser on April 26, 2012, 12:31:55 pm
I want to improve my system and control my Sharp with ethernet. I allowed the Sharp to controlled using the Network settings tab on the TV and also set up a static IP. All internet stuff on the TV works fine. I then went to Vera add Devices, uPnP and the Sharp does not show up. I also went to my desktop and it does not show on the Network tab there. What am I doing wrong?
Title: Re: Sharp TV ethernet control
Post by: Ap15e on April 26, 2012, 12:48:45 pm
Is your TV set UPnP/DLNA compliant? Is UPnP/DLNA enabled?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on April 26, 2012, 01:46:23 pm
If your Sharp TV is the same as mine, then it uses IP Control, which enables you to open a Raw TCP session with it and enter commands in the Command Line Interface. 

After enabling IP Control and setting a device name, user name, password, and control (TCP) port, I was able to connect to mine and issue commands using HyperTerminal.  The commands can be received either by RS-232 or IP.  The command format is in the user manual for the TV; just start reading at IP Control Setup.

I do not currently use Vera to control my set, because my A/V receiver has a built-in HDMI switch that allows me to switch it and only run a single HDMI cable to the TV.

On my set, the DLNA portion is only so you can play media on the TV from other computers on the network that are advertising their media libraries via UPnP; you cannot control the set itself via UPnP.  I hope this helps.
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on April 26, 2012, 04:47:27 pm
If your Sharp TV is the same as mine, then it uses IP Control, which enables you to open a Raw TCP session with it and enter commands in the Command Line Interface. 
After enabling IP Control and setting a device name, user name, password, and control (TCP) port, I was able to connect to mine and issue commands using HyperTerminal.  The commands can be received either by RS-232 or IP.


Thanks for the help. I will try that. How would I incorporate the commands into a Vera sceme? Is it possible?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on April 26, 2012, 05:09:19 pm
Thanks for the help. I will try that. How would I incorporate the commands into a Vera sceme? Is it possible?

I have never looked into doing this with Vera and frankly do not know what its capabilities are around communicating with a device in a Raw TCP session.  I would imagine that you would need to write your own plugin for it with the necessary commands in the Implementation File.  This would be a good place to start though: http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand (http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand)

The first question to answer though is, "Is Vera capable of opening a Raw TCP session with a device and sending commands to it?".  Maybe someone else is able answer that.
Title: Re: Sharp TV ethernet control
Post by: guessed on April 26, 2012, 06:45:42 pm
Thanks for the help. I will try that. How would I incorporate the commands into a Vera sceme? Is it possible?

I have never looked into doing this with Vera and frankly do not know what its capabilities are around communicating with a device in a Raw TCP session.  I would imagine that you would need to write your own plugin for it with the necessary commands in the Implementation File.  This would be a good place to start though: http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand (http://wiki.micasaverde.com/index.php/Luup_Plugins_ByHand)

The first question to answer though is, "Is Vera capable of opening a Raw TCP session with a device and sending commands to it?".  Maybe someone else is able answer that.
Raw TCP, with AV Gear, is no problem.  See Onkyo, Denon, Panasonic TV Plugins over on code.mios.com work fully worked examples, with the AV-specific hooks in them
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on April 30, 2012, 12:39:10 pm
Is that stuff written in foreign language? I would just like to start with discrete on and off. I don't mind learning how to do this myself so not to bother the experts here. Is there somewhere that explains code writing for dummies?
Title: Re: Sharp TV ethernet control
Post by: guessed on April 30, 2012, 12:49:21 pm
You can take these two files:
    http://code.mios.com/trac/mios_panasonic-tv/browser/trunk

change their names, change the tag at the top from "stxetx" to "raw", and then just enter the Raw commands to replace the Power On and Power Off codes.

In Panasonic, these are:

Power Off:
    sendCommand("POF")

Power On:
    sendCommand("PON")

But you'll need to substitute the strings for whatever "raw" commands the Sharp needs.


When you're comfortable with that, and it's working correctly, you could change the others.
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on April 30, 2012, 01:40:01 pm
You can take these two files:
    http://code.mios.com/trac/mios_panasonic-tv/browser/trunk

change their names, change the tag at the top from "stxetx" to "raw", and then just enter the Raw commands to replace the Power On and Power Off codes.

In Panasonic, these are:

Power Off:
    sendCommand("POF")

Power On:
    sendCommand("PON")

But you'll need to substitute the strings for whatever "raw" commands the Sharp needs.


When you're comfortable with that, and it's working correctly, you could change the others.

Thank you very much. I think I can handle that. Look forward to trying.
Title: Re: Sharp TV ethernet control
Post by: guessed on April 30, 2012, 01:51:13 pm
If you have non-printables, you can use string.char(...) to generate them, per this example:
    http://forum.micasaverde.com/index.php?topic=9967.msg69254#msg69254
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 01, 2012, 07:24:26 pm
Thank you very much. I think I can handle that. Look forward to trying.

If you haven't had a chance to look at this yet, I figured it out.  I just downloaded the Panasonic TV plugin to my Vera and let it create a device.  I then downloaded the Device Specification (D_) and Implementation (I_) files from Apps>>Develop Apps>>Luup files.

In the Device Specification file, I just changed the following:
Code: [Select]
    <friendlyName>Sharp Aquos TV(LC70LE734U)over IP</friendlyName>
    <manufacturer>Sharp</manufacturer>
    <manufacturerURL>http://www.sharpusa.com</manufacturerURL>
    <modelDescription>Aquos TV over IP Interface</modelDescription>
    <modelName>LC70LE734U</modelName>
    <modelNumber>1.0</modelNumber>
    <protocol>crlf</protocol>

    <implementationList>
        <implementationFile>I_SharpIpcTV.xml</implementationFile>
    </implementationList>

In the Implementation file, I changed the following so I could test:
Code: [Select]
    <settings>
        <protocol>crlf</protocol>
   <ioPort>10002</ioPort>
    </settings>

    ...

        function tvStartup(lul_device)
            luup.log("Running I_SharpIpcTV.xml")
        end

    ...

        <action>
            <serviceId>urn:micasaverde-com:serviceId:DiscretePower1</serviceId>
            <name>Off</name>
            <run>
                -- Power off
                sendCommand("POWR0   ")
            </run>
        </action>

        <action>
            <serviceId>urn:micasaverde-com:serviceId:DiscretePower1</serviceId>
            <name>On</name>
            <run>
                -- Power on
                sendCommand("POWR1   ")
            </run>
        </action>

You have to use crlf instead of raw as the protocol so that each command is sent with a carriage return and linefeed after it.  I also used the default IP Control port of 10002 in the Implementation file.

After editing and renaming the files, I uploaded them to my Vera unit from Apps>>Develop Apps>>Luup files and then edited the device that it created when I downloaded the Panasonic TV plugin and changed the name, device_file, impl_file, and added the ip.

On the TV, I enabled IP Control with all default parameters with a blank username and password.  I was then able to create scenes to turn the power to the TV on or off, and it works!  I hope this helps.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 01, 2012, 08:18:40 pm
That's awesome, thanks for the detailed notes!  Would you mind posting the files you ultimately uploaded for this?
Thanks
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 01, 2012, 09:09:10 pm
That's awesome, thanks for the detailed notes!  Would you mind posting the files you ultimately uploaded for this?
Thanks

Here you go!  I will probably go ahead and implement some more codes in it later and maybe turn it into an actual plugin, if I can get it to work with the port number, a username, and a password as variables in the device control panel.

EDIT:  I have implemented all the functionality that can be easily implemented for this.  Please download the ZIP file and upload all the XML files in it to your Vera and use it as mentioned above.  Please note that I have not fully tested every function, and it still requires you to use port 10002 and no username or password for IP Control on your TV.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 06:52:26 am
I'm going to give this a shot now...  Is there a way to launch a favorite app?  Is there documentation on the possible commands?  I would really like to have a button to launch the VUDU app, or go right to Pandora on the TV and start playing...

Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 08:00:57 am
I'm going to give this a shot now...  Is there a way to launch a favorite app?  Is there documentation on the possible commands?  I would really like to have a button to launch the VUDU app, or go right to Pandora on the TV and start playing...

Unfortunately, there is nothing in there for launching favorite apps.  Some things are not so useful too, like the volume control.  The only way they give you to control volume is by entering a specific value.  There is no method for simply increasing or decreasing the volume.  I used the user manual for my TV (LC-70LE734U) that listed all of the available commands and the codes for them.  There have been some updates since I got my TV, so I will look on the Sharp website to see if there might have been any updates to the IP Control command set.  The manual for my TV is here: http://files.sharpusa.com/Downloads/ForHome/HomeEntertainment/LCDTVs/Manuals/tel_man_LC70LE734U.pdf (http://files.sharpusa.com/Downloads/ForHome/HomeEntertainment/LCDTVs/Manuals/tel_man_LC70LE734U.pdf).  The commands are on page 58.

EDIT: It looks like Sharp does not have any online documentation of IP Control commands.  It seems to only appear in the user manual for each TV.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 08:21:52 am
I'm getting this error...  I have the tv setup wireless, Static IP, port 10002 blank user/pass and it's enabled
Sharp Aquos TV[152] : Failed to open IO Port

Any suggestions?
I downloaded the Panasonic TV Plugin, changed the Device and Impl. filenames, and added the IP.  It automatically updated with the MAC address...
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 08:49:09 am
I'm getting this error...  I have the tv setup wireless, Static IP, port 10002 blank user/pass and it's enabled
Sharp Aquos TV[152] : Failed to open IO Port

Any suggestions?
I downloaded the Panasonic TV Plugin, changed the Device and Impl. filenames, and added the IP.  It automatically updated with the MAC address...

I get this if Vera has lost communication with the TV, like overnight when I turn off the power to everything.  You can try to hit the Reload button in the upper right corner of the Vera webpage.  You can verify that the TV is reachable by opening a command prompt on a PC (Start>>type cmd in the search) and type "ping <tv_ip_address>", minus the quotes.  You should get "Reply from ...".  If you get "Request timed out" or anything else, then there is a problem with networking or with the TV IP Control settings.  You can test it with PUTTY (http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe) by entering the following settings:
Once you get a window open, just enter "POWR0   ", minus the quotes; notice the 3 spaces at the end.  They must be there as all commands must be 8 characters in length.  This should turn power on the TV off.  If you cannot connect, then something is either wrong with the TV settings or your network.  I have mine over a wired connection.  If you get ERR when entering the command and the TV does not turn off, then there is something else wrong and you should check that you entered the command correctly.  You should get an OK response.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 08:59:51 am
I received "OKR" and it seemed to work..  Vera after refresh and TV being on still gives me the same error...  Anything in the panasonic plugin that was created needed to be changed besides the xml file names, and IP?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 09:24:21 am
I received "OKR" and it seemed to work..  Vera after refresh and TV being on still gives me the same error...  Anything in the panasonic plugin that was created needed to be changed besides the xml file names, and IP?

That is interesting.  If you uploaded all the files from my zip file to your Vera, then everything is changed that needs to be.  These are the same files I am running on my Vera.  The port number is hard coded in the Implementation file, so make sure you just enter the IP address (eg 10.0.0.1) in the ip field under Advanced for the device and not the IP adress and port (eg 10.0.0.1:10002).  You don't even have to download the Panasonic plugin and use the device created by the Panasonic plugin if you don't want to.  You can just create a new one from Apps>>Develop Apps>>Create device with the following information:
You may also want to SSH into your Vera unit and verify that you can PING your TV IP address from there as well.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 10:27:33 am
Ok, started from scratch so we'll see.  I'm not sure how to SSH into the VERA to ping this so hopefully it works.

Thanks again.
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 10:50:22 am
Ok, started from scratch so we'll see.  I'm not sure how to SSH into the VERA to ping this so hopefully it works.

Thanks again.

You can use the same PUTTY program to ssh to your Vera IP address.  The username is root and the password is printed on the bottom of your Vera unit.  Once at the command prompt, just type "ping <tv_ip_address>" the same as before.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 10:52:48 am
Works!

I think if you change AV Mode to anything other than AUTO and then Disable Energy Saver, it will not shut off the RS232 control.  I was able to turn the TV on/off, and I think before I switched that I could only turn it off... 

Is there any way to operate the TV other than Advanced Scene tab? 

Now the next thing is to find the RS232 codes that do NOT show up in the manual.

EDIT:
Check this out...  Maybe "RSPW1   " will fix the disconnected issues and not require a manual power cycle. 
Code: [Select]
Section Command What it Does
POWER ON COMMAND SETTING RSPW0 Tells the TV not to respond to POWR1 commands when the TV is turned off.
POWER ON COMMAND SETTING RSPW1 Tells the TV to respond POWR1 commands when the TV is turned off.
POWER SETTING POWR0 Turns the TV off.
POWER SETTING POWR1 Turns the TV on if and only if the TV has received the RSPW1 command and has not received a RSPW0 command since.


Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 11:26:53 am
EDIT:
Check this out...  Maybe "RSPW1   " will fix the disconnected issued and not require a manual power cycle. 

I'm glad it is working for you!  Yeah, I think I must have issued that command a long time ago on mine, because it responds to the POWR1 command when I turn it off.  I will add both of the RSPW commands to the Implementation so that it can be toggled from Vera.

The flash-based remote control builder has not been fixed yet, so you cannot really do anything with the commands outside of scenes yet.  If it were working, you could build a custom remote to be accessed from your phone or tablet.  That is found under the Devices>>AV Gear view in your Vera web page.  Right now, it just loads to a blank lavender screen in Chrome and a blank black screen in IE9.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 03, 2012, 12:54:22 pm
Do you plan to make a plugin that shows the device state etc...?  That would pretty cool, only if it's using the ON/OFF state (that's all that is useful to me at this point it seems anyway).

Thanks,
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 03, 2012, 05:16:13 pm
Do you plan to make a plugin that shows the device state etc...?  That would pretty cool, only if it's using the ON/OFF state (that's all that is useful to me at this point it seems anyway).

Thanks,

There is no reliable way to determine the state of the TV since it doesn't report anything to Vera other than command responses.  Being that it still responds to the power on command when off means that it keeps the network connection alive in order to receive commands.  This means that you cannot use PING to determine if the set is on or not and there are no status commands implemented for incremental polling.  You could say that if Vera turned it off, then that is the state, but what if someone turns it back on with the remote or on the TV itself?  This would mean that Vera has the wrong state.  I just don't think there is a lot more that can be done unless Sharp implements more functionality in IP Control.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 04, 2012, 08:03:34 am
That is understandable.. So the main benefit would be the ability to control from the gui... Let us know if you plan to tackle the project.
Thanks.
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 04, 2012, 01:16:33 pm
That is understandable.. So the main benefit would be the ability to control from the gui... Let us know if you plan to tackle the project.
Thanks.

About the only things left to do on this are the following:
Once these items are done, I will post it as a downloadable app.  That is about all that can be done with it for now.
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 04, 2012, 05:21:26 pm
After doing some digging, I was able to use the Onkyo and Binary Light JSON files as examples, I was able to add buttons to the control pad for this.  Here is the latest with the following changes:
It looks like Sharp does a good job of avoiding overlap in commands for IP Control between different TV sets.  None of the new commands for 3D TV's overlap with the commands we already had.  While the buttons cannot determine status, they do function for turning the TV on and off.

Now, I still need to determine if there is the ability to send authentication when using the raw or crlf protocol.  I looked all over the place but could not find anyone actually doing this, and the documentation for Luup does not say whether this is or is not possible.

EDIT:  I used modified code from the DSC Alarm Panel plugin Implementation file to add the capability to specify a custom port in the IP address field in the format: <ip_address>:<port> (eg 10.0.0.1:10003).  If no port is specified, it defaults to 10002.  I also found in the documentation where you cannot specify a username and password using the built-in raw or crlf protocols.  The function luup.io.open only takes the device ID, IP address, and Port number.  Here is a list of the new features:
I feel like this is now complete enough to upload as a downloadable plugin and will work on doing that.
Title: Re: Sharp TV ethernet control
Post by: big517 on May 04, 2012, 09:07:20 pm
You are the man...  Great work, nice to see something happen so fast!
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 07, 2012, 11:29:36 am
Thanks @big517!

This app has now been published to the App Market for download, and I have verified that it works!  Enjoy!
Title: Re: Sharp TV ethernet control
Post by: big517 on May 07, 2012, 07:19:54 pm
Very Nice, downloading now.  I suggest you note that the FIRST thing they should do is turn the TV on and run that Command that disables the IP Control sleep policy.  That way it's always listening... Until I ran that I had to manually turn my tv on if it was off more than 1 minute.  Otherwise people will say it stopped working and wont turn their TV on.
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 07, 2012, 07:40:00 pm
Very Nice, downloading now.  I suggest you note that the FIRST thing they should do is turn the TV on and run that Command that disables the IP Control sleep policy.  That way it's always listening... Until I ran that I had to manually turn my tv on if it was off more than 1 minute.  Otherwise people will say it stopped working and wont turn their TV on.


I had it in the testing section, but I also added it as the last Installation step just to make it more visible.
Title: Re: Sharp TV ethernet control
Post by: maverick on May 22, 2012, 12:13:40 pm
I installed this control, but I'm not sure I understand the last step on install:

"With the TV turned on, add it to the Advanced section of a scene and choose the command OnIP under RemotePower and run the scene. This will enable the TV to be turned on using IP Control."

Where do I do this? I can't find this option anywhere?

Also, where do I get other controls in the UI? All I see is On and Off, and Off works, but On only works if the TV was just turned off.

Thanks for the help!
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on May 22, 2012, 01:21:15 pm
@maverick,

You Do this under the Advanced tab of a scene.  I have attached 2 screenshots to help.

First, you either create a new scene or use an existing one.  Go to the Advanced tab as shown in the first screenshot.  Select your Sharp TV and click the Add button.  It will appear below with another drop-down for commands.  Under RemotePower, choose OnIP as shown in the second screenshot.  Click Confirm Changes and then click the Save button.  After that process is complete, run the scene.  You only need to do it once.  This enables the TV to be powered on over IP.  After that, you just use the normal buttons for on and off as you wish.

As far as other commands go, I didn't want to clutter the control pad with a bunch of buttons, so you add individual commands in the Advanced section of scenes as described above.  Once MCV gets the remote control building functionality working, you will be able to create your own remote control for it.  Until then, we are stuck with individual commands.  I figured that the On and Off buttons would be used a whole lot more than anything else.  Please let me know if you have any ideas or suggestions.

EDIT: I have also added this process to the Help page (http://conference.otispresley.com/mios/mios_sharp_tv_ip_control.html).


I installed this control, but I'm not sure I understand the last step on install:

"With the TV turned on, add it to the Advanced section of a scene and choose the command OnIP under RemotePower and run the scene. This will enable the TV to be turned on using IP Control."

Where do I do this? I can't find this option anywhere?

Also, where do I get other controls in the UI? All I see is On and Off, and Off works, but On only works if the TV was just turned off.

Thanks for the help!
Title: Re: Sharp TV ethernet control
Post by: strangely on May 26, 2012, 05:00:34 pm
Also, where do I get other controls in the UI? All I see is On and Off, and Off works, but On only works if the TV was just turned off.

Alternately (depending on which Version of UI5 you are running), you can also call them from:
http://xx.xx.xx.xx:3480/data_request?id=lu_invoke

From this page, you can also find out which URL works for each action, and potentially build your own web based remote!
Title: Re: Sharp TV ethernet control
Post by: big517 on June 06, 2012, 08:27:53 am
Alternately (depending on which Version of UI5 you are running), you can also call them from:
http://xx.xx.xx.xx:3480/data_request?id=lu_invoke

From this page, you can also find out which URL works for each action, and potentially build your own web based remote!

@Strangely, this link has saved me soo much time recently!  How would I go about building my own Web Based Remote? 
Thanks!
Title: Re: Sharp TV ethernet control
Post by: strangely on June 06, 2012, 11:52:59 pm
Have you ever done any HTML? You don't need to be a programmer, and there are several paid for editing packages, free packages or even web based editors. You could even get away with doing it in MS Word to a certain extent!
Title: Re: Re: Sharp TV ethernet control
Post by: big517 on June 07, 2012, 06:11:25 am
Have you ever done any HTML? You don't need to be a programmer, and there are several paid for editing packages, free packages or even web based editors. You could even get away with doing it in MS Word to a certain extent!
I see...  So just use the same URL in that page? Too easy!

 2
Title: Re: Re: Sharp TV ethernet control
Post by: OtisPresley on June 07, 2012, 09:52:15 am
The broken remote control functionality from UI4 used image maps for the remote controls.  That way, you just use an image of your choice and then determine what regions map to which link.  If you have never worked with them before, here is a tutorial (http://www.javascriptkit.com/howto/imagemap.shtml).

Have you ever done any HTML? You don't need to be a programmer, and there are several paid for editing packages, free packages or even web based editors. You could even get away with doing it in MS Word to a certain extent!
I see...  So just use the same URL in that page? Too easy!

 2
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on August 27, 2012, 11:37:09 am
My on/off functionality was spotless with the Sharp App until the recent upgrade to 1.5.408. Now i have no TV control. Is anyone else having this problem?
I can ping the IP of the TV so I know it is there. Any other test I can do?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on September 03, 2012, 09:51:07 am
Sorry for the late reply; I just got back from vacation.  This plugin is working for me on Vera 3 with 1.5.408, and it also worked with my Vera 2 before I traded it in.  Please make sure that the correct IP address and MAC address appear under Advanced in your control pad.  You will also want to make sure that the IP Control settings on the TV are still correct and haven't changed for some reason (Enabled, no username, no password, default port of 10002.  If all that checks out and it still doesn't work, try uninstalling and re-installing the plugin.

Is there anyone else having problems with this plugin on 1.5.408?

My on/off functionality was spotless with the Sharp App until the recent upgrade to 1.5.408. Now i have no TV control. Is anyone else having this problem?
I can ping the IP of the TV so I know it is there. Any other test I can do?
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on September 04, 2012, 11:46:03 am
Thanks for the reply, like I said it was working just fine before. One question if u can answer. I used putty to try some commands on the TV. It opens to the IP address in putty but drops the connection after about 30 seconds. Does this mean anything?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on September 04, 2012, 01:54:34 pm
It sounds like the connection may actually be timing out.  If you have a successful connection in PUTTy, you should be able to enter a command, receive a response of ERROR or OK, and see the result on the TV.  I have attached screenshots of my PUTTY session for you to see how it is configured and also documented in this post (http://forum.micasaverde.com/index.php/topic,10365.msg71984.html#msg71984).  Some test codes would be (the spaces are necessary for an 8 character code.
The command "RSPW1   " tells the TV to respond to a power on command over IP when powered off.  I hope this helps.

There has to be a good reason why yours no longer works.  I was just thinking that some of your TV settings may have been lost in a firmware update for some reason.  You may also try unplugging the TV for a minute and plugging it back in.  If you cannot make a connection in a terminal session, then Vera is unlikely to be able to connect to it either.  You can also try it with your PC firewall disabled in case it is blocking the raw session on port 10002.


Thanks for the reply, like I said it was working just fine before. One question if u can answer. I used putty to try some commands on the TV. It opens to the IP address in putty but drops the connection after about 30 seconds. Does this mean anything?
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on September 05, 2012, 11:55:18 am
Strange connection problem here. I can connect with putty if the TV is off. When the TV is on putty connection is refused. Any idea why?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on September 07, 2012, 07:14:28 am
That is strange.  I tried to connect to mine via PUTTY and the windows disappears immediately whether the TV is on or off, but the plugin still works fine.  I am wondering if maybe it only allows one connection at a time and Vera has it.

Strange connection problem here. I can connect with putty if the TV is off. When the TV is on putty connection is refused. Any idea why?
Title: Re: Sharp TV ethernet control
Post by: lastmacuser on September 24, 2012, 06:54:56 pm
Another weird problem since Sharp upgrade.
Reinstalled upgrade from thumb drive. Success. Vera now turns on/off properly.
Now white v shaped light on front of tv stays lit whether tv is on/off. It used to turn off when tv off. Any ideas on this?
Title: Re: Sharp TV ethernet control
Post by: OtisPresley on September 24, 2012, 10:25:37 pm
There is a menu option on the TV to control the v-shaped light operation.  I have mine set to always be off so that it only illuminates when you first turn it on and then goes out.  Try changing that setting and see if it corrects your issue.

Another weird problem since Sharp upgrade.
Reinstalled upgrade from thumb drive. Success. Vera now turns on/off properly.
Now white v shaped light on front of tv stays lit whether tv is on/off. It used to turn off when tv off. Any ideas on this?
Title: Re: Sharp TV ethernet control
Post by: Smoochies Boss on September 26, 2017, 11:26:40 am
Has anyone been successful with this in UI7? I can turn off but not back on. Energy saving on the tv is set to off. Thanks!
Title: Re: Sharp TV ethernet control
Post by: MarcusB on January 10, 2018, 12:37:27 am
It works in ui17.
Remember to get it to be able to turn the tv on you need to run the onIP command in a scene.
Same as listed earlier, in the advanced section of a scene, add the sharp tv, and add the onIP command.
Run that scene just once and it updates the tv to accept an on command while it?s turned off.