Hack the LED on a WM6 device - Possible? - Windows Mobile Development and Hacking General

Ok, now we have many ROM cooking tools. So I want to ask: Is it now possible to hack the LED drivers to control the behavior of the LEDs. A fast blinking blue or red LED would be nice on an incoming text message.

Which device?
V

A Windows Mobile 6 powered device.

Ha. Yes this is very possible. In fact there are many programs available that control the blinking of the LEDs - I'm particularly fond of Resco Audio Recorder which blinks the red LED on my Hermes while I'm recording.
I imagine it would be possible to create a small program that could check for an SMS notification icon at the top of the screen and blink your LEDs accordingly whenever you receive a message, however there's probably an even more simple way of going about doing this. So in short, yes it's possible but I don't believe 'hacking' any drivers would necessarily be required, just a bit of creativity.
Cheers
Sir Lancealot
PS - Also keep an eye on this post that was made just 3 hours before your post as this person had exactly the same question. Try the forum search next time

belinea said:
A Windows Mobile 6 powered device.
Click to expand...
Click to collapse
Excellent answer!
I think I can do this on my iPaq 1710... Oh wait, it only has one LED and it can only do orange and green. How do I get it to blink blue?
Sorry about that, I didn't mean to insult you or anything, but you obviously don't understand the concept of "hardware driver".
Basically, the driver is what connects the OS which is generic (same for all devices) with specific hardware component (like LED) which is different or at least connected and accessed differently on different devices.
For example, I saw a picture of an upcoming samsung phone running WM 6 and it would have completely different LED driver than say a Wizard (also running WM 6).
And just for the record: There is a big difference between cooking a ROM, and actually creating a hardware driver from scratch (which is more or less what you need here). Plus if one could access the existing driver with a simple app that monitors the desired event replacing it would not be necessary.
P.S. The colors are wrong on purpose. Just remembered this little game all of a sudden...

belinea said:
Ok, now we have many ROM cooking tools. So I want to ask: Is it now possible to hack the LED drivers to control the behavior of the LEDs. A fast blinking blue or red LED would be nice on an incoming text message.
Click to expand...
Click to collapse
Hey what if you could get your camera flash to blink a few times. That would be kinda fun.

that would be possibly using mortscript and vijay's software (candela?)

Midget_1990 said:
that would be possibly using mortscript and vijay's software (candela?)
Click to expand...
Click to collapse
haha thats funny I just thought of that but I can't seem to download mortscript. Just posted http://forum.xda-developers.com/showthread.php?t=289197&page=4 there requesting someone upload install

belinea said:
A Windows Mobile 6 powered device.
Click to expand...
Click to collapse
Especially a HTC TyTN.
But it seems that´s impossible to control the LEDs.

belinea: Thanks for specifying hardware device. Lancealot is talking about the standard notification led, which is required by the standard PocketPC hardware specification. This can be controlled by anyone through the operating system. However, the other leds (eg Blue, Green etc) are typically manufacturer specific, and thus, as my good friend levenum says, these will almost certainly require a specific, per Manufacturer (or even per device) solution.
But it seems that´s impossible to control the LEDs.
Click to expand...
Click to collapse
- Have you tried VJPlumBum?
V
PS btw, there was once discussion of using VJCandela to make a Text to Morse Code app. You can certainly use the flash as a notification device if appropriately programmed, but not much functionality I guess.

vijay555 said:
- Have you tried VJPlumBum?
Click to expand...
Click to collapse
WAAAAAAH, thats GREAT vijay555 !!!!
It´s also possible to drive the LEDs.
Are you interested to spent some time to program a tool to lit up the red or blue LED on a incoming SMS notification? I will send you a big donation if you can do that.
Can you post some detailed informations how to lit up the TyTN LEDs (some sourcecode parts of VJPlumBum)? Or is this a little secret ?

belinea said:
Are you interested to spent some time to program a tool to lit up the red or blue LED on a incoming SMS notification? I will send you a big donation if you can do that.
Can you post some detailed informations how to lit up the TyTN LEDs (some sourcecode parts of VJPlumBum)? Or is this a little secret ?
Click to expand...
Click to collapse
I'd love to write such an app, but I'm working on two fairly large projects for someone else right now which take priority over my smaller stuff. I'd be very interested in writing such an app though - how big a donation are we talking? PM me if it's VERY urgent.
I'm afraid the source code of VJPlumBum can't be released right now for various confidentiality reasons. You could reverse engineer the same functionality using an app like Haret though. It'd be messy, but possible. The necessary hardware info is probably already on the wiki I think, for the Universal. However, AFAIK, Haret for Hermes isn't fully functional yet.
The app that you suggested is something I have in mind for a future project though, including some other major OS mods in the same area...
V

Great informations vijay555.
If I can change the color of the LED and the blinking frequency with your tool on an incoming SMS, I wil donate you with 100$.

Would love to see a tool for controlling the LED - one of the big areas that software hacking has yet to cover.
Personally I think it would be great if the orange flashing when a message was received should be a solid orange. Sometimes I have to stare at my phone waiting for a flash to see if I have a missed call/message. Surely the dll can be hacked to change orange flashing to orange solid...

vijay555 said:
I'd love to write such an app, but I'm working on two fairly large projects for someone else right now which take priority over my smaller stuff. I'd be very interested in writing such an app though
Click to expand...
Click to collapse
@vijay555: Have you started the "LED project" already?

HermLED
I'd waited for quite a long time for vijay555 to start his LED project.. but at some point I got enough waiting.. so I looked into the nleddrvr.dll and AllLEDMgr.dll. This took a while before I got it working, but it was tottaly worth it
Here you have a working program that allows you to control all the LEDs of Hermes. I've also attached full source code, so that you can use it in whatever way you like. It's licensed under GPL. It's not a masterpiece, but it's working and that's the point.
If I have some free time tomorrow, I'll make a RIL client so that you can use this for new SMS notification.
Edit: I've added the possibility to turn on/off the led not just blink
Usage:
hermled [R|G|B|AM|LG] [ON|OFF|BLINK [num_blinks] [blink_length ms] [interval ms]
R - RED
G - GREEN
B - BLUE
AM - AMBER (RED + GREEN)
LG - LEFT GREEN

Led on treo 700wx (WM5)
hey-
I was wondering is you could set the led to blink green when there is service, solid red when there is no service, now there is no setting option so you have to do some kind of hacking. Now I have a quick question: These LED's, can they do more than just the green/red/amber if so i would love to be able to play with the colors.

Sure, that would be possible to do service/no-service notification with leds. And the other questions.. From what I've found each physical led have two colours:
a) right: RED/GREEN
b) left: BLUE/GREEN
and for some reason it is impossible to mix left blue/green leds. Amber `led` for instance is a product of RED and GREEN turn on together. Perhaps there's sth more to discover, but right now it's all I got.

@piopawlu:
GREAT !!!!!!! Many, many thanks for this.

oh this looks like it has so much promise
Will have to test on my WM6 P3300 as soon as I have a chance.

Related

Change Backlight Button to Camera flash light

Hi all,..
Is there a way to change the Backlight button on the universal so it activates the Camera light on the back of the device instead of turing on the backlight?
When possible the Universal becomes a pocket flashlight. Now when I want to activate the universal camera light I need to start up the camera software, It would be much quicket to just press the Light button to enable and disable the bright camera light. The Light button is now unuseful to me because the backlight automatticly turns on when tapping the screen, so no button needed...
anyone got a idea?
Best regards,..
Arjan
Now thats a damned good idea!! The backlight button is useless anyway.
Anyone here got the skills, I am afraid that I am just a lowly win32/KM developer...
Whats the best way to get into WM2005 coding?? Does it still require you to install 10,000 toolkits, or does Visual Studio 2005.net have the nessesaries? (if work ever sorts out our MSDN sub that is!)
Nigel
Paging buzz_lightyear! Paging buzz_lightyear!
buzz_lightyear to the rescue!
..... please?
As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Doesn't make that much difference because it already has a nice screen.
V
Hi Buzz,..
Seems you know all about this schit. Can you tell uss if this is possible?
Regards..
arjan
vijay555 said:
As an almost entirely unrelated aside, you guys know that my program VJLumos, for the superbright screen, works on the Universal?
Click to expand...
Click to collapse
True, true... but the camera flash is trully bright!!! Even more than the screen!
I've checked the Win32 Mobile API and found nothing, so the solution must be in one of the HTC DLL's!
Disassembling Camera.exe in IDA didn't give big results neither... :?
I'll continue my reseach and post the results here!
Just wanted to keep this close to the top of the forum,
I would love this feature! Please please pretty please
Regards, Simon
Me To
would be great to have a portable flashlight with me all the time
Still triying, but until now, no success...
buzz_lightyear, can you give a hand here?
Realy hope anybody can find it out because this would be really great!!!
But can it be fixed?
Will this be possible?
not that I really know too much about all this kinda stuff, but MortPlayer refuses to recognise the button with a lightbulb on it even if you use the option that allows you to specify a hardware button by pressing it. Does this mean that this button is somehow hidded frm WM5 or am I being silly?
//Xi
MusicPlayer can recognize the button, I think it takes it as some kind of function button (F4 or F6 or something like that), so is definitely possible to use it.
I actually use it, after adding it to the registry. The button code is C8, so you just have to copy paste another button, and change any CX occurence to C8.
Key is HKLM/SOFTWARE/Microsoft/Shell/key/40CX
OK, so that's taken care!! Now to find HOW the camera turns the flash light on... I'm sure it's some kind of API..... :? :?
http://msdn.microsoft.com/library/e..._7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
we might need to hook up with the camera driver dll, disassemble it and get the function names....
and then, need to write an app which will link up the dll at run time and call the fn....
apart from that, theres no simple way to do so using MS provided sdks for wm5....
S
dreamtheater39 said:
http://msdn.microsoft.com/library/en-us/still/hh/still/WIA_PropTable_7effd1fa-1b3e-41ba-b176-42cb16dae7d4.xml.asp
i think this is done at driver level....
Click to expand...
Click to collapse
I agree!! But I don't think that WIA is something to go thrue, since that applies to Win32 only!
That link was from the Desktop Windows DDK. The windows mobile DDK is a different beast.
I suspect the API will be similar tho. I very much doubt whether the camera app is going to directly call an IOCTL down in kernel mode to control the camera light (that would be crude!) It will be doing so via a user mode API. The key is going to be to find which DLL handles this and what the function name and format is!
Unfortunately although I write Desktop Windows drivers, I have not got the first clue about windows mobile programming - dont even know what tools to install!
Nigel
Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?
ei99070 said:
Just noticed something very odd: WM2005 emulator does NOT have camera.exe!!!
Camera.exe is the picture taking app on the WM2005! Where the hell is it?? Only on real devices (my Exec has it)?
Click to expand...
Click to collapse
the wm5 sdk has the camera api exposed...however, no luck finding anything related to the flash light
i think its something htc has directly hooked up.
horrible MS they have to goof up somewhere ..... :evil:
i guess some disassembling is needed
buzz...where r u dude???
San

[REQ] LED Control.

Fellass:
I have recently checked out a vid of the X1, and it had a neat feature:
Some app to control LED lighting behavior.
-The circle led lighting in the Diamond is Awesome. Best Ive seen. Such bright white light. Taking control of these LEDS would be niceee.
Any ideas? guyzz?
Greetings to all thanks.
i second that it wood bee cool to change
kinda like funlights on motorola phones
An application that makes the ring blink to musicbeat would be cool
yeah... like the old sony ericsson e398;-) awesome light effects when playing music^^
Regards
UP!
I have searched everywhere for an application that can do this...
Can anyone help us?
i will also like to have app for this
why do no clever people/deveopers reply to these???!
+1
BUMP.....
I would like this as well
ahh this would be so awesome
nuerom has a program like this that controls the led lighting. he also has one for the keyboard.
saf100792 said:
nuerom has a program like this that controls the led lighting. he also has one for the keyboard.
Click to expand...
Click to collapse
who is neurom and how do i contact him?
NueLED2 i didn't try it but i like to share and may someone can get this to work
nueLED2 is not… anything like what nueLED was. The idea was to avoid the intermediate DLL that caused issues with devices in nueLED, while creating an interface any application could use. So nueLED2 has no user friendly interface.
But on the bright side, it does allow individualized control of the LEDS on the Touch Pro / Diamond control pad. You could use the included nueLED2_Control app with mortscript or some other script to control individual leds. Also, nueLED2 is open source, so feel free to add to it or use it in your application, just drop a line if you do. I’ve added a .NET wrapper to make it easy to add to your .NET app
http://www.nuerom.com/BlogEngine/
whiskeybro said:
NueLED2 i didn't try it but i like to share and may someone can get this to work
nueLED2 is not… anything like what nueLED was. The idea was to avoid the intermediate DLL that caused issues with devices in nueLED, while creating an interface any application could use. So nueLED2 has no user friendly interface.
But on the bright side, it does allow individualized control of the LEDS on the Touch Pro / Diamond control pad. You could use the included nueLED2_Control app with mortscript or some other script to control individual leds. Also, nueLED2 is open source, so feel free to add to it or use it in your application, just drop a line if you do. I’ve added a .NET wrapper to make it easy to add to your .NET app
http://www.nuerom.com/BlogEngine/
Click to expand...
Click to collapse
Thank you for your reply friend.
Now I have to understand how to use mortscript...
I found some other codes. The readme of nueLED2-22-v2.0 said these where known:
2: Home
4: Pickup Phone
8: Back
16: Hangup Phone
32: Center Button
Mine is more complete:
1: All on
2: Home
4: Pickup Phone
8: Back
16: Hangup Phone
32: Center Button
128: Flash center button every 12.5 sec
256: charge cycle
512: same as 32
2048: center button counter clockwise
Maybe someone can do something with this, would be great!
If somebody could come up with a mortscript or any info on how to get these working would be great, i want to have a script to use in WAD2 so when i press a button the center circle flashes.
ANYBODY
Is there anybody still fancying this great Idea originally thought by Sergio PC????
It seems this Thread is quite forgotten.....
I've always been thinking about making a thread like this. One of the main things I would like it to do is change the amount of time between when it flashes when you have a new sms. I think it flashes every 3 or 4 seconds if you have a new sms but I would rather it be every 1 second so that i can quickly just glance at it to check if i have a new text. I know it would use a bit more battery but it will be a lot more convenient for me.
Really hope someone makes an app for this, it seems like there are a lot of apps to change things that aren't even worth changing but then something which would be really useful like this, there is no app for
AdamHC said:
I've always been thinking about making a thread like this. One of the main things I would like it to do is change the amount of time between when it flashes when you have a new sms. I think it flashes every 3 or 4 seconds if you have a new sms but I would rather it be every 1 second so that i can quickly just glance at it to check if i have a new text. I know it would use a bit more battery but it will be a lot more convenient for me.
Really hope someone makes an app for this, it seems like there are a lot of apps to change things that aren't even worth changing but then something which would be really useful like this, there is no app for
Click to expand...
Click to collapse
+1! it sounds great....anybody else?
Looks like this thread is probably just going to die again like it did last time...But I really want this app lol

[FUN APP]Fake BSOD

A nice fake Blue Screen Of Death (BSOD) for your HTC. It's vga, and its useful to use in situations when you don't wan't to use your mobile phone.
This is just another fun app. To exit, just tap the lower part of the screen.
Funny!
It looks great!
no thanks, I don't like testing fate
ajd6c8 said:
no thanks, I don't like testing fate
Click to expand...
Click to collapse
....i tried it ....and i already used it whit a frind of mine
I'm planning to release a QVGA version soon...
Make it pop up after a timer expires...adjustable time limit, pls.
+1
+1 on the time limit
Haha Nice!
Thanks for the app!
lol awsumness...
cheers!
gguruusa said:
Make it pop up after a timer expires...adjustable time limit, pls.
Click to expand...
Click to collapse
that will be great
<irony>
What ever for ?
It is already running M$ Windoze
</irony>
Maybe creating a Red Ring of Death with the lower part LEDs.
If only the leds had red color, we could emulate the 360.
Greets.
it's really very funny. I can use it when somebody want to borrow my mobile.
It will be really fun to have a bsod screen lock app
Sergio PC said:
Maybe creating a Red Ring of Death with the lower part LEDs.
If only the leds had red color, we could emulate the 360.
Greets.
Click to expand...
Click to collapse
nice idea but diamond doesnt have red leds
haha lol this isgood app!!!
i love it
Biggest use for this is to trick people into thinking they caused it... when you lend someone your phone etc... so +1 to the timer feature.
I like this app very much and can't wait for the one with the timer feature.
Also, I noticed a couple mistakes:
first line: "A error has occured..." should probably be changed to "A problem has been detected ..." as in normal BSoDs. Everyone starts reading from there and this is very noticeable. In the last paragraph, the phrase "If this problem continue" reads "If problems continue" in real BSODs. And, furthermore, to make it more PDA-like something should be done with the suggestion to press F8. Have you ever seen an F8 button on a PDA? I haven't.
But anyway, the app is a lot of fun, can't wait for the next release =)
So, basically, here's my idea what the text should be like
A problem has been detected and Windows has been shut down to prevent damage to your device.
KERNEL_STACK_INPAGE_ERROR
If this is the first time you've seen this Stop error screen, restart your device. If this screen appears again, follow these steps:
Check to make sure that any new software is properly installed. If this is a new installation, ask your software manufacturer for any Windows updates you might need.
If problems continue, disable or remove any newly installed software. Disable BIOS memory options such as caching or shadowing. If you need to use Safe Mode to remove or disable components, restart your device and press right softkey and Volume Up key simultaneously to run Safe Mode.
Technical Information:
here goes the technical information from the original version.
I also suggest changing the stop message (originally "driver_irql_not_less_or_equal") since it is usually caused by new hardware which is not typical for pocket PCs
suggestions
1. timerrr!!!
2. the customizable message through a .txt-file
anyway, nice app, go on!!!

Amazing Simple Torch no .Net needed

http://www.freewarepocketpc.net/ppc-download-torchbutton.html
Has 5 separate modes, accesible INSTANTLY after the icon press.
Love it.
AWESOME!!!
doministry said:
[
Has 5 separate modes, accesible INSTANTLY after the icon press.
Love it.
Click to expand...
Click to collapse
EXCELLENT!!!
hTorch always gave me the worst of problems.... crashing and what not
excellent find! thx so much!
indeed the best flashlight!
waht about damaging the led and the vibration device?
many many people made bad expierence with htorch
Fikachu said:
waht about damaging the led and the vibration device?
many many people made bad expierence with htorch
Click to expand...
Click to collapse
If they use it too long.
We have to be careful, that's it.
Actually hTorch is only front-end to this. It's even written somewhere in hTorch readme.
I use it especially because instant reaction, I have it mapped to hardware button.
Yes, some guys had troubles. But even camera software will use the LED on low-power mode for unlimited time. I guess low power mode is supposed to be safe. Sure you might have wrong unit and the LED will burn out, but then it would probably burn out with camera software too.
And of course, it's intended for occasional use.
I love it! ThX! You can use Push-To-Talk if you have Spb PocketPlus (I suppose it works with AEButtons Plus as well). Marvellous!
And about the LED: Just keep using it with low power (Why would you need the bright mode?! You aren't a football floodlight, are you?). If EVER there's a problem, uninstall the app and make use of your warranty

LED controller

is it possible to control led indicator of tp2?
id like to make its behaviour as on old devices: green blinking when gsm is on and orange on event
That sound a good idea. Anyone?
nueLED. its here on xda somewhere. you'll need v1.5 i believe
nueLED doesnt work on new htc devices, correct me if im wrong
so, no one wants the same ?
nueLED works on my sprint tp2...heres the cab!!
how did you configure it?
i redirect notification to signal led and no luck
what is low battery address ? i want notification led to blink orange(red)
i checked adresses/modes in diagnostics mode and they are correct
i made notification to blink orange(as low battery)
its address;mode is 4;4
but still have no success with signal
I don't know how to config this either but I also would like a notification led!
Why would they take this away?
FWIW, nueLED locked up my phone very badly. When I tried to uninstall it, I was unable to. In order to uninstall I had to use SPB PP safe boot, and boot in safe mode, then I had to use SK Tools to uninstall it. I then had to go into registry and make the changes recommended in the nueLED thread. Even after all these steps I have never been able to uninstall the nueLED registry folder, but it does seem that now my phone is working properly even though folder couldn't be deleted.
If I hadn't had SPB PP and SK tools installed already I would have been seriously out of luck.
yes, there are problems uninstalling it, but it doesnt matter for me, i just want old behaviour
aZzz.bZzz said:
yes, there are problems uninstalling it, but it doesnt matter for me, i just want old behaviour
Click to expand...
Click to collapse
Yes, I did that. But even after doing that my LED was non-functional. Fortunately i got it sorted out with the help of Safe Boot and Sk Tools
EDIT:
Hmmm, the message seems to have been edited. The original message suggested changing registry:
"aZzz.bZzz has just replied to a thread you have subscribed to entitled - LED controller - in the Rhodium themes, applications and software forum of xda-developers.
This thread is located at:
http://forum.xda-developers.com/showthread.php?t=570068&goto=newpost
Here is the message that has just been posted:
***************
yes, there are problems uninstalling it, but dont be afraid, just manually edit registry as no2chem said: HKLM/Drivers/BuiltIn/AllLedMgr/Index =1"
Anyway, I am sure it must be a good program for some, but on the Tilt 2 stock ROM it causes serious problems.
Does anyone know if the Touch Pro2 even has individual LED colors to control? , other than Orange, Green? Because it seems to me that those are the only colors i have been able to find Using NueLED. Thanks
It was my understanding that nueled for TP2 had issues because of the controller and how the dll works... if this works that'd be great news, but I'm not going to test it
tldr: I'd like results without having to do anything.
seems nobody got tp2 led to blink green on gsm standby
the only thing i made is notification(event) led to blink orange
but even in that case there are some issues: sometimes it blinks orange from the second blink (first is still green), and it doesnt stop blinking in 3rd party apss, for example in qip messenger
jdmsleepr said:
nueLED works on my sprint tp2...heres the cab!!
Click to expand...
Click to collapse
nueLED 1.5b doesn't work on my Sprint TP2. What I am trying to do is to let my Sprint TP2 blink for new messages when I am charging the phone. I was playing around different settings, but the only thing I can do is to turn on/off the charging orange light. Any suggestion?

Categories

Resources