[APP][v2009.04.09.2] Illumineria - Xperia Illumination Pattern Modifier

Angelusz

Senior Member
Nov 16, 2008
1,306
10
0
Nijmegen
Stop asking for the music BPM support. He'll make it if he can, but it's not possible right now and it's already been asked several times now.

Downloading! Feedback inc.

EDIT:

Hmm, not much avail:
Code:
New Error Log: 7-4-09 9:07:47
NullReferenceException
bij Brins0net_Illumineria.EventEditWindow.acceptButton_Click(Object sender, EventArgs e)
bij System.Windows.Forms.MenuItem.OnClick(EventArgs e)
bij System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bij Microsoft.AGL.Forms.EVL.EnterModalDialog(IntPtr hwnModal)
bij System.Windows.Forms.Form.ShowDialog()
bij Brins0net_Illumineria.EventListWindow.event_List_ItemActivate(Object sender, EventArgs e)
bij System.Windows.Forms.ListView.OnItemActivate(EventArgs e)
bij System.Windows.Forms.ListView.HandleItemActivate(Int32 iItem)
bij System.Windows.Forms.ListView.WnProc(WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bij Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
bij System.Windows.Forms.Application.Run(Form fm)
bij Brins0net_Illumineria.Program.Main()


New Error Log: 7-4-09 9:13:53
NullReferenceException
bij Brins0net_Illumineria.EventEditWindow.acceptButton_Click(Object sender, EventArgs e)
bij System.Windows.Forms.MenuItem.OnClick(EventArgs e)
bij System.Windows.Forms.Menu.ProcessMnuProc(Control ctlThis, WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Form.WnProc(WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bij Microsoft.AGL.Forms.EVL.EnterModalDialog(IntPtr hwnModal)
bij System.Windows.Forms.Form.ShowDialog()
bij Brins0net_Illumineria.EventListWindow.event_List_ItemActivate(Object sender, EventArgs e)
bij System.Windows.Forms.ListView.OnItemActivate(EventArgs e)
bij System.Windows.Forms.ListView.HandleItemActivate(Int32 iItem)
bij System.Windows.Forms.ListView.WnProc(WM wm, Int32 wParam, Int32 lParam)
bij System.Windows.Forms.Control._InternalWnProc(WM wm, Int32 wParam, Int32 lParam)
bij Microsoft.AGL.Forms.EVL.EnterMainLoop(IntPtr hwnMain)
bij System.Windows.Forms.Application.Run(Form fm)
bij Brins0net_Illumineria.Program.Main()
 
Last edited:

Nippero

Senior Member
Oct 13, 2008
463
120
0
New York, NY
Ive noticed that I get that error when i try to assign an event to a LED sequence that was already assigned to something else by the program.

So lets say I already have OWERTY Close set to blue flash and I had Qwerty open set to red pulse. I then go in and try to swap them. I get that error when I change the second event. Order of changing doesnt matter.
 

brins0

Senior Member
May 1, 2006
438
8
0
Ashton-Under-Lyne
brins0.net
So far, I have one big suggestion. Change the highlight color in the menu. Its nearly impossible for me to tell what i currently have selected. Gray on darker gray isnt very visible lol.
...
Also, can you add an option to test the patterns?
...
EDIT3: Standby and QWERTY_ON doesnt seem to do anything.
The highlight colour is specific to the theme you currently have set. I will most likely invert the colour scheme for the next version, as i've grown tired of it already, lol...

Currently I don't know of a way to invoke a pattern to be played i've stated this in the first post.

Some of the events never seem to fire, even when they are enabled elsewhere in the registry. I had noticed this. Other than trial and error, it's hard to work out which will and which won't fire.

Usine itjes 6.5 latest build I cannot set an illumination. I get nullexception and a message to send an email with the log created in the Program Directory.

I was looking forward to my little disco too :(
A NullReferenceException usually means that the registry entry it is trying to set does not exist. I'd suggest looking through the registry manually to check they do actually exist. I have not tested it with 6.5, there may be changes. Do you at least get a list of events to modify?

Ive noticed that I get that error when i try to assign an event to a LED sequence that was already assigned to something else by the program.

So lets say I already have OWERTY Close set to blue flash and I had Qwerty open set to red pulse. I then go in and try to swap them. I get that error when I change the second event. Order of changing doesnt matter.
I hadn't noticed this error, but i've managed to reproduce it on my device, so i'll look into it later on. I think I have spotted the problem, and it seems like a simple oversight on my side, not setting a variable when the edit window is created. If you try and set the same event again, be sure to make sure you ahve tapped on the event and that it has changed in the bottom. Should be quite a simple fix, so i'll do that first.

Hmm, not much avail
Could you tell me what you were trying to do at the time, that log only means so much from what it'll provide.
 

brins0

Senior Member
May 1, 2006
438
8
0
Ashton-Under-Lyne
brins0.net
New Version: v2009.04.07.1

New version released

Changes:
» Fixed the NullReferenceException people were getting, was a simple fault on my behalf. I suggest you update, but the old version won't cause any damage to your device.
» Changed the colour scheme to make it easier to read.
 

Redferne

Member
Feb 15, 2009
7
0
0
Here is my attempt to decode the LED sequence. Colors, banks and stepping of sequence are proven. Now go ahead and create something wonderful and share with us! :D

/Redferne
 

Attachments

madxtreme

Senior Member
Nov 13, 2008
141
0
0
wow i tried it :D its very col :D now my LED´s are pulsing if i open my keyboard and close it :cool:

i hope you will find more Colours and options to connect with the LED patterns :D
 

brins0

Senior Member
May 1, 2006
438
8
0
Ashton-Under-Lyne
brins0.net
Here is my attempt to decode the LED sequence. Colors, banks and stepping of sequence are proven. Now go ahead and create something wonderful and share with us! :D

/Redferne
I've had a close look at this, and I think you may very well be on to something there...

I've applied your theory to the charging pattern, a more complex one...

Code:
00,00, 1E,3C, 3C,00, 55,35, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
00,00, 1E,24, 3C,00, 55,48, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
00,00, 1E,00, 3C,00, 55,35, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
0A,    02,    02,    0D,    0D,    00,    00,    01,    01,    00,

00,00, 0C,00, 19,00, 32,00, 4B,00 ,4C,00, 4D,00, 4E,00, 4F,00, 54,00,

FC,
08
...This starts with the 0A you suggested, then has a single LED lit (the one by the USB port) for to frames, then the other 3 afterwards. however, i'm not quite sure how the colour is decided with your system, as the LEDs light up in the same fashion, so there should be similarities between frames 1-2 and 3-4. Both frames end in 00 so I think we can assume that the "00,xx" is the brightness (where xx is a hex number between FF and 00 most likely).

I'll keep looking at it and may experiment later on. We really need for someone to find a way to invoke patterns really, would make testing much simpler, as I could write a simple testing application...

Thanks very much for your input, you've given me alot to think about...
 

Redferne

Member
Feb 15, 2009
7
0
0
I've had a close look at this, and I think you may very well be on to something there...

I've applied your theory to the charging pattern, a more complex one...

Code:
00,00, 1E,3C, 3C,00, 55,35, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
00,00, 1E,24, 3C,00, 55,48, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
00,00, 1E,00, 3C,00, 55,35, 6E,00, B4,00, B5,00, B6,00, B7,00, B8,00,
0A,    02,    02,    0D,    0D,    00,    00,    01,    01,    00,

00,00, 0C,00, 19,00, 32,00, 4B,00 ,4C,00, 4D,00, 4E,00, 4F,00, 54,00,

FC,
08
...This starts with the 0A you suggested, then has a single LED lit (the one by the USB port) for to frames, then the other 3 afterwards. however, i'm not quite sure how the colour is decided with your system, as the LEDs light up in the same fashion, so there should be similarities between frames 1-2 and 3-4. Both frames end in 00 so I think we can assume that the "00,xx" is the brightness (where xx is a hex number between FF and 00 most likely).

I'll keep looking at it and may experiment later on. We really need for someone to find a way to invoke patterns really, would make testing much simpler, as I could write a simple testing application...

Thanks very much for your input, you've given me alot to think about...
My findings suggests that the color coding are set by combining the RGB leds.
As below, RR = amount of Red, GG = amount of green.
Remember that there are 3 leds per bank, 12 in total.

Code:
00,00, 1E,RR, 3C,RR, 55,RR, 6E,RR, B4,RR, B5,RR, B6,RR, B7,RR, B8,00,
00,00, 1E,GG, 3C,GG, 55,GG, 6E,GG, B4,GG, B5,GG, B6,GG, B7,GG, B8,00,
00,00, 1E,BB, 3C,BB, 55,BB, 6E,BB, B4,BB, B5,BB, B6,BB, B7,BB, B8,00,
0A,    02,    02,    0D,    0D,    00,    00,    01,    01,    00,

00,00, 0C,00, 19,00, 32,00, 4B,00 ,4C,00, 4D,00, 4E,00, 4F,00, 54,00,

FC,
08
However, I do not think it is possible to set different color pattern for each bank, same color setting applies to all banks selected in a frame. You need to change the color pattern in the next frame for the color fade effects.

I wish there was a way to test new patterns without having to perform the softreset every time :confused:

We could have figured out all the parameters within a few hours without having to softreset...
 

brins0

Senior Member
May 1, 2006
438
8
0
Ashton-Under-Lyne
brins0.net
Having looked at the charging pattern more closely, the initial LED that lights up is actually a different colour, but the change is so small, that it looks the same, so it seems that your system fits everything...

Also, I think you were right with the timing too. If you look at the patterns below:

Charging animation:
Code:
00,00, 1E,RR, 3C,RR, 55,RR, 6E,RR, B4,RR, B5,RR, B6,RR, B7,RR, B8,00,
00,00, 1E,GG, 3C,GG, 55,GG, 6E,GG, B4,GG, B5,GG, B6,GG, B7,GG, B8,00,
00,00, 1E,BB, 3C,BB, 55,BB, 6E,BB, B4,BB, B5,BB, B6,BB, B7,BB, B8,00,
0A,    02,    02,    0D,    0D,    00,    00,    01,    01,    00,

00,00, 0C,00, 19,00, 32,00, 4B,00 ,4C,00, 4D,00, 4E,00, 4F,00, 54,00,

FC,
08
White flash:
Code:
00,00, 01,30, 02,00, 5D,00, 5E,00, 5F,00, 60,00, 61,00, 62,00, 63,00,
00,00, 01,30, 02,00, 5D,00, 5E,00, 5F,00, 60,00, 61,00, 62,00, 63,00,
00,00, 01,30, 02,00, 5D,00, 5E,00, 5F,00, 60,00, 61,00, 62,00, 63,00,
0A,    0F,    00,    00,    00,    00,    00,    00,    00,    00,   

00,00, 19,00, 32,00, 4B,00, 64,00, 7D,00, 7E,00, 7F,00, 80,00, AF,00,

FC,
04
...notice how the number before the colour is alot shorter for the white flash. I've had a look through each of the patterns and the numbers are always the same down the 3 colour columns, so this would fit. I don't think it's a delay as such, I think it's a frame count, meaning an animation can last for up to FF (255) frames. On frame one turn them on, frame two, turn them off again, then do nothing.

I still can't confirm what the single row is though, I think it's safe to assume that is is indeed there to control fading.

I still don't have a clue what the very last byte is at the end of the pattern, it may be tied in with the repeat. The larger the number, the larger the delay before repeating the sequence perhaps... I'll look into it further.

I'm gonna have a look for the driver controlling the LEDs now, and see what it can tell us about talking to the lights directly, or perhaps being able to give it a sequence to play for us.
 

Jasand

Senior Member
Nov 8, 2008
388
8
0
Worcestershire
www.homeeasy.eu
wwwwhhhhoooooosssshhhhhh :confused:

ever get that feeling when something goes straight over your head and you have no clue :p

Im so glad brins0 knows what the hall all these numbers mean, im trying to follow and then

wwwwhhhhoooooosssshhhhhh !

no lost me :D

loving your work tho
 

brins0

Senior Member
May 1, 2006
438
8
0
Ashton-Under-Lyne
brins0.net
New Version: v2009.04.09.1

New version released

Changes:
» Added the ability to view and customise patterns with a simple to use GUI.
» Patterns are now stored as individual files in the "My Documents\Illumineria_Patterns" folder, but can be placed almost anywhere on your device
» Patterns are now assigned to events with a single action without the need for a second form.

Note: There is still an unknown variable which seems related to the fading from what Redferne has calculated. Since i've put alot of hard work into this, i'd appreciate it if people would test out the editor, and post any interesting patterns they come up with.

To upload your pattern, simply upload the "*.pat" file from your device to the forum. It would be nice if you could also write a brief explanation of what it should look like so people know beforehand.

Thanks alot for your help, and patience...
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone