Diapositiva 1 - mark-off

Download Report

Transcript Diapositiva 1 - mark-off

Technology & Evolution
pCOWeb
[email protected]
Technology & Evolution
pCOWeb and pCOnet
•
2 different add-on cards
•
•
•
•
•
•
•
PCO1000WB0 - ETHERNET :
BACnet Ethernet
BACnet over IP
SNMP v1, v2, v3
HTTP (web server)
FTP, DHCP,...
available
•
•
•
PCO1000BA0 - EIA 485 :
BACnet MS/TP
available
Technology & Evolution
pCO available
pCO 1
pCO 2
pCO C
pCO B
pCO 3
Technology & Evolution
pCO XS
pCOWeb
•
It allows to access to the variables of the controller (pCOx)
through a common Ethernet LAN.
•
Board features
• Power by pCO
• ARM7 74MHZ
• 16MB RAM, 8MB flash
• Linux 2.4.21
• 10Mbit
Protocols
• HTTP (web pages 4MB)
• SNMP (Simple Network Management Protocol)
• BACnet (BACnet over IP and BACnet over Ethernet)
• FTP server, FTP client (plug-in optional)
• NTP (Network Time Protocol) (plug-in optional)
•
Technology & Evolution
Introduction
•
•
•
•
Serial Port n.1
BIOS: any version is good
pCO WEB act as a local supervisory sistem
SW application:
• SERIAL1_PROTOCOL=1 (Carel Local (Slave))
• 19200 baud (default)
• IDENT: not important (1-207, 0 not allow)
Technology & Evolution
LEDs and Button
•
2 LEDs
• Left LED : “Status” Communication with controller
•
Right LED : “Ethernet” Communication with LAN
•1 Button
•During runtime : Reboot card. Press the
button for 5 to 10 sec.
•At start-up : copy the factory values from
Flash to RAM
Press the button. Power-on controller. As
soon as the left LED starts blinking
(red/off).The pCOWeb will make 3 fast
blink = confirm.
IP address=172.16.0.1
Subnet mask=255.255.0.0
Username=httpadmin,
password=fhttpadmin,
etc…
Technology & Evolution
Installing the board
• Upload SW application into the board.
Check protocol & baud rate (SERIAL1_PROTOCOL=1,
INI_BAUD_SPV=4)
• Plug the board into the serial port n.1 (BMS)
• Connect pCOWEB to the PC
• Test Plan : use cross cable
• Switch On the control. Wait till the end of the boot
(about 1min)
Boot’s end when the left green LED blinks
Technology & Evolution
Configuring the PC
• Usually the TCP/IP configuration of the PC doesn’t match
with the pCOWEB one(DHCP, subnet mask)
• Change Network Properties/ Internet protocol (TCP/IP)
Technology & Evolution
Configuring Browser (Explorer)
• Disable the Proxy server
• Run Explorer
• Click tools/Internet options
• Click Connection tab
• Click LAN setting
• Unselect
Use proxy server…
Check Box
Technology & Evolution
Accessing to the main page
• Run Explorer (or other browser)
• 172.16.0.1 (default address for the
new card)
Technology & Evolution
Web Administrator
• Open the main/index page 172.16.0.1
(complete address: http://172.16.0.1/http/index.html)
• Click on Web Administrator reserved area link
• Login: admin, password: fadmin
Technology & Evolution
PcoWeb HTTP
Technology & Evolution
PcoWeb HTTP
Technology & Evolution
PcoWeb General
• Used/Free Flashdisk space
Technology & Evolution
PcoWeb General
Technology & Evolution
•
These setting are used when you press the button at start-up
PcoWeb General
Technology & Evolution
• Ethernet Configuration (IP,n° RX/TX,...)
PcoWeb General
Technology & Evolution
• Ethernet Variables
PcoWeb General
Technology & Evolution
• Adjust HTML pages attributes
PcoWeb General
Technology & Evolution
Network Configuration
•
•
Most Important Parameters
• IP address
• Netmask
Gateway, DNS: for FTP client (send file to www.domain.com)
Technology & Evolution
pCO COM
• Communication Parameters with the controller
You can change only the baud rate
Technology & Evolution
pCOWeb Users
Technology & Evolution
Users
Technology & Evolution
pCOWeb SNMP
SNMP (Simple Network Management Protocol) is a communication
protocol designed to manage TCP/IP networks and devices.
Developed by the IETF (Internet Engineering Task Force) and adopted
as a TCP/IP-based management standard in 1989.
SNMP is a set of standards for network management including:
– a protocol,
– a database structure specification,
– and a set of data objects.
ARCHITECTURE
The SNMP architecture defines a Client/Server relationship.
The Server (Network Management Station) executes management
applications or directives which manage and control network elements.
Clients (Network elements) are devices which have management
agents responsible for performing the network management functions
requested by the Server.
The database, controlled by the SNMP agent, is referred to as the MIB
(Management Information Base) and is a standard set of statistical
and control values.
Technology & Evolution
pCOWeb SNMP
Technology & Evolution
pCOWeb SNMP
• SNMP v2.c: available
• Carel OID: 1.3.6.1.4.1.9839
• TRAP
• User trap
• System TRAP
• TRAP editor
• FILE MIB: “Describes” the variables/objects (i.e. “Room
Temperature”, “High Pressure Alarm circuit 1”,...)
• MIB for standard applications: available
• MIB for custom applications custom: “easy” to do
• MIB validator available on the internet
http://www.simpleweb.org/ietf/mibs/validate/
Technology & Evolution
MIB
The SNMP MIB is arranged in a tree-structured fashion, similar in many ways to a disk directory
structure of files.
The top level SNMP branch begins with the ISO “internet” directory, which contains four main
branches:….
Technology & Evolution
TRAP
SNMP traps are an important part of the SNMP standard, and
allow devices to self-report problems.
These traps are typically logged by the network manager, and
drive event notifications.
Traps are asynchronous and outside of the control of the
network manager
Technology & Evolution
PcoWeb BacNet Database
•The pCO* communicated variables are mapped to analog_value and binary_value BACnet objects.
•A table-based list of BACnet-visible values is maintained by the pCOWeb.
•Each interface table value is accessible by BACnet clients as a Present_Value property of a standard
object.
•The Carel variable for each interface table slot defines the object type implicitly.
•Analog variables are mapped to BACnet Analog Value object type with an instance number equal to
their variable number, e.g. analog variable 17 would appear to be BACnet Analog Value 17. Because
analog variables are implicitly scaled "times 10" their conversion to REAL in BACnet is scaled
accordingly. So the value "123" which is taken to mean "12.3" is converted to a floating point "12.3" as
the value for the AV object Present_Value property.
•Integer variables are mapped to BACnet Analog Value object type with an instance number equal to
their variable number plus 1000, e.g. integer variable 17 would appear to be BACnet Analog Value
1017. The integer value shall be converted to REAL in BACnet. So the value "123" should be converted
to a floating point "123.0" as the value for the AV object Present_Value property.
•Digital variables are mapped to BACnet Binary Value object type with an instance number equal to
their variable number, e.g. digital variable 17 would appear to be BACnet Binary Value 17.
Carel variables
Technology & Evolution
BACnet variables
Digital variable 1
Binary value instance 1
Digital variable 199
Binary value instance 199
Analog variable 1
Analog value instance 1
Analog variable 127
Analog value instance 127
Integer variable 1
Analog value instance 1001
Integer variable 127
Analog value instance 1127
PcoWeb BacNet
BACnet Standardized Device Profile (Annex L):
BACnet Application Specific Controller (B-ASC)
List all BACnet Interoperability Building Blocks Supported (Annex K):
– DS-RP-B, DS-RPM-B, DS-WP-B, DS-WPM-B
i.e. act as a server that can execute Read/Write single or multiple
properties
– DM-DDB-B, DM-DOB-B
i.e. dynamic device and object binding. Support initiating I-Am in
response to Who-Is, and at configurable interval (Who-Is only, Who-Is
plus startup, Who-Is plus every N minutes). This option is configurable
through software.
– DM-DCC-B, DM-RD-B
i.e. DeviceCommunicationControl and ReinitializeDevice. These
features shall support a Reinit Password configurable through software.
– AE-N-I-B, AE-ACK-B, AE-INFO-B
i.e. generate EventNotifications when programmed alarm conditions
occur; accept acknowledgements for those notifications marked as
requiring acknowledgement, and support GetEventInformation
requests.
Segmentation Capability:
Segmentation not supported
Technology & Evolution
PcoWeb BacNet
Standard Object Types Supported:
• No dynamic Creation or Deletion supported
• No proprietary object types or properties supported
Device Object:
Optional Properties Supported:
•
•
•
•
•
•
•
•
•
Daylight_Savings_Time
Description
Location
Local_Date
Local_Time
Max_Info_Frames
Max_Master
Profile_Name
UTC_Offset
Standard Properties Used In a Non-standard Way:
• Process_Identifier
• Recipient
Technology & Evolution
PcoWeb BacNet
Writable Properties:
• APDU_Timeout
• Daylight_Savings_Time
• Description
• Location
• Max_Info_Frames
• Max_Master
• Number_Of_APDU_Retries
• Object_Identifier
• Process_Identifier
• Recipient
• UTC_Offset
Property Range Restrictions:
• Description, Location (limited to 64 characters)
Technology & Evolution
PcoWeb BacNet
Technology & Evolution
PcoWeb BacNet
•BACnet LAN Type: select the protocol to use BACnet/IP or BACnet Ethernet.
•BACnetIP UDP: if BACnetIP is used then a UDP port must be assigned, the default port for BACnet is “BAC0” hexadecimal.
•pCOWeb Device Instance: This is the device instance of the pCOWeb on the network. It defaults to 77000 but can be set
from 0 to 4194303. Every device on the network must have a unique instance number.
•Description: A 64 character field that can be used to describe the device.
•Location: A 64 character field that can be used to describe the physical location.
•APDU Timeout: Indicates the amount of time in milliseconds between retransmission of an APDU requiring
acknowledgement for which no acknowledgement has been received. The default setting of this property is 5000milliseconds.
This value must be non-zero if the APDU Retries is non-zero. In order to achieve reliable communication, it is recommended
that the value of the APDU Timeout be the same in all intercommunicating devices.
•APDU Retries: Indicates the maximum number of times that an APDU shall be retransmitted. The default value is 3. If the
value of this property is non-zero, then the APDU Timeout field must be non-zero.
•Password for Restart: This is the reinitialize password. The default is 1234. The value can up to 9 characters long. It is
required from the responding BACnet-user prior to executing the ReinitializeDevice service.
•Alarm Parameters:
•Alarming Enabled: Set to yes to enable the intrinsic alarming features of AV and BV objects.
•Alarm Destination Device Inst: Insert the device instance of the destination for the alarms. Allowable range is 04194303.
•Alarm Process Id: Insert the process Id or handle which is meaningfull to the alarm destination device. This handle
will be used to identify the process within the destination device that should receive the alarm notification.
•Interval to send WhoIs: The pCOWeb will send a WhoIs command to the alarm destination device. WhoIs will continuely
be sent at the interval provided until a valid response is received. Setting this value to 0 will disable this command.
•Clock Parameters:
•Daylight Saving Time: Check yes if it is required to automatically track daylight savings time.
•UTC offset: Universal Time Coordinated offset is used to enter an offset in minute resolution. The UTC time zone is
GMT (or Zulu time in military terms). For example you would enter -300 to get Eastern Standard Time (EST).
Submit Button:
Pressing the “submit” button will save your changes. Then you must reboot the pCOWeb by pressing the reset button on the
card or by resetting power to the pCO* controller.
Technology & Evolution
BACset Tool
Technology & Evolution
From the BACset tool you can add descriptions
and set point limits for the BACnet side.
Compatibility
Technology & Evolution
Plugins
Installation
• Configuration -> plugins
WITHOUT PLUGINS
Technology & Evolution
Plugins
-Connect via FTP to your pCO Web:
-login : HTTPADMIN
-psw : fhttpadmin
- copy the folder “install-plug-xxxx” into “/usr/local/root/flash/http/” directory.
Technology & Evolution
Plugins
The web page shows a new link “Install/uninstall plugins” for install the plugin
Technology & Evolution
Plugins
Installation report
Report messagges:
[ ok ] installation correct
[ Yet present ] file is already
present
[!!!]
installation not
correct.
Technology & Evolution
Plugins
Uninstall plugins
Technology & Evolution
FTP configuration
Address of your FTP Server
FTP Server Port (default is 21)
FTP Login ID
FTP Server Password
Path to your
FTP directory
The output file
name. We suggest
using an XML
extension, since the
file is in XML format
Pause (in seconds) between
executions of the FTP push routine
IP Address of your proxy server (if you
do not use a proxy server, leave this
blank)
Comm port of your proxy server (if you
do not use a proxy server, leave this
blank)
Technology & Evolution
Example .XML
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 rel. 3 U (http://www.altova.com) by Alessandro Schiavo (Carel S.p.A.) -->
<PCOWEB>
<SYSTEM>
<HOSTNAME>localhost</HOSTNAME>
<DATE>19700102232431</DATE>
<IP_ADDRESS/>
<MAC_ADDRESS>00:0a:5c:10:00:06</MAC_ADDRESS>
<UPTIME>1d5h54mn</UPTIME>
<SYS_VERSION>B1.1.4be</SYS_VERSION>
<APP_VERSION>A1.2.6be</APP_VERSION>
<SEPARATOR_CHAR>.</SEPARATOR_CHAR>
</SYSTEM>
<PCO>
<PCONAME>Prova PcoWeb</PCONAME>
<PCOID>1</PCOID>
<DIGITAL>
<VARIABLE>
<INDEX>1</INDEX>
<VALUE>0</VALUE>
<PAR_DESCRIPTIONS>
<NAME>Al_hp_1</NAME>
<DESCRIPTION>
<EN>High pressure compressor 1</EN>
<IT>Alta pressione compressore 1</IT>
</DESCRIPTION>
<CODE>
<EN>HP1</EN>
<IT>HP1</IT>
</CODE>
<EXTD_DESCRIPTION>
<EN>High pressure circuit 1, chiller 2</EN>
<IT>Alta pressione circuito 1, chiller 2</IT>
</EXTD_DESCRIPTION>
</PAR_DESCRIPTIONS>
<OPTIONS>
<UNIT>--</UNIT>
<MIN>0</MIN>
<MAX>1</MAX>
Technology & Evolution
<RW>R</RW>
</OPTIONS>
</VARIABLE>
NTP
NTP
Network Time Protocol (NTP) is a system for the synchronization of computers
clock time through the Internet; developed mainly near the Delaware university
in the United States. They have been some defined 3 versions: the 1 in 1988,
the 2 in 1989 and the 3 in 1992. The running version is 3, compatible with the
previous ones. In order to facilitate the use of the NTP on notebook have
defined the simplified version NTP (SNTP 1995).
The main characteristics of the NTP are following:
–Is completely automatic and maintains the synchronization.
–It’s possible to use with all types of computers.
–Resistant to the breakdowns.
–It diffuses UTC time, therefore is independent from time zone and the daylight time.
–The synchronization precision is until 1 millisecond.
Technology & Evolution
NTP Configuration
Technology & Evolution
PcoWeb Firmware
Technology & Evolution
Download Firmware
Technology & Evolution
Tests
Technology & Evolution
Tests
Technology & Evolution
Tests
Technology & Evolution
How to download/upload a page
• An FTP client is required.
(i.e. Explorer, TotalCommander, WS_FTP, SmartFTP, …)
• Explorer: open ftp://[email protected]
Total Commander: 172.16.0.1
• Login: Username: httpadmin, password: fhttpadmin
• Root directory: ftp://172.16.0.1
• The new board have only 1 file: index.html
Originale (R): /usr/local/root/defindex.html
User (R/W): /usr/local/root/flash/http/index.html
• Copy/Delete/Rename files is like your local disk
(Drag&Drop)
Technology & Evolution
How to download/upload a page
Technology & Evolution
How to download/upload a page
Technology & Evolution
How to create a WEB page
• You must know the HTML language
• Pages must include the following lines(within the firsts 10
line)
<!—tagparser=“/pcotagfilt”-->
• Special tags (most common)
• Read variable:
<%VAR(0,t,i)%>
• Write variable: GET method
name=“script:var(0,t,i,min,max)”
t=type. 1:digital, 2: analog, 3:integer.
i=index 1…199 (Digital), 1…127 (Analogic, Integer).
min, max=minimum/maximum value
(i.e. 20.0 for analog)
Technology & Evolution
Test page
• Test Page
• Show temperature, setpoint, cooling
• Change Setpoint
Technology & Evolution
Remarks
• You can customize all pages (index, configuration ,etc)
Use the system ones as template
• Browser / View HTML command:
You don’t see the real source HTML files.
Carel tags are replaced with value.
• Flash Memory
• Reserved Area (about 4MB)
Contains operating system and pages configuration.
It isn’t possible to damage the content.
• User Area (about 4MB)
User pages are stored here.
• When pCO WEB boots, firmware is copied into RAM, then
continue to boot from RAM. System uses conf.params in RAM
(important if you press the button)
Technology & Evolution
Useful Address
• Index.html (user)
• Browser: 172.16.0.1
• FTP:/usr/local/root/flash/http/index.html
• Web administrator page (original)
• Browser: 172.16.0.1/config/adminpage.html
• FTP:/usr/local/root/flash/config/adminpage.html
• KSA site
• download/support/communication&protocols/pcoweb
• INFO
• [email protected]
Technology & Evolution
pCOWeb vs. WebGate
PLUS
•
self-powered
•
Linux embedded
•
high power and memory (10 times the WebGate)
•
BACnet gateway
•
SNMP alarm management (TRAP)
•
easy to install (DHCP)
•
4MB vs 500kB for html pages
•
FTP Push & NTP
MINUS
•
for pCO* family only (except pCOB*)
Technology & Evolution
Contact
Alessandro Schiavo
Product Specialist - Communication & Protocols
Marketing Dept.
direct (+39) 049 97 16 766
[email protected]
Technology & Evolution
Technology & Evolution