Broadsat Forum Index Broadsat
Satellite communication support forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New subscription

 
Post new topic   Reply to topic    Broadsat Forum Index -> Linux Users
View previous topic :: View next topic  
Author Message
Snupt



Joined: 26 Aug 2008
Posts: 1

PostPosted: Tue Aug 26, 2008 2:37 pm    Post subject: New subscription Reply with quote

Hello. I'm your new user and I've got the problem with a connection. Now, I'm going to list all my operations:

My channels.conf file
Code:
snupt@gentoo ~ % cat /etc/channels.conf       
inet:12565:h:0:27282:0:0:0
radio:11515:v:0:7300:0:0:0
fish:11595:v:0:29270:0:0:0
qwe:10983:v:0:3819:0:0:0
2:11595:v:0:29270:0:0:0
opensky:10928:v:0:27500:0:0:0


I had LOCK the signal
Code:
snupt@gentoo ~ % szap -c /etc/channels.conf -n 6
reading channels from file '/etc/channels.conf'
zapping to 6 'opensky':
sat 0, frequency = 10928 MHz V, symbolrate 27500000, vpid = 0x1fff, apid =
0x1fff sid = 0x0000
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
status 00 | signal b1b1 | snr 1919 | ber 00000000 | unc 00000000 |
status 1f | signal aaaa | snr a3a3 | ber 0000012e | unc 00000021 | FE_HAS_LOCK
status 1f | signal aaaa | snr a3a3 | ber 0000011f | unc 00000000 | FE_HAS_LOCK
status 1f | signal aaaa | snr a3a3 | ber 0000013b | unc 00000000 | FE_HAS_LOCK


The first my script with PID's and MAC address
Code:
snupt@gentoo ~ % cat first.sh
#!/bin/sh
pids=( 3012,3012,3012,3010 )
DVB_MAC=<my.mac>


The second my script which up DVB Ethernet interface
Code:
snupt@gentoo ~ % cat second.sh
#!/bin/sh

. /home/snupt/first.sh

case "$1" in
'start')
 
    i=0
    k=1
    for PID in ${pids[@]}; do
   dvbnet -p $PID
   PID_DEVNAME=dvb0_$i;
   PID_IPADDR=10.10.$k.2
   PID_BROADCAST=10.10.$k.255
   PID_MASK=255.255.255.0
   
   ifconfig $PID_DEVNAME $PID_IPADDR netmask $PID_MASK broadcast $PID_BROADCAST
        ifconfig $PID_DEVNAME hw ether $DVB_MAC
        route add $PID_IPADDR dev $PID_DEVNAME
   
   echo 0 > /proc/sys/net/ipv4/conf/dvb0_$i/rp_filter
   
   let i++
   let k++
    done
    echo 0 > /proc/sys/net/ipv4/conf/all/rp_filter
    echo 0 > /proc/sys/net/ipv4/conf/default/rp_filter
   
    echo 4096 65000 290000 > /proc/sys/net/ipv4/tcp_wmem
    echo 4096 128000 300000 > /proc/sys/net/ipv4/tcp_rmem
    ;;
'stop')
    i=0
   
    for PID in ${pids[@]}; do
   ifconfig dvb0_$i down
   dvbnet -d $i
   let i++
    done
    ;;
'restart')
    echo "Restarting DVB";
    $0 stop;
    $0 start;
    ;;
*)
    echo "Using: rc.dvb start|stop|restart"
    ;;
esac%


Start was succesful
Code:
gentoo snupt # ./second.sh start

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Status: device dvb0_0 for pid 3012 created successfully.

Code:
gentoo snupt # ifconfig
dvb0_0    Link encap:Ethernet  HWaddr <my.mac>
          inet addr:10.10.1.2  Bcast:10.10.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING NOARP MULTICAST  MTU:4096  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Base address:0xbc4

eth0      Link encap:Ethernet  HWaddr 00:0d:61:68:27:e2 
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1944 (1.8 KiB)  TX bytes:1468 (1.4 KiB)
          Interrupt:11 Base address:0xc800

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ppp0      Link encap:Point-to-Point Protocol 
          inet addr:<earth's ip>  P-t-P:10.123.66.66  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:60 errors:0 dropped:0 overruns:0 frame:0
          TX packets:67 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:17009 (16.6 KiB)  TX bytes:4713 (4.6 KiB)

Code:
gentoo snupt # dvbnet -l

DVB Network Interface Manager
Copyright (C) 2003, TV Files S.p.A

Query DVB network interfaces:
-----------------------------
Found device 0: interface dvb0_0, listening on PID 3012, encapsulation MPE
-----------------------------
Found 1 interface(s).


But 'tcpdump' doesn't show public stream
Code:
snupt@gentoo ~ % s tcpdump -ni dvb0_0                       
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on dvb0_0, link-type EN10MB (Ethernet), capture size 68 bytes
^C
0 packets captured
0 packets received by filter
0 packets dropped by kernel


dvbtraffic /http - show all PID's and stream

After all, I put into the proxy form in my web browser (Firefox 3.0.1) "proxy8.opensky.net:8080" but traffic didn't go.

Dear community, help me please.

P.S. English isn't my native language.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Broadsat Forum Index -> Linux Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group