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
Remote Wake Up
What sendmessage can we use to wake Her up from a remote browser/URL sender?

New MessageRemote Wake Up (modified 0 times) Brumski
Profile | Email
I have modified Her enough to force URL's to load, blink the lights, etc. but I don't want to lose the automatic sleep function. However, since she must be awake enought to do all that, do you suppose there's a call that could be made (SendMessage) to make Her wake up? Perhaps a gpio trick?

TIA

10-01-2001 16:17:14

New MessageRE:Remote Wake Up (modified 0 times) bholio
Profile
I have been successful in making Audrey turn the screen off and on remotely. However, this is just turns off the screen and backlight, which does not appear to be the same as Audrey sleeping. For example, there is no sound effect when I shut the screen down like there is when I hit the sleep button. Also, if I hit the sleep button, my remote ON turns on the backlight, but the screen is still blank. I simply disabled the screen saver and have Audrey's screen shut off overnight.

The 'slinger webserver fun' thread discusses how to do this. It uses gpio.

10-01-2001 18:34:56

New MessageRE:Remote Wake Up (modified 0 times) Brumski
Profile | Email
Yeah, been there...

I was wondering if anybody has gotten a grip on the "Sleep" function yet.

Crossin' my fingers,
Brumski

10-01-2001 19:54:11

New MessageRE:Remote Wake Up (modified 0 times) davistw1
Profile
Did anyone ever figure out how to do this? I would like to remotely wake up Audrey and all I can get it to do with the gpio is turn on the backlight.
03-10-2002 07:23:42

New MessageRE:Remote Wake Up (modified 0 times) hw_irq
Profile
A long time ago someone posted the "SendKey" code that will properly wake up Audrey.

This code was also merged into the Audrey Caller ID (ACID) application. I am not sure if any changes were required, but this may be a good place to get the working code from http://www.timemocksme.com/acid

Here is the original code - I think it came from the http://qdn.qnx.com web site:

/* Toolkit headers */
#include <Ph.h>
#include <Pt.h>
#include <Ap.h>
#include <photon/PkKeyDef.h>

static void send_key( long key )
{
PhEvent_t event;
PhKeyEvent_t key_event;
PhRect_t rect;

rect.ul.x = rect.ul.y = 1;
rect.lr.x = rect.lr.y = 1;


memset( &event , 0, sizeof(event) );
memset( &key_event, 0, sizeof(key_event) );


event.type = Ph_EV_KEY;
event.emitter.rid = Ph_DEV_RID;
event.num_rects = 1;
event.data_len = sizeof(key_event);
event.input_group = 1;

key_event.key_cap = key;
key_event.key_sym = key;
key_event.key_flags = Pk_KF_Sym_Valid | Pk_KF_Cap_Valid | Pk_KF_Key_Down;

PhEventEmit( &event, &rect, &key_event );
key_event.key_flags &= ~(Pk_KF_Key_Down | Pk_KF_Sym_Valid);
PhEventEmit( &event, &rect, &key_event );
return;

}


int main( int argc, char *argv[]) {
long k;
PtWidget_t *window;

/* Init photon environment, even though I'm doing nothing with it. */
if ((window = PtAppInit(NULL, &argc, argv, 0, NULL))
== NULL)
PtExit(EXIT_FAILURE);
printf("Sending Key
");
send_key(Pk_F4);
}

03-10-2002 09:31:29

New MessageRE:Remote Wake Up (modified 0 times) davistw1
Profile
Found a program called fireKey at http://www.geocities.com/bholio. This allows me to remotely simulate a keypress (in my case a right arrow key). This wakes up Audrey just fine.
03-10-2002 16:36:25

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