serial IR reciever

Patrik Skovajsa cracken na zoznam.sk
Čtvrtek Duben 10 16:42:26 CEST 2003


Dobry den,
program Lirc som nainstaloval z rpm baliku ktory bol sucastou distribucie
Mandreke 9, ktoru pouzivam. Rozhodol som sa tak kvoli tomu aby som nemusel
pouzit kompilovany vanilla kernel.Avsak aj ked som vsetko nadstavil
podla navodu z mode2 som nic rozumne nedostal.
Prosim Vas co mam urobit, pripadne ktorym smerom by som sa mal vydat.
Dakujem
Prikladam hlasenia systemu a obsahy niektorych konfiguracnych suborov

Zavedenie modulu
----------------
{root na cracken_house cracken]# insmod lirc_serial
Using /lib/modules/2.4.19-16mdk/kernel/3rdparty/lirc/lirc_serial.o.gz

Vypis dmesg
-----------
lirc_serial: port 03f8 already in use, proceeding anyway
lirc_serial: compile the serial port driver as module and
lirc_serial: make sure this module is loaded first
lirc_serial: auto-detected active low receiver

/etc/sysconfig/lircd
---------------------
# Customized setings for lirc daemon
# The hardware driver to use, run lircd --driver=? for a list
DRIVER=default
# Hardware driver module to load
HWMOD=lirc_serial
# The device node that communicates with the IR device.
# with devfs enabled
DEVICE=/dev/lirc/serial
# Serial port for the receiver (for serial driver)
# COM1 (/dev/ttyS0)
COM_PORT=/dev/ttyS0
DRIVER_OPTS="irq=4 io=0x3f8"

/etc/lircd.conf
---------------
#
# this config file was automatically generated
# using WinLIRC 0.6.4 (LIRC 0.6.1pre3) on Thu Oct 24 16:36:05 2002
#
# contributed by
#
# brand:             Sony
# model:             vtr_rmt-708
# supported devices:
#

begin remote

  name  RMT-1
  bits           11
  flags SPACE_ENC
  eps            30
  aeps          100

  header       2487   501
  one           686   501
  zero         1287   501
  ptrail        686
  gap          24671
  toggle_bit      0


      begin codes
          play                     0x0000000000000531
          stop                     0x0000000000000731
          ff                       0x0000000000000631
          rew                      0x0000000000000131
          pause                    0x0000000000000331
          slow                     0x00000000000001D1
          display                  0x0000000000000521

      end codes

end remote

begin remote

  name  RMT2
  bits           14
  flags SPACE_ENC|CONST_LENGTH
  eps            30
  aeps          100

  header       2462   544
  one          1253   546
  zero          651   546
  ptrail       1250
  gap          45008
  min_repeat      3
  toggle_bit      0


      begin codes
          T                        0x000000000000164D
          W                        0x000000000000364D
          StartStop                0x000000000000264E
      end codes

end remote

ls /dev/l*
>lircd
>lircm
ls /dev/lirc/*
>serial

[root na cracken_house cracken]# lircd start
[root na cracken_house cracken]# mode2
This program is only intended for receivers supporting the pulse/space layer.
Note that this is no error, but this program simply makes no sense for your
receiver.
[root na cracken_house cracken]# irrecord serial

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc na bartelmus.de)

irrecord: could not init hardware (lircd running ? --> close it, check
permissions)
[root na cracken_house cracken]#



Další informace o konferenci Linux