[App] Check DVB-T signal strength via LAN

Ideas and dreaming will go this forum

User avatar
erdem_ua
SamyGO Admin
Posts: 3125
Joined: Thu Oct 01, 2009 6:02 am
Location: Istanbul, Turkey
Contact:

Re: Check DVB-T signal strength via LAN. Possible?

Post by erdem_ua »

Wow liked the image :)
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Check DVB-T signal strength via LAN. Possible?

Post by jw1001 »

moras86 wrote:Tray make desktop app using AutoIt but got problem with connection. Can someone look at this simple code:

Code: Select all

$ip = "192.168.1.10"
$port = "2356"

$start = TCPStartup()
$socket = TCPListen($ip, $port)
While 1
    $accepted = TCPAccept($socket)
	sleep(500)
	If MsgBox(1, "TCP tests", "Start: " & $start & @CRLF & "Listen: " & $socket & @CRLF & "Accept: " & $accepted) = 2 Then
		Exit
	EndIf
	If $accepted <> -1 Then
		$recv = TCPRecv($accepted, 5000)
		If $recv <> "" Then MsgBox(4096, "recv", $recv)
	EndIf
WEnd

func onautoitexit()
	TCPclosesocket($accepted)
	TCPshutdown()
endfunc
$socket = TCPListen($ip, $port)
produces error 10049: "Cannot assign requested address." Probably because it's not local to PC. Try 127.0.0.1
User avatar
juusso
SamyGO Moderator
Posts: 10129
Joined: Sun Mar 07, 2010 6:20 pm

Re: Check DVB-T signal strength via LAN. Possible?

Post by juusso »

You must declare variables:

Code: Select all

Global $IPaddr, $ip, $port, $start, $socket, $accepted
So the code works for me:

Code: Select all

Opt('MustDeclareVars', 1)

Global $IPaddr, $ip, $port, $start, $socket, $accepted


$ip = "192.168.1.10"
    $port = "2356"

    $start = TCPStartup()
    $socket = TCPListen($ip, $port)

    While 1
		;TCPStartup()
        $accepted = TCPAccept($socket)

       sleep(500)

       If MsgBox(1, "TCP tests", "Start: " & $start & @CRLF & "Listen: " & $socket & @CRLF & "Accept: " & $accepted) = 2 Then
          Exit
       EndIf

       If $accepted <> -1 Then
          $recv = TCPRecv($accepted, 5000)
          If $recv <> "" Then MsgBox(4096, "recv", $recv)
       EndIf

    WEnd

    func onautoitexit()
       TCPclosesocket($accepted)
       TCPshutdown()
    endfunc
I do not know what result should it give me, but i get pop up with text: "start = true, listen =-1, Accept=-1" . Is it what you need? I didn`t try it with sbav1 app, so i just checked if au3 runs without errors or not.
LE40B653T5W,UE40D6750,UE65Q8C
Have questions? Read SamyGO Wiki, Search on forum first!
FFB (v0.8), FFB for CI+ . Get root on: C series, D series, E series, F series, H series. rooting K series, exeDSP/exeTV patches[C/D/E/F/H]

DO NOT EVER INSTALL FIRMWARE UPGRADE
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

Check DVB-T signal strength via LAN - Desktop app

Post by moras86 »

Find one error:

Code: Select all

$port = "2346"
@jjw1001 for me need to be 192.168.1.10 and always port 2346 (work when use PuTTy and RAW connection).

@juuso this same for me. First MsgBox is only for check connection with TV. If TCPListen() or TCPAccept() return -1 there is no connection.
There should be all good and then app show next MsgBox with text reads from TV (something like " 78 0 ").
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)
jw1001
Posts: 166
Joined: Mon Dec 07, 2009 4:58 pm

Re: Check DVB-T signal strength via LAN. Possible?

Post by jw1001 »

With local loopback or the address assigned to my PC LAN card, I get

Start: True
Listen: 440 (or some other value)
Accept: -1
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

[App] Signal checker for DVB-T (v0.1)

Post by moras86 »

It's take some time, but now I back to this topic with working desktop app :D

Signal checker for DVB-T

Download
(include AutoIt source)

Instruction:
  • download Content Library app Signal Strength & Remote and run it on TV
  • download this desktop app and set IP of your TV in config.ini file
  • run this app ;)
Image

There is problem with checking quality, but this is TV app question. :cry:


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)
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

[App] Signal checker for DVB-T (v0.2)

Post by moras86 »

First update for app.

Signal checker for DVB-T v0.2

Download
(include AutoIt source)

Image
Changes:
  • check signal now possible also manual way (default)
  • add context menu
  • add about dialog
  • add Configuration Window
  • change frequency option unit to second
  • add option to allow hide quality bar
  • add some tooltips
  • some small GUI & app improvements
  • small clean-up source code
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)
geo650
Official SamyGO Developer
Posts: 303
Joined: Wed Oct 07, 2009 12:03 pm

Re: [App] Signal checker for DVB-T (v0.2)

Post by geo650 »

moras86 wrote:...Signal checker for DVB-T v0.2...
An idea for developers: JAVA client application for mobile phones for all people walking on their roofs. ;)
Cheers!
moras86
Official SamyGO Developer
Posts: 180
Joined: Sun Feb 21, 2010 3:18 pm
Location: Poland
Contact:

[App] Signal checker for DVB-T (v0.3)

Post by moras86 »

More than 5000 download of previous version and any comments here. :(
Anyway new version available.

Signal checker for DVB-T v0.3

Download
(include AutoIt source and TV app)

Image
Changes:
  • add optional buttons for switch between 3 MUX-es
  • add buttons for change channels up/down and PRE-CH
  • text-to-speech for read current signal value (need at least WinXP) :!:
  • beep function as represent for signal strenght parameter
  • show maximum and minimum signal strenght with time (as tooltip) :!:
  • add top main menu (with option to hide it)
  • allow to disable progress-bar animation (Windows 7 and maybe Vista)
  • add protection for save bad values (non-numeric or out of scale) from inputbox
  • add menu for donation
  • small reduce exe file size
  • add more descriptions to exe file
  • many other small changes in GUI and code
  • update AutoIt version to 3.3.8.0
  • include integrated udf's for easy compilation
PS: Text-to-speech and beep functions are default disabled. Please check Configuration dialog and set it if your like. ;)


Thanks to geo650 for help with testing and suggestions.

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)
barrypat
Posts: 4
Joined: Mon Sep 02, 2013 1:09 pm

Re: [App] Check DVB-T signal strength via LAN

Post by barrypat »

Hello

This looks like a great tool for use to adjust the satellite dish.
Please could you tell me if this works on Samsung D series.
I have installed the application on my PC, but now need to install the code in the TV. My TV has the SamyGo app installed, and I can FTP to port 23.

If this Signal strength application works on the D series, please can you explain what I need to do to get the TV code installed.
Many thanks and kind regards
Barry Paterson

Post Reply

Return to “[B] Brainstorm”