From: Marcos I. <iu...@ya...> - 2006-09-27 15:12:12
|
We are testing lirc on parallel port, but its not working , debugging the lirc_parallel.c it is checking the MOD_IN_USE variable and returning without doing nothing at irq_handler function. 281 if(!MOD_IN_USE) 282 return Running the command lsdmod: smc:~# lsmod|grep lirc lirc_parallel 10296 0 parport 37160 2 lirc_parallel,parport_pc lirc_dev 15588 1 lirc_parallel This shows that the lirc_parallel is not loaded. What am I missing? Why lirc_parallel is not loading when I try to use the remote control? Or this problem is related to something else? Could anyone, help me with this problem, or send me some directions of that I am missing? Informations: 2 - Hardware - Linux smc 2.6.16.13-smc #1 Mon Jun 12 13:11:54 BRT 2006 i686 GNU/Linux - model name : VIA Samuel 2 - cpu MHz : 796.544 - cache size : 64 KB 3 - Parallel port: - EPP 4 - Lirc. - lirc-0.8.0.tar.bz2 - lirc_parallel-mf1.patch Thanks in advance, Marcos Iuato __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: Michael M. <mic...@gm...> - 2006-09-27 17:00:31
|
Marcos Iuato wrote: > We are testing lirc on parallel port, but its not > working , debugging the lirc_parallel.c it is checking > the MOD_IN_USE variable and returning without doing > nothing at irq_handler function. > > 281 if(!MOD_IN_USE) > 282 return > > Running the command lsdmod: > smc:~# lsmod|grep lirc > lirc_parallel 10296 0 > parport 37160 2 > lirc_parallel,parport_pc > lirc_dev 15588 1 lirc_parallel > > This shows that the lirc_parallel is not loaded. Not true - if lsmod shows lirc_parallel, it _is_ loaded. The "0" in the third column only means that lirc_parallel is not in use by any other module/program. > What am I missing? Did you start lircd? If yes, look for "lirc" in your log files (/var/log/*). If you don't understand some of the log file messages, post them here and we'll try to help. Regards... Michael |
From: Marcos I. <iu...@ya...> - 2006-09-28 02:52:53
|
Enabling the debug we catch some logs: smc:~# modprobe lirc_parallel debug Sep 27 23:00:38 smc kernel: lirc_dev: IR Remote Control driver registered, at major 61 Sep 27 23:00:38 smc kernel: __parport_pc_frob_control(0f,0c): 1c -> 1c Sep 27 23:00:38 smc kernel: parport_pc_write_data(c2d3d400,0x01) Sep 27 23:00:38 smc kernel: lirc_parallel: no timer detected Sep 27 23:00:38 smc kernel: parport_pc_write_data(c2d3d400,0x00) Sep 27 23:00:38 smc kernel: lirc_dev: lirc_register_plugin: sample_rate: 0 Sep 27 23:00:38 smc kernel: lirc_parallel: installed using port 0x0378 irq 7 Sep 27 23:01:15 smc kernel: __parport_pc_frob_control(0f,0c): 1c -> 1c Sep 27 23:01:15 smc kernel: __parport_pc_frob_control(10,10): 1c -> 1c Sep 27 23:01:30 smc kernel: __parport_pc_frob_control(0f,0c): 1c -> 1c Sep 27 23:01:30 smc kernel: __parport_pc_frob_control(10,10): 1c -> 1c smc:~# tail /var/log/syslog Sep 27 23:07:48 smc kernel: __parport_pc_frob_control(02,02): 0c -> 0e Sep 27 23:07:48 smc kernel: __parport_pc_frob_control(02,00): 0e -> 0c Sep 27 23:07:48 smc kernel: parport_pc_write_data(c2d3da00,0xaa) Sep 27 23:07:48 smc kernel: parport_pc_read_data(c2d3da00) = 0xff Sep 27 23:07:48 smc kernel: __parport_pc_frob_control(0f,0c): 0c -> 0c Sep 27 23:07:48 smc kernel: parport_pc_write_data(c2d3d800,0x01) Sep 27 23:07:49 smc kernel: lirc_parallel: no timer detected Sep 27 23:07:49 smc kernel: parport_pc_write_data(c2d3d800,0x00) Sep 27 23:07:49 smc kernel: lirc_dev: lirc_register_plugin: sample_rate: 0 Sep 27 23:07:49 smc kernel: lirc_parallel: installed using port 0x0378 irq 7 Running irrecord --device=/dev/lirc teste Press RETURN now to start recording. irrecord: no data for 10 secs, aborting irrecord: gap not found, can't continue Doing some debug on lirc_parallel.c, we found that init_lirc_timer is always returning 'no timer detected' becouse count ==0 I don't know what else to do, could someone points me some directions? Thanks in advance, Marcos Iuato __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
From: <li...@ba...> - 2006-09-30 04:01:18
|
Hi! Marcos Iuato "iu...@ya..." wrote: > Enabling the debug we catch some logs: [...] > Doing some debug on lirc_parallel.c, we found that > init_lirc_timer is always returning 'no timer > detected' becouse count ==0 > > I don't know what else to do, could someone points me > some directions? How about connecting the hardware? You didn't write anything about the hardware you are using. It requires a hardware timer like described on http://www.lirc.org/parallel.html Christoph |