PDA

View Full Version : Resume PPC from suspend and reconnect.



Jlee
April 14th, 2004, 05:50 AM
Is there any way I can get a status icon within NR so I know if it's currently connected to the LAN or to Girder. This would be useful when bringing the PPC out of suspend mode so I don't have to keep pressing buttons waiting for some kind of response.

Aaron
April 14th, 2004, 05:58 AM
that's a good idea...
for the LAN I have a tray icon on my Simpad so I know but for those that do not having a Girder feedback would be good.

The issue with that is NR, or Girder, would have to 'poll' every X seconds and set an icon to your "connected" or "disconnected" image.

you'd also need it on every panel of your CCF... or ben may be able to place a tray icon?

Jlee
April 14th, 2004, 09:42 AM
The issue with that is NR, or Girder, would have to 'poll' every X seconds and set an icon to your "connected" or "disconnected" image.
That's exactly what I was thinking. I know how to get girder to poll every 'x' seconds but it's NR that would need to do the polling in this case and I don't know how to do that. All I can think of is to assign a hard button in NR that will reset the image (how do you change an image from within NR?) to disconnected state and send a request to Girder. If it get's a response the image would change state. The problem is that you'd still have to keep pressing it and waiting for a response but at least you get something nice and visual and it's better than doing something like switching your TV on and off until you get a reaction!

Someone must know of a slicker way to do this.


you'd also need it on every panel of your CCF... or ben may be able to place a tray icon?
Couldn't you just put it on the system master template or can Girder not change an image on there?

Aaron
April 15th, 2004, 06:00 AM
The "master" template is not really for the entire CCF... you could use all three templates and make the button stick on every panel, yes.

You know, the easiest way (maybe) would be to have NR detect the "link" state of the network and just change the STATE of the button... this way no Girder interaction is needed. You could set the state of the button to the images you want and bingo... a link light on your panels!

I'm hoping Ben comes up with a way to turn off the screen of the Simpad while allowing the unit to remain on so the Simpad owners do not have the delayed reconnection times for 802.11b

Jlee
April 15th, 2004, 11:38 PM
All of my panels need girder interaction of some sort. As all panels are accessed via a series of tabs at the top of the page I will add extra commands to every tab that will set the state of variable 'Connection' to 0 and send a request off to Girder. If Girder replies it will change the state to 1. If the state remains at 0 then the current tab will be red instead of it's normal white/grey colour. By using the tab at the top I'm not wasting valuable space in my CCF. Also, since I don't know of anyway to get NR to keep polling Girder (nor would I really want to) using the tabs is a good way of refreshing the connection status.

The tab for JRMC will also check the state of MC so Girder will use the 'Window Exists' function to see if MC is running, if it isn't running it will open it. Only when MC is open will the tab change colour from red to white.