HaRET GPIO Discovery (for Android keyboard driver) - Touch Dual, MDA Touch Plus ROM Development

Right now I'm doing a little research (in my spare time) on adapting the keypad drivers that work on Vogue to also work on HTC Nike. Ducamie got me interested and sent me the files I needed, I poked around here and there and got overly enthousiastic PM-ing him a big bunch of text with maybe 2 words that actually made sense.
However, I think now I have the faintest clue of what to do:
Figure out GPIO codes for keys that are the same on both 16 and 20 key version (the dpad, the call buttons, camera button, power button and volume button should be the same I guess) using HaRET.
Adapt keymapping of board-htcvogue.c (since that's the one we use on our Niki devices?).
Find out additional keys (I can only do this for 16-key version as it's the only Niki I've got), and map those (maybe in board-htcvogue.c as well, maybe need to look at board-kaiser-keypad.c for that).
If anyone knows that I'm going at it all wrong, please tell me
Also, if anyone by any chance already had a run at the Niki and got the GPIO info I need, please do let me know.
I'm not new at programming but I am new at this kind of programming, so all sorts of things might go wrong or I might end up not getting there at all, but my goal is to make everything public, no matter where I get.
So even if I end up only getting the GPIO codes for the keys, if I fail writing the actual driver, the next developer will not need to get those codes and can get his hands on programming immediately.
I hope I am making sense, and I hope we'll be able to fix this driver ASAP, so we can actually try out Android without having to reboot to get back to the homescreen

There is not much interest in android on the dual - I have no idea why you guys arnt flooding the android threads with even idle curiosity.
Anyway, Graey, im glad you got the files and pretty much worked out what to do (sounds right to me). Have you had any luck with haret? Ive had it running in the past, logging key events but only jargon came out, i couldnt correlate between the event logs and key events in the code or see any pattern.
I can have another attempt if you like at the getting the gpio's or could help you set haret up if you have a linux box? i believe it can work via windows too but i only had luck with linux.
Let me know!

ducamie said:
There is not much interest in android on the dual - I have no idea why you guys arnt flooding the android threads with even idle curiosity.
Anyway, Graey, im glad you got the files and pretty much worked out what to do (sounds right to me). Have you had any luck with haret? Ive had it running in the past, logging key events but only jargon came out, i couldnt correlate between the event logs and key events in the code or see any pattern.
I can have another attempt if you like at the getting the gpio's or could help you set haret up if you have a linux box? i believe it can work via windows too but i only had luck with linux.
Let me know!
Click to expand...
Click to collapse
Well, ofcourse I have a Linux box, my main box is linux, I only use my windows laptop (which sadly enough doesn't run Linux right) to flash ROMs and in be .
It seems though that you already know a bit more about haret than I do, so if you could have another go at getting gpio's, that'd be great. And ofcourse on the long run it would be interesting for me to get haret up and running as well
Now I might seem to have a clue as to what to do, but currently that's just about it, I like to poke around in things and sometimes it results in something useful

I'll see what i can find! Dont hold your breath though.

would be awesome ducamie! i'd really love to see android running without problems on this htc device anyway: anyone got the new sdk running? it's posted on vogue site... replace android.zip in download link with android-new.zip... it freezes all the time for me... i got it to boot already, but i end up in a command prompt...

the_fish said:
would be awesome ducamie! i'd really love to see android running without problems on this htc device anyway: anyone got the new sdk running? it's posted on vogue site... replace android.zip in download link with android-new.zip... it freezes all the time for me... i got it to boot already, but i end up in a command prompt...
Click to expand...
Click to collapse
as you will see in the bootloader it says at the bottom "failed to mount sd card". this is because the new sdk is too large to boot from the phone memory so the vogue guys have it booting from the sd card. for this to work we will need a custom sd driver for the nike in our kernel.

Ok... I hope we'll get them soon anyway; where's jerpelea? Is he still working on the drivers?

ok, after lots of playing around this is the best i can get .
i realise some of these gpios are the same and i dont have a clue why - i dont think ive done anything wrong, so sorry if this is not what you need, but this is what haret was outputting for gpios.
16 key nike:
side volume buttons (both)
in1: in1-26(218)=0 (press in)
in1: in1-26(218)=1 (out press)
both start and end call buttons
in1: in1-26(218)=0
in1: in1-26(218)=1
nav up and down buttons
in1: in1-24(216)=0
in1: in1-24(216)=1
left
in1: in1-24(216)=0
in1: in1-24(216)=1
right
in1: in1-25(217)=0
in1: in1-25(217)=1
middle OK button
in1: in1-25(217)=0
in1: in1-25(217)=1
camera button
in1: in1-26(218)=0
in1: in1-26(218)=1
windows key
in1: in1-25(217)=0
in1: in1-25(217)=1
mail key
in1: in1-26(218)=0
in1: in1-26(218)=1
back key
in1: in1-24(216)=0
in1: in1-24(216)=1
1-5
in1: in1-23(215)=0
in1: in1-23(215)=1
6-0
in1: in1-22(214)=0
in1: in1-22(214)=1
* and #
in1: in1-24(216)=0
in1: in1-24(216)=1
i hope this is of some use.

oops i missed the IE key. oh well.

thanks for codes
i am working on the new kernel
BR

jerpelea said:
thanks for codes
i am working on the new kernel
BR
Click to expand...
Click to collapse
sweet
let me know if i can help in any way

ducamie said:
sweet
let me know if i can help in any way
Click to expand...
Click to collapse
please send me your kernel source and .config
thanks
br

jerpelea said:
please send me your kernel source and .config
thanks
br
Click to expand...
Click to collapse
u can find sources of the msm kernel at the android git ive posted before...

I'm working on fixing some keymapping on the polaris android build and need to check the GPIO for the OK button. Any idea on where I can go to find out how to do this?

Related

microsoft deepfish

Does anybody have the files for the web application?
Yes! here you go. activation code is: 8735644102444130
response
Why can't I navigate through it? I can see is but I can't make it do anything.
Use your navigation button so that you get a gray box. move it around and push again to zoom in.
Ive been looking for this, thank you
does this work on mda running wm5?
http://labs.live.com/deepfish/
You can download it direct from MS...
They stopped taking people a while ago
im surprised there is not more buzz about this!
But, I am happy with piscal for my WM6. Nothing matches the swiping support.
I will definitely be trying out (and possibly replacing piscal with) deepfish, when its out of beta of course.

Default Keyboard during Phone Usage?

All,
Can anyone provide me the tweak or registry key to allow for me to continue typing on the thumb board while on a phone call? (Presently while talking, the system defaults to the number pad while talking)
Any help would be appreciated. I have seen a couple threads about changing the default keyboard config, but not for this one directly.
Thanks,
Bob
bob_beringer said:
All,
Can anyone provide me the tweak or registry key to allow for me to continue typing on the thumb board while on a phone call? (Presently while talking, the system defaults to the number pad while talking)
Any help would be appreciated. I have seen a couple threads about changing the default keyboard config, but not for this one directly.
Thanks,
Bob
Click to expand...
Click to collapse
what rom r u using
Using AP4, had the same issue with AP 3.0 as well. I assume that they would be different registry keys, but any help would be appreciated...
bob_beringer said:
Using AP4, had the same issue with AP 3.0 as well. I assume that they would be different registry keys, but any help would be appreciated...
Click to expand...
Click to collapse
i will look into the reg for you cause on my rom it does not do that
irus said:
i will look into the reg for you cause on my rom it does not do that
Click to expand...
Click to collapse
Interesting, so when you are in a call and you type an SMS or email at the same time, the "Y U I H J K B M N ." keys don't type numbers in their place? I would love to have the letters instead of only numbers. The numbers are a help in 2% of the cases, but for the most part, I want to type notes about phone calls and without having the thumb board working, I am stuck with the touchscreen and it is much slower for me.
Either way, I appreaciate your help
v/r
Bob
bob_beringer said:
Interesting, so when you are in a call and you type an SMS or email at the same time, the "Y U I H J K B M N ." keys don't type numbers in their place? I would love to have the letters instead of only numbers. The numbers are a help in 2% of the cases, but for the most part, I want to type notes about phone calls and without having the thumb board working, I am stuck with the touchscreen and it is much slower for me.
Either way, I appreaciate your help
v/r
Bob
Click to expand...
Click to collapse
i just tested to confirm and yes that is correct. i was on a call and i hit notes and started typing and it types letters not numbers. i am looking at the reg files now
i used windiff to see if i could find a difference but there were sooooo many i could not find it sorry.
Thank you
Does anyone else have any ideas on how to set the keyboard mode while talking on the phone?
Thanks,
Bob
irus said:
what rom r u using
Click to expand...
Click to collapse
I'm using original spanish ROM WM6 and I have the same problem.
Me too
Let's bump this thread up the date sort:
AP 3.0, still. I can't get letters with the kbd at all when in a call, so I end up using an on-screen, or translating whatever I typed after the call. It sucks. I thought the active prg would dictate what happens with the keys. ???
I must admit the convenience of the automatic switch when in the phone app is nice.
I'm not getting why some units do this and some don't, or if it might be that people aren't using thier keyboards during a call in a different app.
Reg key? Any better ideas?
irus said:
i just tested to confirm and yes that is correct. i was on a call and i hit notes and started typing and it types letters not numbers. i am looking at the reg files now
Click to expand...
Click to collapse
On screen keyboard or hardware keyboard? On screen works fine, hardware not since WM6.
its important to me, i would love to type using thumb keyboard while talking, i can confirm that vanilla version of 6.1 does that too but its a beta rom and i like AP4, maybe the athena project people can inlight us about this matter and creat a patch for us to use
for importancy am trying to keep this up, guys its doable, someone is required to just lead us, at least someone post me a clean (hard reseted) registery from a rom that works during call normally, and i will install it on my mobile (which doesn't type letters during call) if it works then at leaset we know its defenatly registry and there for i dedicate my life for it. any clean registry anyone can supply
PS am willing to Hard reset but not willing to reflash another rom am very tried from that business
Rabia said:
for importancy am trying to keep this up, guys its doable, someone is required to just lead us, at least someone post me a clean (hard reseted) registery from a rom that works during call normally, and i will install it on my mobile (which doesn't type letters during call) if it works then at leaset we know its defenatly registry and there for i dedicate my life for it. any clean registry anyone can supply
PS am willing to Hard reset but not willing to reflash another rom am very tried from that business
Click to expand...
Click to collapse
If this drives you that nuts, then maybe you wouldn't mind doing a bit of investigation and sharing that with us?
Take a look at this registry key: HKLM\Software\HTC\SmartDialing\KeyboardMapping
There are some subkeys there, ToNum and ToSD. I'm guessing that those are responsible for the letter remapping. Would you mind taking a look and letting us know? Thanks!
Dialer/Dialer skine deppendent
It also could be that it is deppendent on dialer used in your system. Some dialers can switch keybaord to numbers and some can not. It would be nice if those who can write letters during a call could tell us which dialer is in their system.
Possible Path?
HKLM\Security\Phone\PhoneKeyMatch
Looks like this could be the ticket, will try to mess around with it and see if it makes any difference
v/r
Bob
Sogarth said:
If this drives you that nuts, then maybe you wouldn't mind doing a bit of investigation and sharing that with us?
Take a look at this registry key: HKLM\Software\HTC\SmartDialing\KeyboardMapping
There are some subkeys there, ToNum and ToSD. I'm guessing that those are responsible for the letter remapping. Would you mind taking a look and letting us know? Thanks!
Click to expand...
Click to collapse
tried that untill deleting the whole string, no apparent effect, am trying the other syggestion now
bob_beringer said:
HKLM\Security\Phone\PhoneKeyMatch
Looks like this could be the ticket, will try to mess around with it and see if it makes any difference
v/r
Bob
Click to expand...
Click to collapse
no still doesn't make a differnce too, any other suggestions
check out this thread, shows that it is really difficult to get the phone to accept changes, but that others are happy with the edits:
http://forum.xda-developers.com/archive/index.php/t-296857.html
Let me know if anyone can apply the fix and solve this problem...
v/r
Bob
bob_beringer said:
check out this thread, shows that it is really difficult to get the phone to accept changes, but that others are happy with the edits:
http://forum.xda-developers.com/archive/index.php/t-296857.html
Let me know if anyone can apply the fix and solve this problem...
v/r
Bob
Click to expand...
Click to collapse
it didn't work for me

seminoob seeks rom advice

hi all
many thanks to all who contribute here. I have a nike w supercid and hardspl which has allowed me to upgrade to wm 6.1 from htc.co.uk. here is my wish list, can you tell of which are possible with some rom?
1. ignore policy-enforced 15 lock timeout so phone never locks
2. turn my useless internet explorer button into an enter key
more to come shortly
xaphod said:
hi all
many thanks to all who contribute here. I have a nike w supercid and hardspl which has allowed me to upgrade to wm 6.1 from htc.co.uk. here is my wish list, can you tell of which are possible with some rom?
1. ignore policy-enforced 15 lock timeout so phone never locks
2. turn my useless internet explorer button into an enter key
more to come shortly
Click to expand...
Click to collapse
Two times "No"!
animelover said:
Two times "No"!
Click to expand...
Click to collapse
Ok, shame, but thanks for the reply anyways
My Nike has been locking up once a week.. hard lock, as in only way to get it working again is to take out the battery. It was doing this on WM6 before I upgraded it, and now also on WM6.1 (with different versions of everything now including radio).
Any way to debug this? I would love to try putting on some "barebones" ROM that has very little in it to see if this helps. I would be willing to sacrifice quite a lot of functionality. I don't know of such roms... Recommendations?
thx
X
xaphod said:
Ok, shame, but thanks for the reply anyways
My Nike has been locking up once a week.. hard lock, as in only way to get it working again is to take out the battery. It was doing this on WM6 before I upgraded it, and now also on WM6.1 (with different versions of everything now including radio).
Any way to debug this? I would love to try putting on some "barebones" ROM that has very little in it to see if this helps. I would be willing to sacrifice quite a lot of functionality. I don't know of such roms... Recommendations?
thx
X
Click to expand...
Click to collapse
Have a look at animelover's Clean Black or BlackDragon's BD ROM
Both are minimalist.
I prefer to load mine up to the max - the programs are there in the ROM if you need it, and takes no space in RAM, whilst at the same time, keeping the phone's speed/responsiveness up.
Button remapper recognize this buttons, but can't remap it.
I think because it's read only (Poor HTC)
So we need to change it manually in drivers, by IDA pro or HEX editor
I hope this will be useful to who will try to change it
0 0x30(48)
1 0x31(49)
2 0x32(50)
3 0x33(51)
4 0x34(52)
5 0x35(53)
6 0x36(54)
7 0x37(55)
8 0x38(56)
9 0x39(57)
* 0x77(119)
# 0x78(120)
Volume UP 0x75(117) (Volume buttons have 2 standrard and long trig)
0xCE(206)
Volume DOWN 0x76(118)
0xCF(207)
Camera 0xC1(193)
Backspace 0x8(8)
IE 0xCC(204)
Start 0x5b(91)
Mail 0xCD(205)
The name of library is Keybddr.dll (C) MSDN

[Q] Getprop [sys.mot.encrypt.keysig]?

I was screwing around in ADB trying to figure out my MSL and I stumbled across a line after running "getprop" that is "[sys.mot.encrypt.keysig]". Anybody know what it is?
Just searched XDA/Google:
tdavis42 said:
That key is specific to your machine and there is a brother key in the machine(low level) that meet in the middle and basically make a new key that is checked and verfied. Kinda how HDMI keys work. Sorry to deflate your bubble but one key to a two key lock still won't open the door.
Click to expand...
Click to collapse
Thank you. My apologies for apparently not searching thoroughly enough.

[Q] [SUPPORT] Headphone Audio Controll issue

im sorry if im not explaining myself well i dont know the terms
ok heres my problem i have been on a hunt for a pair of headphones that will work with a samsung conquer 4g (sph-d600) and have media controlls
currently i have a pair of Sol republic Tracks V8 headphones and the media controls are messing up
when ever i press a button on the wire the voice dialer or call log comes up
my os is Android 2.3.6 gingerbread rooted with a custom rom i cant find
im trying to use poweramp
im attaching a logcat (its my first one so i hope its done right) and screenshots of my headset settings from dbpoweramp
anything i can do to fix this?
new development in post 6 http :// forum.xda-developers. com /showpost.php?p=38217123&postcount=6 (remove the 6 spaces in the url, im under 10 posts)
That's because Android doesn't recognize 3-Headset Buttons correctly due to some patents from Apple...
thanks for your reply
but it does recongnise all 3 buttons as key:231 (according to CWM recovery key test)
so in theory i should be able to assign this as a single button remote
or should i just return this product to the store
is there any way to get rid of the voice dialer
or use an app from the market to fix this issue
on a side note i used to know of a site or forum thread that gave descriptions of system software and weather or not they are safe to remove. would you or anyone else happen to know what that site or thread was?
Sorry but I dont get you...
If you mean wheter its theoretical possible to use a 3 Button Headset: YES
Have look here: http://www.instructables.com/id/Galaxy-Nexus-and-others-headset-remote-with-medi/
You also could try to develop an App on your own in combination with this Hardware Mod. Therefore change the resistor values and check them in cwm. Then route them over the standard Prev Play/pause and next function.....
But this is theoretical....
trapjul said:
Sorry but I dont get you...
If you mean wheter its theoretical possible to use a 3 Button Headset: YES
Have look here: [link removed... im under 10 posts]
You also could try to develop an App on your own in combination with this Hardware Mod. Therefore change the resistor values and check them in cwm. Then route them over the standard Prev Play/pause and next function.....
But this is theoretical....
Click to expand...
Click to collapse
so a hard mod...
i just returned them and ordered a a-jays 1 + through amazon
i just wanted to disable the activation of voice recorder and use it as a media button
i just got a pair of a-Jays one+
installed the jays app and it is still doing the same
logcat and command code obtained through recovery coming soon
What about that?
https://play.google.com/store/apps/...ontrol&feature=nav_result#?t=W251bGwsMSwyLDNd
hope it helps... :fingers-crossed:
trapjul said:
What about that?
[link removed, im under 10 posts]
hope it helps... :fingers-crossed:
Click to expand...
Click to collapse
thats the jays app i was talking about
it didnt help
i also tried a bunch of others

Categories

Resources