Welcome to GOFASTMOTORSPORTS.com ... ... ... Green Flag - Green Flag - Go Go Go ... ... Brought to you by Ricks Satellite - Where the Big Dish Rules!

Ricks Satellite Wildfeed and Backhaul Forum
Register Latest Topics
 
 
 


Reply
  Author   Comment   Page 1 of 21      1   2   3   4   Next   »
midwestmac

Registered:
Posts: 2,275
Reply with quote  #1 
Quote:
Originally Posted by andyinyakima
midwestmac,

My approach is going to be a KIS approach. Did you take a look at TS 102 771. Look at section 6.4.1 the receiver profiles, you'll notice 3 scenarios.

I am not interested in the first 2 scenarios at present just the basic broadcasting terminal.

Next look close at Fig 12. it shows 3 points to discard packets. One of those discard places is the EPU fetcher. I am starting to think this is close to the demodulator.  

Anyhow the basic broadcasting terminal refers to clause 5.4 which is IPTV which I am the most interested in at present. This scenario also uses "no label". Anything with a label should be able to be discarded at the EPU analyser. After that I think the EPU dispatcher can push things into the proper buffers.

Using the KIS approach I wanted to select one pid hopefully a video PID, discard everything but that pid's and it's frag ids. If that can be accomplished than I will be starting to understand the protocol.

Anyhow I am trying to find out where to start this discarding scheme.


Andy I moved this we'll start another thread on this if its ok.
https://launchpad.net/libgse/

I was looking at the source code "tunnel.c" there under   app/tunnel/tunnel.c
Have you seen this link above maybe that can give you some ideas.
I don't know anything other than this is probably for an app were you know the ip and port I think?

__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
crazycat

Avatar / Picture

Registered:
Posts: 1,037
Reply with quote  #2 
libgse part of OpenSAND platform
__________________
Strong offset dish 0.95m on Powertech DG240 motor + ALPS BSTE8-751B Ku-Universal LNB. Variant CA-902 0.95 offset dish with 3xDreamSat DS-8 Ku-Universal LNBs (13E+4.8E+4W) + Variant CA-600 Ku-Circular LNB 36E + DiseqC 1.0. STB: GI8120 Lite. PC DVB: Omicom S2 PCI; TBS 6983 PCI; TBS QBox-CI USB(5980), 5927.
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #3 
midwestmac,

I found the code and down loaded it.

I think it is aimed at 6 byte label and two way simulation.
I read in the changelog:

29 May 2012 - release 1.0.1
  first public release of GSE library
  some standard secifications are not implemented
    - no "3-byte label", "label re-use" and "no label" support
    - no extension support


I am trying to grasp the deencap.c code, that and some of the files in common.

Time will tell if it is useful. The guys who wrote it might have been there at the start of GSE.

The more one looks at it the more a person might understand all of GSE capabilities.


__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
midwestmac

Registered:
Posts: 2,275
Reply with quote  #4 
Thankyou for stopping by crazycat. Just trying to get some ideas.
 Your streamreader demo seems to record raw stream good. Are you happy with it?
I made some recordings to be looked at.
I have tried everything. I have also tried locking continous streams with your BDAdataEX (no lock)then reading that with wireshark, Did not work[frown]
What do you think about that opensand project Linux code? Help at all?  Just looking for BBframe magic.

Added: Just saw your post andy I'm a slow typer. Back to more reading..





__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #5 
Sight with some wireshark code for BB and GSE



https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7518#c10

I read a little and find some topic that's new to me, punch it into google and come up with new code.

I'll compare the code and write notes. May get there before DVB-S3. lol


Stuck this in the old thread. Restuck it here[smile]

__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
midwestmac

Registered:
Posts: 2,275
Reply with quote  #6 
Thanks ANDY I keep reading and reading trying to learn more.
From what I can see from a recording I made the bbheaders are easy to find. Now I can't really find the GSE header.
I thought it was 14 bytes long right after the bb header but now I'm stuck it might be 12 bytes (it varies) might be 6.
I have found some consistent PDU following the BBheader though.

As far as the BBheader Not sure I search for BBheaders just starting with 42 00 And found 3 million of the 42 00
when the header is for example 42 00 00 00 2d 70 47 00 00 92  or  42 00 02 00 80 E6 01 B5 B8 0B
The BBheader will start at either 42 00 00 00  or it might be 42 00 02 00 the last six bytes will change on the data length and other stuff
And my recording might be who knows three streams?
 Ps. I sent you a P.M. with a download link if you want it

__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #7 
midwestmac,

My first attempt to break a BBHeader and GSEHeader down is below.

There are discrepencies but maybe eventually will find out why. 
But I think we're getting closer.
I think your 42 00 00 00 was a very good lead in.

Look it over and let me know where it seems off the path.


=======================

42 00 00 00 12 88 76 00 00 15 C2 4D 00 02 00 80 16 05 D2 C6 4C 00 01

42 00 00 00 12 88 76 00 00 15  << BB Header

First byte 1st Nibble
4 = 0100 = Generic continuous

First byte 2nd Nibble
2 = 0010 = Roll off 0.20

Second Byte = reserved MATYPE

Third Byte = User Payload Length (1st of 2 Bytes)
00
Fourth Byte= User Payload Length (2nd of 2 bytes)
00 in Generic Stream 0000 means continuous

Fifth Byte = Data Field Length in bits first byte
12
Sixth Byte = Data Field Length in bits second byte
88
Total bits = 4744 = 593 Bytes

Seventh Byte = Sync for continuous stream 00-B8 copy of User Packet Sync Byte
76

Eight Byte = First part of SyncD
00
Ninth Byte = Second part of SyncD =00 00 for Generic Stream
00
Tenth Byte = CRC-8 error detection for first 9 bytes of BB Header
15
=========================================
C2 4D 00 02 00 80 16 05 D2 C6 4C 00 01  << GSE Header

First Byte First Nibble
C=1100 = Start and End bits plus Label type=00= 6 byte label

First Byte Second Nibble
is actually part of 12bit GSE length
2 here = 512 bytes

Second Byte = GSE length
4D here = 77 add this to above = 589 Bytes for GSE Length

Third Byte = Fragment ID
00 = no fragment ID

Fourth Byte = 1st byte of total length
02 = 512 bytes total length

Fifth Byte = 2nd byte of total length
00 = 0 bytes added to first byte

Sixth Byte = 1st byte of Protocol Type == more study
80
Seventh Byte = 2nd byte of Protocol type
16

Eight to Thirteenth Bytes may or may not be there
in this case it is a 6 byte label
05 D2 C6 4C 00 01



42 00 00 00 12 88 76 00 00 15 C2 4D 00 02 00 80 16 05 D2 C6 4C 00 01 45 00 02 40 42 5F 00 00 33 06 AB E0 AD C2 73 71 42 CF 33 76 00 50 C1 A3 F9 8A 64 3A 64 2B FB 37 50 10 A7 94 46 3C 00 00 50 3D 22 54 68 69 73 20 69 73 20 6E 6F 74 20 61 20 50 33 50 20 70 6F 6C 69 63 79 21 20 53 65 65 20 68 74 74 70 3A 2F 2F 77 77 77 2E 67 6F 6F 67 6C 47 49 4E 0D 0A 41 6C 74 65 72 6E 61 74 65 2D 50 72 6F 74 6F 63 6F 6C 3A 20 38 30 3A 71 75 69 63 0D 0A 0D 0A 3C 21 64 6F 63 74 79 70 65 20 68 74 6D 6C 3E 3C 68 74 6D 6C 20 69 74 65 6D 73 63 6F 70 65 3D 22 22 20 69 74 65 6D 74 79 70 65 3D 22 68 74 74 70 3A 2F 2F 73 63 68 65 6D 61 2E 6F 72 67 2F 57 65 62 50 61 67 65 22 20 6C 61 6E 67 3D 22 65 6E 22 3E 3C 68 65 61 64 3E 3C 6D 65 74 61 20 63 6F 6E 74 65 6E 74 3D 22 53 65 61 72 63 68 20 74 68 65 20 77 6F 72 6C 64 27 73 20 69 6E 66 6F 72 6D 61 74 69 6F 6E 2C 20 69 6E 63 6C 75 64 69 6E 67 20 77 65 62 70 61 67 65 73 47 6F 6F 67 6C 65 20 68 61 73 20 6D 61 6E 79 20 73 70 65 63 69 61 6C 20 66 65 61 74 75 72 65 73 20 74 6F 20 68 65 6C 70 20 79 6F 75 20 66 69 6E 64 20 65 78 61 63 74 6C 79 20 77 68 61 74 20 79 6F 75 27 72 65 20 6C 6F 6F 6B 69 6E 67 20 66 6F 72 2E 22 20 6E 61 6D 65 3D 22 64 65 73 63 72 69 70 74 69 6F 6E 22 3E 3C 6D 65 74 61 20 63 6F 6E 74 65 6E 74 3D 22 6E 6F 6F 64 70 22 20 6E 61 6D FE 95 10 2E 2E

__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
midwestmac

Registered:
Posts: 2,275
Reply with quote  #8 
I think I finally found a GSE header after a BBheader 42 00 02 00 ** ** ** ** ** ** ( ** these change) the bb header is 10 bytes
After the BBheaders I found one of several GSE headers this one in particular was 00 01 45 00 05 3C 6C D3 40 00 35 06 5A ( I think that's all of it?)
Using a hex editor I searched for that GSE header and found just 2 instances stripped the header out and the last byte of that payload I think is a CRC marker (don't need that in there).
Copied the 2 instances to a file and then played back. Got just audio of some music for about 5 seconds with Media player classic.
I don't know if I did everything right?? but that kinda worked. Woo Hoo!



__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
midwestmac

Registered:
Posts: 2,275
Reply with quote  #9 
Nice job! Andy, See I haven't figured that much out yet Thanks! I'll have to look at that some more.
I was getting head aches looking at hex but they seem to be going away LOL.. Thanks

__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #10 
Quote:
Originally Posted by midwestmac
I think I finally found a GSE header after a BBheader 42 00 02 00 ** ** ** ** ** ** ( ** these change) the bb header is 10 bytes
After the BBheaders I found one of several GSE headers this one in particular was 00 01 45 00 05 3C 6C D3 40 00 35 06 5A ( I think that's all of it?)
Using a hex editor I searched for that GSE header and found just 2 instances stripped the header out and the last byte of that payload I think is a CRC marker (don't need that in there).
Copied the 2 instances to a file and then played back. Got just audio of some music for about 5 seconds with Media player classic.
I don't know if I did everything right?? but that kinda worked. Woo Hoo!




Can you post the 10 byte BBheader in front of your audio GSE header. I want to compare it to mine.
Your GSE header might be a fragment??

In fact post the BBheader and what you think is the complete GSE header on the one fragment,

Thanks

__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
midwestmac

Registered:
Posts: 2,275
Reply with quote  #11 
You might be right Andy, I was going over what I did last night. I thought I just copied and over 2 instances and created a new file but looks like I'll have to dissect it some more. I don't know still trying to take this all in.

I started looking at 42 00 00 00 2D 70 47 00 00 92. Then looking at all the info after that lead me to GSE header starting with
00 01 45 00 05.
Then I found 42 00 02 00 80 E6 04 B5 80 1C 00 01 45 00 05 3C 6C D3 40 00 35 06 5A

The 00 01 45 00 05 3C 6C D3 40 00 35 06 5A started to interest me so I found it twice.
But now I see in the file I created that GSE header is pretty popular cause now I seem to have more headers copied than I thought.   00 01 45 00 05 3C 6C D3 40 00 35 06 5A  (whats in red changes) 

So now I'll have to go back and look at everything again. What do you think? I got to leave for a while and do some stuff. Thanks

__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
midwestmac

Registered:
Posts: 2,275
Reply with quote  #12 
Andy which Hex editor do you like to use? I have some free ones but, right now I use 010 Editor. Its freeware for a month. Kinda nice to search and highlight things. Especially all the 42 00 00
I haven't got any further than I was still playing around.

__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #13 
Quote:
Originally Posted by midwestmac
Andy which Hex editor do you like to use? I have some free ones but, right now I use 010 Editor. Its freeware for a month. Kinda nice to search and highlight things. Especially all the 42 00 00
I haven't got any further than I was still playing around.


I am going to build an app using Qt 5 to help analyse these BB and GSE headers. There's way too many variables to keep track of.

Maybe I will get lucky.


__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
midwestmac

Registered:
Posts: 2,275
Reply with quote  #14 
 I'd like to try recording a stream. How can you record a stream in linux?
__________________
Azbox Ultra, Pansat 2500, Prof7301,Tbs 6925,5980, Genpix 8psk card, Dektec 2137c, Hauppauge 950q
andyinyakima

Avatar / Picture

Registered:
Posts: 1,520
Reply with quote  #15 
Quote:
Originally Posted by midwestmac
 I'd like to try recording a stream. How can you record a stream in linux?


In updateDVB just Save to File button in the Tuning window after you get Lock. Button is not responsive unless Lock is established. You can change the name of the file if you want before hitting the start button.
Thought you and bluzee were doing that already.



__________________
andyinyakima
-----------------------------------
Recs: TBS6983, TBS5925 __ Ant: 90cm on SG6100__OSes: Linux with v4l-updatelee drivers __ RPi2 with v4l-updatelee drivers

Open Book, Open Source, You have to Open it to Know what's in it!
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.

Fellow Members, your posts are welcome here! Do not worry about posting everything perfect. Different receivers and LNB's will give you different Frequencies and Symbol Rates. Some set top boxes, PCI cards and USB receivers, Do Not Require all of the same information that others may need. It is not Required to post everything that others may need to tune in a feed. It is just most important to share the find. We can always adjust the Frequency and Symbol Rates and try the various Modulations and FEC's on our own receivers until we get a lock and then give a polite reply with what works for your receiver, as that information might help others as well. We all appreciate the efforts and energy of the Posters!

Thank You for Visiting GOFASTMOTORSPORTS.com - Keep Your Eyes on the Sky and the Track!