Support and General Use > Hardware

X5 button problem while in WPS

(1/3) > >>

Sherv:
I'm torn between posting this in the Audio Playback forum and the Hardware forum, I'm not sure where this fits but...

So I've been running the latest daily builds on my iAudio X5 and one thing I've noticed is that occasionally when I'm trying to skip the song playing by pressing right on the joystick the player will not register this properly and instead drops me out of the WPS as if I had pressed the joystick down (into the player). I hit up IRC and someone suggested that it's not necessarily a hardware problem but that rockbox could perhaps be modified, something about debouncing or bouncing was said (sorry, memory is hazy). This was mentioned before in http://forums.rockbox.org/index.php?topic=4154.0 but I only notice it when in the WPS; while navigating or using plugins this button mixup does not manifest itself.

Any ideas as to whether this is indeed a hardware problem or whether it can be rectified via the firmware? Thanks!

etchasketch:
Hello, I am new here, and just got an iAudio X5 last week.  

I loaded up rockbox and noticed that my joystick was sometimes quite twitchy. For example, if i clicked left it would often register a left button, then on release would fire off a short right button. Also, it was sometimes picking up buttons i never touched, like Record, while moving the joystick.

As i'm a programmer, i took a look through the rockbox source and noticed that when the firmware polls for a button, it makes sure the button state it just read from the hardware is the same as the last time it read the state (during the previous tick). This is equivalent to 'rockbox only registers a button state as valid if it reads the same state two times in a row'.

I extended this to 'rockbox only registers a button state as valid if it reads the same state four times in a row' and it (so far) has vastly improved my situation. Of course, there is about 2ms more lag on the button presses, but it's helped stop the phantom button presses.

I believe this is what debouncing is, although I personally call it filtering. If my joystick fails more I might have to add either more filtering or something more drastic.

On a related note, I'm quite disappointed in the X5's joystick, as my player is brand new. Rockbox shows the problems much more than the original firmware does.

So, to answer your question... it might be able to be rectified via firmware. My problem sounds similar.

xlarge:
Really odd.
I've never felt anything like that.
But then again my x5 is ~1½ year old by now and i used it a full 10 months on original firmware.
Who knows, something might have changed in hardware since i bought mine.

Sherv:

--- Quote from: etchasketch on December 12, 2006, 10:45:54 PM ---Hello, I am new here, and just got an iAudio X5 last week.  

I loaded up rockbox and noticed that my joystick was sometimes quite twitchy. For example, if i clicked left it would often register a left button, then on release would fire off a short right button. Also, it was sometimes picking up buttons i never touched, like Record, while moving the joystick.

As i'm a programmer, i took a look through the rockbox source and noticed that when the firmware polls for a button, it makes sure the button state it just read from the hardware is the same as the last time it read the state (during the previous tick). This is equivalent to 'rockbox only registers a button state as valid if it reads the same state two times in a row'.

I extended this to 'rockbox only registers a button state as valid if it reads the same state four times in a row' and it (so far) has vastly improved my situation. Of course, there is about 2ms more lag on the button presses, but it's helped stop the phantom button presses.

I believe this is what debouncing is, although I personally call it filtering. If my joystick fails more I might have to add either more filtering or something more drastic.

On a related note, I'm quite disappointed in the X5's joystick, as my player is brand new. Rockbox shows the problems much more than the original firmware does.

So, to answer your question... it might be able to be rectified via firmware. My problem sounds similar.

--- End quote ---

Ah yes, debouncing/filtering, that's the proper term. Thanks for your feedback, would it be possible for you to provide a patch for your changes? I won't notice the 2ms lag and would definitely appreciate the increased button reliability!

Thanks for your feedback and testing, glad to know I'm not alone  with this (what happened to the other X5 owners who suffer from this problem?)

RandomBob:
I am having similar problems with twitchy controls with my X5. I do not experience the problem with the original firmware. Can any one suggest a fix?

Navigation

[0] Message Index

[#] Next page

Go to full version