Autor Thema: Autostart 2 units on VU+ Dou  (Gelesen 10855 mal)

saengarun

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Autostart 2 units on VU+ Dou
« am: März 10, 2011, 06:40:22 Nachmittag »
Hi
 
I hope you can help me.
I have a VU+ DUO with OpenPli image
 
I want to run two Sundtek Usb DVB sticks on it.
With only one i have no problem. Everything works fine.
I can start the second unit by typing /opt/bin/mediaclient --enabledreambox=/dev/dvb/adapter2/frontend0
And now i have two units runing okay on my VU+.
 
The problem i have is that i want them to start when the VU+ starts.
Just for now only one unit autostarts. (/dev/dvb/adapter1/frontend0)
 
I have crated file: usr/sundtek/startdvb.sh
 
#!/bin/bash
if [ "$1" = "0" ]; then
  /opt/bin/mediaclient -D DVBC
  /opt/bin/mediaclient --enabledreambox=/dev/dvb/adapter1/frontend0
fi
if [ "$1" = "1" ]; then
  /opt/bin/mediaclient -D DVBT -d /dev/dvb/adapter2/frontend0                        (I have try to change DVBT to DVBC with no luck)
  /opt/bin/mediaclient --enabledreambox=/dev/dvb/adapter2/fronted0
  init 4
  sleep 2
  init 3
fi
 
on the system run:
 
cd /usr/sundtek
chmod 777 startdvb.sh
 
I have been trying your latest Driver : sundtek_installer_110306.2340.sh
I dont know if it this one to use.
 
So how should i do to autostart 2 units?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Autostart 2 units on VU+ Dou
« Antwort #1 am: März 10, 2011, 06:58:54 Nachmittag »
This is supposed to be a little bit easier now with the latest drivers, we'll do some tests with it on Friday again and document it here.

We have recently added a configuration based on the Serialnumber of the device.
Failure is a good thing! I'll fix it

saengarun

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Autostart 2 units on VU+ Dou
« Antwort #2 am: März 10, 2011, 07:10:34 Nachmittag »
Okay
Thank you for reply.

saengarun

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Autostart 2 units on VU+ Dou
« Antwort #3 am: März 13, 2011, 04:38:42 Nachmittag »
Any news on this?

Sundtek

  • Administrator
  • Hero Member
  • *****
  • Beiträge: 8512
    • Profil anzeigen
Re:Autostart 2 units on VU+ Dou
« Antwort #4 am: März 14, 2011, 09:12:15 Vormittag »
yes, there is some news about it.

what does following command show up on your side:

Zitat
$ /opt/bin/mediaclient -e or /usr/sundtek/mediaclient -e

The dreambox configuration can be based on the device Serialnumber now.


A sample configuration looks like this:

Zitat
$ /usr/sundtek/mediaclient -e  (or /opt/bin/mediaclient -e depending on the system)
**** List of Media Hardware Devices ****
device 0: [ Sundtek MediaTV Pro]  DVB-C, DVB-T, ANALOG-TV, FM-RADIO, REMOTE-CONTROL, OSS-AUDIO, RDS
  [SERIAL]:
     ID: 0110210004403
  [DVB-C]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [DVB-T]:
     FRONTEND: /dev/dvb/adapter0/frontend0
     DVR: /dev/dvb/adapter0/dvr0
     DMX: /dev/dvb/adapter0/demux0
  [ANALOG-TV]:
     VIDEO0: /dev/video1
     VBI0: /dev/vbi0
  [FM-RADIO]:
     RADIO0: /dev/radio0
     RDS: /dev/rds0
  [REMOTECONTROL]:
     INPUT0: /dev/mediainput0
  [OSS]:
     OSS0: /dev/dsp0

device 1: [Sundtek MediaTV Digital Home]  DVB-C, DVB-T, REMOTE-CONTROL
  [SERIAL]:
     ID: 0110223141749
  [DVB-C]:
     FRONTEND: /dev/dvb/adapter1/frontend0
     DVR: /dev/dvb/adapter1/dvr0
     DMX: /dev/dvb/adapter1/demux0
  [DVB-T]:
     FRONTEND: /dev/dvb/adapter1/frontend0
     DVR: /dev/dvb/adapter1/dvr0
     DMX: /dev/dvb/adapter1/demux0
  [REMOTECONTROL]:
     INPUT0: /dev/mediainput1

you need to take the serialnumber and put it into a configuration file

/etc/sundtek.conf
Zitat
[0110210004403]
initial_dvb_mode=DVBC
dreambox_support_fe1=on
[0110223141749]
initial_dvb_mode=DVBT
dreambox_support_fe1=on

Please note when using dreambox support in the configuration file with serialnumbers it will bypass the startscript functionalitiy (since those were only made for a single device, but the driver actually supports multiple ones)

just after starting the driver following command shows up:
Zitat
$ cat /proc/bus/nim_sockets
NIM Socket 0:
   Type: DVB-S2
   Name: BCM4505
   Has_Outputs: no
   Frontend_Device: 0
   I2C_Device: 2
NIM Socket 1:
   Type: DVB-C
   Name: Sundtek MediaTV Pro (USB)
   Has_Outputs: no
   Frontend_Device: 1
NIM Socket 2:
   Type: DVB-T
   Name: Sundtek MediaTV Digital Home (U
   Has_Outputs: no
   Frontend_Device: 2
« Letzte Änderung: März 14, 2011, 09:51:24 Vormittag von Sundtek »
Failure is a good thing! I'll fix it

saengarun

  • Newbie
  • *
  • Beiträge: 4
    • Profil anzeigen
Re:Autostart 2 units on VU+ Dou
« Antwort #5 am: März 14, 2011, 05:40:12 Nachmittag »
Fantastic  ;D

I made the sundtek.conf file and put in serial number, changed both to DVB-C.

Works super!!

Thanks for a fantastic support!!
« Letzte Änderung: März 14, 2011, 05:43:37 Nachmittag von saengarun »