LinHES Forums http://forum.linhes.org/ |
|
see if my ir device works http://forum.linhes.org/viewtopic.php?f=2&t=8038 |
Page 1 of 1 |
Author: | madsholme [ Sun Jan 22, 2006 5:19 pm ] |
Post subject: | see if my ir device works |
Hi I am trying to get my remote to work. For this i have bought a ir device, for my serial port. How do i see if, in first place the device works? I know i should use minicom? but how ? oh and any tips regarding remote setup is welcome ![]() BTW its a Harmono Logitech 525 i am trying to get to work ![]() |
Author: | chrisj [ Sun Jan 22, 2006 8:02 pm ] |
Post subject: | |
Cat the device Code: cat /dev/ttySx and if you ger somthing then use Code: irw
|
Author: | Greg Frost [ Sun Jan 22, 2006 8:33 pm ] |
Post subject: | |
If you are talking about a homebrew IR receiver, I dont think they use tha data lines on the serial port so cat /dev/ttySx will not work. You can run mode2 or xmode2 to get lirc to display code timing of codes received. |
Author: | madsholme [ Mon Jan 23, 2006 12:32 pm ] |
Post subject: | |
chrisj wrote: Cat the device Code: cat /dev/ttySx and if you ger somthing then use Code: irw it is a home made one! so it wont work ![]() Greg Frost wrote: If you are talking about a homebrew IR receiver, I dont think they use tha data lines on the serial port so cat /dev/ttySx will not work.
You can run mode2 or xmode2 to get lirc to display code timing of codes received. how do you use it? |
Author: | Greg Frost [ Mon Jan 23, 2006 2:11 pm ] |
Post subject: | |
just type mode2 and point your remote at the receiver and press buttons. You should see pulse length details written to the terminal. Not sure if lircd needs to be running, but the lirc_serial module will need to be loaded. It will default to being setup for one of the com ports (probably COM1). You can change the serial port it uses by specifying module options. |
Author: | madsholme [ Mon Jan 23, 2006 2:39 pm ] |
Post subject: | |
Greg Frost wrote: just type mode2 and point your remote at the receiver and press buttons.
You should see pulse length details written to the terminal. Not sure if lircd needs to be running, but the lirc_serial module will need to be loaded. It will default to being setup for one of the com ports (probably COM1). You can change the serial port it uses by specifying module options. Code: root@Frontend-Mads:~# lsmod Module Size Used by sg 30496 0 snd_emu10k1 103460 0 snd_util_mem 5376 1 snd_emu10k1 i2c_viapro 8848 0 ehci_hcd 31368 0 shpchp 91524 0 pci_hotplug 27716 1 shpchp 8250_pnp 10240 0 pcspkr 5344 0 cx8800 28044 0 cx88xx 53024 1 cx8800 ir_common 8836 1 cx88xx ivtv 206228 0 lirc_i2c 10372 0 lirc_dev 14852 1 lirc_i2c snd_intel8x0 29632 0 snd_ymfpci 56000 0 snd_opl3_lib 10496 1 snd_ymfpci snd_hwdep 8992 2 snd_emu10k1,snd_opl3_lib smbfs 60152 2 ipv6 240128 12 ttusb_dec 22028 0 ttusbdecfe 4992 1 ttusb_dec dvb_ttusb_budget 30364 0 cx22700 7044 1 dvb_ttusb_budget budget_av 14464 0 tda10021 7684 1 budget_av budget_ci 12288 0 budget 10752 0 s5h1420 9860 1 budget via 38272 1 drm 64024 2 via budget_core 8836 3 budget_av,budget_ci,budget dvb_ttpci 88004 0 l64781 8452 2 budget,dvb_ttpci tda8083 7044 3 dvb_ttusb_budget,budget,dvb_ttpci stv0297 9216 1 dvb_ttpci sp8870 8588 1 dvb_ttpci ttpci_eeprom 4352 2 budget_core,dvb_ttpci saa7146_vv 44672 2 budget_av,dvb_ttpci saa7146 16520 6 budget_av,budget_ci,budget,budget_core,dvb_ttpci,saa7146_vv mt312 8964 0 tda1004x 14724 3 dvb_ttusb_budget,budget_av,budget_ci ves1820 7172 3 dvb_ttusb_budget,budget,dvb_ttpci stv0299 11912 5 dvb_ttusb_budget,budget_av,budget_ci,budget,dvb_ttpci ves1x93 7940 2 budget,dvb_ttpci dvb_bt8xx 11780 0 nxt6000 8580 1 dvb_bt8xx mt352 7812 1 dvb_bt8xx sp887x 8836 1 dvb_bt8xx dst_ca 14848 1 dvb_bt8xx or51211 11140 1 dvb_bt8xx dst 19332 2 dvb_bt8xx,dst_ca bt878 10200 2 dvb_bt8xx,dst cx24110 8836 1 dvb_bt8xx dvb_core 75304 9 ttusb_dec,dvb_ttusb_budget,budget_av,budget_ci,budget,budget_core,dvb_ttpci,dvb_bt8xx,dst_ca bttv 154000 2 dvb_bt8xx,bt878 i2c_algo_bit 10504 3 cx88xx,ivtv,bttv btcx_risc 5896 3 cx8800,cx88xx,bttv tveeprom 14380 2 cx88xx,bttv i2c_core 19200 32 i2c_viapro,cx88xx,lirc_i2c,dvb_ttusb_budget,cx22700,budget_av,tda10021,budget_ci,budget,s5h1420,budget_core,dvb_ttpci,l64781,tda8083,stv0297,sp8870,ttpci_eeprom,mt312,tda1004x,ves1820,stv0299,ves1x93,dvb_bt8xx,nxt6000,mt352,sp887x,or51211,dst,cx24110,bttv,i2c_algo_bit,tveeprom video_buf 18948 4 cx8800,cx88xx,saa7146_vv,bttv v4l2_common 6784 3 cx8800,saa7146_vv,bttv v4l1_compat 14980 2 cx8800,saa7146_vv videodev 9472 5 cx8800,cx88xx,ivtv,saa7146_vv,bttv skge 34832 0 autofs4 17796 1 af_packet 20616 0 snd_mixer_oss 17536 0 snd_via82xx 24512 0 gameport 13832 2 snd_ymfpci,snd_via82xx snd_ac97_codec 76412 4 snd_emu10k1,snd_intel8x0,snd_ymfpci,snd_via82xx snd_pcm 78084 5 snd_emu10k1,snd_intel8x0,snd_ymfpci,snd_via82xx,snd_ac97_codec snd_timer 22532 4 snd_emu10k1,snd_ymfpci,snd_opl3_lib,snd_pcm snd_page_alloc 10120 5 snd_emu10k1,snd_intel8x0,snd_ymfpci,snd_via82xx,snd_pcm snd_mpu401_uart 7808 2 snd_ymfpci,snd_via82xx snd_rawmidi 21920 2 snd_emu10k1,snd_mpu401_uart snd_seq_device 8716 3 snd_emu10k1,snd_opl3_lib,snd_rawmidi snd 47972 13 snd_emu10k1,snd_intel8x0,snd_ymfpci,snd_opl3_lib,snd_hwdep,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device soundcore 9312 1 snd via_rhine 21892 0 mii 6400 1 via_rhine via_ircc 21140 0 irda 118584 1 via_ircc crc_ccitt 3840 1 irda via_agp 9472 1 agpgart 30416 2 drm,via_agp parport_pc 37444 0 tsdev 7872 0 evdev 9088 0 parport 32456 1 parport_pc 8250 22660 1 8250_pnp serial_core 20096 1 8250 pcmcia 32808 0 firmware_class 9728 12 ttusb_dec,dvb_ttusb_budget,budget_av,budget_ci,dvb_ttpci,sp8870,tda1004x,dvb_bt8xx,sp887x,or51211,bttv,pcmcia yenta_socket 22924 0 rsrc_nonstatic 12800 1 yenta_socket pcmcia_core 36888 3 pcmcia,yenta_socket,rsrc_nonstatic video 16260 0 thermal 12936 0 processor 23016 1 thermal fan 5252 0 usbhid 42208 0 container 5248 0 button 6928 0 battery 10372 0 ac 5508 0 rtc 12088 0 ohci1394 32436 0 ieee1394 299352 1 ohci1394 usb_storage 60608 0 ohci_hcd 20484 0 uhci_hcd 31760 0 usbcore 103932 8 ehci_hcd,ttusb_dec,dvb_ttusb_budget,usbhid,usb_storage,ohci_hcd,uhci_hcd tmscsim 22976 0 BusLogic 76564 0 root@Frontend-Mads:~# If i type mode2 /dev/ttyS0 i just get this: Code: root@Frontend-Mads:~# mode2 /dev/ttyS0
mode2: error opening /dev/lirc mode2: No such device root@Frontend-Mads:~# samewith ttyS1 |
Author: | Greg Frost [ Mon Jan 23, 2006 3:03 pm ] |
Post subject: | |
modprobe lirc_serial |
Author: | madsholme [ Mon Jan 23, 2006 3:39 pm ] |
Post subject: | |
Greg Frost wrote: modprobe lirc_serial
Code: root@Frontend-Mads:~# modprobe lirc_serial
FATAL: Error inserting lirc_serial (/lib/modules/2.6.13.2-chw-3/misc/lirc_serial.ko): Device or resource busy root@Frontend-Mads:~# ? |
Author: | Greg Frost [ Mon Jan 23, 2006 4:07 pm ] |
Post subject: | |
setserial /dev/ttyS0 uart none modprobe lirc_serial. You really need to go and read one of the IR Blaster tutorial/howtos. The configuration for an IR blaster is identical to a home brew receiver (when configured, you can have a receiver and a blaster on the same serial port). |
Author: | madsholme [ Mon Jan 23, 2006 4:12 pm ] |
Post subject: | |
Greg Frost wrote: setserial /dev/ttyS0 uart none
modprobe lirc_serial. You really need to go and read one of the IR Blaster tutorial/howtos. The configuration for an IR blaster is identical to a home brew receiver (when configured, you can have a receiver and a blaster on the same serial port). tnx i got it to show trash on the screen now. So i guess i can just use any of the guides on the wiki now? |
Author: | madsholme [ Mon Jan 23, 2006 4:42 pm ] |
Post subject: | |
alright i am following the misc guide here: http://knoppmythwiki.org/index.php?page=LIRCHowTo it tells me to add something to to a file in: Code: edit /etc/modprobe.d/lirc
change lirc_i2c to lirc_serial on both lines How ever this file dont extixt in a26 any ideas or link to better guides to use? |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |