client/server architecture question

Help each other out

client/server architecture question

Postby foolio on Tue Aug 29, 2006 8:12 pm

How can I make a "fat-client"'s skin use EVENTS that are only possible from the server copy of mainlobby? For example:

Server has USB-UIRT, event sends IR signal POWER
Thin-client connected to server is basically controlling the server, so no problem.

Fat client - how does one make a button to use the server's USB-UIRT "power" command ??

similarly, the server has an X-10 unit to send X10 codes via events. How does the fat client tie into the server's event?

thanks
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby stevenhanna6 on Tue Aug 29, 2006 8:34 pm

I never add that kind of ability, you just want certain events to be "server" events? I would have to add a checkbox you could check that event off as a "server event", but you had better be sure the server runs that event no problem.

I guess you want this to turn on your music system or something from a fat client?
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby foolio on Tue Aug 29, 2006 8:39 pm

Hi Steve:

thanks for the quick response.

I want the ability to execute Events using a fat client that only the server has the capability of executing - so yes, things like turner on the receiver (because only the server has a USBUIRT, no the client), turning on the lights via X10 (CM11A connected to server, not client), security related function via ELK panel (ELK panel connected by serial to the server.)

Can I work around this limitation right now by issuing girder ievent? is there a way for the server to receive an i-event then trigger an action?

thanks
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby stevenhanna6 on Tue Aug 29, 2006 9:05 pm

no dont do that

http://www.xlobby.com/xlobby2.zip

server event added next to multithreaded....have not tested...try it out


events must match on both server and fatclient!
stevenhanna6
 
Posts: 904
Joined: Tue Feb 18, 2003 10:39 am
Location: Ontario, Canada

Postby foolio on Wed Aug 30, 2006 5:24 pm

thanks, Steve -have not gotten a chance to test it yet.

Should the "server event" box be check on both the client and the server or do you only need to check it on the client?

I'm a bit confused:

on my server which has a X10, I would set up an event:

Turn on Light
-plugin - X10
-command - lighton
-variables - A1

How would I set up a command on the client? There is no plugin available so how do I set up the command? Leave the command blank and just click "server event"??
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby sdumas on Wed Aug 30, 2006 5:44 pm

I definitely want to know/understand more...

Does this mean that from a client you could launch an event on the server only?

ie. If I ask the client to launch the picture viewer on the server, it would have the picture viewer on the server but not on the client - there would be no need to use mimic to control one from the other?

example:

Client 1 as a control menu for pictures

Client 1 ask server 1 to launch the picture viewer - picture viewer is displayed on server 1

Client 1 then can ask server 1 to go to next picture or to slide show without displaying the picture(s) on client 1?

If that's the case, then it would be truly client / server.

If that is the way this is supposed to work, how about being able to select events on multiple servers (or fat clients).

Example:

Client 1 is asking to launch picture viewer on server 1

Client 1 is asking to send a X10 command on server 2...

You see where I am coming from?

Is this possible?

Thanks!
sdumas
 
Posts: 131
Joined: Tue Aug 05, 2003 8:15 pm

Postby foolio on Wed Aug 30, 2006 6:03 pm

I think (and am hoping) that your description is correct. This is how CQC and mainlobby does their client/server architecture and it allows consolidating all your resources onto just the server - especially expensive hardware related resource. ie, Serial based control devices, IR, X10, ELK, etc.

This would truly be a big step in making a better client/server architecture for xlobby.
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby foolio on Thu Aug 31, 2006 7:26 am

the server event didn't work... I checked box it on the client and had a matching event on the server... the event didn't do anytning.. crashed the program a couple times.. away around this?
foolio
 
Posts: 21
Joined: Mon Aug 28, 2006 8:02 pm

Postby Marbles_00 on Thu Aug 31, 2006 2:04 pm

I'm going to have to try this to. I'd like to be able to control the server's parallel port from a fat client.
Marbles_00
 
Posts: 1867
Joined: Wed Apr 06, 2005 12:44 pm
Location: Canada

Postby vicom on Thu Aug 31, 2006 6:09 pm

I've tried all possible combinations.. It doesn't work at all :(
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Postby vicom on Tue Sep 05, 2006 5:12 pm

any news on this one?
vicom
 
Posts: 206
Joined: Tue Apr 20, 2004 6:16 am
Location: South Africa

Postby jbretsch on Tue Sep 05, 2006 5:56 pm

Even if the flag is working, I think it is a little more complicated.
Lets say you want to use the client for pictures but you want to use the server for videos and DVD. You want to make sure the variables holding the filename etc. is transfered as well and not only the Play video event

Maybe the solution is:
1) Have mimic to work on a fat client
2) Have a property on each event: Client/Server/Mimic (The navigation and selection of the video should be mimic, but the play will be on the server in my example)
3) For each category in the database you can assign the specific server responsible for the category.(Pictures and music would be client and movies would be "Servername"
jbretsch
 
Posts: 33
Joined: Mon Sep 04, 2006 3:50 pm