Author Topic: Emprex 3009URF RF Vista MCE remote  (Read 5073 times)

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Emprex 3009URF RF Vista MCE remote
« on: April 01, 2010, 05:33:18 pm »
Took a gamble and bought this mce RF remote from Amazon.
http://www.amazon.co.uk/Emprex-3009URF-Windows-Center-Control/dp/B002A8HEFY/

USB receiver dongle plugs in, connected the remote and had 90% functionality straight away using 810.

Missing functions are the green mce button (biggest pain), mute and volume do nothing. All media keys work as expected as does 'guide', 'back', all numbers, channel up/down. So it's almost there. Just that magic green button and I'd be happy.

Comments on Amazon regarding linux use:
http://www.amazon.co.uk/review/R24W6CO393NC4I/ref=cm_cr_rdp_perm

Installs as a hid device/keyboard. Anyone tried this remote? Any thoughts on how or if I can get the green mce button to work?

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #1 on: April 01, 2010, 05:56:38 pm »
Tried:
cat /dev/hiddev1
And was able to see the raw key presses, but this is all new to me.

I thought a cheap RF remote might be a nice addition to lmce. Can someone with some expertise tell me if I am wasting my time?

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #2 on: October 02, 2010, 12:31:35 am »
Recently got this working. Turns out it has the same keycodes as the gyration 3101 minus the green menu button.

Option one is to duplicate the Go Cordless GC1005M template (1812) and add a mapping for the green button to a different key. I chose the pause button as the play button does both play and pause.

Then add the vendor id 046e5578 to the pnp section.

Option two is to add a single key mapping to the Go Cordless GC1005M template, with the main menu mapped to the escape key (for example). Then add the vendor id to this template. This would simply add a new unused key to the gyration template which would allow the Emprex to work but would not affect the gyration at all.

The advantage of the second approach is there is very little work to do and no duplication.

Both are compromises as the big green button is useless either way.

Obviously I have the new template with the pause button mapped ready for submission.
Barney

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #3 on: October 02, 2010, 03:20:44 am »
What's the key mapping? I'll add it here, with a new device template specifically for it.

-Thom

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #4 on: October 02, 2010, 11:40:22 am »
Thanks Thom,

I commented out the pause button in the configuration box:
#Pause,110,D

Then changed the f7 link mapping to be the pause button:
2,110=2,73
3,110=3,73

There are a few redundant keys in the config though.
Vendor id for pnp :
046e5578

I added the manufacturer Emprex, but I see they are also known as BTC.
Cheers
Barney

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #5 on: October 02, 2010, 06:56:07 pm »
Thom,
Tested for a couple of days now.

Could also do with mapping the 'escape/clear' button to a 'right mouse click'.
keycode:
escape,9

Is this possible? Where would I find the key mapping info?
73=f7 etc

Looked in the forums/wiki already with no luck.
Barney

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #6 on: October 02, 2010, 07:55:00 pm »
run and watch the output of xev in a console window as you press some keys inside the window that xev pops up.

-Thom

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #7 on: October 03, 2010, 01:04:28 am »
Thom,

I did that and got the 'escape, 9' keycode. I just don't know where to map it to for a right mouse click.

Barney

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #8 on: October 03, 2010, 02:08:19 am »
Thom,

The right mouse click shows as 'button 3' in xev. This mouse clicks doesn't have a 'keycode' in xev just the 'button 3' string.

What is the syntax for mapping keycode 9 escape to 'button 3'?  I've tried several combinations.
2,9=4,button 3
2,9=4,3

Cheers,
Barney

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile

b4rney

  • Guru
  • ****
  • Posts: 454
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #10 on: October 03, 2010, 12:15:36 pm »
Thom,

Been using that page already. It seems the right mouse button doesn't have a keycode output in xev so I'm stumped.

I'll keep digging.
Cheers
Barney

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5549
  • DOES work for LinuxMCE.
    • View Profile
Re: Emprex 3009URF RF Vista MCE remote
« Reply #11 on: October 03, 2010, 06:17:48 pm »
The Generic HID Interface code would need to be modified to handle this, I guess.

-Thom