Webcontrol Technical Manual: 1.3 Hardware Version: 2.0.2 Firmware Version: 2.3.1 Date Last Modified: 04/029/2009
Webcontrol Technical Manual: 1.3 Hardware Version: 2.0.2 Firmware Version: 2.3.1 Date Last Modified: 04/029/2009
WebControl
Technical Manual
Version: 1.3
Hardware Version: 2.0.2
Firmware Version: 2.3.1
Date last modified: 04/029/2009
TM
WebControl Technical Manual Version 1.3
Table of Contents
1 Introduction ........................................................................................................ 1
1.1 Scope.......................................................................................................... 1
1.2 References.................................................................................................. 1
1.3 Table of Definitions ..................................................................................... 1
2 WebControlTM I/O ............................................................................................... 3
2.1 Serial Data Ports ......................................................................................... 3
2.2 Power Supply Inputs ................................................................................... 3
2.3 TTL Output Port .......................................................................................... 4
2.4 AUX Input Port ............................................................................................ 4
2.5 DS1822 Temperature Sensor Input ............................................................. 4
2.6 Humidity Sensor Input ................................................................................. 4
3 Network Configuration ........................................................................................ 2
3.1 Connection Settings .................................................................................... 2
3.2 Access Settings .......................................................................................... 2
3.2.1 Web login ............................................................................................. 3
3.2.2 FTP ...................................................................................................... 3
3.3 Security Settings ......................................................................................... 3
3.4 Default Network Settings ............................................................................. 4
4 System Inputs .................................................................................................... 4
4.1 Digital Inputs ............................................................................................... 4
4.2 Analog Inputs .............................................................................................. 4
4.3 DS1822/DS1820 1 Wire Temperature Sensors ........................................... 4
4.4 Honeywell 4000 Series Relative Humidity Sensor ....................................... 5
4.5 Timers ......................................................................................................... 5
4.5.1 Examples of Timer Configuration ......................................................... 6
4.6 View the System Inputs and Outputs........................................................... 6
5 Controlling the TTL Output Port.......................................................................... 7
5.1 The Boolean Run Engine ............................................................................ 7
5.2 Boolean Expression Syntax ........................................................................ 7
5.2.1 Writing Rules........................................................................................ 7
5.2.2 Logical Operators ................................................................................. 8
5.2.3 Input Terms .......................................................................................... 8
5.2.4 Additional Operators ............................................................................ 9
5.2.5 Examples ............................................................................................. 9
5.3 Addition Features of the TTL output Port ..................................................... 9
Table of Figures
Figure 1.0 WebControlTM PCB inputs and outputs diagram ....................................... 3
Figure 2.0 WebControlTM configurable connection settings........................................ 2
Figure 2.1 WebControlTM configurable access control settings .................................. 2
Figure 2.2 Mandatory pages required to use web login ............................................. 3
Figure 2.3 Network defaults....................................................................................... 4
Figure 3.0 String format for configuring timers ........................................................... 5
Figure 4.0 Logical operators of the Boolean expression syntax ................................. 8
Figure 4.1 Inputs terms supported by the Boolean expressions ................................ 8
Figure 4.2 TTL output port defaults ......................................................................... 10
Figure 5.0 Email configuration parameters .............................................................. 11
1 Introduction
This document provides an overview of the technical aspects of using WebControlTM.
It mainly describes the inputs and outputs offered by the current version of the
WebControlTM hardware and firmware. It is also indented to guide and provide key
information on writing web pages and using the CGI commands to control
WebControlTM.
1.1 Scope
The scope of this document is not to teach how to write HTML web pages nor is it
indented to teach any other technical aspect related to hardware or firmware. It is
purely intended to be a guide to using the features provided by WebControlTM. The
reader is expected to be technically competent in all the technical areas within this
document, and is strongly advised to use this document along side the other
reference material listed in the reference section.
1.2 References
The following references are referred to through out this document. It is expected that
the reader will use these along with this document in order to understand and use
WebControlTM.
Reference Description
Ref1 WebControlTM web server CGI code specification V1.0
Ref2 Demo and test web page source files for WebControlTM
Ref3 Pin out diagram of J12 the AUX input connector
2 WebControlTM I/O
The current hardware version of WebControlTM is equipped with a number of inputs
and outputs; these are shown in below in figure 1.0.
3 Network Configuration
The network settings for WebControlTM are essentially split into three categories:
Connection
Access
Restriction
Connection settings deal with the actual settings that enable WebControlTM to
connect and listen for connections on a network. The access settings deal with
providing log in services. The restriction settings provide configuration settings for
limiting the allowed IP addresses that WebControlTM will allow connections from.
All network settings are configured using CGI commands. See the CGI specification
[ref1] for details on specific commands.
Once the user is logged in they have to use the logoff page to log off again. It the
WebControlTM server detects that there has been no activity from the user for 30
minutes of being logged in, then the user will automatically be logged off
WebControlTM.
When connect from another server or computer to WebControlTM, disable web login
maybe desirable. When web login disabled, you can use host ID to secure the
access and control of the WebControlTM through Security settings.
3.2.2 FTP
WebControlTM has an FTP server that is currently only used for uploading of new GUI
portion of the firmware to the board. It will destroy the existing GUI firmware. Such an
action is recorded and void warranty. There is no download feature implemented in
the firmware. In order to use FTP the user must know what the username and
password of the WebControlTM server is.
4 System Inputs
The system inputs of WebControlTM are used as inputs to the Boolean run engine
(see section 5.1). This section describes the configuration of these.
4.5 Timers
WebControlTM provides up to 20 timers that can be configured to provide periodic or
once only alarms that can then be used as inputs to the Boolean run engine via the
Boolean expressions. CGI commands are available to configure all timers.
The CGI commands use text strings that the user inputs via the browser. These text
strings use the format shown in figure 3.0.
<DD><Space><MMDD><Space><HH><:><MM>
Figure 3.0 String format for configuring timers
Where:
DD is a weekday identifier where 01 to 07 is Sunday to Saturday and 00
means that this field is not used
MMDD is a date identifier where MM is the month 01 to 12 and DD is the day
of the month. If the date identifier is not used then it should be set to 0000
HH is the hour in 24hr format
MM is the minute
The spaces and colon in the string are required
To configure a timer to alarm at 09:30 every Monday and on the 22nd November the
configuration string would be:
02 1122 09:30
To configure a timer to alarm at 15:39 every the 15th February the configuration string
would be:
00 0215 15:32
To configure a timer to alarm daily at 12:00 the configuration string would be:
00 0000 12:00
A single expression can contain OR and AND terms but they cannot be mixed E.g.
&C2 &I1 |T3 |O4 &A2 not compliant will function
incorrectly
&C2 &I1 &A2 |T3 |O4 compliant
Even if the expression only contains one term, that term must still have a logical
operator attached to it. E.g.
C3 not compliant will fail
&C3 compliant
Or,
O3[10] -this will cause the input signal of output 3 to be delay by 10
seconds.
5.2.5 Examples
Set output true when input 2 is true and temperature sensor 1 has reached its upper
threshold:
&I2 &T1U
Set output true when analog input 2 has reached its lower threshold or humidity
sensor 1 has reached its upper threshold:
&A2L |H1U
Set output true when input 6 goes low and timer 18 has reached its time and analog
input 3 has reached its lower threshold. OR temperature sensor 3 has reached its
lower threshold:
&!I6 &C18 &A3L | T3L
Set the output true when digital input 3 is high but only after 10 seconds:
&I3[10]
The browser control and Boolean run engine can both be disabled
The output can be used as a momentary output by specifying a momentary
value in seconds using a CGI configuration parameter. The resolution of
the momentary output timer is 0.1 seconds. The momentary output will be
set ON once triggered by the browser control and after the specified period
of time (0 to 6553 seconds) the output will return to its false state again.
Specifying a value of 0.0 seconds disables the momentary output and it is
treated as a normal output. Using momentary feature with Boolean Run
Engine has unpredictable result (output may be repeatedly ON and OFF).