mce usb configuration woes - receive and transmit

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

mce usb configuration woes - receive and transmit

Justin Schwalbe

Greetings. Brand new to lircd and mailinglists, sorry for any faux pas I may commit. This is also cross posted on ubuntuforums but I think the mods moved it inappropriately so it’s not getting any attention. So here goes:


I'm running a new install of Ubuntu 16.04. lircd 0.9 installed via apt-get. I've got a HP MCE USB IR Transceiver device that I'd like to use to turn send IR signals to turn on/off projector and a receiver, etc.  This is the device: https://www.aliexpress.com/item/New-MCE-USB-Receiver-for-HP-Wireless-MCE-USB-Infrared-Receiver-VISTA-WIN-7-RC6-remote/32621962879.html?spm=2114.40010408.3.1.STGMWk


So far it seems the device partially works.. but I need some help. I've been able to "record" remote keypresses. But I when I try to use irsend, the IR blaster blinks a red light but doesn't control any of my devices (nothing happens). 


Upon plugging in the USB Transceiver -- dmesg:

Code:

[174812.112065] usb 3-1: new full-speed USB device number 4 using uhci_hcd[174812.282128] usb 3-1: New USB device found, idVendor=0471, idProduct=0815

[174812.282137] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3

[174812.282143] usb 3-1: Product: eHome Infrared Transceiver

[174812.282149] usb 3-1: Manufacturer: Philips

[174812.282154] usb 3-1: SerialNumber: PH00Zrpu

[174812.290135] Registered IR keymap rc-rc6-mce

[174812.290366] input: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/rc/rc0/input12

[174812.290578] rc0: Media Center Ed. eHome Infrared Remote Transceiver (0471:0815) as /devices/pci0000:00/0000:00:1d.1/usb3/3-1/3-1:1.0/rc/rc0

[174812.290922] input: MCE IR Keyboard/Mouse (mceusb) as /devices/virtual/input/input13

[174812.292259] rc rc0: lirc_dev: driver ir-lirc-codec (mceusb) registered at minor = 0

[174812.500088] mceusb 3-1:1.0: Registered Philips eHome Infrared Transceiver with mce emulator interface version 1

[174812.500098] mceusb 3-1:1.0: 2 tx ports (0x0 cabled) and 2 rx sensors (0x1 active)


dpkg-reconfigure lirc --> (selected these, but not sure if correct)

Remote control configuration: Windows Media Center Transceivers/Remotes (all) 

IR transmitter, if present: Microsoft Windows Media Center V2 (usb) : Scientific Atlanta Cable box


When I do the following (and mash buttons on remotes):

Code:

ob1@epic:~$ sudo cat /dev/lirc0 

?"0X?X?X?XrX?X?X?X?X@?@X?X?XrX?X?X?X@?@XrX?X?X?X?X@??X?X?X@XrX@XrX?X???"X???^C



and mashing on remotes again:

Code:

ob1@epic:~$ sudo mode2 -d /dev/lirc0

space 16777215

pulse 9000

space 4350

pulse 650

[. . .]^C


ob1@epic:/tmp$ sudo irrecord --device /dev/lirc0 -f /tmp/ACER --disable-namespace


Which created a file:

Code:

begin remote



  name  /tmp/ACER

  flags RAW_CODES|CONST_LENGTH

  eps            30

  aeps          100



  gap          107209



      begin raw_codes



          name ASUS-POWER

             8950    4400     600     500     600     500

              600     500     600    1600     650     450

              650     500     600     500     600     500

              600    1600     650    1600     600     500

              600     500     600    1650     600     500

              600     500     600     500     600    1600

              650    1600     600    1600     650     500

              600     500     600     500     600     500

              600    1600     600     500     600     550

              600     500     600    1600     600    1650

              600    1600     600    1650     600     500

              600



      end raw_codes



end remote


ob1@epic:/tmp$ sudo cp ACER /etc/lirc/lircd.conf


And here's the rub:

Code:

ob1@epic:/tmp$ irsend SEND_ONCE /tmp/ACER ASUS-POWER

The IR blaster plugged into the back of this device flashes red once. The projector, however, does nothing.  


Where have I messed up? Anyone done this before? 


Thanks


------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mce usb configuration woes - receive and transmit

Bengt Martensson-2
On 09/03/16 15:17, Justin Schwalbe wrote:

> Greetings. Brand new to lircd and mailinglists, sorry for any faux pas I
> may commit. This is also cross posted on ubuntuforums but I think
> the mods moved it inappropriately so it’s not getting any attention. So
> here goes:
>
>
> I'm running a new install of Ubuntu 16.04. lircd 0.9 installed via
> apt-get. I've got a HP MCE USB IR Transceiver device that I'd like to
> use to turn send IR signals to turn on/off projector and a receiver,
> etc.  This is the
> device: https://www.aliexpress.com/item/New-MCE-USB-Receiver-for-HP-Wireless-MCE-USB-Infrared-Receiver-VISTA-WIN-7-RC6-remote/32621962879.html?spm=2114.40010408.3.1.STGMWk
>
>
> So far it seems the device partially works.. but I need some help. I've
> been able to "record" remote keypresses. But I when I try to use irsend,
> the IR blaster blinks a red light but doesn't control any of my devices
> (nothing happens).

The device does not contain an IR sender. You have to connect one such
at one of the 3.5mm plugs at the back end. Something like this:
http://www.smarthome.com/calrad-92-152-single-ir-flashing-emitter.html 
(Possibly there was one in the packing?)

The device (with connected senders) thus contains 2 transmitters that
can be operated by set_transmitters. But the driver does not implement
ioctl LIRC_SET_TRANSMITTER_MASK correctly, so this number "2" is never
reported.

BTW, the just released version of IrScrutinizer (1.3) can read and write
(assuming connected IR sender!) from this device directly.

Greetz,

Bengt


------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mce usb configuration woes - receive and transmit

Justin Schwalbe

> On Sat 9/3/16, at 10:04 AM, Bengt Martensson wrote:
>
> The device does not contain an IR sender. You have to connect one such
> at one of the 3.5mm plugs at the back end. Something like this:
> http://www.smarthome.com/calrad-92-152-single-ir-flashing-emitter.html 
> (Possibly there was one in the packing?)
>
> The device (with connected senders) thus contains 2 transmitters that
> can be operated by set_transmitters. But the driver does not implement
> ioctl LIRC_SET_TRANSMITTER_MASK correctly, so this number "2" is never
> reported.
>
> BTW, the just released version of IrScrutinizer (1.3) can read and write
> (assuming connected IR sender!) from this device directly.
>
> Greetz,
>
> Bengt

Thank you, Bengt!

- I have the IR transmitter (2.5 mm plug) you speak of, and it is indeed plugged into the back of the MCE device. This is the thing that “blinks a red light” that I mentioned with irsend, that’s what’s flashing.  But the flashes don’t seem to translate to something that controls my devices.
- I’ve toyed around with (I believe) USE_TRANSMITTER 1 (vs 2) and when I select 2 nothing blinks, when I select 1, it does blink. So I assume I’m doing that correctly.
- I will check out this IrScrutinzer you speak of and report back! In the mean time I’d love any additional sage wisdom. :)

Justin
------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mce usb configuration woes - receive and transmit

Justin Schwalbe
In reply to this post by Bengt Martensson-2
Well I’m somewhat sheepish about this - but turns out I was doing thing right. The IR blaster was just too far away. Apparently it needs to be like 2 cm away to work!

So any recommendations on making it act more like a handheld remote which can go across the room?

Thanks!
------------------------------------------------------------------------------
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: mce usb configuration woes - receive and transmit

Bengt Martensson-2
On 09/04/16 21:55, [hidden email] wrote:
> Well I’m somewhat sheepish about this - but turns out I was doing thing right. The IR blaster was just too far away. Apparently it needs to be like 2 cm away to work!

So, you should not call it "blaster", but rather "emitter". IMHO...

> So any recommendations on making it act more like a handheld remote which can go across the room?

DIY or ready built? For the former, use one or more high-power IR LED
(940-950nm), one NPN or FET switching transistor, etc.

The HP-MCE has a lot of air inside, so building a (real) blaster into
it, behind the front window should be quite feasible.

More details on request if you say what you want.

Greetz,

Bengt

------------------------------------------------------------------------------
Loading...