I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / Virgin Webplayer
WebPlayer LEDs
Controlling the WebPlayer email and phone leds

New MessageWebPlayer LEDs (modified 0 times) snowskier1
Profile | Email
Has anyone figured out how to control these leds programmacically?

Kray?

Thanks,
Jeff

03-05-2002 12:12:31

New MessageRE:WebPlayer LEDs (modified 0 times) hwhack
Profile
I think the only one you can control "programatically" would be the message indicator led. Seems all the others are connected to hardware (like DCD for connection of the Modem). The message LED goes to a GPIO pin.

If you want to know how to control it let me know.

03-05-2002 14:05:38

New MessageRE:WebPlayer LEDs (modified 0 times) snowskier1
Profile | Email
yes, I'd love to be able to control the message led, at least - thanks

-- Jeff

03-05-2002 14:17:15

New MessageRE:WebPlayer LEDs (modified 0 times) hwhack
Profile
Ok, the message LED is connected to the Southbridge, to GPIO0. You access the bits to set or clear that signal (ie: turn the LED ON or OFF) by hitting bit0 of PCI reg 91h of function zero.

I am a DOS guy, and in DOS you could write a small Assmebly file as such:

mov eax,80009090h
mov dx,0CF8h
out dx, eax ; Southbridge is device 12h
mov dx,0CFCh
in ax, dx ; get current setting
; AH is Data, AL is direction
and ah,0FEh ; clear GPIO0
or ah,1 ; set GPIO0
mov bx,ax ; save new value to write
; Update
mov eax,80009090h
mov dx,0CF8h
out dx,eax
mov dx,0CFCh
mov ax,bx ; recall new setting, update
out dx,ax

This is from memory, but it should be enough. Be careful not to disturb the bits of reg 90h (contents of AL) as they are the direction bits, which will already be setup correctly for you.

Note in the above code you would probably want to add some code between the AND and the OR to decide if you want to turn ON the LED or OFF the LED. To turn ON the LED, allow the OR to happen. To turn OFF the led, skip the OR instruction.

Sorry I don't know enough Linux to show you the GNU equivalent!

Regards.

03-05-2002 19:14:40

New MessageRE:WebPlayer LEDs (modified 0 times) snowskier1
Profile | Email
actually, that's fine - I speak x86 assembly no problem

what do the other bits control? the lcd back light, per chance?

thanks again,

Jeff

03-06-2002 00:39:20

New MessageRE:WebPlayer LEDs (modified 0 times) hwhack
Profile
No backlight control is availble, it's tied to video register settings.

The other GPIO's are inputs, so no real use.

03-07-2002 11:43:44

New MessageRE:WebPlayer LEDs (modified 0 times) snowskier1
Profile | Email
You have me intreigued... whet are the other inputs?

And how did you figure all the out?

-- Jeff

03-13-2002 21:00:52

New MessageRE:WebPlayer LEDs (modified 0 times) hwhack
Profile
Why I designed it of course!

Ha ha, had you going there didn't I?

Actually, this box is very similar (if not the same) as an Acer box that I did some work on 2 years ago for a small company in CA.

Anyway, none of those companies exist any longer, but the memories linger.

There are 4 GPIO's on the Cx5530, and in this case I think 1 of them does nothing, one of them is used for Suspend notification (I think), and 1 is supposed to be used to signal that a Compact Flash card has just been inserted (or removed). However, the hardware is not sufficient to be able to handle a "hot insert" of a CF card, so the use of this input is dubious to say the least! Then we have the 1 ouput, which is used to drive the LED.

03-13-2002 22:26:48

New MessageRE:WebPlayer LEDs (modified 2 times) acebathound
Profile
If anyone's interested -- I've compiled the assembler code given by hwhack above (after slight modification) and placed the files (along with source code) on my website below. There's three seperate files, as explained on the webpage.

http://www.techdose.com/projects/Webplayer/webplayer-mailnotification.php

hwhack - I've given credit to you for the source code as "hwhack on the I-Appliance forums".. let me know if you'd like me to put your name in there, etc.

Hopefully someone here that's good with Microsoft's API can modify this further to make things more seamless =)

-Wayne

03-23-2002 01:42:52

New MessageRE:WebPlayer LEDs (modified 0 times) acebathound
Profile
Just added a Win32 version of the files.. these will no longer pop up a DOS window when the file is run =) If any additional updates are made to the files, I'll place notification on that page.

http://www.techdose.com/projects/Webplayer/webplayer-mailnotification.php

-Wayne

03-24-2002 01:01:41

New MessageRE:WebPlayer LEDs (modified 0 times) hwhack
Profile
Wayne,

Thanks for thinking about me, but it was YOU who did the work...all I did was recall what bit was the Mail LED.

No need to attribute anything to me, just glad to help.

Best Regards!

03-24-2002 13:11:28

New MessageRE:WebPlayer LEDs (modified 0 times) romanoff
Profile
This is fantastic! Up to now I've just been making due with ladybird to check my POP3 account.

Does anyone know of a way to activate Opera's mail program from a command line? If so, one could write a batch file that turned off the mail light and then check the mail.

03-24-2002 17:46:34

New MessageRE:WebPlayer LEDs (modified 0 times) romanoff
Profile
No one answered my last stupid question, so here is another. Does anyone know of a way to execute two commands on one command line (for example, wptoggle and JBMail)?

I have all of my F-keys programmed using shortcuts stored under the start menu and assigned shortcut keys. For F-12, I'd like to switch the email LED and then open an email client or perhaps open a webmail site. Unfortunately, I don't know hw to do both.

05-28-2002 05:47:25

New MessageRE:WebPlayer LEDs (modified 0 times) romanoff
Profile
I've decided to answer my own question, although perhaps someone can do better. In the tinyapps ezine archives I found Macromaker. It weighs in at almost 300k, which seems somewhat large. It also stores the macros in the registry! On the other hand, it is free and doesn't require an installer.
05-29-2002 06:41:31

New MessageRE:WebPlayer LEDs (modified 0 times) romanoff
Profile
I found something better: batch32. It essentially does what DOS batch files do but it allows for windows control. It's only 6k. My F12 key now loads a batch32 file that runs wpoff and then launches npop (a small mail program).
06-25-2002 19:05:02

New MessageRE:WebPlayer LEDs (modified 0 times) zerodrum
Profile
romanoff...

Npop looks like just the ticket for me.... but I can't see how to use it to control the led. How can I get it to invoke wpon when mail is received?

09-16-2002 03:23:15

New MessageRE:WebPlayer LEDs (modified 0 times) romanoff
Profile
Most of my "F-keys" are now programmed by creating "internet shortcuts" and then assigning a shortcut key. Exceptions include a shortcut activating a screen saver that cycles through family pictures and a DUN connection. For email I use saberquest's mailspy to activate the wpon light and batch32 to simultaneously launch npop and shut the light off.
09-26-2002 18:44:03

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3