Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

USB Infrared Toy v2 from dangurous prototypes
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
USB Infrared Toy v2 from dangurous prototypes
25th Feb, 2015, 12:49 AM
Post: #16
kasteleman Offline
Registered
Posts: 11
Joined: Feb 2015
Reputation: 0
RE: USB Infrared Toy v2 from dangurous prototypes
(24th Feb, 2015 11:43 PM)CurlyMo Wrote:  
(24th Feb, 2015 11:26 PM)kasteleman Wrote:  
(24th Feb, 2015 10:37 PM)CurlyMo Wrote:  You didn't install the latest deb.
Yes i did!
Then don't quote old posts Wink

I you have a working setup, i will add your files to the package so all users can use the IRToy from then on.

Have added irtoy.conf in /etc/lirc/hardware with the following content:

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

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

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=true

#Try to load appropriate kernel modules
#LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="usb_irtoy"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/ttyMCA0"
#MODULES=""

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


added --listen=8765 so my domoticasystem can use the irtoy over the network!
Configfiles for the remotes follow....

Also added a case to the hardware.conf file:

*"Prototypes"*)
. /etc/lirc/hardware/irtoy.conf
;;

The only thing i'm wondering about is the following in that file:

. /etc/lirc/hardware/custom.conf
if [ -z $LIRCD_ARGS ] && [ -z $LOAD_MODULES ] && [ -z $DRIVER ] && [ -z $DEVICE ] && [ -z $MODULES ] && [ -z $LIRCD_CONF ] && [ -z $LIRCMD_CONF ]; then
case "$DMESG" in
*"lirc_rpi"*)

Why do you use the custom.conf and then after "then" the case for "$DMESG"?
I thought you first catch the case for DMESG and if case match use specific conf file.
If no case match, then you use custom.conf. Specific reason for that, or do i misunderstand the syntax?
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
USB Infrared Toy v2 from dangurous prototypes - kasteleman - 23rd Feb, 2015, 08:02 AM
RE: USB Infrared Toy v2 from dangurous prototypes - f1vefour - 23rd Feb, 2015, 12:43 PM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 23rd Feb, 2015, 03:35 PM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 23rd Feb, 2015, 07:53 PM
RE: USB Infrared Toy v2 from dangurous prototypes - f1vefour - 23rd Feb, 2015, 08:49 PM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 24th Feb, 2015, 06:53 AM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 24th Feb, 2015, 09:10 AM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 24th Feb, 2015, 09:23 AM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 24th Feb, 2015, 08:10 PM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 24th Feb, 2015, 09:34 AM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 24th Feb, 2015, 05:03 PM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 24th Feb, 2015, 07:02 PM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 24th Feb, 2015, 10:37 PM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 24th Feb, 2015, 11:26 PM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 24th Feb, 2015, 11:43 PM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 25th Feb, 2015 12:49 AM
RE: USB Infrared Toy v2 from dangurous prototypes - packetgeek - 8th Mar, 2015, 12:06 PM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 25th Feb, 2015, 01:03 AM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 25th Feb, 2015, 01:06 AM
RE: USB Infrared Toy v2 from dangurous prototypes - CurlyMo - 25th Feb, 2015, 01:33 AM
RE: USB Infrared Toy v2 from dangurous prototypes - kasteleman - 26th Feb, 2015, 05:51 PM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 7th Jun, 2025, 02:02 AM Powered By MyBB, © 2002-2025 MyBB Group.