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 / 3Com Audrey
Control the two LEDs independently

New MessageControl the two LEDs independently (modified 1 times) Sketchy
Profile
I've posted a very tiny utility that can control the Audrey's mail and stylus LEDs independently.

Check it out here.

Note that no kojak libraries are needed, and neither is the SetLEDState program. Source is available.

Have fun!


-- Jim
ACID and other Audrey apps
04-23-2002 22:38:23

New MessageRE:Control the two LEDs independently (modified 0 times) bungee
Profile
Awesome program, thanks! i thought this was another thread just asking how to do something (like mine) but you're solving a real problem, now I can hopefully have different leds flashing for either mail or callerID alerts!

Alex


http://www.bloodyeck.com/projects/audrey/
04-25-2002 14:17:47

New MessageRE:Control the two LEDs independently (modified 0 times) Sketchy
Profile
Yep, the next version of ACID will allow the option of [on | off | flashing] for the [mail | stylus] LEDs.
I'm working on figuring out exactly which values do what when written to the device.
-- Jim
ACID and other Audrey apps
04-25-2002 14:52:43

New MessageRE:Control the two LEDs independently (use strip to reduce file sizes!) (modified 0 times) bungee
Profile
just as an FYI, I was able to get the size of led down by about 33% to 2732 bytes by running 'strip' on it - it strips out debugging info. I've managed to save quite a bit of disk space doing this to programs I've compiled for the audrey.

I was able to knock 10K off the size of ACID using the same method.

sadly bash is still around 427K and wget a whopping 942K :(

I might have to resort to the drastic actions mentioned in this article...
http://qdn.qnx.com/articles/mar2701/

Alex


http://www.bloodyeck.com/projects/audrey/
04-25-2002 15:01:49

New MessageRE:Control the two LEDs independently (modified 0 times) Sketchy
Profile
Thanks for the tip! I'll strip any future releases.
-- Jim
ACID and other Audrey apps
04-25-2002 15:32:18

New MessageRE:Control the two LEDs independently (modified 1 times) smk707
Profile
Jim,
I think I've broken the code.

It appears that for each pair of arguments, a single led command is performed; eg: "led 1 0 0 0" sends off commands to both the top light (1 0) and the mail light (0 0). If you send "led 0 1 0 1" your are telling the mail light to turn on solid twice.

The following useful commands result:
Both lights off 1 0 0 0 (or 0 0 1 0)
Both lights on 1 1 0 1 (or 0 1 1 1)
Top on, Mail off 1 1 0 0 (or 0 0 1 1)
Top off, Mail on 1 0 0 1 (or 0 1 1 0)
Both lights blink 1 2 0 2 (or 0 2 1 2)
Top Blink, Mail Off 1 2 0 0 (or 0 0 1 2)
Top Blink, Mail on 1 2 0 1 (or 0 1 1 2)
Top on, Mail Blink 1 1 0 2 (or 0 2 1 1)
Top off, Mail Blink 1 0 0 2 (or 0 2 1 0)

Obviously, the program could be simplified to use two command line arguments: Top state, Mail state (0,1,2).

By the way, thanks for all of your contributions.


Steve
Audrey Wall Mount
04-28-2002 19:06:30

New MessageRE:Control the two LEDs independently (modified 0 times) Sketchy
Profile
What a coincidence! I was just coming here to post that I had figured it out myself. I just finished rewriting led to be simpler, now that the commands are known. I also made it CGI-compatible so you can control the LEDs remotely (for whatever reason, who knows?)

Updated info and updated program (4KB) are at the site. Thanks for putting time into it, Steve.


-- Jim
ACID and other Audrey apps
04-28-2002 20:38:39

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