chinesebob
Registered:1253157422 Posts: 238
Posted 1301734021
Reply with quote
#1
I decided to learn C this week, and for my first C program ever I've started this blindscan tool to use with my Prof tunerhttp://chinesebob.net/dvb/blindscan-s2/ It's still pretty basic but has enough function to run a scan, it will step through a range of transponders on a given sr, and calculate for an lnb if you give it one. I don't have any motor or diseqc stuff in it yet, just the basics to get the scan started. Many thanks to UDL, as I dug though much of tune-s2 to get the bits I couldn't figure out.
chinesebob
Registered:1253157422 Posts: 238
starman345
Registered:1193615332 Posts: 640
Posted 1301781457
Reply with quote
#3
I'm amazed you have learned so much in a week, you didn't even do the "hello world " program??I ran make on the files and it generated a blindscan-s2 executable but I can't get it to run, my programming skills are at the "hello world" level so lead me along here.
I keep getting a "command not found" message in the terminal window when I try to run the program. I have a Prof 7301 and Prof 8000, is the fact there are two cards in the machine confusing the program or is it me who is confused? I suspect the latter......
__________________ 10' c/ku, Bullseye II Gbox 3000 90cm ku, SG-2100
Prof 7301 PCI
TBS 8922 PCI
TBS 6925 PCI-E
chinesebob
Registered:1253157422 Posts: 238
Posted 1301782913
Reply with quote
#4
I did do a hello world and about five other examples from this ANSI C book from 1988 but, I guess I didn't consider those programs, command not found sounds like a message from your shell, if you didn't run "sudo make install" the command would not be copied to a bin directory in your path and you would need to run "./blindscan-s2" to execute it from your current directory.
chinesebob
Registered:1253157422 Posts: 238
Posted 1301784666
Reply with quote
#5
I forgot to mention this uses a part of UDLs driver patch to get some tuned properties from the driver, it will still give SNR and step through frequencies without the UDL patch but, for the Symbol rate you'd have to look in dmesg or use the patch, I'm trying to figure out if there's a good way to get the SR without the driver patch.
starman345
Registered:1193615332 Posts: 640
Posted 1301791672
Reply with quote
#6
Ok about the patch, I'll have a look at that. You were correct, ./blindscan-s2 put the program in gear. I scanned a couple of satellites but no transponders logged, does it output finds to a file or notify as the scan progresses? I entered search parameters of a known transponder and set a known SR..I have a 22khz switch in the mix, I"ll take that out tomorrow and try it straight through. I set adapter to 0(default) but don't know if that is my 7301 or not, just trial and error to find out, there are three dvb cards in the machine but only the 7301 is connected to satellite.A very nice piece of work, I hope you post any new work you do with it here,
__________________ 10' c/ku, Bullseye II Gbox 3000 90cm ku, SG-2100
Prof 7301 PCI
TBS 8922 PCI
TBS 6925 PCI-E
updatelee
Registered:1191785980 Posts: 3,107
Posted 1301807637
Reply with quote
#7
I really found the Deitel & Deitel books excellent for learning C++/C take a look at the driver src, I cant rem off hand and I dont have it infront of me but If I rem the default search spread is +/-5mhz so you should be able to skep by 10mhz, you may miss some of the really small SR stuff, but those are hard to hit everytime anyhow.
__________________ TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD Hauppauge 950Q/Aero/Aero-m, Kworld 330U/435v3/445v3 I use Linux and support open source projects Download my opensrc projects at http://updatelee.blogspot.com
chinesebob
Registered:1253157422 Posts: 238
Posted 1301820923
Reply with quote
#8
Thanks for the book tip UDL, I'll check those out. I'm pretty sure I have it outputting the correct SRs now and uploaded another snapshot from today. There is some strangeness going from scanning a big SR to a little one or back and forth, it seems like it gets stuck on one sometimes for no reason, and can't lock anything for the rest of the scan. It works much better on my Ku dish but, that's probably because all the transponders on that one have big SRs.
starman345
Registered:1193615332 Posts: 640
Posted 1301842503
Reply with quote
#9
blindscan-s2$ ./blindscan-s2 -b -s 3700 -e 4200 -t 4 -r 9983 -l 5150
I used the above line to start the newest Apr03 version but it won't start, there is no message, the cursor sits there blinking and after 30 seconds or so the program returns me to the command line, the same line executes the previous version. I notice in the usage legend you make reference to 950-1450 for start and stop freq values but in the executable example you show 11700-11900. I'm guessing 950-1450 is correct, then the values are calculated from the entered lof of the lnb?
I'm trying to get the program to scan 3991H SR 9983 on Galaxy 19 C Band.
__________________ 10' c/ku, Bullseye II Gbox 3000 90cm ku, SG-2100
Prof 7301 PCI
TBS 8922 PCI
TBS 6925 PCI-E
pendragon
Registered:1226773952 Posts: 1,012
Posted 1301843364
Reply with quote
#10
The way the driver appears to be written and the way it actually works are two different things, particularly when it comes to blindscan. The bugs are in both in the demod hardware and the driver software. It's not just the Linux implementation. I see similar problems manifested in the STB I have that uses the same chip set (Pansat 9200HD DVB-S2 Plus card).
All of this can apparently be mitigated. After rewriting a fair fraction of the driver and incorporating a number of improvements and bug fixes into the kernel, I can make this chip blindscan much faster and more accurately than my STB. However the end doesn't appear to be in sight as I keep finding other issues with the demod chip. And for now, all work has been shelved as there's chance I may have to move to the east coast. If that happens I would hope to haul all my FTA stuff out there, but it would depend on finding a location friendly to my obsessions. Until things become clearer, it's hard to put much effort into this.
starman345
Registered:1193615332 Posts: 640
Posted 1301844559
Reply with quote
#11
Quote:
Originally Posted by pendragon I may have to move to the east coast. If that happens I would hope to haul all my FTA stuff out there, but it would depend on finding a location friendly to my obsessions. Until things become clearer, it's hard to put much effort into this.
That sounds to me like an opportunity to rid yourself of the restrictions (satellite related) at your present location, that is of course if you are not required by work to re-locate to an urban center....ah to live in the country, satellite dishes everywhere!
__________________ 10' c/ku, Bullseye II Gbox 3000 90cm ku, SG-2100
Prof 7301 PCI
TBS 8922 PCI
TBS 6925 PCI-E
updatelee
Registered:1191785980 Posts: 3,107
Posted 1301846817
Reply with quote
#12
There's some nice places on the east coast, I spend a week in Virginia last month and really enjoyed it alot. Really nice there.
__________________ TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD Hauppauge 950Q/Aero/Aero-m, Kworld 330U/435v3/445v3 I use Linux and support open source projects Download my opensrc projects at http://updatelee.blogspot.com
pendragon
Registered:1226773952 Posts: 1,012
Posted 1301848773
Reply with quote
#13
With 15 dishes, it's not as though I'm feeling terribly constrained at the moment
The move would be to NYC. I wouldn't mind commuting if I could find something with a clear view and flexible zoning. Being able to use my circular C-band ortho on more birds, compared to Denver, might deaden the pain of having to reinstall everything.
bluzee
Registered:1227721584 Posts: 2,186
Posted 1301849239
Reply with quote
#14
Cool to see so many Linux people on this forum. I was on one forum where you didn't dare mention that you used Linux. If you didn't use XP and stream to VLC with TSReader you were pretty much considered pagan. Anyhoo, back to blindscan.... Don't have a PROF but do have a DVBWorld with a DS3000. No blindscan software for that in Linux and a couple problems with the linux driver to be worked out as yet too. I recently did manage to steal an old XP box and the blindscan seems pretty decent although I could only get C Band to work with their windows software. Faster than any STB I've ever used and it seemed to find pretty much everything. That box was too slow to watch any video on though and I haven't been able to get windows to install on my new computer. Linux works fine and I haven't had a reason to use windows until now if I want blind scan. Wondering if the DS3000 might not be a better chip to look at for this? How well are the PROFS working in Linux? Problem I have with the PCI2004D DVBWorld is 1) can only play a stream from a DVB-S channel once after boot up then have to power down and restart before I can play another DVB-S. 2) low SR feeds tune but I can't play a stream from them. Both of these problems happen in windows too, but only some of the time. Igor said he would look into the low SR issue, didn't say anything about the DVB-S issue. Wondering if I shouldn't just buy a PROF. I still have a twinhan for DVB-S so I'm not hooped at least. Wish I had found this forum sooner. Before I bought the DVBWorld. For all I use the card for it's doing the trick for now though. Plays CBS HD perfectly.
bluzee
Registered:1227721584 Posts: 2,186
Posted 1301849428
Reply with quote
#15
East coast would be great. Can see all the sats over the Atlantic. My dish is almost vertical looking at I 805. Everything else is below the horizon. Handy for dumping snow off the dish though.