Serial over Ethernet - Webserver


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    malc-c's Avatar
    malc-c Guest

    Default Serial over Ethernet - Webserver

    I've been searching through the forum for means of connecting a PIC based project (the 4ch thermostat posted in the code section) via Ethernet and an embedded webserver. I came across this this thread which show several devices costing around £30 - £40.

    One shows a diagram (see below) that seems to suggest you simply connect the two lines (rx & tx) from the PIC to the device and then RJ45 from it to the router and then enter the default IP / MAC address (much the same as accessing a router or adsl modem) to set up the comms and upload the "web page" for the device / data you want to display.



    Is it that simple, or have I missed something ?

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    I have used the wifi version of that part some and it is almost that easy.

    I did not use it as a web server because it will only do port 80 and the systems I work with have port 80 used by Apache.

    It can be used to send and receive serial data via Ethernet. Jeremy and I tested this by sending "text" messages to each others terminal.

    I have used it mostly as a remote data logger. Information is collected by a PIC®, sent to the module with the appropriate commands to and/or FTP the data to a server and send out an email.

    This is no longer running, it was just a test. The web page lived on the server and would pull the temperature data from the file the iChip FTPed. That was how I got around the port 80 problem. The PIC® code is also on the web page.
    http://mackrackit.com/mac/ichip/ichip.html
    Dave
    Always wear safety glasses while programming.

  3. #3
    malc-c's Avatar
    malc-c Guest

    Default

    Dave, looks fairly simple

    I might order one of these to try at some point. DT wrote the routines to display each channel of the thermostat via serial, and I was hoping that this device would do the same in HTML (I read that it can store web pages).

    It's not critical yet, I want to get some headway with the PCB design for the thermostat project first

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Yes it will serve web pages. This is from memory so I may be off a bit...

    The web page memory is something around 128kb. You create the HTML with whatever you use for that, then the iChip has software you can download to convert you HTML into an image file that lives on the iChip. You can have "parameters" in the HTML that become dynamic via serial input.

    Like I said, from memory. Only played with that part a little.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,030

    Default

    If You are in the UK / Eu you might want to look at these parts

    EM100 Serial-to-Ethernet Module

    EM1202 Programmable (BASIC) Serial to Ethernet module

    The full range is listed here

    And the Manufacturers web site carries a mass of information and a very good tech support forum.

  6. #6
    malc-c's Avatar
    malc-c Guest

    Default

    Thanks Lester,

    This gives me more scope, and price wise £26 is not a huge outlay.

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts