Author Topic: Dvico DVB Lite remote and reciever  (Read 4858 times)

fenx07

  • Newbie
  • *
  • Posts: 4
    • View Profile
Dvico DVB Lite remote and reciever
« on: November 15, 2007, 11:45:47 am »
I have a dvico lite DVB digital tuner card, which I have set up with mythtv and seems to operate fine. I am having lots of trouble with the remote though and I have read various posts to try and get it to work with linuxmce.

I really like linuxmce, but would love to get something as simple as remote control working.

I have edited the /etc/lircd.conf and /etc/lirc/hardware.conf and now can get all of the correct buttons working in a shell prompt if I go to KDE desktop and type "irw" in a shell.

adam@dcerouter:~$ irw
0001004600000af9 00 power DVICO
00010046000011f9 00 1 DVICO
00010046000019f9 00 9 DVICO
0001004600001bf9 00 record DVICO
00010046000002f9 00 volup DVICO
0001004600001ff9 00 playpause DVICO
0001004600001ef9 00 stop DVICO
0001004600001ef9 01 stop DVICO
0001004600001df9 00 ff DVICO
0001004600001cf9 00 rew DVICO

My problem is that the control has no response at all in the linux mce interface. Is there a manual file that I need to edit. I have followed the guides that I can find on the wiki, but maybe I missed something.

guides I have (tried to...) followed;

http://wiki.linuxmce.com/index.php/Add_support_for_new_remote_controls
http://wiki.linuxmce.com/index.php/Control_LinuxMCE_using_an_Infrared_remote
http://www.itee.uq.edu.au/~chrisp/Linux-DVB/DVICO/#remote
Although I haven't patched anything at all default lirc as intalled from linuxmce cds



Any help much appreciated.
« Last Edit: November 15, 2007, 11:50:10 am by fenx07 »

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #1 on: November 15, 2007, 11:52:29 pm »
 Hi Fenx,

 I have a dvb card with a remote that uses a serial dongle via lirc.
This should help you getting up and running (you might have to use a differnet lirc driver accoring to the type of connector for your remote)

 In order to get this working you need to do the following

 - in the web admin select the infrared receiver for your md (i use default for my serial dongle)

 - then select the remote (check that it is a lirc remote not standard remote)

 - quick reload router then it should be fine.

 However if this does not work you can fire up /usr/pluto/bin/LIRC_DCE -d DEVICE_NUMBER_of_ the_receiver.

 This will let you know if it find the remote or else.

 It has been a royal pain to get working for a start but after doing few installs it's straightforward as long as you have the right remote template.

 Hope this helps.

Rafik

fenx07

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #2 on: November 16, 2007, 01:13:58 pm »
nope... still can't get that to work

Quote
- in the web admin select the infrared receiver for your md (i use default for my serial dongle)

problem is my receiver won't start up with this option

also where do I find
Quote
DEVICE_NUMBER_of_ the_receiver
to try the manual commands. Also it seems that the dvico driver is not in the drop down in the admin page, but is in the lircd list of supported drivers

any ideas???

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #3 on: November 16, 2007, 07:33:56 pm »
 number of the device "infrared receiver" is shown in the webadmin -> "show device tree" then look for default on you md.

 So far did you create a template for your remote ? if not go to webadmin -> advanced -> configuration -> Templates and add a template for your remote (select the brand, Lirc remotes, put the model of your remote, add a device data Configuration and insert the content of your working lircd.conf file).

 Let me know what you get from manually running LIRC_DCE -d (default device id).

Rafik


fenx07

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #4 on: November 18, 2007, 02:09:27 am »
Quote
adam@dcerouter:~$  /usr/pluto/bin/LIRC_DCE -d 73
LIRC_DCE, v.2.0.0.44.0709022200
Visit www.plutohome.com for source code and license information

lircd: no process killed
sh: modprobe: command not found
01      11/18/07 11:43:09.820           No SerialPort selected and no default entry found. Exiting. <0xb799c6d0>
adam@dcerouter:~$ sudo /usr/pluto/bin/LIRC_DCE -d 73
LIRC_DCE, v.2.0.0.44.0709022200
Visit www.plutohome.com for source code and license information

lircd: no process killed
01      11/18/07 11:43:17.855           No SerialPort selected and no default entry found. Exiting. <0xb795c6d0>

So I tried setting a serial port by editing the receiver and adding #64 Serial port(string) and I added a default value of 0

In regards to the receiver I added a new receiver as default was not starting up and my receiver needs the dvico driver to work.

I have already created a template for the remote and added #59 Configuration(string) with default value the whole lirc file that works for me at the shell prompt.

Any direction on what to do next or what log files I can look at. I tried having a look at some log files, but it says that they do not exist.

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #5 on: November 18, 2007, 02:40:21 pm »
 Hi Fenx,

 I had situations where i played around to much with the dev templates then i could not get back to scratch
and i did not invertigate further.

 Also i can tell that by default lirc serial does not get loaded and sometimes needs extra parameters.
setserial is not ran before lirc_dev get started so in order to get this to work a wrote some really basic scripts that do the job.

 I would recommend removing the actual remote and receiver from the config.
delete your remote template and get the default template as it was originally.

 Create a new template for your remote using the following:

 Device Category: Lirc Remote Controls

 This device is controlled via category:      Device Category: Computers
 
 Packages Pluto Lirc DCE Wrapper


 Device data: #59 Configuration(string) (your lircd.conf) and tick User Master Device List Defaults

 copy the following script to /etc/init.d/setserial

## replacement script for setserial
#!/bin/bash
set -x
case "$1" in
        start)
        setserial /dev/ttyS0 uart none
        ;;
esac
##END#####################

copy the following script to /etc/init.d/serial_remote


#!/bin/bash
set -x
case "$1" in
        start)
        modprobe lirc_serial irq=4 io=0x3f8 type=0
        ;;
esac
#END################

 Then cd /etc/rc2.d/

 ln -s ../init.d/setserial S13setserial
 ln -s ../init.d/setserial S14serial_remote


This should ensure that you have everything loaded in the right order.

 from there upon reboot check use irw to check that lirc runs initially without tweaking.

 my lirc config is the following (remote codes wont be of much help but at least you can see what a working file looks like).

 /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER=""
# If DEVICE is set to /dev/lirc and devfs is in use /dev/lirc/0 will be
# automatically used instead
DEVICE=""
MODULES=""

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""


begin remote
  name            Technisat_103TS103
  bits            13
  flags           RC5|CONST_LENGTH
  eps             30
  aeps            100
  one             884 887
  zero            884 887
  gap             113870
  plead           1018
  toggle_bit      2
  min_repeat      2

/etc/lirc/lircd.conf (/etc/lircd.conf get created by pluto after remote setup)

  begin codes
       EXT             0x0000000000001238
       STOP            0x0000000000001229
       TXT             0x000000000000123C
       HILFE           0x0000000000000200
       MENU            0x0000000000000212
       VOL-            0x0000000000001211
       VOL+            0x0000000000001210
       TV              0x0000000000000213
       PROG-           0x0000000000001221
       PROG+           0x0000000000001220
       INFO            0x000000000000020F
       ESC             0x0000000000001222
       EPG             0x000000000000122F
       OK              0x0000000000000217
       DOWN            0x0000000000000211
       RIGHT           0x0000000000000216
       LEFT            0x0000000000000215
       UP              0x0000000000000210
       BLUE            0x000000000000022E
       YELLOW          0x000000000000022D
       GREEN           0x000000000000022C
       RED             0x000000000000022B
       A/B             0x0000000000001223
       -/--            0x000000000000120A
       POWER           0x000000000000120C
       MUTE            0x000000000000120D
       0               0x0000000000001200
       9               0x0000000000001209
       8               0x0000000000001208
       7               0x0000000000001207
       6               0x0000000000001206
       5               0x0000000000001205
       4               0x0000000000001204
       3               0x0000000000001203
       2               0x0000000000001202
       1               0x0000000000001201

  end codes

end remote

 One you've installed the scripts and got output from irw after reboot,
 you can create the template. quick reload router the add the serial receiver from the drop down list then the remote and press update.

 this is all.

 I have done this on many MD's successfully from scrath and it works really fine.

 I hope i'm not too messy here,

 Please feel free to make remarks as i will refine this and put it on the wiki

 Regards,

Rafik









 


fenx07

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #6 on: November 18, 2007, 11:28:06 pm »
Have not tried out your suggestion yet, as I am not in front of a pc, but my receiver is plugged into the pc via usb and gets recognised as /dev/hiddev0.

Will this require me to change your set serial scripts? (do I need them at all) and also how would I find the irq and io information?

rafik24

  • Guru
  • ****
  • Posts: 158
    • View Profile
Re: Dvico DVB Lite remote and reciever
« Reply #7 on: November 19, 2007, 04:21:00 pm »
Will this require me to change your set serial scripts? (do I need them at all)

 Well the default setserial script will give the wrong values to /dev/ttyS0 ( uart 16500A ish) where we need
"uart none" for lirc_serial to work. so the answer is try both and see for yourself.

and also how would I find the irq and io information?

 dmesg | grep tty

will show u the io and irq. i never changed those values since they seem to be bios default on all the boards i've seen so far.

 believe me if using irw and can see the keys of your remote ==> your so close
(took me age to figure out how this work)

 we can get on skype to solve this at some stage if your willing to

Rafik