FORUMS
Remove All Ads from XDA
Top Tech YouTubers Review the OnePlus 6!
Post Reply Email Thread

Quote:

Hi, Following the requests here, I've wrote this application. Basically the application blinks the device LED every few seconds. The idea is to have some notification that the device is still alive. The application blinks differently depending on the status of the device.

Main features:

  • Including sequences for normal, low battery, no-signal, new message (Voice/SMS/MMS/EMail), Missed calls, appointments, wireless status (bluetooth and wifi), GPS status and charging level.
  • Almost all sequences can be configured via the settings application.
  • Sequences may include blinking the green and orange LEDs (in HD2 - may be configured in other devices), the keypad LED, vibration and playing a wav file.
  • If the radio is turned off or there is no signal, another orange blink occurs (in addition to the regular one).
  • When the phone is charging the orange LED lights constantly, every few seconds a sequence of green blinks according to the batter level occurs (20-40% - 1 blink, 40-60% - 2 blinks, 60-80% - 3 blinks and 80-100% - 4 blinks). If the battery is fully charged - the green led lights constantly.
  • Blink interval and length can be set via the registry. Different blink interval for idle mode and when notification exists (new message/missed call).
  • Running the link once starts the application, on blink sequence occurs. Running the link again runs the settings application from which the service can be closed.

Known issues
  • Custom LED id's are not saved to the registry in ver. 1.5.
  • It seems that there are some issues running "Dusk taskbar" or "SDKCERTS" along with Blinker.
  • Sometimes when the device is locked, the application stops working (until the device wakes up). After a soft-reset the application returns to behave as expected. I really don't know what instigates the problem or how to solve it... If anyone has a clue please leave me a message. Not solved, but might be better in ver. 1.1.
    Update(16/4/2011): setting [HKCU\Software\Blinker\AllowUnattendedMode] to 0. Solved this issue for some. Also enabling "Don't suspend power" in S2U2 (under the advanced category) seems to help.
    Update(14/5/2011): In ver. 1.4 a possibility to periodically wake the device, it seems that this solution might work around the issue.
    gpobernardo may have found a solution to the problem.
  • Non at the moment (I'm sure some will pop soon... )

System Requirements
  • .Net Compact Framework 3.5
  • Tested successfully on: HTC HD2 (Leo), HTC TD2 (Topaz), HTC Touch HD (Blackstone), HTC Touch2 (Mega).
    But might work on other devices (please let me know if it works on other devices as well...)

ChangeLog
  • 07/12/11 (v1.9) - from post #198
    • Fixed issue where service could not be started from the settings application.
  • 07/12/11 (v1.8) - from post #196
    • Added GPS status support.
  • 04/09/11 (v1.7) - from post #180
    • Fixed issue where Blinker halts at midnight (thanks gpobernardo).
  • 20/08/11 (v1.6) - from post #177
    • Fixed issue where custom LED id's where not saved.
  • 13/08/11 (v1.5) - from post #173
    • Added a notifications check when power state changes.
    • Added 3 more custom LEDs.
    • Shortcut link now point to the settings application instead of the service itself.
  • 14/05/11 (v1.4) - from post #151
    • Rewrote the service project in c++ (Now the service requires significantly less memory when running).
    • Added ability to vibrate (see second post for further information).
    • Added ability to play a wav file in the sequence (see second post for further information).
    • Added sequences for "Appointment" and "New MMS".
    • Blinker now uses only the WM notification method.
    • Removed the "Use WM Notification" as it is no longer required.
    • Removed the "SMS Store" setting as it is no longer required.
    • Fixed issue where in lower resolution devices a scroll bar did not appear in the settings application.
    • Added "Advanced" tab in the settings application.
    • Added a "Wakeup notification" - this option will force the device to wake every couple of seconds. This should solve the "unattended issue" - but might affect the battery drain. This feature can be turned on under the "advanced" tab in the settings application.
    • Hibernates when no blinking is required.
    • Changed "AllowUnattendedMode" to "ForceUnattendedMode" and added a checkbox to control this value under the "advanced" tab.
  • 06/04/11 (v1.3) - from post #101
    • Blinker can now use the notification system instead of directly check the Stores (thanks peterpan911 for the tip). This can be configured in the setting, under "Use WM Notifications".
    • Blinker can be configured to load on startup from the settings window.
    • Improved performance (thanks p50kombi)
    • Some minor interface improvement to the settings dialog.
  • 10/02/11 (v1.2) - from post #77
    • Added possibility to set the green/orange LED id.
    • Added possibility to set the SMS store name.
    • Improved error handling in case SMS store is not found.
  • 03/12/10 (v1.1) - from post #62
    • Added notifications for new message (SMS/EMail/Voice), missed calls and wireless status.
    • Added possibility to blink the keypad light as-well.
    • Added separate delay interval on new message or missed call.
    • Tweaked the unattended mode. The halting problem still exists, but it seems better now.
    • Added a configuration utility. To run it press the Blinker shortcut again (after blinker is already running).
  • 06/11/10 (v1.0) - Initial release

Downloads
Quote:

current version

Blinker V1.9

Previous versions:
Blinker V1.8
Blinker V1.7
Blinker V1.6
Blinker V1.5
Blinker V1.4
Blinker V1.3
Blinker V1.2
Blinker V1.1
Blinker V1.0
namwollem configuration tool (mortscript is required for this tool), more info can be found here

Acknowledgements
Any suggestions or remarks are welcome

Z.
Attached Images
 
Attached Files
File Type: cab Blinker.CAB - [Click for QR Code] (37.8 KB, 1223 views)
File Type: cab Blinker.1.1.CAB - [Click for QR Code] (128.5 KB, 512 views)
File Type: cab Blinker.1.2.CAB - [Click for QR Code] (135.3 KB, 514 views)
File Type: cab Blinker.1.3.CAB - [Click for QR Code] (140.9 KB, 1145 views)
File Type: cab Blinker.1.4.CAB - [Click for QR Code] (101.4 KB, 1951 views)
The Following 11 Users Say Thank You to zevele For This Useful Post: [ View ] Gift zevele Ad-Free
5th November 2010, 11:34 PM |#2  
zevele's Avatar
OP Inactive Recognized Developer
Thanks Meter: 88
 
Donate to Me
More
Configuration
Configuration

Blink Sequences
The blink sequences for the different situations can be customized. The blink sequences can be edited in the settings application under the "sequences" tab or by directly editing the correspnding registry key. A blink sequence is composed of blocks separated by comas (white space is not allowed). The following commands are allowed:
Quote:

G<#> Blink the green led for a duration of # msec.
O<#> Blink the orange led for a duration of # msec.
P<#> Blink the pad light for a duration of # msec.
C<x><#> Blink a custom LED (x=a,b or c) for a duration of # msec.
Pl<WAV file> Play the specified WAV file.
V<#> Vibrate for a duration of # msec.
S<#> Sleep for a duration of # msec.
L<#> Loop over the following sequence (until the "E" block or to the end of the sequence) # times.
E Mark the end of the sequence to loop over.


example:
G100,O100,L10,G25,O25,E,S100,O100,Pl\Storage Card\My Documents\SomeFile.wav

This sequence will do the following:
Blink the green LED for 100msec, blink orange one for 100msec, then it will repeatedly (10 times) blink the green LED (25msec) and the orange LED (25msec). then it will pause for 100msec and finally turn the orange LED for 100msec. At the end it will play the file "\Storage Card\My Documents\SomeFile.wav".


Configuration
All the configuration can be performed via the settings application. All settings are saved to the registry, under "HKCU\Software\Blinker". The following keys are available:
Quote:

ForceUnattendedMode (DWORD), (0 = Don't change anything, any non-zero value = force unattended mode), (default = 1)
Allows unattended mode (another try to solve the unattended issue).

GreenLed (DWORD), (default = 1)
The LED id to use for the green LED.

OrangeLed (DWORD), (default = 2)
The LED id to use for the orange LED.

VibrationLed (DWORD) (default = 1)
Sets the ID of the vibration LED.

CustomLed# (DWORD) (default = 0)
Allows to define 3 more LED IDs accessed as Ca, Cb and Cc from the sequences.

WakeupNotification (DWORD), (0 = off , any non-zero value = on), (default = 1)
Periodically wakeup the device (another try to solve the unattended issue).

ACNotifications (DWORD), (0 = disabled, any non-zero value = enabled), (default = 1)
Controls weather Blinker shows notifications when the device is plugged to power source.

BatteryThreshold (DWORD), (default = 50)
Sets the threshold (in percent) for the "low battery" status. When the battery level falls below this value Blinker will use the "LowBatterySequence" (see below). When the battery level is above the threshold the "NormalSequence" (see below) is used.

BlinkByNotification (DWORD), (1 = enabled, any other value = disabled) (default = 0)
Controls weather Blinker should blink according WM notifications, or should check the state of the different stores. When enabled Blinker checks the WM notifications state.

BlinkDelay (DWORD), (default = 10000)
The period between blinks (in msec).

NotificationBlinkDelay (DWORD), (default = 3000)
The period between blinks (in msec) when there's a new notification (unread message/missed call).

AppointmentSequence (STRING), (default = "P500,L4,S100,P100,E,S200")
The blink sequence (see below) to use when there is an active appointment notification.

BluetoothSequence (STRING), (default = "S100,G25")
The blink sequence (see below) to use when the bluetooth is turned on.

FullPowerSequence (STRING), (default = "O25")
The blink sequence (see below) to use when on AC power and battery is full.

GPSSequence (STRING), (default = "S100,O25,G25,O25")
The blink sequence (see below) to use when GPS receiver is turned on.

LowBatterySequence (STRING), (default = "O25")
The blink sequence (see below) to use when the battery is below the BatteryThreshold (see above).

MissedCallsSequence (STRING), (default = "P500,S200")
The blink sequence (see below) to use when after a missed call.

NewMailSequence (STRING), (default = "P500,L1,S100,P100,E,S200")
The blink sequence (see below) to use when there is an unread email message.

NewMMSSequence (STRING), (default = "P500,L2,S100,P100,E,S200")
The blink sequence (see below) to use when there is an unread MMS message.

NewSMSSequence (STRING), (default = "P500,L2,S100,P100,E,S200")
The blink sequence (see below) to use when there is an unread SMS message.

NewVoiceMessageSequence (STRING), (default = "P500,L3,S100,P100,E,S200")
The blink sequence (see below) to use when there is a new voice mail message.

NormalSequence (STRING), (default = "G25")
The blink sequence (see below) to use when the battery is above the BatteryThreshold (see above).

NoSignalSequence (STRING), (default = "S100,O25")
The blink sequence (see below) to use when there is no signal. This sequence is played after the NormalSequence/LowBatterySequence.

OffSequence (STRING), (default = "L5,O25,G25,S25,E,O500")
The blink sequence (see below) to use when the application shuts down.

OnSequence (STRING), (default = "L5,O25,G25,S25,E,G500")
The blink sequence (see below) to use when the application starts.

WifiSequence (STRING), (default = "S100,O25")
The blink sequence (see below) to use when the WIFI is turned on.

Z.
20th April 2011, 04:41 PM |#3  
Junior Member
Thanks Meter: 0
 
Donate to Me
More
I've tested Blinker 1.3 on HTC Touch Pro with the Rom .sencity from http://forum.xda-developers.com/showthread.php?t=536751 and il Very Very GOOD!!! but i've simply modify:
Touch Pro (Raphael):
Orange Led = Home Led
Green Led = Display led off
(this is a problem, but if settings using Green Led id=4, Green led= led answer-call)
Command P# = nothign... :( sorry

In Setting page the display is too short and I can't see the lower option.
Can you fit this software for Touch pro too?
Thank's
3rd February 2012, 07:44 AM |#4  
Ahmed Jalout's Avatar
Junior Member
Flag Hamah
Thanks Meter: 1
 
More
Thanks alot Mr.Zevele, very nice work and works fine, I had a friend showing me his Xperia Phone which has an Andriod System and it has this function, now I can use it on my HD2, dont't have a credit card, I have nothing more to say a Million Thanks and God bless you.
The Following User Says Thank You to Ahmed Jalout For This Useful Post: [ View ] Gift Ahmed Jalout Ad-Free
8th February 2012, 03:04 PM |#5  
Senior Member
Flag Nagyatád
Thanks Meter: 4
 
More
Blinker v1.9 battery used
Hello Zevele,
Blinker is working correctly in my Rhodium,
but it is use high battery, therefore I cannot use this tools. I mean when battery is 100% percent, and blinker 1.9 is active, it is used 20 % about 1 hour.
Do you know why?
Many thanks.
gaZSy
8th February 2012, 04:29 PM |#6  
zevele's Avatar
OP Inactive Recognized Developer
Thanks Meter: 88
 
Donate to Me
More
Quote:
Originally Posted by gazsyka

Hello Zevele,
Blinker is working correctly in my Rhodium,
but it is use high battery, therefore I cannot use this tools. I mean when battery is 100% percent, and blinker 1.9 is active, it is used 20 % about 1 hour.
Do you know why?
Many thanks.
gaZSy


I never had power issues with Blinker. The problem might be with Blinker preventing sleep, try setting wakeupnotification and/or set allowunattendedmode to zero and see if that solves the problem.
Another possibility is that one of the notifications cause the high drain, try removing all sequences and see if it still show high power drain, if it doesn't try enabling the sequences one by one - maybe we could identify which feature leads to the high current drain.

Z.
8th February 2012, 05:23 PM |#7  
Senior Member
Flag Nagyatád
Thanks Meter: 4
 
More
Quote:
Originally Posted by zevele

I never had power issues with Blinker. The problem might be with Blinker preventing sleep, try setting wakeupnotification and/or set allowunattendedmode to zero and see if that solves the problem.
Another possibility is that one of the notifications cause the high drain, try removing all sequences and see if it still show high power drain, if it doesn't try enabling the sequences one by one - maybe we could identify which feature leads to the high current drain.

Z.

Thanks for fast reply.
Ok, I will try it, but I don't think it will solve my problem, because if I stop the blinker it is used more power. In the future I will try clean install.
10th February 2012, 10:13 AM |#8  
Junior Member
Thanks Meter: 0
 
More
Blinker v1.9 - Probleme with GPS on HD2

Quote:
Originally Posted by Ahmed Jalout

Thanks alot Mr.Zevele, very nice work and works fine, I had a friend showing me his Xperia Phone which has an Andriod System and it has this function, now I can use it on my HD2, dont't have a credit card, I have nothing more to say a Million Thanks and God bless you.

Nobody has a problem with the GPS function on HTC HD2 ?
27th March 2012, 07:33 PM |#9  
Junior Member
Thanks Meter: 0
 
More
I have same issue with GPS on Rhodium with last Energy rom.
3rd June 2012, 02:38 PM |#10  
Member
Thanks Meter: 7
 
More
Good work
Post Reply Subscribe to Thread

Tags
blink, charging, led, power, signal

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes