Announcement

Collapse
No announcement yet.

Samsung TV Remote Control Plug-IN

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Samsung TV Remote Control Plug-IN

    I'm going to use this Thread to judge interest for a plugin to control C/D series of Samsung TVs. This plug-in makes use of an App that runs on your TV, I believe comes standard with it. It only emulates how your remote controller works so it is uni-directional to your TV, no feedback from your TV.
    Post your comments on this thread, it may get its own thread in the future but for time being, this is its home.
    Dirk


    Changes to beta v06
    • Added Events
    • Fixed error causing HS to crash when the TCP/IP connection was refused or closed
    • Added a button for Internet
    • Buttons are now configurable via an .ini file but all functions aren't there yet. You can find the remotecontrol.ini file in the <hsroot>\html\SamsungRemote\RemoteControl. More to follow in next beta


    Changes to beta v05
    • The TCP/IP connection for the remote wasn't automatically re-established when the TV was power off/on or an error in the socket happened


    Changes to beta v04
    • It appears that not all Samsung TVs support the urn:samsung.com:serviceId:TestRCRService service as part of device urn:samsung.com:device:RemoteControlReceiver:1. As a result, no HS devices are being created. The plugin now by default creates a remote control device when the UPNP subsystem detects the urn:samsung.com:device:RemoteControlReceiver:1 device. This might also be on BluRays


    Changes to beta v03
    • Keys for Vol +/- and Channel +/- were wrong


    Changes to beta v02
    • Packaged up wrong file. If you installed version one, REMOVE v01 first


    Decided to split Remote functions from DLNA Manager functions. If you installed the UPNPInstall ... files, go to Windows/ Control Panel and uninstall the plugin.

    New Remote only plugin Beta v 01 posted here
    • Install plugin and go to the setup page to activate the plugin
    • Plug-in will now discover Samsung devices, note the remote is (likely) only to work on C-series and D-series, definitely nothing prior
    • New devices will be discovered each 10 minutes and devices on-line/off-line in 10 seconds
    • If you want to use the remote or message service, go to the device setup page and click on "on"
    • If you want to have the text sent to the speaker client by other plugins or via your own created events, go to the "Samsung config" page and make sure you activate the "speaker Proxy" flag. Don't forget to hit save
    • Please provide feedback. Currently no help but functions are pretty simple



    Changes for beta v03
    • If you used prior versions, you might want to delete all the devices this plug-in created, stop HS, delete the UPnPController.ini file and start HS again
    • Plug-in will now discover every UPnP Device but only add rendering, controlling devices.
    • added more buttons. Now have buttons to set source like HDMI, AV ... Also added a Poweroff button which seems to work. There are probably another 50 or so keys that I'm not sure worth adding
    • rewriting the ping mechanism ... too many ... too many failing. Should be good now. New devices will be discovered each 10 minutes and devices on-line/off-line in 10 seconds
    • began adding functions to extract track info out of Content devices. Next step to use it to drive Media renderers
    • if you turn the debug flag on, there might be a ton of logging in an attempt to "learn" other devices. Send me log files with errors and warnings in them when you create databases or while UPnP devices are changing state



    Changed to beta v02

    • Autodiscovery should now work. New devices are discovered only every 10 minutes. Once the device is discovered and added the the HS database, if it is off-line when HS starts up ... and it's IP address hasn't changed, it will be discovered within 10 seconds of being available on line
    • Added an option to discover and log all UPNP device info on your LAN. Go to the UPNP config page and hit the "Search UPnP Devices" button. It will take 10 ~15 seconds but after that, a number of files should be created in the <hs root>\html\UPnPController\SearchResults directory. Zip all those files in one .zip file and email it to me. It contains your IP addresses and uuids so don't go post it here.


    If you don't like the plug-in, use the regular SW Uninstall feature from Windows.

    Have fun

    Dirk
    Attached Files
    Last edited by dcorsus; December 19, 2012, 08:20 PM.

    #2
    Dirk, will the plugin be able to power on the television? I'm definitely interested in that can be done, but I'm not sure if Samsung built in a way to control that via ethernet.
    HS Pro 3.0 | Linux Ubuntu 16.04 x64 virtualized under Proxmox (KVM)
    Hardware: Z-NET - W800 Serial - Digi PortServer TS/8 and TS/16 serial to Ethernet - Insteon PLM - RFXCOM - X10 Wireless
    Plugins: HSTouch iOS and Android, RFXCOM, BlueIris, BLLock, BLDSC, BLRF, Insteon PLM (MNSandler), Device History, Ecobee, BLRing, Kodi, UltraWeatherWU3
    Second home: Zee S2 with Z-Wave, CT101 Z-Wave Thermostat, Aeotec Z-Wave microswitches, HSM200 occupancy sensor, Ecolink Z-Wave door sensors, STI Driveway Monitor interfaced to Zee S2 GPIO pins.

    Comment


      #3
      Originally posted by reidfo View Post
      Dirk, will the plugin be able to power on the television? I'm definitely interested in that can be done, but I'm not sure if Samsung built in a way to control that via ethernet.
      Sorry, the Samsung Ethernet PHY gets powered down when you turn off the TV, no way to revive it except with an IR remote control.

      Dirk

      Comment


        #4
        That's really too bad. Serious oversight on Samsung's part. I'd probably still be interested in the plugin though. I think I'd put an IR blaster next to the TV to turn it on.
        HS Pro 3.0 | Linux Ubuntu 16.04 x64 virtualized under Proxmox (KVM)
        Hardware: Z-NET - W800 Serial - Digi PortServer TS/8 and TS/16 serial to Ethernet - Insteon PLM - RFXCOM - X10 Wireless
        Plugins: HSTouch iOS and Android, RFXCOM, BlueIris, BLLock, BLDSC, BLRF, Insteon PLM (MNSandler), Device History, Ecobee, BLRing, Kodi, UltraWeatherWU3
        Second home: Zee S2 with Z-Wave, CT101 Z-Wave Thermostat, Aeotec Z-Wave microswitches, HSM200 occupancy sensor, Ecolink Z-Wave door sensors, STI Driveway Monitor interfaced to Zee S2 GPIO pins.

        Comment


          #5
          Originally posted by dcorsus View Post
          Fixed this problem in v.03. Decided to move the beta to my own sticky thread and you can find it here (http://board.homeseer.com/showpost.php?p=1008095&postcount=1) going forward.
          I also noted that Channel +/- were wrong as well

          Dirk
          Yes you were right. v3 works OK.

          1) Is it possible to have the "input PC" (VGA) button?
          2) Also what are the values of the buttons so I can call them from a script ?


          I see two buttons labeled "PowerOn" and "Power", what's their use from the moment we cannot power on the tv from the network?


          Thank you for your efforts.

          Comment


            #6
            Originally posted by valdus3 View Post
            1) Is it possible to have the "input PC" (VGA) button?
            Need to have a look whether that exist, I thought it was, I may not have added the button. What I'll probably do, especially when you want to script it, is give you a method and post all the key combinations that I found in the web so you can send it directly

            Originally posted by valdus3 View Post
            2) Also what are the values of the buttons so I can call them from a script ?
            Need to look at that but see my remark above ....


            Originally posted by valdus3 View Post
            I see two buttons labeled "PowerOn" and "Power", what's their use from the moment we cannot power on the tv from the network?
            The key values exist, maybe it is a future safe thing or maybe some versions of Samsung can actually be powered on. My C-series definitely can not.

            Dirk

            Comment


              #7
              Originally posted by valdus3 View Post
              2) Also what are the values of the buttons so I can call them from a script ?
              Here is an example of how to call this from a script:

              Dim pi As Object
              pi = hs.Plugin("SamsungRemote")
              If pi Is Nothing Then
              hs.writelog("Script", "empty")
              Exit Function
              End If
              Dim MusicApi As Object 'As HSMusicAPI
              MusicApi = pi.GetMusicAPI("your device name goes here my case UN55C8000 - Remote Service")
              MusicAPI.SendKeyCode("your Key code goes here")

              The Key codes are:

              ' KEY_MENU
              ' KEY_UP
              ' KEY_DOWN
              ' KEY_LEFT
              ' KEY_RIGHT
              ' KEY_3
              ' KEY_VOLUP
              ' KEY_4
              ' KEY_5
              ' KEY_6
              ' KEY_VOLDOWN
              ' KEY_7
              ' KEY_8
              ' KEY_9
              ' KEY_MUTE
              ' KEY_CHDOWN
              ' KEY_0
              ' KEY_CHUP
              ' KEY_PRECH
              ' KEY_GREEN
              ' KEY_YELLOW
              ' KEY_CYAN
              ' KEY_ADDDEL
              ' KEY_SOURCE
              ' KEY_INFO
              ' KEY_PIP_ONOFF
              ' KEY_PIP_SWAP
              ' KEY_PLUS100
              ' KEY_CAPTION
              ' KEY_PMODE
              ' KEY_TTX_MIX
              ' KEY_TV
              ' KEY_PICTURE_SIZE
              ' KEY_AD
              ' KEY_PIP_SIZE
              ' KEY_MAGIC_CHANNEL
              ' KEY_PIP_SCAN
              ' KEY_PIP_CHUP
              ' KEY_PIP_CHDOWN
              ' KEY_DEVICE_CONNECT
              ' KEY_HELP
              ' KEY_ANTENA
              ' KEY_CONVERGENCE
              ' KEY_11
              ' KEY_12
              ' KEY_AUTO_PROGRAM
              ' KEY_FACTORY
              ' KEY_3SPEED
              ' KEY_RSURF
              ' KEY_ASPECT
              ' KEY_TOPMENU
              ' KEY_GAME
              ' KEY_QUICK_REPLAY
              ' KEY_STILL_PICTURE
              ' KEY_DTV
              ' KEY_FAVCH
              ' KEY_REWIND
              ' KEY_STOP
              ' KEY_PLAY
              ' KEY_FF
              ' KEY_REC
              ' KEY_PAUSE
              ' KEY_TOOLS
              ' KEY_INSTANT_REPLAY
              ' KEY_LINK
              ' KEY_FF_
              ' KEY_GUIDE
              ' KEY_REWIND_
              ' KEY_ANGLE
              ' KEY_RESERVED1
              ' KEY_ZOOM1
              ' KEY_PROGRAM
              ' KEY_BOOKMARK
              ' KEY_DISC_MENU
              ' KEY_PRINT
              ' KEY_RETURN
              ' KEY_SUB_TITLE
              ' KEY_CLEAR
              ' KEY_VCHIP
              ' KEY_REPEAT
              ' KEY_DOOR
              ' KEY_OPEN
              ' KEY_WHEEL_LEFT
              ' KEY_POWER
              ' KEY_SLEEP
              ' KEY_2
              ' KEY_DMA
              ' KEY_TURBO
              ' KEY_1
              ' KEY_FM_RADIO
              ' KEY_DVR_MENU
              ' KEY_MTS
              ' KEY_PCMODE
              ' KEY_TTX_SUBFACE
              ' KEY_CH_LIST
              ' KEY_RED
              ' KEY_DNIe
              ' KEY_SRS
              ' KEY_CONVERT_AUDIO_MAINSUB
              ' KEY_MDC
              ' KEY_SEFFECT
              ' KEY_DVR
              ' KEY_DTV_SIGNAL
              ' KEY_LIVE
              ' KEY_PERPECT_FOCUS
              ' KEY_HOME
              ' KEY_ESAVING
              ' KEY_WHEEL_RIGHT
              ' KEY_CONTENTS
              ' KEY_VCR_MODE
              ' KEY_CATV_MODE
              ' KEY_DSS_MODE
              ' KEY_TV_MODE
              ' KEY_DVD_MODE
              ' KEY_STB_MODE
              ' KEY_CALLER_ID
              ' KEY_SCALE
              ' KEY_ZOOM_MOVE
              ' KEY_CLOCK_DISPLAY
              ' KEY_AV1
              ' KEY_SVIDEO1
              ' KEY_COMPONENT1
              ' KEY_SETUP_CLOCK_TIMER
              ' KEY_COMPONENT2
              ' KEY_MAGIC_BRIGHT
              ' KEY_DVI
              ' KEY_HDMI
              ' KEY_W_LINK
              ' KEY_DTV_LINK
              ' KEY_APP_LIST
              ' KEY_BACK_MHP
              ' KEY_ALT_MHP
              ' KEY_DNSe
              ' KEY_RSS
              ' KEY_ENTERTAINMENT
              ' KEY_ID_INPUT
              ' KEY_ID_SETUP
              ' KEY_ANYNET
              ' KEY_POWEROFF
              ' KEY_POWERON
              ' KEY_ANYVIEW
              ' KEY_MS
              ' KEY_MORE
              ' KEY_PANNEL_POWER
              ' KEY_PANNEL_CHUP
              ' KEY_PANNEL_CHDOWN
              ' KEY_PANNEL_VOLUP
              ' KEY_PANNEL_VOLDOW
              ' KEY_PANNEL_ENTER
              ' KEY_PANNEL_MENU
              ' KEY_PANNEL_SOURCE
              ' KEY_AV2
              ' KEY_AV3
              ' KEY_SVIDEO2
              ' KEY_SVIDEO3
              ' KEY_ZOOM2
              ' KEY_PANORAMA
              ' KEY_4_3
              ' KEY_16_9
              ' KEY_DYNAMIC
              ' KEY_STANDARD
              ' KEY_MOVIE1
              ' KEY_CUSTOM
              ' KEY_AUTO_ARC_RESET
              ' KEY_AUTO_ARC_LNA_ON
              ' KEY_AUTO_ARC_LNA_OFF
              ' KEY_AUTO_ARC_ANYNET_MODE_OK
              ' KEY_AUTO_ARC_ANYNET_AUTO_START
              ' KEY_AUTO_FORMAT
              ' KEY_DNET
              ' KEY_HDMI1
              ' KEY_AUTO_ARC_CAPTION_ON
              ' KEY_AUTO_ARC_CAPTION_OFF
              ' KEY_AUTO_ARC_PIP_DOUBLE
              ' KEY_AUTO_ARC_PIP_LARGE
              ' KEY_AUTO_ARC_PIP_SMALL
              ' KEY_AUTO_ARC_PIP_WIDE
              ' KEY_AUTO_ARC_PIP_LEFT_TOP
              ' KEY_AUTO_ARC_PIP_RIGHT_TOP
              ' KEY_AUTO_ARC_PIP_LEFT_BOTTOM
              ' KEY_AUTO_ARC_PIP_RIGHT_BOTTOM
              ' KEY_AUTO_ARC_PIP_CH_CHANGE
              ' KEY_AUTO_ARC_AUTOCOLOR_SUCCESS
              ' KEY_AUTO_ARC_AUTOCOLOR_FAIL
              ' KEY_AUTO_ARC_C_FORCE_AGING
              ' KEY_AUTO_ARC_USBJACK_INSPECT
              ' KEY_AUTO_ARC_JACK_IDENT
              ' KEY_NINE_SEPERATE
              ' KEY_ZOOM_IN
              ' KEY_ZOOM_OUT
              ' KEY_MIC
              ' KEY_HDMI2
              ' KEY_HDMI3
              ' KEY_AUTO_ARC_CAPTION_KOR
              ' KEY_AUTO_ARC_CAPTION_ENG
              ' KEY_AUTO_ARC_PIP_SOURCE_CHANGE
              ' KEY_HDMI4
              ' KEY_AUTO_ARC_ANTENNA_AIR
              ' KEY_AUTO_ARC_ANTENNA_CABLE
              ' KEY_AUTO_ARC_ANTENNA_SATELLITE
              ' KEY_EXT1
              ' KEY_EXT2
              ' KEY_EXT3
              ' KEY_EXT4
              ' KEY_EXT5
              ' KEY_EXT6
              ' KEY_EXT7
              ' KEY_EXT8
              ' KEY_EXT9
              ' KEY_EXT10
              ' KEY_EXT11
              ' KEY_EXT12
              ' KEY_EXT13
              ' KEY_EXT14
              ' KEY_EXT15
              ' KEY_EXT16
              ' KEY_EXT17
              ' KEY_EXT18
              ' KEY_EXT19
              ' KEY_EXT20
              ' KEY_EXT21
              ' KEY_EXT22
              ' KEY_EXT23
              ' KEY_EXT24
              ' KEY_EXT25
              ' KEY_EXT26
              ' KEY_EXT27
              ' KEY_EXT28
              ' KEY_EXT29
              ' KEY_EXT30
              ' KEY_EXT31
              ' KEY_EXT32
              ' KEY_EXT33
              ' KEY_EXT34
              ' KEY_EXT35
              ' KEY_EXT36
              ' KEY_EXT37
              ' KEY_EXT38
              ' KEY_EXT39
              ' KEY_EXT40
              ' KEY_EXT41

              Let me know if you can figure out which keycode is PC input, I can add it as a button.

              Dirk

              Comment


                #8
                Control a Samsung Bluray player

                Is it possible to use this script to control a samsung blueray player.
                It can be controlled by a smartphone like the tv can.

                Rasmus

                Comment


                  #9
                  Originally posted by ghostrunner View Post
                  Is it possible to use this script to control a samsung blueray player.
                  It can be controlled by a smartphone like the tv can.

                  Rasmus
                  I assume you tried it and it didn't show up? Remember, you need to go into settings and allow remote access on the blue-ray and you'll have to confirm access when the plug-in tries to establish a TCP connection for the first time.

                  What I do notice with my blue-ray ( a 6500 I believe) is that is looses network (wired) connectivity and only a reboot will get it out of that state. Moreover, from time to time it is not discoverable with UPNP. Just 1/2 hour ago, I upgraded it too the latest FW version and after the upgrade the device was not discoverable until I booted it again. It now shows up.

                  Dirk

                  Comment


                    #10
                    wow something else for me to try.. hah...
                    my wife and i just got a cram session in technology... iphone for her.. epic 4g touch for me... we just bought

                    Samsung 40" LED 3D tv
                    and
                    Samsung 3d blu ray player

                    so now i have to check this plugin out.. hopefully in a week or 2...
                    HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

                    HS - HS3 Pro Edition 3.0.0.435

                    Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

                    Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

                    Comment


                      #11
                      Originally posted by TeleFragger View Post
                      wow something else for me to try.. hah...
                      my wife and i just got a cram session in technology... iphone for her.. epic 4g touch for me... we just bought

                      Samsung 40" LED 3D tv
                      and
                      Samsung 3d blu ray player

                      so now i have to check this plugin out.. hopefully in a week or 2...
                      Let us know how it went and how I can improve the plugin

                      Dirk

                      Comment


                        #12
                        Originally posted by dcorsus View Post
                        Let us know how it went and how I can improve the plugin

                        Dirk
                        gonna b a bit b4 i get to it as im still running cables.. just ordered up 2 hdmi cables and 1 vga cable from monoprice.. love that place
                        HW - i5 4570T @2.9ghz runs @11w | 8gb ram | 128gb ssd OS - Win10 x64

                        HS - HS3 Pro Edition 3.0.0.435

                        Plugins - BLRF 2.0.94.0 | Concord 4 3.1.13.10 | HSBuddy 3.9.605.5 | HSTouch Server 3.0.0.68 | RFXCOM 30.0.0.36 | X10 3.0.0.36 | Z-Wave 3.0.1.190

                        Hardware - EdgePort/4 DB9 Serial | RFXCOM 433MHz USB Transceiver | Superbus 2000 for Concord 4 | TI103 X-10 Interface | WGL Designs W800 RF | Z-Net Z-Wave Interface

                        Comment


                          #13
                          Originally posted by dcorsus View Post
                          I assume you tried it and it didn't show up? Remember, you need to go into settings and allow remote access on the blue-ray and you'll have to confirm access when the plug-in tries to establish a TCP connection for the first time.

                          What I do notice with my blue-ray ( a 6500 I believe) is that is looses network (wired) connectivity and only a reboot will get it out of that state. Moreover, from time to time it is not discoverable with UPNP. Just 1/2 hour ago, I upgraded it too the latest FW version and after the upgrade the device was not discoverable until I booted it again. It now shows up.

                          Dirk

                          So finally I got some time to check this out again.

                          I can discover my blu-ray on my android phone... But i can't get it discovered in HS...

                          Should I try to reset the plugin ?? And if yes how to do this ?

                          Rasmus

                          Comment


                            #14
                            Hi, just loaded the Samsung Remote plug-in (log below). I was thinking it would support my new Samsung E8000 that I just installed. From the log it looks like it found my TV but nothing shows up in the plug-in and no devices are created. Note - I tried the DLNA plug-in and it did find the TV but not really interested in that plug-in (it did not seem to build a useful set of devices for the TV), maybe it is not designed for that. Am I missing something?

                            4/1/2012 6:23:12 AM Plug-In Initializing Plug-in: SamsungRemote
                            4/1/2012 6:23:12 AM SamsungRemote InitIO Called
                            4/1/2012 6:23:12 AM SamsungRemote InitializeUPnPDevices called
                            4/1/2012 6:23:12 AM SamsungRemote ReadIniFile has discovered 2 device types to look for
                            4/1/2012 6:23:22 AM SamsungRemote CreateUPnPControllers created an instance of UPnPDeviceController for UPnPDevice = [TV]PN60E8000 with index 0
                            4/1/2012 6:23:22 AM SamsungRemote Initialized
                            4/1/2012 6:23:22 AM Plug-In Finished initializing plug-in SamsungRemote

                            Comment


                              #15
                              Originally posted by ghostrunner View Post
                              So finally I got some time to check this out again.

                              I can discover my blu-ray on my android phone... But i can't get it discovered in HS...

                              Should I try to reset the plugin ?? And if yes how to do this ?

                              Rasmus
                              What OS are you using? If XP, did turn SSDP and UPNP services on (they are default on in Win7 and I believe also in Vista).

                              Did you activate the plugin? If so can you turn the debug flag on (in the config screen of the plugin), save it and wait for 10 minutes. It should start a new discovery every 10 minutes, would be interesting to see what comes out.

                              Dirk

                              Comment

                              Working...
                              X