Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- the working raspberry:
- =======================
- root@model2:~> uname -a
- Linux model2 3.6.11+ #557 PREEMPT Wed Oct 2 18:49:09 BST 2013 armv6l GNU/Linux
- =================================
- root@model2:~> cat /proc/modules
- evdev 9450 1 - Live 0xbf12d000
- uinput 6599 1 - Live 0xbf128000
- lirc_rpi 7274 3 - Live 0xbf122000 (C)
- lirc_dev 10224 1 lirc_rpi, Live 0xbf11b000
- cuse 4714 0 - Live 0xbf116000
- fuse 69438 2 cuse, Live 0xbf0fd000
- snd_bcm2835 16432 0 - Live 0xbf0f4000
- snd_pcm 77728 1 snd_bcm2835, Live 0xbf0d7000snd_page_alloc 5169 1 snd_pcm, Live 0xbf0d2000
- snd_seq 53482 0 - Live 0xbf0bd000
- snd_seq_device 6462 1 snd_seq, Live 0xbf0b7000snd_timer 20110 2 snd_pcm,snd_seq, Live 0xbf0ad000snd 58744 5 snd_bcm2835,snd_pcm,snd_seq,snd_seq_device,snd_timer, Live 0xbf095000
- leds_gpio 2243 0 - Live 0xbf091000
- led_class 3570 1 leds_gpio, Live 0xbf08d0008192cu 490361 0 - Live 0xbf000000
- =================================
- root@model2:~> modinfo lirc_rpi
- filename: /lib/modules/3.6.11+/kernel/drivers/staging/media/lirc/lirc_rpi.ko
- license: GPL
- author: Michael Bishop <[email protected]>
- author: Aron Robert Szabo <[email protected]>
- description: Infra-red receiver and blaster driver for Raspberry Pi GPIO.
- srcversion: 0B54549C1D79BC000B0DA0E
- depends: lirc_dev
- staging: Y
- intree: Y
- vermagic: 3.6.11+ preempt mod_unload modversions ARMv6
- parm: gpio_out_pin:GPIO output/transmitter pin number of the BCM processor. Valid pin numbers are: 0, 1, 4, 8, 7, 9, 10, 11, 14, 15, 17, 18, 21, 22, 23, 24, 25, default 17 (int)
- parm: gpio_in_pin:GPIO input pin number of the BCM processor. Valid pin numbers are: 0, 1, 4, 8, 7, 9, 10, 11, 14, 15, 17, 18, 21, 22, 23, 24, 25, default 18 (int)
- parm: sense:Override autodetection of IR receiver circuit (0 = active high, 1 = active low ) (bool)
- parm: softcarrier:Software carrier (0 = off, 1 = on, default on) (bool)
- parm: invert:Invert output (0 = off, 1 = on, default off (bool)
- parm: debug:Enable debugging messages (bool)
- from dmesg:
- ===========
- [ 12.653057] lirc_dev: IR Remote Control driver registered, major 248
- [ 12.677983] lirc_rpi: module is from the staging directory, the quality is unknown, you have been warned.
- [ 12.705546] lirc_rpi lirc_rpi.0: lirc_dev: driver lirc_rpi registered at minor = 0
- [ 12.731564] lirc_rpi: driver registered!
- [ 13.691477] lirc_rpi: auto-detected active high receiver on GPIO pin 18
- [ 14.238956] input: lircd as /devices/virtual/input/input0
- /etc/modules:
- =============
- lirc_rpi gpio_in_pin=23 gpio_out_pin=17
- lirc_dev
- /boot/cmdline.txt:
- ==================
- dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
- lircd.conf:
- ===========
- begin remote
- name OptSwitch
- bits 16
- flags SPACE_ENC|CONST_LENGTH
- eps 30
- aeps 100
- header 9038 4443
- one 613 1632
- zero 613 510
- ptrail 612
- repeat 9038 2196
- pre_data_bits 16
- pre_data 0x61D6
- gap 107849
- toggle_bit_mask 0x0
- begin codes
- power 0x7887
- 1 0x40BF
- 2 0x609F
- 3 0x10EF
- 4 0x20DF
- end codes
- end remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement