Re: [Freevo-users] Multiple lirc devices: Streamzap and Antec Fusion Imon Knob

2008-08-27 Thread Andrea Magatti

Duncan Webb wrote:

Andrea Magatti wrote:
  

[SNIP]

I don't know if the problem is freevo that only watch at the first lirc 
device, or pylirc that only uses one device (the streamzap device).




I don't think that this is the problem. freevo nor pylirc care about 
devices, lirc uses a daemon and clients connect to the daemon not 
devices. You do need multiple daemons running. see: the section Using 
multiple different devices simultaneously on 
http://www.lirc.org/html/configure.html


HTH
Duncan

  

Thanks for the hint!
I just wanted to be sure that the problem was not freevo or pylirc related.
Aftert that i've configured the two daemons to work in connect-listen 
mode through an http socket
(this way the events from the second device is redirected to the first 
device /dev/lirc), solving all my problems.

Now the knob can control the volume!

Thanks again!
By
-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


[Freevo-users] Multiple lirc devices: Streamzap and Antec Fusion Imon Knob

2008-08-26 Thread Andrea Magatti
Hi all,

i'm using freevo on gentoo from portage 1.7.6.
Everything works, but i was trying to use two different lirc device.

One is a Streamzap USB, recognized as /dev/lirc0 and perfectly working
The other device is the volume knob of the Antec Fusion case, recognized 
ad /dev/lirc1, working correctly (tested with irw, the knoib sends 
thetrwo events WheelCC and WheelCW.
I've mapped these remotes in /etc/lircd.conf as follows:


begin remote

  name  Streamzap_PC_Remote
  bits6
  flags RC5|CONST_LENGTH
  eps30
  aeps  100

  one   889  889
  zero  889  889
  plead 889
  pre_data_bits   8
  pre_data   0xA3
  gap  108344
  toggle_bit  2


  begin codes
  00x00
  10x01
  20x02
  30x03
  40x04
  50x05
  60x06
  70x07
  80x08
  90x09
  POWER0x0A
  MUTE 0x0B
  CH_UP0x0C
  VOL_UP   0x0D
  CH_DOWN  0x0E
 VOL_DOWN 0x0F
  UP   0x10
  LEFT 0x11
  OK   0x12
  RIGHT0x13
  DOWN 0x14
  MENU 0x15
  EXIT 0x16
  PLAY 0x17
  PAUSE0x18
  STOP 0x19
  |  0x1A
  |  0x1B
  RECORD   0x1C
 0x1D
 0x1E
  RED  0x20
  GREEN0x21
  YELLOW   0x22
  BLUE 0x23
  end codes

end remote

begin remote
  name  ClickWheel
  bits   24
  eps30
  aeps  100

  one 0 0
  zero0 0
  post_data_bits  8
  post_data  0xFF
  gap  131993
  toggle_bit  0
 begin codes
   WheelCC  0x01
   WheelCW  0x000100
   WheelClick   0x08
 end codes
end remote



and added to freevo lirc configuration file (for me is 
/etc/freevo/streamzap) two events as follows:

begin
   prog = freevo
   button = WheelCW
   repeat = 1
   config = VOL_UP
 end

begin
   prog = freevo
   button = WheelCC
   repeat = 1
  config = VOL_DOWN
end

Now the problem:

when i turn the knob, i can see trough a terminal that irw receives 
events from /dev/lircd1 (correctly), but seems like freevo (or pylirc)  
only watches events coming from /dev/lircd (streamzap socket) and not 
from /dev/lircd1 (imon knob socket).

I don't know if the problem is freevo that only watch at the first lirc 
device, or pylirc that only uses one device (the streamzap device).

Any hint?







-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] Multiple lirc devices: Streamzap and Antec Fusion Imon Knob

2008-08-26 Thread Duncan Webb
Andrea Magatti wrote:
 Hi all,
 
 i'm using freevo on gentoo from portage 1.7.6.
 Everything works, but i was trying to use two different lirc device.
 
 One is a Streamzap USB, recognized as /dev/lirc0 and perfectly working
 The other device is the volume knob of the Antec Fusion case, recognized 
 ad /dev/lirc1, working correctly (tested with irw, the knoib sends 
 thetrwo events WheelCC and WheelCW.
 I've mapped these remotes in /etc/lircd.conf as follows:
 
 
 begin remote
 
   name  Streamzap_PC_Remote
   bits6
   flags RC5|CONST_LENGTH
   eps30
   aeps  100
 
   one   889  889
   zero  889  889
   plead 889
   pre_data_bits   8
   pre_data   0xA3
   gap  108344
   toggle_bit  2
 
 
   begin codes
   00x00
   10x01
   20x02
   30x03
   40x04
   50x05
   60x06
   70x07
   80x08
   90x09
   POWER0x0A
   MUTE 0x0B
   CH_UP0x0C
   VOL_UP   0x0D
   CH_DOWN  0x0E
  VOL_DOWN 0x0F
   UP   0x10
   LEFT 0x11
   OK   0x12
   RIGHT0x13
   DOWN 0x14
   MENU 0x15
   EXIT 0x16
   PLAY 0x17
   PAUSE0x18
   STOP 0x19
   |  0x1A
   |  0x1B
   RECORD   0x1C
  0x1D
  0x1E
   RED  0x20
   GREEN0x21
   YELLOW   0x22
   BLUE 0x23
   end codes
 
 end remote
 
 begin remote
   name  ClickWheel
   bits   24
   eps30
   aeps  100
 
   one 0 0
   zero0 0
   post_data_bits  8
   post_data  0xFF
   gap  131993
   toggle_bit  0
  begin codes
WheelCC  0x01
WheelCW  0x000100
WheelClick   0x08
  end codes
 end remote
 
 
 
 and added to freevo lirc configuration file (for me is 
 /etc/freevo/streamzap) two events as follows:
 
 begin
prog = freevo
button = WheelCW
repeat = 1
config = VOL_UP
  end
 
 begin
prog = freevo
button = WheelCC
repeat = 1
   config = VOL_DOWN
 end
 
 Now the problem:
 
 when i turn the knob, i can see trough a terminal that irw receives 
 events from /dev/lircd1 (correctly), but seems like freevo (or pylirc)  
 only watches events coming from /dev/lircd (streamzap socket) and not 
 from /dev/lircd1 (imon knob socket).
 
 I don't know if the problem is freevo that only watch at the first lirc 
 device, or pylirc that only uses one device (the streamzap device).


I don't think that this is the problem. freevo nor pylirc care about 
devices, lirc uses a daemon and clients connect to the daemon not 
devices. You do need multiple daemons running. see: the section Using 
multiple different devices simultaneously on 
http://www.lirc.org/html/configure.html

HTH
Duncan

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK  win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100url=/
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users