670 likes | 1.65k Views
pCOWEB. pCOWeb. 2 different add-on cards PCO1000WB0 - ETHERNET : BACnet Ethernet BACnet over IP SNMP v1, v2.c HTTP (web server) FTP, DHCP,... available PCO1000 B B0 - EIA 485 : BACnet MS/TP prototype September 2005. pCO available. pCO 2. pCO C. pCO 1. pCO B. pCO XS.
E N D
pCOWeb • 2 different add-on cards • PCO1000WB0 - ETHERNET : • BACnet Ethernet • BACnet over IP • SNMP v1, v2.c • HTTP (web server) • FTP, DHCP,... • available • PCO1000BB0 - EIA 485 : • BACnet MS/TP • prototype September 2005
pCO available pCO 2 pCO C pCO 1 pCO B pCO XS pCO 3
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)
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)
LEDs and Button • 2 LEDs • Left LED : “Status” Communication with controller • Blinking Green = controller online • Green = inizializing • Blinking Red = installing default setting • Right LED : “Ethernet” Communication with LAN • Green = connect. • Red = LAN not connect • 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…
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
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)
Configuring Browser (Explorer) • Disable the Proxy server • Run Explorer • Click tools/Internet options • Click Connection tab • Click LAN setting • UnselectUse proxy server… • Check Box
Accessing to the main page • Run Explorer (or other browser) • 172.16.0.1 (default address for the new card)
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
PcoWeb General • Used/Free Flashdisk space
PcoWeb General • These setting are used when you press the button at start-up
PcoWeb General • Ethernet Configuration (IP,n° RX/TX,...)
PcoWeb General • Memory state • Boot Messagges (button pressed,...)
PcoWeb General • System log
PcoWeb General • Ethernet Variables
PcoWeb General • Adjust HTML pages attributes
Network Configuration • Most Important Parameters • IP address • Netmask • Gateway, DNS: for FTP client (send file to www.domain.com)
pCO COM • Communication Parameters with the controller • Don’t change them (not convenient)
Rescue • “Reboot system” • Like to press the button at runtime • “STOP SYSTEM-put into emergency Mode” • Like to “Safe mode” of WindowsClick this link if the board hangs (never used, up to now)
Demo • Test Page. It allows to send the first 10 A/I/D variables to control • pCO set result • RED: error (some variables can’t be changed) • GREEN: OK
SNMP(Simple Network Management Protocol) • 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/
How to download/upload a page • An FTP client is required. (i.e. Explorer, TotalCommander, WS_FTP, SmartFTP, …) • Explorer: open ftp://httpadmin@172.16.0.1Total 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.htmlOriginale (R): /usr/local/root/defindex.htmlUser (R/W): /usr/local/root/flash/http/index.html • Copy/Delete/Rename files is like your local disk (Drag&Drop)
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)
Test page • Test Page • Show temperature, setpoint, cooling • Change Setpoint
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)
Useful Address • Index.html (user) • Browser: 172.16.0.1 • FTP:/usr/local/root/flash/http/index.html • Index.html (original) • Browser: not available • FTP:/usr/local/root/defadmin/index.html • Web administrator page (original) • Browser: 172.16.0.1/config/adminpage.html • FTP:/usr/local/root/flash/config/adminpage.html
The pCOWEB have the possible to send (time slot configurable) a .XML file (customize) to FTP server. Connect to pCOWeb via FTP (user/password: root/froot) Use an FTP Client: SmartFtp, LeechFtp (FREEWARE) Advise: Your password can several of this: see USERS page Download files configuration. Configure FTP CLIENT & NTP CLIENT (address,pause,...) Reboot pCOWEB FTP Client Plug In
STEP A • A-Copy these files: • -ftp • -ftp.sh • -ntpdate • -ntp.sh • -xmlcreator • into:/usr/local/root/flash/bin_users • and give them the EXECUTE property
STEP B • B-Copy these files: • -ftp_script • -ntp_script • into:/usr/local/root/flash/etc/rc_users • and give them the EXECUTE property
STEP C • C-Copy these file: • -template.xml • into: /usr/local/root/flash/etc/sysconfig/conf_users
STEP D • D-copy these files: • -ftp_client.html • -ntp_client.html • into: /usr/local/root/flash/http/plugins • and give them the READ property
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) -[your IP]/http/plugins/ftp_client.html
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> • <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.
Configurazione NTP -[your IP]/http/plugins/ntp_client.html
Contact Alessandro SchiavoProduct Specialist - Communication & ProtocolsMarketing Dept. direct (+39) 049 97 16 766 alessandro.schiavo@carel.com