Search Archive

Emulating hard buttons

By kbosscawen · Jan 07, 2010in Hacks/Mods💬 16 posts👁️ 4,494 views
Posted Jan 07, 2010 · 00:16 UTC#1

Can anyone tell me if/how hard buttons (e.g., pushing up or down on the AVIC's knob to zoom) can be emulated using Microsoft's CE emulator? Also - The AVIC doesn't seem to display anything coming over the Radio Broadcast Data System - You know, that text information that's embedded in many stations' transmission. Am I missing someting?

 

Thanks!

Posted Jan 07, 2010 · 03:53 UTC#2

The AVIC doesn't do RDS at all, you need the HD Radio add-on unit to get RDS

Posted Jan 07, 2010 · 17:03 UTC#3
The AVIC doesn't do RDS at all, you need the HD Radio add-on unit to get RDS

 

Assuming he has US model, of course. Euro models do have RDS in the built-in tuner.

 

For emulating buttins, add this skin to emulator:

<?xml version="1.0" encoding="utf-8" ?>

titleBar ="AVIC-F900BT"

 

displayPosX="225"

displayPosY="120"

 

displayWidth="800"

displayHeight="480"

 

displayDepth="16"

mappingImage="avic_mask.png"

normalImage="avic_up.png">

toolTip="MENU"

onClick="0x73"

mappingColor="0x804000"

/>

toolTip="MAP"

onClick="0x72"

mappingColor="0xFF8040"

/>

 

You need to start the mainmenu.exe though.

Posted Jan 07, 2010 · 23:53 UTC#4
The AVIC doesn't do RDS at all, you need the HD Radio add-on unit to get RDS

 

Assuming he has US model, of course. Euro models do have RDS in the built-in tuner..

True.. but doesn't everyone else refer to it as TMC?

Posted Jan 08, 2010 · 17:31 UTC#5
The AVIC doesn't do RDS at all, you need the HD Radio add-on unit to get RDS

 

Assuming he has US model, of course. Euro models do have RDS in the built-in tuner..

True.. but doesn't everyone else refer to it as TMC?

 

Not necessarily. TMC is sent over RDS, but RDS can send other information as well (station name, current song, weather alerts, etc.).

Posted Jan 08, 2010 · 18:04 UTC#6
Not necessarily. TMC is sent over RDS, but RDS can send other information as well (station name, current song, weather alerts, etc.).

learn something new every day, thanks Boris!

Posted Jan 08, 2010 · 18:32 UTC#7
Not necessarily. TMC is sent over RDS, but RDS can send other information as well (station name, current song, weather alerts, etc.).

learn something new every day, thanks Boris!

 

You're welcome.

 

That's why if you use the HD Radio adapter, it will show statio name (or something else, depending on broadcast and what you have selected) even for analog stations.

Posted Jan 09, 2010 · 13:53 UTC#8

Lots of great information here. Thanks for the responses. I do have the US version, btw.

 

For emulating buttins, add this skin to emulator:

Ummm, how would I do that?

 

You need to start the mainmenu.exe though.

What function does this perform? When I try to run it in the emulator, I get a Fatal Application Error... Illegal Operation.

 

Thanks.

Posted Jan 10, 2010 · 22:38 UTC#9
What function does this perform? When I try to run it in the emulator, I get a Fatal Application Error... Illegal Operation.

 

Thanks.

 

Run the emulator with a bat file like this:

del /Q /F avic_80\USER\UserData\SETUP\*
rmdir avic_80\USER\UserData\SETUP
"C:\Program Files\Microsoft Device Emulator\1.0\deviceemulator.exe" /memsize 256 /sharedfolder avic_80 /c nk.bin /skin "avic.xml"

 

Assuming the skin code I pasted above is in avic.xml

 

MainMenu is what actually intercepts button presses and dispatches them to iGO, AV module, etc.

Posted Jan 11, 2010 · 14:13 UTC#10

I did as you directed, but I'm not sure of the purpose. The emulator comes up with the AVIC_mask.png that I specified, at the size of that image, with no task or menu bar showing (therefore can't run MainMenu or ezRider). Is there a specific set of images I should use (I was just using any ol' image thinking that these would be the buttons to emulate the zoom)?

 

Thanks for guiding me through this...

Posted Jan 11, 2010 · 17:48 UTC#11
I did as you directed, but I'm not sure of the purpose. The emulator comes up with the AVIC_mask.png that I specified, at the size of that image, with no task or menu bar showing (therefore can't run MainMenu or ezRider). Is there a specific set of images I should use (I was just using any ol' image thinking that these would be the buttons to emulate the zoom)?

 

Thanks for guiding me through this...

 

Try these ones... I do get task/menu bar when emulator starts. Also, Alt-Tab works...

post-22070-12872760897201_thumb.png

post-22070-12872760899494_thumb.png

Posted Jan 11, 2010 · 21:12 UTC#12

Getting closer. Now I can see the emulated interface, but I think I'm having issues with the emulator itself. MainMenu doesn't seem to do anything, and apparently (according to the attached emulator console output) the hard buttons aren't being registered.

 

Can you make any sense out of the attached and point me to where I've gone wrong with the emulator setup?

ConsoleWindow.txt

Posted Jan 11, 2010 · 23:20 UTC#13
Getting closer. Now I can see the emulated interface, but I think I'm having issues with the emulator itself. MainMenu doesn't seem to do anything, and apparently (according to the attached emulator console output) the hard buttons aren't being registered.

 

Can you make any sense out of the attached and point me to where I've gone wrong with the emulator setup?

 

I'll ask people on 4PDA who had set up the emulation...

Posted Jan 17, 2010 · 03:34 UTC#14

Any luck getting this going? I've been trying to reverse-engineer carver's instructions on how to carve up the WINCEIMG.BIN into toc.bin, eboot.nb0, chain.bin and wince.nb0 files so I can use 3.0 in the emulator. I think I've got the four files created right but the emulator doesn't like wince.nb0. Also tried the same process on a 2.06 WINCEIMG.BIN (following carver's instructions in viewtopic.php?f=34&t=25385) but the emulator didn't like that one either.

 

Has anyone successfully extracted nk.bin out of a WINCEIMG.BIN?

Posted Jan 23, 2010 · 10:39 UTC#15

I have managed to extract the files from WINCE42.NB0 but haven't been able to extract WINCE42.NB0.

Still working on it (between debugging mods). If anyone works this out please let us know

 

Cheers

34by151

Posted Jan 30, 2010 · 16:02 UTC#16

I test your Mask with the AVIC emulator.

On screen evrything is perfect but when I click on hard buttons, I hear a clic but nothing happend. Is it normal?