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
Application switching for Audrey coders...

New MessageApplication switching for Audrey coders... (modified 0 times) johnhamm
Profile
I've written a "sketchpad" app for Audrey, but I want to add support for the buttons, so I can switch between existing apps. Has anyone figured this out yet? I know it involves some kind of interprocess communication, but I'm wondering how difficult this is to add to our third-party applications... has anyone written this code yet? perhaps we could all collaborate and standardize the code so all our apps will work with the Audrey's current buttons?

Also, has anyone thought about a customized "channel" application that would run custom apps as well as custom "web channels"?

12-26-2001 20:18:35

New MessageRE:Application switching for Audrey coders... (modified 0 times) hw_irq
Profile
Can you post your "sketchpad" app for Audrey?
12-26-2001 20:49:33

New MessageRE:Application switching for Audrey coders... (modified 0 times) Sketchy
Profile
I'm also interested in the IPC going on between the Audrey-native apps. If we knew what buttond and res were doing, exactly, perhaps we could write replacements for them that know about the new apps. If anyone has looked into this, would you mind doing a braindump here with what you know? The ideal situation would be to create a configurable Audrey-specific shelf type app, that lets you assign different apps to different buttons, and always switches to (or launches) the correct app when the hardware button is pressed, regardless of which app currently has focus.
12-27-2001 11:42:08

New MessageRE:Application switching for Audrey coders... (modified 0 times) davinci27
Profile
I think the hardware keys are acually f keys(F1, F2, etc) When your using photon apps, the hardware buttons perform the same functions a f keys

davinci27

12-27-2001 18:55:59

New MessageRE:Application switching for Audrey coders... (modified 0 times) Sketchy
Profile
True, but the factory Audrey apps only know about themselves. I want F4 (or whatever the datebook hardware key is) to bring ACID to the front, regardless of what has focus at the moment. I want to be able to configure which h/w key does what.
12-27-2001 22:30:51

New MessageRE:Application switching for Audrey coders... (modified 0 times) dilligaf
Profile
I think the question is, do the apps know that when a certain 'Fkey' is pressed then run a certain program, or do they just pass that key on to buttond and it handles it?

If they just pass the 'Fkey' to buttond, then we need to know how to configure buttond and how to pass the 'Fkeys' to buttond.

Just thinking outloud,
dill

12-28-2001 11:34:34

New MessageRE:Application switching for Audrey coders... (modified 0 times) johnhamm
Profile
I'm going to research the interprocess communication in Phab. I can write dummy replacements for each of the Audrey apps, and display any interprocess communication that is going on between them. That way we can at least know what's being sent back and forth.

But it's possible to do all this without buttond or any Audrey app since the buttons are actually F1 keys. Here's what I suggest:

1. All of the apps we write for the Audrey (or those that participate in this "poor man's" button support) should first search for a copy of itself that is already running and if found, switch to that app and then terminate. That way, you can only have one copy of an app running.

2. Apps should all read settings from a predefined settings file (i.e. /kojak/appswitch.init or whatever name we come up with), that has each key defined with a program to start. For instance, the contents of the file would be:

F1=/nto/bin/acid
F2=/nto/bin/phjuke
F3=/nto/bin/sketchpad

etc...

When a user presses that key (which would be a button press), the application executes the command line and starts that app. When the app is started, it would behave as in point #1 above and bring the app to the front if it is already started or start itself.


Ta-da! Customized application switching without any need for "interprocess" stuff.


Now, I know what you're thinking. This will work great with all the custom apps that have been written, but what about the existing built-in Audrey apps? Well, you're absolutely correct... this won't work with those! But hey, it's just a start, it can be a way of activating button support while we study the "interprocess communication" thingies and come up with a way of supporting all the apps...

What does everyone think?

PS - I went ahead and posted the sketchpad app, as requested, even though it's not finished. http://audrey.hammoco.com then click on the "Downloads" button.

12-28-2001 23:21:10

New MessageRE:Application switching for Audrey coders... (modified 0 times) Sketchy
Profile
It's a start, John. Problem is, I rarely have a custom app in the foreground. When Audrey goes into deep sleep mode, it minimizes everything and brings the backdrop into focus, which won't use the appswitch.init (obviously). And if it's not the backdrop, then focus is usually on one of about 3 shells I keep open. Pterm is especially bad since 1) it doesn't interface with buttond at all, and 2) we don't have the source to ever change it. The only way to get pterm to behave like other apps is to work at a lower level.

Thinking out loud: maybe the factory apps don't do anything special with F-keys. It's possible that buttond inserts itself in the event chain before all other apps, and transparently passes input to the app with focus, unless an F-key comes along. Then, if a factory Audrey app has focus (checks some internal list), it does the launch thing instead of passing the F-key along. Good idea to write replacement apps with the same names, since you'll be able to see if the F-key events actually reach them.

You might have found it already, but http://qdn.qnx.com has lots of good low level qnx information if you can get past the nasty interface.

-- Jim

12-29-2001 10:58:40

New MessageRE:Application switching for Audrey coders... (modified 0 times) Sketchy
Profile
John Hamm, if you're still out there....Just wondering if you ever did some research into the factory app IPC. I'm still interested in a buttond replacement, and I am going to do some research soon. If you know more, please post and save me some time!
-- Jim
ACID and other Audrey apps
04-02-2002 18:41:53

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