more G-Labs products

Author Topic: IR SEND AND RECEIVE: Which is the best solution for HG ? USB device type ?  (Read 5118 times)

April 19, 2014, 12:42:01 PM
Read 5118 times

beller

  • *
  • Information
  • Newbie
  • Posts: 24

i'm running HG r345 from months in a raspberry PI v.2, i would to add support for IR send/receive , could i use this stable r345 version for me ? or is it better that i update to new releases ? are they stable ?

which USB ir send/receive device (i prefeare USB type) do i need to buy ?
is that device fully working with HG ? how to setup it ?

i have tryed a "MCE IR receiver" device type but appaers not working with HG with r345, i follow some thread here but i'm not enabled to have it working.. anyway it is only receive device, i think..

Thanks
bell

April 19, 2014, 01:11:42 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi beller,

is it worth updating to the latest r364 since it's stable and have lot of fixes.

Any Lirc compatible IR receiver/transmitter will work with HG.

I am succesfully enjoying my MCE USB transceiver on one Pi box and the builtin Rpi IR receiver on the second Pi box.

There's actually a bug: if Lirc is not up and running when HG starts it probably won't enable the IR interface (you'll see it grayed out).

So ensure that Lirc is running before HG starts.

Then add the "mce" remote from the Configuration->System section.

If you need further support feel free to ask.

Cheers,
g.

April 19, 2014, 02:15:00 PM
Reply #2

beller

  • *
  • Information
  • Newbie
  • Posts: 24

in order to use the Mce USB device with lircd, if i start from r364 rasp-pi image dowloaded from website, do i need to change only the /etc/modules file to:

lirc_dev
lirc_mceusb

???

then, start lircd, then configure and enable ir in HG ?

this step is not clear for me..

thanks
beller



April 19, 2014, 02:26:41 PM
Reply #3

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer

April 19, 2014, 02:40:15 PM
Reply #4

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Also in /etc/modules comment in the line with "lirc_rpi" like this:

Code: [Select]
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835
#lirc_rpi gpio_in_pin=18 gpio_out_pin=17


and reboot.

Cheers,
g.

April 19, 2014, 02:43:11 PM
Reply #5

beller

  • *
  • Information
  • Newbie
  • Posts: 24
i have changed /etc/modules line:

MODULES="mceusb"

restarted lircd:
sudo /etc/init.d/lirc restart

go in HG, configure->system:

enable lirc and added:
mceusb lircd.conf.mceusb

now, how to check if it's working ?

when i press volume button on remote command it don't produce events on HG, i'm not sure if all is working..

UPDATE:
********************************
i have try this commands:
pi@raspberrypi ~ $ sudo /etc/init.d/lirc stop
[ ok ] Stopping remote control daemon(s): LIRC:.
pi@raspberrypi ~ $ mode2 -d /dev/lirc0
mode2: could not get file information for /dev/lirc0
mode2: default_init(): No such file or directory
pi@raspberrypi ~ $

and appears device /dev/lirc0 is not present... ????

bell
« Last Edit: April 19, 2014, 03:22:43 PM by beller »

April 19, 2014, 03:22:19 PM
Reply #6

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Beller,

you DON'T have to add the line in /etc/modules.
Please read carefully my last two messages! =)

You will see that is working because pressing a button on the remote you will see a popup event.
Also by issuing a dmseg you will have:

Code: [Select]
[    5.739318] Registered IR keymap rc-rc6-mce
[    5.745647] input: Media Center Ed. eHome Infrared Remote Transceiver (1784:0006) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/rc/rc0/input0
[    6.179043] rc0: Media Center Ed. eHome Infrared Remote Transceiver (1784:0006) as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.0/rc/rc0
[    6.208277] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    6.657148] IR NEC protocol handler initialized
[    6.699576] IR RC5(x) protocol handler initialized
[    6.761686] IR RC6 protocol handler initialized
[    6.768873] IR JVC protocol handler initialized
[    6.779973] IR Sony protocol handler initialized
[    6.791980] IR SANYO protocol handler initialized
[    6.807068] IR MCE Keyboard/mouse protocol handler initialized
[    6.817595] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input1
[    6.831325] lirc_dev: IR Remote Control driver registered, major 248
[    6.962621] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0
[    6.985285] IR LIRC bridge handler initialized
[    7.249536] mceusb 1-1.2:1.0: Registered TopSeed Technology Corp. eHome Infrared Transceiver with mce emulator interface version 1
[    7.377006] mceusb 1-1.2:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x1 active)
[    7.494413] usbcore: registered new interface driver mceusb
[    9.344466] input: lircd as /devices/virtual/input/input2

Cheers,
g.

April 19, 2014, 03:26:55 PM
Reply #7

beller

  • *
  • Information
  • Newbie
  • Posts: 24
this is my dmesg:

[    2.121325] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.150057] registered taskstats version 1
[    2.160274] Waiting for root device /dev/mmcblk0p2...
[    2.191396] mmc0: read SD Status register (SSR) after 2 attempts
[    2.219387] mmc0: new high speed SDHC card at address 0001
[    2.231951] mmcblk0: mmc0:0001 00000 29.2 GiB
[    2.239245]  mmcblk0: p1 p2
[    2.292838] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.303846] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.312231] devtmpfs: mounted
[    2.317110] Freeing unused kernel memory: 144K (c0574000 - c0598000)
[    2.349407] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.357547] Indeed it is in host mode hprt0 = 00001101
[    2.560172] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.568530] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.578727] hub 1-1:1.0: USB hub found
[    2.584439] hub 1-1:1.0: 3 ports detected
[    2.869692] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    3.000215] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    3.008735] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.030775] smsc95xx v1.0.4
[    3.104413] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:0c:02:9c
[    3.199612] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    3.326728] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[    3.345141] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.365981] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
[    3.379604] usb 1-1.2: Manufacturer: Silicon Labs
[    3.385944] usb 1-1.2: SerialNumber: 0001
[    3.499657] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    3.633892] usb 1-1.3: New USB device found, idVendor=f304, idProduct=05a0
[    3.649466] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.658380] usb 1-1.3: Product: MCE IR Receiver
[    3.695468] input: MCE IR Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
[    3.724941] hid-generic 0003:F304:05A0.0001: input,hidraw0: USB HID v1.10 Keyboard [MCE IR Receiver] on usb-bcm2708_usb-1.3/input0
[    3.774641] input: MCE IR Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/input/input1
[    3.810417] hid-generic 0003:F304:05A0.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [MCE IR Receiver] on usb-bcm2708_usb-1.3/input1
[    4.015180] udevd[156]: starting version 175
[    5.609207] usbcore: registered new interface driver usbserial
[    5.726373] usbcore: registered new interface driver usbserial_generic
[    5.827244] usbserial: USB Serial support registered for generic
[    6.001115] usbcore: registered new interface driver cp210x
[    6.222741] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    6.301202] usbserial: USB Serial support registered for cp210x
[    6.309218] cp210x 1-1.2:1.0: cp210x converter detected
[    6.759579] usb 1-1.2: reset full-speed USB device number 4 using dwc_otg
[    6.933451] usb 1-1.2: cp210x converter now attached to ttyUSB0
[    9.914767] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.369987] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   11.162658] lirc_dev: IR Remote Control driver registered, major 248
[   19.184772] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   20.790237] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   24.487453] usbcore: registered new interface driver mceusb
[   24.604791] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[   24.900320] input: lircd as /devices/virtual/input/input2
[  468.073120] input: lircd as /devices/virtual/input/input3

appears present (New USB device found, idVendor=f304, idProduct=05a0), but i don't have /dev/lirc0 device !??

bell
« Last Edit: April 19, 2014, 03:28:37 PM by beller »

April 19, 2014, 03:44:27 PM
Reply #8

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
Hi beller,

step by step instructions follow.

1) Edit the /etc/lirc/hardware.conf file:
   sudo nano /etc/lirc/hardware.conf

Paste the following text into it:

Code: [Select]
########################################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"

# Don't start lircmd even if there seems to be a good config file
# START_LIRCMD=false

# Don't start irexec, even if a good config file seems to exist.
# START_IREXEC=false

# Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
DEVICE="/dev/lirc0"
MODULES="mceusb"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""
########################################################

2) edit /etc/modules like this:
   sudo nano /etc/modules

Code: [Select]
# /etc/modules: kernel modules to load at boot time.
#
# This file contains the names of kernel modules that should be loaded
# at boot time, one per line. Lines beginning with "#" are ignored.
# Parameters can be specified after the module name.

snd-bcm2835
#lirc_rpi gpio_in_pin=18 gpio_out_pin=17

3) reboot your raspi and keep your fingers crossed =)

Cheers,
g.

April 19, 2014, 04:01:40 PM
Reply #9

beller

  • *
  • Information
  • Newbie
  • Posts: 24
 :(
it doesn't work, i think the problem is that /dev/lirc0 is not present:

pi@raspberrypi ~ $ ls /dev/
autofs           loop4               ram13    tty1   tty30  tty51      vc-cma
block            loop5               ram14    tty10  tty31  tty52      vchiq
btrfs-control    loop6               ram15    tty11  tty32  tty53      vc-mem
bus              loop7               ram2     tty12  tty33  tty54      vcs
cachefiles       loop-control        ram3     tty13  tty34  tty55      vcs1
char             MAKEDEV             ram4     tty14  tty35  tty56      vcs2
console          mapper              ram5     tty15  tty36  tty57      vcs3
cpu_dma_latency  mem                 ram6     tty16  tty37  tty58      vcs4
disk             mmcblk0             ram7     tty17  tty38  tty59      vcs5
fb0              mmcblk0p1           ram8     tty18  tty39  tty6       vcs6
fd               mmcblk0p2           ram9     tty19  tty4   tty60      vcsa
full             net                 random   tty2   tty40  tty61      vcsa1
fuse             network_latency     raw      tty20  tty41  tty62      vcsa2
hidraw0          network_throughput  root     tty21  tty42  tty63      vcsa3
hidraw1          null                serial   tty22  tty43  tty7       vcsa4
input            ppp                 shm      tty23  tty44  tty8       vcsa5
kmsg             ptmx                snd      tty24  tty45  tty9       vcsa6
lircd            pts                 sndstat  tty25  tty46  ttyAMA0    xconsole
log              ram0                stderr   tty26  tty47  ttyprintk  zero
loop0            ram1                stdin    tty27  tty48  ttyUSB0
loop1            ram10               stdout   tty28  tty49  uinput
loop2            ram11               tty      tty29  tty5   urandom
loop3            ram12               tty0     tty3   tty50  usb
pi@raspberrypi ~ $

pi@raspberrypi ~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.10.34+ (dc4@dc4-arm-01) (gcc version 4.7.2 20120731 (prerelease) (crosstool-NG linaro-1.13.1+bzr2458 - Linaro GCC 2012.08) ) #661 PREEMPT Thu Mar 27 00:36:02 GMT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: BCM2708
[    0.000000] cma: CMA: reserved 16 MiB at 1b000000
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 114688
[    0.000000] free_area_init_node: node 0, pgdat c05d1ebc, node_mem_map c067e000
[    0.000000]   Normal zone: 896 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 114688 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc:
  • 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 113792
[    0.000000] Kernel command line: dma.dmachans=0x7f35 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708.boardrev=0xe bcm2708.serial=0xc00c029c smsc95xx.macaddr=B8:27:EB:0C:02:9C sdhci-bcm2708.emmc_clock_freq=250000000 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 448MB = 448MB total
[    0.000000] Memory: 431648k/431648k available, 27104k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xdc800000 - 0xff000000   ( 552 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xdc000000   ( 448 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05737e4   (5550 kB)
[    0.000000]       .init : 0xc0574000 - 0xc0598384   ( 145 kB)
[    0.000000]       .data : 0xc059a000 - 0xc05d29d0   ( 227 kB)
[    0.000000]        .bss : 0xc05d29d0 - 0xc067dbc0   ( 685 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:330
[    0.000000] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 4294967ms
[    0.000000] Switching to timer-based delay loop
[    0.000000] Console: colour dummy device 80x30
[    0.000000] console [tty1] enabled
[    0.001168] Calibrating delay loop (skipped), value calculated using timer frequency.. 2.00 BogoMIPS (lpj=10000)
[    0.001232] pid_max: default: 32768 minimum: 301
[    0.001703] Mount-cache hash table entries: 512
[    0.002500] Initializing cgroup subsys memory
[    0.002603] Initializing cgroup subsys devices
[    0.002642] Initializing cgroup subsys freezer
[    0.002676] Initializing cgroup subsys blkio
[    0.002831] CPU: Testing write buffer coherency: ok
[    0.003304] Setting up static identity map for 0xc04068e8 - 0xc0406944
[    0.005069] devtmpfs: initialized
[    0.019472] NET: Registered protocol family 16
[    0.025418] DMA: preallocated 4096 KiB pool for atomic coherent allocations
[    0.026536] bcm2708.uart_clock = 0
[    0.028274] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[    0.028329] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.028366] mailbox: Broadcom VideoCore Mailbox driver
[    0.028463] bcm2708_vcio: mailbox at f200b880
[    0.028568] bcm_power: Broadcom power driver
[    0.028607] bcm_power_open() -> 0
[    0.028632] bcm_power_request(0, 8)
[    0.529350] bcm_mailbox_read -> 00000080, 0
[    0.529395] bcm_power_request -> 0
[    0.529618] Serial: AMBA PL011 UART driver
[    0.529761] dev:f1: ttyAMA0 at MMIO 0x20201000 (irq = 83) is a PL011 rev3
[    0.872006] console [ttyAMA0] enabled
[    0.898225] bio: create slab <bio-0> at 0
[    0.903532] SCSI subsystem initialized
[    0.907519] usbcore: registered new interface driver usbfs
[    0.913231] usbcore: registered new interface driver hub
[    0.918782] usbcore: registered new device driver usb
[    0.925341] Switching to clocksource stc
[    0.929678] FS-Cache: Loaded
[    0.932839] CacheFiles: Loaded
[    0.948380] NET: Registered protocol family 2
[    0.953777] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    0.961044] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.967568] TCP: Hash tables configured (established 4096 bind 4096)
[    0.974050] TCP: reno registered
[    0.977311] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.983221] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.989948] NET: Registered protocol family 1
[    0.994867] RPC: Registered named UNIX socket transport module.
[    1.000930] RPC: Registered udp transport module.
[    1.005656] RPC: Registered tcp transport module.
[    1.010408] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.017770] bcm2708_dma: DMA manager at f2007000
[    1.022588] bcm2708_gpio: bcm2708_gpio_probe c05a7e50
[    1.028058] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[    1.037425] audit: initializing netlink socket (disabled)
[    1.043096] type=2000 audit(0.890:1): initialized
[    1.204722] VFS: Disk quotas dquot_6.5.2
[    1.208971] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.217899] FS-Cache: Netfs 'nfs' registered for caching
[    1.224627] NFS: Registering the id_resolver key type
[    1.229916] Key type id_resolver registered
[    1.234125] Key type id_legacy registered
[    1.238845] msgmni has been set to 875
[    1.244764] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.252614] io scheduler noop registered
[    1.256578] io scheduler deadline registered (default)
[    1.262168] io scheduler cfq registered
[    1.267459] BCM2708FB: allocated DMA memory 5b400000
[    1.272639] BCM2708FB: allocated DMA channel 0 @ f2007000
[    1.288174] Console: switching to colour frame buffer device 82x26
[    1.298286] uart-pl011 dev:f1: no DMA platform data
[    1.304727] kgdb: Registered I/O driver kgdboc.
[    1.311317] vc-cma: Videocore CMA driver
[    1.316570] vc-cma: vc_cma_base      = 0x00000000
[    1.322593] vc-cma: vc_cma_size      = 0x00000000 (0 MiB)
[    1.329236] vc-cma: vc_cma_initial   = 0x00000000 (0 MiB)
[    1.345087] brd: module loaded
[    1.354636] loop: module loaded
[    1.359264] vchiq: vchiq_init_state: slot_zero = 0xdb000000, is_master = 0
[    1.368362] Loading iSCSI transport class v2.0-870.
[    1.375748] usbcore: registered new interface driver smsc95xx
[    1.383325] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    1.590597] Core Release: 2.80a
[    1.595008] Setting default values for core params
[    1.601089] Finished setting default values for core params
[    1.807915] Using Buffer DMA mode
[    1.812500] Periodic Transfer Interrupt Enhancement - disabled
[    1.819614] Multiprocessor Interrupt Enhancement - disabled
[    1.826420] OTG VER PARAM: 0, OTG VER FLAG: 0
[    1.832054] Dedicated Tx FIFOs mode
[    1.837339] dwc_otg: Microframe scheduler enabled
[    1.837571] dwc_otg bcm2708_usb: DWC OTG Controller
[    1.843827] dwc_otg bcm2708_usb: new USB bus registered, assigned bus number 1
[    1.852426] dwc_otg bcm2708_usb: irq 32, io mem 0x00000000
[    1.859193] Init: Port Power? op_state=1
[    1.864404] Init: Power Port (0)
[    1.868982] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.877234] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.885866] usb usb1: Product: DWC OTG Controller
[    1.891969] usb usb1: Manufacturer: Linux 3.10.34+ dwc_otg_hcd
[    1.899159] usb usb1: SerialNumber: bcm2708_usb
[    1.905831] hub 1-0:1.0: USB hub found
[    1.911029] hub 1-0:1.0: 1 port detected
[    1.916571] dwc_otg: FIQ enabled
[    1.916588] dwc_otg: NAK holdoff enabled
[    1.916598] dwc_otg: FIQ split fix enabled
[    1.916617] Module dwc_common_port init
[    1.917071] usbcore: registered new interface driver usb-storage
[    1.924881] mousedev: PS/2 mouse device common for all mice
[    1.932524] bcm2835-cpufreq: min=700000 max=700000 cur=700000
[    1.939799] bcm2835-cpufreq: switching to governor powersave
[    1.946751] bcm2835-cpufreq: switching to governor powersave
[    1.953679] cpuidle: using governor ladder
[    1.958971] cpuidle: using governor menu
[    1.964148] sdhci: Secure Digital Host Controller Interface driver
[    1.971605] sdhci: Copyright(c) Pierre Ossman
[    1.977225] sdhci: Enable low-latency mode
[    2.019374] mmc0: SDHCI controller on BCM2708_Arasan [platform] using platform's DMA
[    2.029821] mmc0: BCM2708 SDHC host at 0x20300000 DMA 2 IRQ 77
[    2.037045] sdhci-pltfm: SDHCI platform and OF driver helper
[    2.044172] ledtrig-cpu: registered to indicate activity on CPUs
[    2.053752] hidraw: raw HID events driver (C) Jiri Kosina
[    2.068040] usbcore: registered new interface driver usbhid
[    2.075121] usbhid: USB HID core driver
[    2.084968] TCP: cubic registered
[    2.091712] Initializing XFRM netlink socket
[    2.099468] NET: Registered protocol family 17
[    2.105436] Key type dns_resolver registered
[    2.114387] Indeed it is in host mode hprt0 = 00021501
[    2.121375] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[    2.150108] registered taskstats version 1
[    2.160321] Waiting for root device /dev/mmcblk0p2...
[    2.179473] mmc0: new high speed SDHC card at address 0001
[    2.199615] mmcblk0: mmc0:0001 00000 29.2 GiB
[    2.206799]  mmcblk0: p1 p2
[    2.292754] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    2.303842] VFS: Mounted root (ext4 filesystem) on device 179:2.
[    2.312233] devtmpfs: mounted
[    2.317111] Freeing unused kernel memory: 144K (c0574000 - c0598000)
[    2.339438] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    2.347834] Indeed it is in host mode hprt0 = 00001101
[    2.550036] usb 1-1: New USB device found, idVendor=0424, idProduct=9512
[    2.558354] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    2.571605] hub 1-1:1.0: USB hub found
[    2.577444] hub 1-1:1.0: 3 ports detected
[    2.859704] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    2.990083] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
[    2.998591] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    3.025936] smsc95xx v1.0.4
[    3.094558] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-bcm2708_usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:0c:02:9c
[    3.209807] usb 1-1.2: new full-speed USB device number 4 using dwc_otg
[    3.336615] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
[    3.355582] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.373350] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
[    3.389497] usb 1-1.2: Manufacturer: Silicon Labs
[    3.395829] usb 1-1.2: SerialNumber: 0001
[    3.499667] usb 1-1.3: new low-speed USB device number 5 using dwc_otg
[    3.621771] usb 1-1.3: New USB device found, idVendor=f304, idProduct=05a0
[    3.639513] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.648416] usb 1-1.3: Product: MCE IR Receiver
[    3.684613] input: MCE IR Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.0/input/input0
[    3.709915] hid-generic 0003:F304:05A0.0001: input,hidraw0: USB HID v1.10 Keyboard [MCE IR Receiver] on usb-bcm2708_usb-1.3/input0
[    3.766607] input: MCE IR Receiver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.3/1-1.3:1.1/input/input1
[    3.800432] hid-generic 0003:F304:05A0.0002: input,hiddev0,hidraw1: USB HID v1.10 Mouse [MCE IR Receiver] on usb-bcm2708_usb-1.3/input1
[    4.006371] udevd[156]: starting version 175
[    5.382340] usbcore: registered new interface driver usbserial
[    5.596847] usbcore: registered new interface driver usbserial_generic
[    5.675744] usbserial: USB Serial support registered for generic
[    5.797006] usbcore: registered new interface driver cp210x
[    5.999706] usbserial: USB Serial support registered for cp210x
[    6.192626] bcm2708-i2s bcm2708-i2s.0: Failed to create debugfs directory
[    6.201597] cp210x 1-1.2:1.0: cp210x converter detected
[    6.489957] usb 1-1.2: reset full-speed USB device number 4 using dwc_otg
[    6.716899] usb 1-1.2: cp210x converter now attached to ttyUSB0
[    9.900258] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   10.390086] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[   18.923413] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
[   20.544325] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
[   24.326127] Adding 102396k swap on /var/swap.  Priority:-1 extents:1 across:102396k SSFS
[   24.506893] usbcore: registered new interface driver mceusb
[   24.807127] input: lircd as /devices/virtual/input/input2
[  500.338167] input: lircd as /devices/virtual/input/input3
pi@raspberrypi ~ $

any advise ?

if i buy this device, do you think it works ?:
http://iguanaworks.net/products/usb-ir-transceiver/

it have 2 Channels, for send and receive, is this supported from HG ?

bell

April 19, 2014, 04:05:16 PM
Reply #10

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer

April 19, 2014, 04:07:23 PM
Reply #11

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
This is my MCE transceiver:

Code: [Select]
[    3.371477] usb 1-1.2: New USB device found, idVendor=1784, idProduct=0006
[    3.380382] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    3.389474] usb 1-1.2: Product: eHome Infrared Transceiver
[    3.396601] usb 1-1.2: Manufacturer: TopSeed Technology Corp.

that is different brand/model from yours. You have to find out if yours is supported by lirc.

g.

April 19, 2014, 04:10:51 PM
Reply #12

beller

  • *
  • Information
  • Newbie
  • Posts: 24
here it is:

pi@raspberrypi ~ $
pi@raspberrypi ~ $ lsusb
Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp.
Bus 001 Device 004: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 005: ID f304:05a0
pi@raspberrypi ~ $

the device is "Bus 001 Device 005: ID f304:05a0"

bell
« Last Edit: April 19, 2014, 04:13:00 PM by beller »

April 19, 2014, 04:17:34 PM
Reply #13

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer
very anonymous mce device =/
The vendor id is f304 the product id 05a0, but no description.
From your dmesg I see that raspi recognize it, but lirc doesn't do anything with it.

Probably you have to change the /etc/lirc/hardware.conf for using a different driver than mceusb.

Ain't a lirc expert, so I suggest to google and find lirc settings for your specific mce device model.

try this:
http://www.linuxquestions.org/questions/gentoo-87/lirc-9-with-media-center-edition-mce-transceiver-in-kernel-3-3-4-%5Bsolved%5D-944015/

g.

April 19, 2014, 05:07:41 PM
Reply #14

beller

  • *
  • Information
  • Newbie
  • Posts: 24
Hi Gene,

i have ordered this device: http://iguanaworks.net/products/usb-ir-transceiver/

hybrid version because i need to try 2 different sending orientation , it arrive in about 2 weeks, i will know you how it works!

thanks for now, i'm currently testing r364.
bell