| ECS-L Home Automation and Security Archives |
| Subject: From: Date: | ECS/VNC Mark Gilmore Thu, 22 Jul 1999 05:22:16 -0700 |
For those wishing to access ECS from a remote PC, perhaps you
could step thru these tentative instructions and provide feedback ?
It's somewhat of a "Rube Goldberg" type of approach, but it seems
to work :-). Required cfg stuff is below and required .BAT files
are attached. THANKS.
WINVNC Installation on "Server" (ECS) PC
----------------------------------------
Using your web browser, select
1) From your Win DeskTop, click <B>MY COMPUTER</B>.
2) Double-click on the <B>C:</B> drive icon.
3) Click <B>FILE</B>, <B>NEW</B>, <B>FOLDER</B>, and enter "<B>VNC</B>"
(so as to create the new directory C:\VNC)
4) Using your web browser, select <a
href="http://www.uk.research.att.com/vnc/download.html>VNC
downloads</A>.
5) Fill out the form, check <B>WIN32 (INTEL)</B>, and click <B>PROCEED
TO DOWNLOAD</B>.
6) Click the 1st occurrence of <B>ZIP ARCHIVE (ZIP)</B>.
7) Download the file to/as <b>C:\VNC\VNC.ZIP</b>.
8) Using PKZIP, unzip VNC.ZIP.
9) From your Win DeskTop, click <B>START</B>, <B>RUN</B>, and enter
"<b>C:\VNC\SETUP</B>".
10) From your Win DeskTop, click <B>START</B>, <B>PROGRAMS</B>,
<B>VNC</B>, and
<B>INSTALL DEFAULT REGISTER SETTINGS</B>.
11) From your Win DeskTop, click <B>START</B>, <B>PROGRAMS</B>,
<B>VNC</B>, and <B>WinVNC</B>.
You should then see a new icon appear in your Win DeskTop Tray
(bottom/right of PC screen).
12) Right-click on the VNC Tray icon and select <B>PROPERTIES</B>.
13) Enter the desired password (which will later be required to access
your PC remotely). NOTE: Passwords ARE case-sensitive.
VNCViewer Installation on "Client" (remote) PC
----------------------------------------------
1) Repeat steps 1-10 from above.
To establish connection (using ECS/ECS.CFG)
-------------------------------------------
NOTE: Prior to attempting a remote connection, you must first
modify the POSTIE command in WINVNC0.BAT (on the ECS PC), such
that it will email to an account which is accessible from the
remote PC.
From the remote location:
1) Call ECS and enter the macro "50". This will cause ECS to
hangup, dial/connect to your ISP, run WINVNC, and email VNC.BAT.
2) On your remote PC, connect to your ISP and check your
email until you receive the VNC.BAT message from ECS.
3) Click "VNC.BAT" and "OPEN". This will run VNCViewer.
4) When the password prompt appears, enter the password defined
above (remember that it is IS case-sensitive).
5) After a delay (while display data is being collected), the Server's
PC screen will be displayed (this may take much as 80 seconds with
28.8 baud connections). <b>To enter full-screen mode</b> (so as to
display
the Win TaskBar & Tray), right-click on the VNCViewer TaskBar Icon,
and click <B>FULL SCREEN MODE</B>. <b>To exit full-screen mode</b>,
enter
<Ctrl><Esc><Esc>, right-click on the VNCViewer
TaskBar Icon,
and click <B>FULL SCREEN MODE</B>.
6) When you are done, set the ECS "WINVNC DISCONNECT" Item to TRUE.
This will cause ECS to reset PHONE-INTERFACE-C after 15 seconds.
7) Close the VNCViewer Window.
-------------------------------------------------------------------------------
|Item:ISP Connected Type:True/False Acc:User/User
| Initial State:False Backup:No
Denotes if Phone-Interface-C is currently connected to the internet.
Group refs: Phone
Event refs: Phone-Service, WINVNC
-------------------------------------------------------------------------------
|Item:ISPSTAT.DAT Type:File Acc:User/User
| Initial State:(none) Backup:No
| File :ISPSTAT.DAT
Used to tell us when the ISP has disconnected.
By convention, any batch file accessing the internet via
PHONE-INTERFACE-C (e.g. LMEMAIL.BAT) should create this
file after disconnecting (by copying another file to it).
If an error ocurred, the 1st character in the file should
be "1". Otherwise, it should be "0".
Group refs: (none)
Event refs: Phone-Service, WINVNC
-------------------------------------------------------------------------------
|Item:File Type:State-Holder Acc:User/User
| Initial State:(none) Backup:No
| Sub-Type :File
Used to read ISPSTAT.DAT.
Group refs: (none)
Event refs: Phone-Service
-------------------------------------------------------------------------------
|Item:WINVNC Connect Type:True/False Acc:User/Owner
| Initial State:False Backup:No
Set to TRUE to initiate a WINVNC ISP connection.
Group refs: Phone
Event refs: WINVNC
-------------------------------------------------------------------------------
|Item:WINVNC Disconnect Type:True/False Acc:User/Owner
| Initial State:False Backup:No
Set to TRUE to terminate a WINVNC ISP connection.
Group refs: Phone
Event refs: WINVNC
-------------------------------------------------------------------------------
|Item:WINVNC Connected Type:True/False Acc:User/Maint
| Initial State:False Backup:No
Denotes status of WINVNC ISP session.
Group refs: Phone
Event refs: WINVNC
-------------------------------------------------------------------------------
|Item:WINVNC0.BAT Type:Text Acc:User/User
| Initial State:(none) Backup:No
| Text :WINVNC0.BAT
Batch file to initiate WINVNC ISP connection
Group refs: (none)
Event refs: WINVNC
-------------------------------------------------------------------------------
|Item:WINVNC1.BAT Type:Text Acc:User/User
| Initial State:(none) Backup:No
| Text :WINVNC1.BAT
Batch file to terminate WINVNC ISP connection
Group refs: (none)
Event refs: WINVNC
-------------------------------------------------------------------------------
|Item:WINVNC disconn msg Type:Text Acc:User/User
| Initial State:(none) Backup:No
| Text :Pausing 15 seconds for remote VNCViewer disconnect ...
Message displayed prior to ISP disconnect
Group refs: (none)
Event refs: WINVNC
**************************************************
|Event: WINVNC Called ?:No
| ;----------------------------------------------------------------
| ; Handle WINVNC ISP connections
| ;----------------------------------------------------------------
|
| BEGINIF WINVNC Connect Is True
| Do WINVNC Connect Set False
| ;----------------------------------------------------------------
| ; Initiate WINVNC ISP connection
| ;----------------------------------------------------------------
| If Phone-Interface-C Is Not Operational
| Then Event-Exit Set True
| If Phone-Interface-C Is Operational
| Then Phone-Interface-C Set Disconnected
| If ISP Connected Is False
| Then ISPSTAT.DAT Set Delete
| Then ISPSTAT.DAT Set Reset
| Then ISP Connected Set True
| Do WINVNC0.BAT Set Execute
| Do WINVNC Connected Set True
| ENDIF
|
| BEGINIF WINVNC Disconnect Is True
| Do WINVNC Disconnect Set False
| ;----------------------------------------------------------------
| ; Terminate WINVNC ISP connection
| ;----------------------------------------------------------------
| If ISP Connected Is True
| ; Allow user 15 seconds to terminate VNCViewer:
| Then WINVNC disconn msg Set Display
| Then Pause Set 1500
| Then WINVNC1.BAT Set Execute
| Then WINVNC Connected Set False
| ENDIF
| End
**************************************************
These lines (or similar) should be placed in the MACRO VALUE Event:
| Else If Macro-Value Is 50
| Then WINVNC Connect Set True
| Then Macro-Value Set None
|
| Else If Macro-Value Is 51
| Then WINVNC Disconnect Set True
| Then Macro-Value Set None
**************************************************
These lines (or similar) should be in your PHONE-SERVICE Event (if not
already):
| ;----------------------------------------------------------------
| ; Monitor for ISP disconnect:
| BEGINIF ISP Connected Is True
| ; When ISPSTAT.DAT exists, we have disconnected:
| Do File Set ISPSTAT.DAT
| BEGINIF File Is Not None
| BEGINIF Email in progress Is True
| ; If emailed ok, set this message to "played" status (48 is "0"):
| If File Is Not 48
| Then Email Error Set Display/Log
| Else If Email Ack Is True
| Then New-Phone-Messages Set Acknowledge
| ENDIF
| Do ISPSTAT.DAT Set Delete
| Do ISPSTAT.DAT Set Reset
| Do ISP Connected Set False
| Do Pause Set 500
| Do Phone-Interface-C Set Reset
| ENDIF
| ENDIF
--
Mark Gilmore
Omnipotence (ECS Home Automation Software)
omnip@usit.net
http://www.usit.com/omnip