Cytech CWM02 User manual

33
Uploadin
g
Files to CWM ........................................
31
Designing Steps ...............................................
30
Status List ..................................................
30
View Tab ....................................................
30
Property Box ................................................
29
Applet Tree .................................................
27
Element Toolbox ............................................
27
Toolbar .....................................................
26
Main Menu ..................................................
26
CWM Applet
Desi
g
ner Software .................................
26
Section 4 Programming ...................................
12
Configuration ...............................................
12
Connecting CWM to the Network .............................
12
Section 3 ....................................................
11
Broadband Internet with Route
r
.................................
10
Broadband Internet via PC Gateway .............................
9
Connections ....................................................
9
Section 2 Connecting the cwm ...........................
6
Java Virtual Machine (JVM) ....................................
6
UCM ID Switch ...............................................
5
ICs ..........................................................
5
LED Indicators ...............................................
5
Button .......................................................
5
Jumper Settings ..............................................
5
Connections ..................................................
5
Accessories ..................................................
5
Setup ..........................................................
4
Operating Environment .......................................
4
Supported Protocols ..........................................
4
Browser Requirements ........................................
4
Operating Systems ...........................................
4
System Requirements ........................................
4
Specifications ................................................
4
Features .....................................................
3
Introduction ....................................................
3
Section 1 Overview and specifications ..................
Comfort Webserver Module CWM02
1

63
Important Note ..............................................
62
Document Revision History ..................................
62
Firmware History ............................................
61
TCP pass-through port does not work .........................
61
Password lost ...............................................
61
CWM files have been corrupted ...............................
61
IP address lost ..............................................
60
Web page does not appear ...................................
60
Login window is cleared after entering code ...................
60
Login windows does not appear ...............................
60
Common Problems .............................................
60
Section 6 Troubleshooting ...............................
59
Comfort Programming .......................................
59
Section 5 Programming comfort .........................
56
Image Library ...............................................
56
Display of X,Y Coordinates ...................................
52
A More Complex Example ....................................
49
Sample Program ............................................
37
Programming Elements ......................................
37
HTML Programming ............................................
36
TCP/IP Pass-through Port .......................................
34
FTP via FTP Client ...........................................
34
FTP via Browser .............................................
Comfort Webserver Module CWM02
2

SECTION 1 OVERVIEW AND SPECIFICATIONS
Introduction
Fig 1.1 - CWM02
Figure 1.2 - Typical CWM User Design
The Comfort Web Server Module CWM02 is an add-on module which allows
Comfort to be connected to a Local Area Network as well as to the Internet so
that a browser can be used to view web pages in Comfort. The embedded web
server software is built-in allowing web pages representing a home, office or
factory layout with alarm points and appliances to be displayed on a browser.
The activation of motion detectors as well as opening and closing of doors and
windows is shown on the screen as they occur. The state of connected
appliances and lights is also represented. Clicking on a light or appliance will
change the state of the device (off to on and vice versa), and the change in
state is updated as it occurs. The security system can also be armed to any
mode (Away, Night, Day or Vacation) or disarmed by the click of a button. Any
alarm activation will be shown in a message box or as a flashing icon. A
network camera server on the local area network can be linked to the web
server to view the premises on the Internet.
Comfort Webserver Module CWM02
3

The web page can be customized by anyone with knowledge of HTML, but a
design tool, the CWM Designer with drag and drop functionality is also provided
to facilitate the design of the webpages and elements. Several sample files and
graphic images are provided as a reference to jump start the application.
Connection to the Internet can be via a PC or router on the local area network
that has a permanent connection to the Internet (ISDN, ADSL, cable modem or
leased line), this can be used as a gateway for Internet access.
Features
yBuilt-in Web Server with Linux Operating System
yNetwork Interface (RJ45 connector) 100 MB/sec
yPort mapping to allow camera servers to be accessed from same IP address
(maximum of 10 ports)
yCompact Flash memory 1 GB for operating system, software and web
pages. Approximately 600 MB is used by the operating system, 400 MB
available for web page design and graphics
yInternal RAM 256 MB
ySample graphic image files and designs provided in CWM.
yAccess by computer through the internet or through a local network
Specifications
yDimensions: 155 x 102 x 42 mm
yWeight: 700 g
yPower supply: 5V DC 1.6A from adapter (supplied), 100-240V AC input
System Requirements
yComfort II firmware 5.145 and above
Operating Systems
yWindows 98, Windows 2000, Windows NT, Windows XP, Windows Vista
yWindows Millennium Edition requires Sun Java Virtual Machine
Browser Requirements
yInternet Explorer 5.0 or later
yNetscape 6 and above
yOpera Browser 7.0 and above with Java
yMozilla Firefox 1.0 and above
yChrome 5.0 and above
Supported Protocols
yTCP/IP, HTTP, FTP, PPP
Operating Environment
y5 to 40 deg C
y10% to 90% relative humidity non-condensing
Comfort Webserver Module CWM02
4

Setup
Accessories
yPower Supply Adapter (100 to 240 VAC in, 5V DC, 1.6A out)
y“Crossover” Type Network Cable
y4-way terminal block
yFour rubber foot pads
Connections
yKA, KB, 0V, 5V connector. KA,KB connected to KA/KB on Comfort. 0V
connected to black wire, 5V connected to black-white wire of supplied
power supply adapter.
yRJ45 connector. For 10BaseT Ethernet connection.
Jumper Settings
ySW7 – set according to the ID of the UCM, default ID=2 (see “UCM ID
Switch” settings).
Button
yReset button. This button reinitializes the connection from CWM to Comfort.
It does not change any parameters in the CWM.
LED Indicators
yD1 (Green) RDY should be on at all times when powered up
yD9 (Red) RS485 Transmit to Comfort
yD10 (Green) RS485 Receive from Comfort
yD15 (Green) 100T from Network
yD16 (Orange) Activity should be flashing
yD17 (Green) Link from Network
yD5 (Green) RS232 Receive from Network
yD6 (Red) RS232 Transmit to Network
yD2, D3, D4 (Red) NOT used
ICs
yU1 – Microcontroller IC. Label indicates the firmware version number “CWM
5.128” or a higer version.
yU2 – RS485 Interface to Comfort
Comfort Webserver Module CWM02
5

UCM ID Switch
Comfort is able to support up to 8 UCMs. SW7 is a set of 3 headers which is used
to determine the ID, in accordance to the table below:
Table 1: ID Settings
OpenOpenOpen8 OpenOpenShort7 OpenShortOpen6 OpenShortShort5 ShortOpenOpen4 ShortOpenShort3 ShortShortOpen2 ShortShortShort1 SW7-CSW7-BSW7-AID
By convention, UCM ID = 1 is used for writing/reading configuration file. The
CWM should be set to ID 2 or above so that any communication failure can be
reported by Comfort.
Press RESET (SW1) after changing the ID settings.
The number of UCMs in Comfigurator should be set to the highest UCM number
of the system including the CWM. This is the same as programming Location
1672, according to the number of UCMs and CWM connected. Press reset on
Comfort after changing the number of UCMs.
Configuring CWM with Comfigurator 3
In the Modules tab right-click on UCM. For Comfort Firmware >= 5.164 and
UCM05 firmware >= 5.178 select SCAN for UCMs. Enter your user code in the
login box. The Scan results are shown below (typical). The CWM should be
shown in the UCMs list.
If the Comfort or UCM firmware are lower than that required for the Scan
function right click the Modules Tab and select Add UCM. Select UCM Type on
the UCM Properties window as CWM.
Figure 1.3 - Typical Comfigurator Screen with CWM
Java Virtual Machine (JVM)
As CWM uses the Java technology to communicate with the browser, user’s
computer must have the Java Virtual Machine (JVM) installed. The most
common JVMs are the Microsoft Virtual Machine and the Sun JVM.
Microsoft does not supply its Java VM in their new products and does not allow
it to be downloaded from their Website because of legal problems with Sun
Microsystems. Hence it is preferable to use the Sun JVM.
To download the JVM, point the browser at http://www.java.com and click on
the Download Java link. This will install the Java Runtime Environment as well
as the Java plug-in. To see the JVM version in Mozilla Firefox, go to Tools menu
Comfort Webserver Module CWM02
6

and select Java Console.
Figure 1.4 - Java Console Screen
For JVM, the version should be 1.6.0_20 or above. To see the JVM version in
Internet Explorer, go to Tools -> Internet Options -> Advanced tab, scroll down
the list to Microsoft VM, or Java VM and check the box titled “Java Console
Enabled (requires Restart)”. It will prompt user to reboot the machine in order
for the setting to take effect. If an older JVM is used, the user may not be able
to control the CWM elements by clicking on the icons.
An incompatible JVM version is one of the main causes of failure to connect or
login for CWM. If the loading of the web page is extremely slow, try switching
the JVM. We have found that the web page loads faster using the SUN JVM in
some Windows XP machines. To change the Java VM in Internet Explorer
browser, select the Tools Menu > Internet Options > click the Advanced Tab. To
select the Sun JVM, check the “Java (Sun)” Box shown below. To use Microsoft
JVM, clear the Java (Sun) box.
Comfort Webserver Module CWM02
7

Figure 1.5 - Java VM Screen on IE
Comfort Webserver Module CWM02
8

SECTION 2 CONNECTING THE CWM
Connections
1 By default the ID of the CWM is set to 2. The ID can be changed by
opening the case and set the shunts on SW7 to the ID of the CWM
according to the table in the previous section. By convention, ID 1 is
reserved for UCM05 to write/read configuration file from Comfort as
Communications Failure is not reported for ID=1. Up to 8 UCMs of different
types (e.g. C-Bus, EIB) can be connected to the Comfort network.
2The
CWM is connected to Comfort via KA/KB from KA/KB green terminal
block to Comfort’s JP8 KA/KB.
3 Power is supplied to the CWM via supplied DC adapter to 0V/5V green
terminal block. 0V is connected to the black wire and 5V is connected to the
black-white wire of DC adapter.
4 The Green RDY led on the CWM should light up and remain on. The LEDs
485TX (red) and 485RX (green) should blink rapidly showing that RS485
communications has been established between Comfort and the CWM.
485RX (green) flashing shows that it is receiving communications from
Comfort (poll). 485TX (red) comes on when the UCM responds to a poll
from Comfort.
5 The following few pages illustrates how the CWM is to be connected
depending on the way that the CWM is to be linked to the internet, i.e.
whether it is via a PC as a gateway on a network or whether it is through a
router.
6 Important Note: Always connect the network cable to the CWM
RJ45 socket before connecting power to the CWM. If the CWM is
powered on before the Network is connected, its network driver
will not be loaded and the network connection will not work.
Comfort Webserver Module CWM02
9

Broadband Internet via PC Gateway
Figure 2.1 - Broadband Internet via PC Gateway
In this configuration, an ADSL or cable modem is connected directly to a PC. This
gateway PC and CWM as well as other computers and devices are connected to a
hub or switch. In order for the devices on the network to share the Internet
connection, the gateway PC must run a software router like Winroute Pro. The
software router must be set up to allow port forwarding to the CWM and network
camera(s) which are to be accessed from the Internet. The gateway must also
run a DNS update software to work with a dynamic DNS redirection service like
no-ip.com. This can also be done using Cytech’s Dynamic IP system (see
“Dynamic IP Setup”). The gateway must always be on to allow Internet access. It
is recommended that the gateway PC be a dedicated machine for this function.
Comfort Webserver Module CWM02
10
Table of contents

















