Rockbox

Tasklist

FS#6471 - Customizable remote buttons.

Attached to Project: Rockbox
Opened by Robert David (Robertek) - Monday, 25 December 2006, 11:14 GMT
Last edited by Thomas Martitz (kugel.) - Sunday, 05 June 2011, 11:38 GMT
Task Type Patches
Category Remote
Status Closed
Assigned To No-one
Operating System Iriver H100 series
Severity Low
Priority Normal
Reported Version Release 3.0
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

It would be nice if there were some option to customize buttons on remote control, the ability to map buttons to function you want.

Why I requested it is because I have an old IMP-400 remote and its mapping is different from the old IMP-400.

Maybe this will be good not only for H1x0 but also for such as iaudio X5, H3x0 etc

I imagine something like option with function and when is accessed it will assign first button that is pressed, something like that.
This task depends upon

Closed by  Thomas Martitz (kugel.)
Sunday, 05 June 2011, 11:38 GMT
Reason for closing:  Out of Date
Additional comments about closing:  There doesn't seem to be interest in this anymore. Open a new task if this is wrong.
Comment by Dominik Riebeling (bluebrother) - Tuesday, 26 December 2006, 19:37 GMT
This is currently not possible.

The buttons are read out using a resistor network over an ADC. This makes it necessary to check the buttons in a specific order. A different remote type will need completely different values for the ADC, and to make this reliable it's necessary to have some tolerances within the values. Simply using the first value samples won't work reliably.
Also, having customizable buttons will be a pain to support, so I'm strongly against adding such a feature.
Comment by Robert David (Robertek) - Tuesday, 26 December 2006, 20:58 GMT
I understand you, I have think about, I know that finding the exact value is hard, but the values are already set, sou it should be only question of reassigning a function to known value.

Maybe Im wrong.

So if its not possible so I would ask in which file are this function to button assignations?
Because the buttons works, nearly all of them, but they works in different position than I was used to on IMP-400 (they are set to work on H140 way, but the remote is not designed for that, have different position of buttons than remote for H1xx)
Comment by Robert David (Robertek) - Wednesday, 27 December 2006, 20:54 GMT
So I have little bit played with the buttons and I have a nearly perfect results.

I attach firmware/target/coldfire/iriver/h100/button-h100.c which is customized, fot those who want to set their old IMP400(350) remote.

Only think I find out that there is one button (button play which is used to power on the player) cant be set?!? I dont know why but it doesnt show any value in debuging screen (View IO ports). So I have changed the menu function with play function.
Also volume is set in reverse ordet than in IMP400 due to scroll function.

It only replace H300 remote functions (while this remote is recognizet as H300-remote), so maybe someone more involved could make a menu swich for this. (it is too advanced for me now)
Comment by Dominik Riebeling (bluebrother) - Thursday, 28 December 2006, 11:03 GMT
The power-on event gets generated by a separate line on the remote (SRT on the PCB, START on the h120 lcd remote). As this is hard wired you can't change it.

Btw, the remote ADC value gets read out as 0x00 ~ 0x01 for me. Looks like the h300 remote value is usually higher (but I don't have one, so I can't check), so this could get added as an additional remote type.
Comment by Robert David (Robertek) - Thursday, 28 December 2006, 13:43 GMT
Thats sad if it is hard wired:( but it is only one button and it will be ok...

I have attached picture of the remote with button values, I have changed some numbers in button-h100.c

I was surprized that it is recognized as H300 remote, (I dont know H300 remote but H100 use similar to IMP550)

Here are my assignations:
OO STOP
18 VOL_DOWN
33 MODE
4C VOL_UP
67 BITRATE (+ 10)
7E REC
96 SOURCE (- 10)
B5 FF (FW)
CE ON (PLAY)
E8 BACK (BW)
Comment by Dominik Riebeling (bluebrother) - Friday, 29 December 2006, 20:20 GMT
I was referring to the ADC Remotedetect value in my previous post. That value is used to decide which type of remote is connected, and it could get extended to also detect that type of remote (so support for that remote could get bundled into a nice patch, but as it requires some more changes needed by the LCD I don't think this has good chances to get into cvs. If it's possible to reliably detect the remote it still may happen ...)

Loading...