[How-To] Remote Control Signal Over Lan?

Here are software that related with Samsung B series TVs. Like hex editors, new version of BusyBox or internal software, app programs that will run in your TV hardware.:!:This forum is NOT FOR USER QUESTIONS or Problems.

moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Remote LAN Control (v0.7)

Post by moras86 »

Here you go new download.

This remind me I need finish and test next version ;)
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
nuts

Re: [How-To] Remote Control Signal Over Lan?

Post by nuts »

Mhm I was looking for the sourcecode to understand the magic behind SOAP/Upnp mode. :)
Imho closesource autoit-scripts makes no sense, but its your choice of course (I will not decompile it).

Anyway - thanks for your work and for the new downloadlink!
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Remote LAN Control (v0.7)

Post by moras86 »

Don't know what your mean with close source. I include my app source.
Look inside archive - src.zip -> RLC_v07.au3
You can find SOAP functions from line 1994.

I also describe how it work couple pages back.
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
nuts

Re: [How-To] Remote Control Signal Over Lan?

Post by nuts »

Oh sorry - my fault. (did not notice src.zip)
vayaasco
Posts: 2
Joined: Tue May 22, 2012 3:36 pm

Re: [How-To] Remote Control Signal Over Lan?

Post by vayaasco »

It is possible to sent Factory and 3Speed commands described in this thread (viewtopic.php?f=16&t=3104) with Remote LAN Control with the option Options->Configuration->Keycode test? Is possible to release a version with this implemented in two buttons? I think that is very interesting for Samsung TV users if it is possible.

Thanks!
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Re: [How-To] Remote Control Signal Over Lan?

Post by moras86 »

No Keycode test is only for A-series and B-series TV.

I plan implement full support for D-series when I figure out how it works.
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)
smalis
Posts: 1
Joined: Wed Jul 25, 2012 2:58 pm

Re: [How-To] Remote Control Signal Over Lan?

Post by smalis »

Would it be possible to control a D or E series with IRule, by connecting through a network gateway, specifying IP address and port number?
and7ey
Posts: 8
Joined: Thu Feb 16, 2012 6:25 pm

Re: [How-To] Remote Control Signal Over Lan?

Post by and7ey »

is there any way to switch TV on via LAN?
UE46B8000
and7ey
Posts: 8
Joined: Thu Feb 16, 2012 6:25 pm

Re: [How-To] Remote Control Signal Over Lan?

Post by and7ey »

Just in case somebody needs it - the python code below allows you to open the videofile from NFS share in B-series mediaplayer from your PC (I use Total Commander, Start menu - file to be opened to be passed as first parameter, like tv_show_movie.py \\your-server\video\The file name of your movie.mkv):

Code: Select all

#----------------------------------------------------------------------
#  Copyright (c) 2012, and7ey@gmail.com
#
#  This script opens the file given as the first command line argument
#  at Samsung's TV Media Player (tested with UE46B8000).
#
#  To be used with Python 2.5 on Windows.
#
#  TV should be switched on.
#  Remote LAN Control service should be started on TV (http://wiki.samygo.tv/index.php5/Content_Library_applications_list#Remote_LAN_Control)
#
#  Change your TV's IP below and check the sequence of keys in the code to start.
#
#----------------------------------------------------------------------
#coding=utf-8
#!/usr/bin/env python
import sys
import telnetlib
import socket
import time
import os.path
import msvcrt

TV_IP = "192.168.1.5"
TV_LAN_REMOTE_PORT = 2345

# list of key_codes is available at
# http://forum.samygo.tv/viewtopic.php?f=5&t=190&start=20#p4730
def send_key(key_code, pause):
    try:
        tn = telnetlib.Telnet(TV_IP, TV_LAN_REMOTE_PORT)
        tn.write(str(int(key_code, 16)) + "\n") # convert hex value to dec
        tn.close()
        time.sleep(pause)
    except socket.error, (ecode, reason): # socket.error is part of IOError since Python 2.6
        if ecode == 10061:
          print "ERROR: No connection with Remote LAN Control service on TV. Please start it."
        elif ecode == 10060:
            print "ERROR: No connection with TV. Please switch it on."
        print "ERROR: " + str(ecode) + ": " + reason
        raw_input("Press Enter...")
        sys.exit(0)


print "If you've just switched the TV on, wait 20 secs for NFS share to connect. Otherwise, press any key to continue."
for i in range(20):
    if msvcrt.kbhit():
        msvcrt.getch()
        break
    print("Time passed: " + str(i+1))
    time.sleep(1)

print "Moving to Media Player screen, NFS share..."
# pressing keys to open Media Player on TV and according Video folder
send_key("8C", 3) # KEY_8C_MEDIA.P
send_key("62", 1) # KEY_62_RIGHT
send_key("62", 1) # KEY_62_RIGHT
send_key("68", 1) # KEY_68_ENTER
send_key("68", 1) # KEY_68_ENTER
send_key("62", 1) # KEY_62_RIGHT
send_key("62", 1) # KEY_62_RIGHT
send_key("68", 1) # KEY_68_ENTER
print "Movement completed."

# trying to identify how many times we should press RIGHT key
file_seq_number = 0
try:
    directory, file = os.path.split(sys.argv[1])
    # http://stackoverflow.com/questions/11782109/how-to-get-sequence-number-of-the-file-in-the-folder
    def sort_func(fname):
        # Russian directories, English directories, Russian files, then English files
        fullname = os.path.join(directory,fname)
        isRussian = any(ord(x) > 127 for x in fullname)
        isDirectory = os.path.isdir(fullname)
        return (not isDirectory, not isRussian, fullname)
    files = sorted(os.listdir(directory), key=sort_func)
    file_seq_number = files.index(file) + 1
except IndexError:
    print "ERROR: No command line arguments given."

if file_seq_number>0:
    print "Moving to the according file #%d (%s)..." % (file_seq_number, file)
# pressing RIGHT key to highlight the file
for i in range(file_seq_number):
    send_key("62", 1)
print("Completed.")
UE46B8000
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Remote LAN Control (v0.8) - Desktop app

Post by moras86 »

After long time new version avalible
Remote LAN Control - Desktop app (v0.8)

Image


Changes in version 0.8:
  • some changes in config dialog
  • in SOAP mode add up/down buttons
  • 'Set all' button in SOAP mode
  • in A-series remote scheme add extra buttons panel with supported keys (with changed 'DVB signal' sequence) - thanks for tom_van for keycodes
  • allow check all UPnP devices avalible at local network (look at top menu 'File')
  • for B650 add menu for run Content Library 'Games' (allow set up to 10 first apps with some options)
  • change drop-down list style for set remote model
  • small fix for A-series button function
  • some labels can be show as unicode symbors (better view)
  • small changes for smoother draw controls on main GUI
  • add menu for donation
  • readme now in HTML format; add full list of knowing keycodes (for B and partly A-series)
  • reduce exe file size about ~20% ! (use lighter versions for some libraries and change UPX parameters)
  • update AutoIt version to 3.3.8.0
  • incude integrated udf's for easy compilation
Thanks for test early beta version: Download: Remote LAN Control (v0.8) - Desktop app
File size: 0,7 MB
(Include AutoIt source, images and libraries needs for compile this app)

Cheers ;)
Image . Image
TV LCD: Samsung LE40B651T3W (CI) | Internet@TV | fw: 2005 (patched: SamyGO v0.24 + GMT2, ArFIX2, ADFIX) | matrix: SQ04
BluRay: Samsung BD-D5300-ZF | SamsungApps | fw: 1013
Android-Box: Zidoo X8 | Realtek RTD1295 64bit (QuadCore), Mali-T820 GPU, 2 GB RAM, HDMI IN record, Android 6.0 | ZDMC 17.1
my projects: Remote LAN Control - Desktop app (v0.8) | Signal checker for DVB-T (v0.3)

Post Reply

Return to “[B] Software”