Help with lirc and serial IR receiver

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read how to get help

Help with lirc and serial IR receiver

Postby dmclennan on Mon Jun 01, 2009 2:49 pm

I have an older Home-Electronics IRA infrared serial port receiver. The IRA has a green/red light indicating connection to the serial port. In the past, I've had this configured in Windows XP/Vista, so I know the receiver, cable, serial port all work on this computer. On the Ubuntu/Mint side, i've installed lirc and experimented with different serial settings, either through dpkg-reconfigure lirc or by manually entering the /etc/lirc/hardware.conf. From internet posts, the key hardware.conf parameters are: REMOTE_MODULES="lirc_dev lirc_serial", REMOTE_DRIVER is irman, default or blank; REMOTE_DEVICE is /dev/ttyS0 or /dev/lirc0. I restart lirc and see that lirc is running: /usr/sbin/lircd --driver=irman --device=/dev/ttyS0. Also installed libirman-dev.

I've tried everything i can find/think of to make this work. I'm beginning to think that the serial hardware device doesn't work with linux (i hope / doubt that). It works with Vista, so it should work with Linux:) What is odd is that the device does not appear to be connected to the serial port. The red/green light is not on. When running irw, there is no response. Again, this tells me that the IR receiver is not connected. (It is connected, i dual boot back to Vista and it works fine).

I've seen posts about setserial none (tried that, didn' work) and claims to revert to old versions of lirc (haven't tried that as I want to keep Mint like new). Is there anything I need to do to make this connect to the serial port?

Other info:
$ dmesg | grep tty
[ 0.004000] console [tty0] enabled
[ 2.436584] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 2.436938] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
$ dmesg | grep lirc
[ 17.949486] lirc_dev: IR Remote Control driver registered, major 61
[ 18.460049] lirc_serial: auto-detected active high receiver
[ 18.460053] lirc_dev: lirc_register_plugin: sample_rate: 0


Thank you,
dmclennan
Level 1
Level 1
 
Posts: 1
Joined: Mon Jun 01, 2009 2:28 pm

Linux Mint is funded by ads and donations.
 

Re: Help with lirc and serial IR receiver

Postby Husse on Wed Jun 03, 2009 1:44 pm

I see you have done a lot of work
How about this topic in the Howto section of the forum?
viewtopic.php?f=42&t=25870&start=0&st=0&sk=t&sd=a&hilit=lirc
Image
Don't fix it if it ain't broken, don't break it if you can't fix it
Husse
Level 21
Level 21
 
Posts: 19703
Joined: Sun Feb 11, 2007 7:22 am
Location: Near Borås Sweden

Re: Help with lirc and serial IR receiver

Postby Vitoriung on Mon Jun 08, 2009 12:44 pm

I think you have it prepared for working, only possible issue I can see is -
Code: Select all
[ 18.460049] lirc_serial: auto-detected active high receiver


It's not definite, but I have Technisat serial receiver and had this message when used the extension for serial port.
Do you have just one serial port? Double check when you use
Code: Select all
setserial /dev/ttySx uart none
correctly specified serial port number.

Another way is to set option "lirc_serial sense=1"in modprobe.conf I believe, but not pretty certain, so maybe worth google it.
Or you can use command
Code: Select all
insmod lirc_serial sense=0 if your receiver circuit is active high or
insmod lirc_serial sense=1 if your receiver circuit is active low.
Vitoriung
Level 1
Level 1
 
Posts: 1
Joined: Mon Jun 08, 2009 12:34 pm


Return to Hardware Support

Who is online

Users browsing this forum: coffee412, diesel79 and 25 guests