Addtron Technology Electronic Device WebNet User Manual

Addtron webnet user's guide

Advertisement

Quick Links

WebNet
User's Guide
I/O Consulting A/S
Preliminary Version
6 April 2001

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Electronic Device WebNet and is the answer not in the manual?

Questions and answers

Summary of Contents for Addtron Technology Electronic Device WebNet

  • Page 1 WebNet User’s Guide I/O Consulting A/S Preliminary Version 6 April 2001...
  • Page 2 WebNet User’s Guide...
  • Page 3: Table Of Contents

    Contents 1 Introduction 1.1 What is the WebNet? ......1.2 The WebNet Start kit ......1.3 About this Manual .
  • Page 4 5 Monitoring and Statistics 5.1 Console output ........5.2 File System Information .
  • Page 5 B.2 Your ARP table ....... . . B.3 AutoIP Feature ........C References WebNet User’s Guide...
  • Page 6 List of Figures The WebRJS module with the WebNet module inserted ... The WebNet DIMM module ......The component side of the WebRJS-DCE board .
  • Page 7: Introduction

    Introduction What is the WebNet? The WebNet is a small electronic device, capable of serving as a gateway between another electronic device and an ethernet network – for instance an intranet or the Internet. The WebNet can connect to other electronic devices via e.g. its RS-232 interface. The user interface of the WebNet consists of a number of web pages contained in the device and presented by its built-in web server.
  • Page 8: About This Manual

    About this Manual The purpose of this manual is to make the new WebNet owner acquainted with the WebNet start kit and get started using it . First, in section 2 we unpack and identify the parts of the start kit. Then, in section 3 we install the unit and connect to it with a web browser. Sections 4, 5 and 6 are a tour round the various configuration and monitoring/statistics pages of the WebNet.
  • Page 9: Unpacking

    Unpacking Package Contents The WebNet Start kit consists of the following items: How To Get Started sheet (See also apendix A). The WebNet DIMM module. The WebRJS adapter board. An AC adapter (240V/50Hz). An ethernet UTP Cat. 5 interface cable (2 m). An RS-232 DB9BU interface cable (1,8 m) WebNet User’s Guide.
  • Page 10: The Webrjs Adapter Board

    3. Label with ethernet MAC-address (hardware address) 4. Connector The status LED’s on the board indicate: Green Server activity level (“heartbeat”) Red Internet activity — input/output via the network. Yellow Network activity — general activity on the attached ethernet. The WebRJS Adapter Board The WebRJS adapter board has a component side and a side with the connector for the WebNet DIMM module.
  • Page 11: Connecting The Boards

    Connecting the boards The WebNet DIMM module is inserted into the connector on the WebRJS board, at an angle of approx. 20 degrees. It is pushed gently into the socket, and when the connector on the WebNet module cannot be seen anymore, the module is pushed towards the WebRJS board until it “clicks”.
  • Page 12: Installation

    Installation Connecting to the Network Besides the WebNet Start Kit, you need a computer with TCP/IP and a web browser installed on it. The computer must be equipped with a network adapter. You can either connect the WebNet Start Kit directly to the network adapter on the computer, or you can connect it to a network hub or switch on the local area network.
  • Page 13: Applying Power

    Applying power The AC adapter is connected to the power socket on the WebRJS board and power is switched on. The LED’s should start flashing after a few seconds, and after an additional few seconds the unit has finished booting. Assigning an IP Address A WebNet module is, from the factory, configured to run in a so-called “Auto-IP mode”.
  • Page 14: Browsing The Webnet

    Are the WebNet and the PC on the same network segment? Is the connected hub/switch or network adapter capable of running 10Mbit? Did you type the correct MAC/IP addresses in the arp-command? Check it with (lists all arp entries) Is the unit properly connected (check the link indicator LED on the hub/switch or network adapter that the board is connected to)? Did you wait approx 10 seconds after power-on before issuing the ping? The auto-IP is typically the way to assign an IP address the first time.
  • Page 15 Figure 6: The WebNet home page WebNet User’s Guide...
  • Page 16: Configuration

    Configuration Configuration of the WebNet module is done via the configuration pages accessible from the WebNet home page described above, under the headline “System Configuration”. The sections below each describe one such configuration page. To access these pages, a username and password should be entered.
  • Page 17 Figure 7: Setup of access rights for web users list files in current working directory on the server list files in current working directory locally (on the client) dirname change directory ( server change directory ( dirname (on the client) file- upload a file to the server name...
  • Page 18: Setup Of Ftp Users

    A list of the most useful ftp commands is provided in Figure 8. Doing an “ls” after connecting with FTP will show a number of files and directories. The most important are shown in Figure 9. The “operating system” itself. Configuration file describing which scripts to run at startup.
  • Page 19: Network Settings

    Each user is also assigned a number of privileges: “Get” is the ability to read files from the WebNet (download), “Put” is the ability to write files (upload), “Delete” is the ability to delete files from the WebNet, “Mkdir” is the ability to create new directories on the WebNet and “Rmdir”...
  • Page 20 Figure 11: The configuration page for network settings WebNet User’s Guide...
  • Page 21: Software Installation

    The Serial device is chosen from one of “none”, “PIC”, “SP0” or “SP1”. The “PIC” entry is only useful on WebRJS boards equipped with a PIC controller. The “SP0” and “SP1” entries are the two serial ports. On the WebNet Start Kit the accessible RS-232 port is SP0, so that is the only valid selection (besides “none”).
  • Page 22: Remote Access

    Choose the “download” section, and then the “Firmware and standard applications” link. Here, a number of zip files exist, each containing a number of applications to try out. Unzip the files with e.g. WinZip and read any archives for installation instructions. WinZip can be obtained from Once the standard application is installed on the WebNet, it is accessed through a new link on the “Installed demonstration software”...
  • Page 23 Figure 14: Configuration box for 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 Xon/Xoff. WebNet User’s Guide...
  • Page 24: Monitoring And Statistics

    Monitoring and Statistics The WebNet contains a number of useful monitoring and statistics tools. These are accessed from the WebNet home page, under the headline “Monitoring and Statistics”. The sections below each correspond to a link in that section of the home page. Console output The console is where the WebNet outputs status and debugging information.
  • Page 25: Network Quality

    logging settings. Log files can grow fast if the system is busy. Network Quality “Pinghost” is a simple way of indicating the quality of a network connection in terms of reliability and latency. It measures the success/failure rate, the maximum round-trip time and the average round-trip time of ping packets.
  • Page 26: Test And Service

    (unnumbered) to the telnet server port 911 from a host with IP no. 192.168.2.58, and one (#4) to the web server from a host with IP no. 192.168.2.58. There are unfinished TCP connections (#8) web connection to a host with IP no. 192.168.2.52, (#5 and #6) web connections to a host with IP no.
  • Page 27: Firmware Upload

    Problems with files being corrupted, files disappearing and the like can be diagnosed with the “Flash test”. Overall responsiveness of the system can be verified with the “LED’s test”. Seemingly inexplicable behavior can be caused by defective RAM. The two RAM tests “RAM test 1”...
  • Page 28: Tools

    Tools The “Tools” section contains a number of useful tools and utilities for making more advanced configuration changes to the WebNet. Adjust Real Time Clock The real time clock can be adjusted to be in synch with the PC connecting to it, or to a manually entered time/date –...
  • Page 29: Interface Controller Update

    of the resize key and the X and Y fields, and the original contents of the file can be restored by means of the “Revert” key. NOTE: Be carefull when updating critical files on the WebNet. Access to the editor is password protected setup by the page that is described in section 4.1. Interface Controller Update This function only applies to WebNet on PIC enabled boards.
  • Page 30 Figure 20: The WebScript Debugger Tool Page put” window now contains the output from the script, and 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.
  • Page 31: Uploading And Running Scripts

    Uploading and Running Scripts This section deals with WebScript scripts, the built-in scripting language in the WebNet. More details, both on CGI scripts in general and WebScript in particular, can be found in [5]. What are Scripts For? Scripts are used in the WebNet to create dynamic web pages. Static web pages are written purely in HTML [8], and their contents are thus constant between accesses.
  • Page 32: Running The Script

    Figure 21: Example script displaying the TCP/IP configuration 7.4 below. Running the Script Scripts are either edited with the built-in editor (see section 6.2) or uploaded via FTP. Suppose you have edited the script on the PC, in a file called c: tcpsettings, (the file extension conventions regarding WebScript files say that they have no extension!) you do the following: 1.
  • Page 33 and once you “submit” it, you 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 help. WebNet User’s Guide...
  • Page 34: Webnet As An Rs232 Gateway

    WebNet as an RS232 Gateway A very useful application of the WebNet is as a gateway between an ethernet network and an RS232 equipped device. Many existing devices are presently controlled via an RS232 connection, and by applying a WebNet to such a device, it becomes Internet-enabled. The user can then, e.g.
  • Page 35: Application On The Webnet Or On The Pc

    The Terminal emulator is opened, and it is set up to connect directly to COM2. (check that serial line settings correspond with those of the WebNet). The “Device Sharing” settings (on the WebNet home page) is setup to “serial port sp0”, “telnet port 1010”.
  • Page 36: Application Distributed On The Webnet And The Pc

    As described in section 8.1 above, Device Sharing can be used to route TCP traffic to/from a WebNet serial port. Thus, via a TCP connection from the applet to the WebNet, the applet can reach the serial ports of the WebNet, and hence communicate with an attached device.
  • Page 37 The answer to question 3 simply depends on the need to recall a data history. If a PC should be able to connect to the WebNet, check the data output during the last e.g. 24 hours and then disconnect, the WebNet should store a data history. Figure 23 is an example, 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.
  • Page 38: How To Get Started

    How To Get Started Your new WebNet must be assigned a valid IP address before you can use it. This document describes how to do it, using the ARP command. (For more information consult section 1 in the WebNet System Manual). Assume your PC is assigned an IP address on the 192.168.26.x subnet, and your WebNets MAC address is 00:D0:C8:00:1A:BC (printed on a white sticker on the WebNet module).
  • Page 39: B Webnet Ip Configuration

    WebNet IP configuration Before you can configure your WebNet properly it must be assigned a valid IP address. This is done automatically if a DHCP, BOOTP, or RARP, server is present in your network - or manually with the ARP command using the WebNet AutoIP feature. Most products will only have AutoIP enabled by default, other features must be enabled by configuration.
  • Page 40: B.3 Autoip Feature

    Show ARP help Show ARP table contents Add ARP perm. entry (Unix and OS/2) Add ARP temp. entry (Unix and OS/2) Add ARP entry (Windows) Add ARP entry (recent Windows) Delete ARP table entry Ping an IP address The ’ip addr’, is the IP address you want to assign to your WebNet, is always given in dotted (numeric) format.
  • Page 41: C References

    References References [1] Douglas Comer. Internetworking with TCP/IP, volume 1. Prentice-Hall, fourth edition, 2000. [2] I/O Consulting. I/O consulting homepage. Webpage, 2000. http://www.iocon.dk. [3] I/O Consulting. I/O consulting webnet home page. http://webnet.iocon.dk. [4] Dougherty et. al. Sendmail. O’Reilly, second edition, 1997. [5] Peter Skov Knudsen, Bjarne Madsen, and Anders Jorgensen.

Table of Contents

Save PDF