Serial over Ethernet - Webserver


Closed Thread
Results 1 to 10 of 10
  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,042

    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.

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

    Default

    Lester, looking at your site and Tibo's there seems a lot to choose from.

    Any idea of price and availability of http://www.crownhill.co.uk/tibbo/EM202.php - EM202 unit and is this a suitable unit for converting the TX / RX TTL lines from a PIC to Ethernet ?

  8. #8
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,042

    Default

    http://www.crownhill.co.uk/product.php?prod=1794

    http://www.crownhill.co.uk/product.php?prod=1795

    The EM202 is an older part, the above links show suitable replacements.

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

    Default

    Doing a bit of homework and it seems most apart from one of these devices are designed for 3.3v operation and don't run in an 5v environment. I was also bragging that the 4ch thermostat project that I've been working on maintains a st temperature to within 0.5 of a degree (+/- 0.25C) which I can live with (Thanks DT and Henrik), when my boss asked if it's possible to network the device and with modification, come up with something that could monitor temperatures in the server room. Would the following work (is it simple too)



    Note the diagram is just for illustration
    Attached Images Attached Images  

  10. #10
    Join Date
    Apr 2003
    Location
    Cambridge - UK
    Posts
    1,042

    Default

    In principle, YES

Members who have read this thread : 0

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