background image

WebNet

User’s Guide

I/O Consulting A/S

Preliminary Version

6 April 2001

Summary of Contents for Electronic Device WebNet

Page 1: ...WebNet User s Guide I O Consulting A S Preliminary Version 6 April 2001...

Page 2: ...2 WebNet User s Guide...

Page 3: ...ng to a hub 12 3 1 2 Connecting to a network switch 12 3 1 3 Connecting directly to the computer 12 3 2 Applying power 13 3 3 Assigning an IP Address 13 3 3 1 Auto IP the details 13 3 3 2 Auto IP how...

Page 4: ...rol 29 6 5 WebScript Debugging Tool 29 7 Uploading and Running Scripts 31 7 1 What are Scripts For 31 7 2 Types of Web Pages 31 7 3 Example Script 31 7 4 Running the Script 32 7 5 Debugging Scripts 32...

Page 5: ...B 2 Your ARP table 39 B 3 AutoIP Feature 40 C References 41 WebNet User s Guide 5...

Page 6: ...n the WebNet 18 10 Setup of access rights for the FTP users 18 11 The configuration page for network settings 20 12 The System Maintenance Page for Software installation 21 13 Setup page for the Devic...

Page 7: ...s the only necessary application 1 2 The WebNet Start kit The WebNet itself is a sub credit card sized DIMM module which makes it suitable as an add on module for another device For the benefit of thi...

Page 8: ...basics in writing and running scripts for making dynamic web pages In section 8 we try to get a hole through to the RS 232 interface Section C contains references to further information Updated infor...

Page 9: ...Hz An ethernet UTP Cat 5 interface cable 2 m An RS 232 DB9BU interface cable 1 8 m WebNet User s Guide 2 2 The WebNet DIMM Module The front side of the WebNet module is the one with the IC with the wh...

Page 10: ...ached ethernet 2 3 The WebRJS Adapter Board The WebRJS adapter board has a component side and a side with the connector for the WebNet DIMM module The component side is shown on Figure 3 and the numbe...

Page 11: ...be seen anymore the module is pushed towards the WebRJS board until it clicks The modules are now connected Figure 4 show the connector side of the WebRJS board with the WebNet module being inserted F...

Page 12: ...ges are in between the two devices Hubs or switching hubs are OK 3 1 2 Connecting to a network switch Connecting the WebNet to a network switch before an IP address is configured is not recommended So...

Page 13: ...end such a packet an entry is added to the arp table of the computer where the desired IP address is associated with the MAC address Thus to assign the WebNet an IP address the following steps should...

Page 14: ...ly type the IP address of the WebNet in the location field where you normally type URL s manually of your browser and press enter If you are on a network with a proxy web server a typical company LAN...

Page 15: ...Figure 6 The WebNet home page WebNet User s Guide 15...

Page 16: ...on the bottom of the access control page 4 1 1 Setup of web users Web access to certain file trees can be limited to certain hosts and be guarded by user name password protection For each file tree th...

Page 17: ...e directory cd to go backwards on the server lcd dirname change directory lcd to go backwards locally on the client put file name upload a file to the server get file name download a file from the ser...

Page 18: ...pages Root directory for static webpages html pages Figure 9 A list of the most important directories on the WebNet 4 1 3 Setup of FTP users Figure 10 Setup of access rights for the FTP users The priv...

Page 19: ...used the local network administrator should be able to inform You which IP address is assigned to the WebNet All network settings can be set manually IP address is the identification of the WebNet on...

Page 20: ...Figure 11 The configuration page for network settings 20 WebNet User s Guide...

Page 21: ...for authentication with the remote node and should be set up in correspondence with the settings on the remote node When the desired changes have been entered the Save button is pressed and the user i...

Page 22: ...oard and read the responses Figure 13 Setup page for the Device Sharing service Figure 13 shows the setup parameters for device sharing The serial devices can be the PIC controller if that exists or o...

Page 23: ...the serial lines of bits the N is no parity alternatively O for Odd or E for Even parity and the 1 is the number of stop bits The last box determines the type of flow control none hardware RS 485 or...

Page 24: ...RS 232 port of the WebNet or with a TCP connection to port 911 On the console output page you will find a Java applet that connects to this port and displays its output Only one connection can be mad...

Page 25: ...graph It is necessary to boot the WebNet after setting up the PingHost The statistics say nothing about data throughput A simple throughput test can be per formed by transferring a relatively large f...

Page 26: ...s an unnumbered system connection to the DHCP server at IP address 192 168 2 53 5 5 Test and Service Figure 17 The Test and Service Page The Test and Service page Figure 17 has two main purposes To pr...

Page 27: ...rvice page After approx 7 seconds the WebNet is ready to receive a new flash image Assuming the flash image is in a file called webnet bin on a floppy in drive A on the PC the steps are as follows 1 O...

Page 28: ...en reboots from WebNet rev 4 Figure 18 The Real Time Clock Setup Page After choosing to synchronize or after having set the date and time fields manually the Adjust button is pushed to make the change...

Page 29: ...button The hex file is now being uploaded and parsed by the PIC programming software The actual PIC type is detected and two new buttons appears To compare the content of hex file with the program whi...

Page 30: ...the stack window contains what may be left on the stack The verbose switch enables listing of the CGI parameters and details about the CGI query The procedure for uploading and running scripts is des...

Page 31: ...goes on the top of the page a dynamic contents part the auto generated part and a static footer part whatever goes on the bottom of the page A dynamic web page with side effects typically contains am...

Page 32: ...e file put c tcpsettings tcpsettings You can check that the file has arrived safely by typing dir which shows the files in the cgi bin directory with size information When the script is located in cgi...

Page 33: ...will see the output in one window and the stack contents in another window Often errors in WebScript programs relate to errors in the order of elements on the stack so this stack dump can be a great h...

Page 34: ...sh a connection from the PC to the WebNet through the serial line and a connection back from the WebNet to the PC through the ethernet connection a loopback connection T e r m i n a l e m u l a t o r...

Page 35: ...sirable e g if data logging is needed without a client being connected When the intelligence of the system is placed on the PC a Java applet 7 is put on the WebNet which is then automatically uploaded...

Page 36: ...than the above mentioned where the sensor just outputs data at a regular interval to communicate over the serial interface This protocol will then most likely be implemented in the WebNet 8 5 Archite...

Page 37: ...le showing a principal schematic of a setup with a device a sensor a WebNet that does both protocol translation data storage and applet serving and a PC The PC displays the web page from the WebNet in...

Page 38: ...em Manual 3 Type ping 192 168 26 7 and when the WebNet responds to the ping command it has been assigned the IP address 4 Type arp d 192 168 26 7 to remove the static entry from the PCs arp table The...

Page 39: ...ettings Secure restart is performed by 1 pressing the control button or jumper about ten seconds until the WebNet LEDs switches off The LEDs may still flicker but this just indicates normal activity 2...

Page 40: ...IP address of your PC is also given in dotted numeric format e g 192 168 26 7 This parameter is only required in old versions of Windows Use the command arp a to verify that your ARP entry is properly...

Page 41: ...O Reilly second edition 1997 5 Peter Skov Knudsen Bjarne Madsen and Anders Jorgensen WebScript User s Guide and Reference Manual I O Consulting second edition 1999 6 Liu and Albitz DNS and BIND O Reil...

Reviews: