You are not logged in.

#1 2011-05-18 21:01:58

Lyssa Rabies
Member
Registered: 2011-01-20
Posts: 3

LIRC(serial receiver) does not work.

Hello,

i have a PINNCALE Systems Serial IRC receiver, but i don't get it to work.

[12187.956765] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned.
[12187.960012] lirc_serial: port 03f8 already in use
[12187.960018] lirc_serial: use 'setserial /dev/ttySX uart none'
[12187.960022] lirc_serial: or compile the serial port driver as module and
[12187.960026] lirc_serial: make sure this module is loaded first

I have tried to release it with setserial, but it doesn't change anything.

setserial /dev/ttyS0 uart none

This error comes when i try to load the kernel modul:

modprobe lirc_serial 
FATAL: Error inserting lirc_serial (/lib/modules/2.6.38-pae/kernel/drivers/staging/lirc/lirc_serial.ko.gz): Device or resource busy

kind regards

Offline

#2 2011-05-18 21:27:21

anrxc
Member
From: Croatia
Registered: 2008-03-22
Posts: 834
Website

Re: LIRC(serial receiver) does not work.

This error comes when i try to load the kernel modul:

But what does dmesg say after this? It should give an explanation I would hope.

Also you are sure ttyS0 is where you receiver is? By the way I start this lircs service before the lircd service in rc.conf

#!/bin/bash

# Releases ttyS0 and loads the lirc_serial module
# - serial support is built into Arch kernel26

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Releasing ttyS0 COM port"
    /usr/bin/setserial /dev/ttyS0 uart none
    /sbin/modprobe lirc_serial
    # Could be needed to stop treating the remote as a keyboard
    #echo "lirc" > /sys/class/rc/rc0/protocols
    stat_done
  ;;
  stop)
    stat_busy "Unloading LIRC Serial module"
    /sbin/rmmod lirc_serial
    stat_done
  ;;
  restart)
    $0 stop
    $0 start
  ;;
  *)
    echo "usage: $0 {start|stop|restart}"
esac
exit 0

Just a note for other readers who could have troubles with lirc_serial, my receiver does not work currently, Lirc can't detect it and developers can't fix it. Last lirc where it worked was 0.8.0, on another distribution.


Edit: I forgot to tell you how to increase verbosity of lirc_serial, this is an excerpt from my modprobe.conf:

# Set custom options
#options lirc_serial irq=4 io=0x3f8 sense=1 debug=1
# Only increase verbosity
options lirc_serial debug=1

Last edited by anrxc (2011-05-18 21:31:06)


You need to install an RTFM interface.

Offline

#3 2011-06-09 16:42:55

Dehir
Member
From: Finland
Registered: 2009-11-08
Posts: 28

Re: LIRC(serial receiver) does not work.

Having similar problem. Just started use lirc with following http://www.tb-electronic.de/vdr/lirc/lirc_rx.html lirc reciever that i welded.

my kernel gives my following error when i try first time run modprobe lirc_serial:

[  172.435711] lirc_serial: module is from the staging directory, the quality is unknown, you have been warned.
[  172.439411] lirc_serial: port existence test failed, cannot continue

and after that when i try to run modprobe lirc_serial my error is

[  422.415955] lirc_serial: port 03f8 already in use
[  422.415963] lirc_serial: use 'setserial /dev/ttySX uart none'
[  422.415968] lirc_serial: or compile the serial port driver as module and
[  422.415972] lirc_serial: make sure this module is loaded first

doesnt matter do i run setserial /dev/ttyS0 uart none it makes no difference. My system seems to recognize serial in someway cause i have /dev/ttyS[0123]. But i dont have any mouse or anything to test serial connection working.

My kernel is 2.6.38-ARCH and im running with zotac ion itx d-e which bios doesnt seem to have any option for serialport what so ever.

Tried also with latest git-version of lirc no difference.

Offline

#4 2011-07-06 10:45:04

Dehir
Member
From: Finland
Registered: 2009-11-08
Posts: 28

Re: LIRC(serial receiver) does not work.

Im using now kernel 2.6.39 and latest lirc 1:0.9.0-4 and lirc-utils 1:0.9.0-4 from extra and my serial reciever seems to work ok as i do mode2 or xmode2. And managed to get my remote working as normal too with lircd. So id say its working for me now.

Last edited by Dehir (2011-07-09 12:05:02)

Offline

#5 2011-11-07 10:56:15

casacristo
Member
Registered: 2011-09-29
Posts: 10

Re: LIRC(serial receiver) does not work.

I have the same problem but no solution, how did you get yours working?

https://bbs.archlinux.org/viewtopic.php … 4#p1013434

Offline

Board footer

Powered by FluxBB