PDA

View Full Version : Run blindscan manually via command-line



electricleisure
02-11-2022, 01:52 PM
Hi everyone,

I am looking for some help with how to run a blind-scan via the command line.

I have an Edision Mio 4K+ running TNAP, which is working great. I ran a blind scan via the GUI, and while monitoring the system processes via SSH, saw the blindscan command being run:


blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2 --vertical

(I also saw it run without --vertical, to find the horizontally-polarized transponders).

Taking a look at the GUI, the scan was successful - transponders and programs were found. However, whenever I run this command myself from the terminal, I don't get any output to stdout, just a blank line. Is it possible that there are some environment variables being set by the plugin when it invokes blindscan that I'm not seeing? I welcome any suggestions, or if anyone wants to point me to the source code, I could take a look there too.

To give you more of an overall idea of what I'm trying to do: I'm planning to write a script that will periodically blindscan the arc of satellites that are available on my dish, and notify me whenever new transponders are found.

Thanks in advance!

el bandido
02-13-2022, 03:05 PM
Welcome to Legit!

You need to execute the blindscan binary in /usr/bin to make this command work:
cd /usr/bin
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2 --vertical

This command will have to be ran twice, once for horizontal, then make the needed command line changes and run it again for vertical.
Something like this:
cd /usr/bin
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2 --vertical

These commands will return whatever is found in the terminal. Some lnb types will work OK while others will need a bit of math to make the transponder frequencies read correctly. The correct math may be found in the blindscan plugin (if needed).

electricleisure
02-14-2022, 07:43 PM
Welcome to Legit!

You need to execute the blindscan binary in /usr/bin to make this command work:
cd /usr/bin
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2 --vertical

This command will have to be ran twice, once for horizontal, then make the needed command line changes and run it again for vertical.
Something like this:
cd /usr/bin
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2
./blindscan --start=950 --stop=1550 --min=1 --max=60 --slot=0 --i2c=2 --vertical

These commands will return whatever is found in the terminal. Some lnb types will work OK while others will need a bit of math to make the transponder frequencies read correctly. The correct math may be found in the blindscan plugin (if needed).

Thanks for the help! I think part of the issue is that I had the receiver in "standby" when I was running those commands. When I have the receiver GUI on and have it tuned to a program, I get output from blindscan. Do you know if there is a way to have that work, without needing to have the GUI up or a program tuned? I also noticed that blindscan wasn't able to differentiate between vertical and horizontal (I assume that's because I had a program from a horizontal transponder tuned while running the scan). Here's an example on 103W Ku:


[Only registered and activated users can see links]
OK HORIZONTAL 10708000 1013000 DVB-S INVERSION_AUTO PILOT_OFF FEC_AUTO QPSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 10760000 29999000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 10880000 30002000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 10911000 4600000 DVB-S2 INVERSION_AUTO PILOT_OFF FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 10929000 4600000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 10935000 4600000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 11080000 29968000 DVB-S2 INVERSION_AUTO PILOT_OFF FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK HORIZONTAL 11120000 29999000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0
[Only registered and activated users can see links]
OK VERTICAL 10708000 1013000 DVB-S INVERSION_AUTO PILOT_OFF FEC_AUTO QPSK ROLLOFF_35 1 -1 0
OK VERTICAL 10760000 29997000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 10880000 30002000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 10911000 4600000 DVB-S2 INVERSION_AUTO PILOT_OFF FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 10929000 4600000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 10935000 4600000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_3_4 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 11080000 29971000 DVB-S2 INVERSION_AUTO PILOT_OFF FEC_5_6 8PSK ROLLOFF_35 1 -1 0
OK VERTICAL 11120000 29999000 DVB-S2 INVERSION_AUTO PILOT_ON FEC_5_6 8PSK ROLLOFF_35 1 -1 0

Thanks a lot!