Dev_StreamRead - AltDVB interface to StreamReader.dll

Announcements and general discussions
Post Reply
User avatar
altxro
Site Admin
Posts: 42
Joined: Fri Jan 03, 2020 7:25 pm
Location: Cluj-Napoca
Contact:

Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by altxro »

I wrote a simple interface to the StreamReader.dll library. Most of the tuner parameters (Modulation, FEC, MIS/PLS, Rolloff, Pilot) are sent to the dll if there is a correspondence between my internal coding and values expected by library. Raw DiSEqC is also supported,if hardware has this capablility.

Download and extract it into the .\AltDVB\Devices folder.
https://www.altx.ro/download/Dev_Stream ... 3.0.17.zip

You also have to download the StreamReader.dll and extract it into AltDVB folder.
https://sourceforge.net/projects/crazys ... Ex-BDA.rar
...or the latest test version from here:
http://crazycat69.narod.ru/sattelite/St ... Ex-BDA.rar

Many thanks to Crazycat for his nice and complex piece of software !
crazycat
Posts: 11
Joined: Sat Jan 04, 2020 7:50 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by crazycat »

Thanks, work well :)
uli
Posts: 13
Joined: Thu Feb 27, 2020 6:42 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by uli »

thanks. I tested with

StreamReaderEx BDA Ver:1.2.4.52-commited (Feb 3 2018, 19:08:52)
Log level = 2


LogiLink VG0022A v2.0
IT9300 BDA Device
Name: SI2168 BDA Filter
Type: DVB-T/T2
Tuner/Capture filter: SI2168 BDA Filter

works fine


TechniSat SkyStar 2 eXpress HD
Name: TechniSat BDA Digital Tuner
Type: DVB-S/S2
Tuner filter: TechniSat BDA Digital Tuner
Capture filter: TechniSat BDA Digital Capture
Tuner IC: STV6110
Frontend/demod IC: STV090X (cut 3.0)
Techisat-NXP STV6110/STV090X direct control used !

MIS not tested, non MIS works fine, but

after start
pol 0 (first line in code) is ok

Code: Select all

19:38:06 - 21/05/2020 SetChannelExEx(11836000, 27500000, 0, 3, 9750000, 10600000, 11700000, 1, 0, 0, 0)
19:38:07 - 21/05/2020 Signal RFLevel=-66 dBm
19:38:07 - 21/05/2020 Locked: SNR=10.200000 dB, BER=0.000000, Level=50%, Quality=100%
19:38:07 - 21/05/2020 Current Frequency: 11836.156 Mhz
19:38:07 - 21/05/2020 Current SymbolRate: 27501 KS/s
19:38:07 - 21/05/2020 Current Spectral Inversion: INVERTED
19:38:07 - 21/05/2020 Current Modulation: QPSK
19:38:07 - 21/05/2020 Current Inner FEC Method: Viterbi
19:38:07 - 21/05/2020 Current Inner FEC Rate: 3/4
19:38:07 - 21/05/2020 Current Outer FEC Method: Reed-Solomon 204/188
19:38:07 - 21/05/2020 Current Pilot: OFF
19:38:07 - 21/05/2020 Current RollOff: 0.35

on exit
pol 4294967295 (first line in code) ???

Code: Select all

19:38:11 - 21/05/2020 SetChannelExEx(11836000, 27500000, 4294967295, 3, 9750000, 10600000, 11700000, 1, 0, 0, 0)
19:38:12 - 21/05/2020 STV090X_Search() - Search failed
19:38:12 - 21/05/2020 TS_STV090X_Tune() : failed !
19:38:12 - 21/05/2020 	Unbekannter Fehler
19:38:12 - 21/05/2020 Signal RFLevel=-89 dBm
19:38:12 - 21/05/2020 Not lock !
SetChannelExEx should not be called with pol 4294967295
User avatar
altxro
Site Admin
Posts: 42
Joined: Fri Jan 03, 2020 7:25 pm
Location: Cluj-Napoca
Contact:

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by altxro »

Thank you for testing ! Before quitting application I send one last tuner request with polarity = DVBS_LNB_POWEROFF (see Settings->General-> [x] PowerOff LNB on exit ) which is translated into StreamReader's API POLARIZATION.POL_NONE = -1 = (DWORD) 0xFFFFFFFF = 4294967295.
It shouldn't be a problem, I'm pretty sure Crazycat ignores the wrong polarity values :)
crazycat
Posts: 11
Joined: Sat Jan 04, 2020 7:50 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by crazycat »

LNP power disabled, but carrier search attempt failed - so log correct :)
uli
Posts: 13
Joined: Thu Feb 27, 2020 6:42 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by uli »

PowerOff LNB on exit is a good feature, but...

I had a look at the logfiles, did not measure LNB Power (Voltage).
Settings->General-> [x] PowerOff LNB on exit has no effect on "LNB power-off ok !" in StreamReader.log

Code: Select all

19:38:12 - 21/05/2020 LNB power-off ok !
It is controlled by LNBPwrOff=... in StreamReader.ini
uli
Posts: 13
Joined: Thu Feb 27, 2020 6:42 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by uli »

Settings->General-> [x] PowerOff LNB on exit seems to work if

Code: Select all

LNBPwrOff=0
in StreamReader.ini
is
LNBPwrOff=1 ; Power-off LNB on stop (always).
LNBPwrOff=0 ; Power-off LNB controlled by DVB-Application
?
uli
Posts: 13
Joined: Thu Feb 27, 2020 6:42 pm

Re: Dev_StreamRead - AltDVB interface to StreamReader.dll

Post by uli »

When LNB is powered by Set Top Box (DVB-Card in PC connected to loop out of STB) It (AltDVB and StreamReader) works fine, no error message (Unbekannter Fehler) in logfile.

Where is documentation of StreamReader's API?

in
https://sourceforge.net/p/crazyscan/cod ... amReader.h
is
pol: 0 = horz, 1 = vert
no Power Off LNB
is pol: 4294967295 = Power Off LNB an undocumented feature?
Or is pol: > 1 = Power Off LNB?
Post Reply