News:

Let's find out together what makes a PIC Tick!

Main Menu

Embedded web server

Started by WilliGrundmann, Apr 13, 2021, 03:45 AM

Previous topic - Next topic

WilliGrundmann

Hi,

One of my customers has been inquiring about the possibility to include an embedded web server with ethernet interface into one of the products, which we manufacture for him.

I am looking for a simple way to achieve this. The order quantities are quite small (200 - 500) and a high design cost would not suit the budget for this product.

Can anyone, who has experience with this point me in the right direction. I have done a lot of Proton programming but I have never done anything with TCP/IP or web servern.

Best Regards

Willi Grundmann


Parmin

I was in a microchip seminar where they are showing how to make a webserver with PIC32.
The Microchip website would have some documents on this.
But I have never seen them made with 8 or 16 bits PIC.

RayEllam

#2
Many moons back i used a product called xport, a serial to Ethernet converter that has an embedded web server. Im certain there will be other cheap modules that do similar stuff.

https://www.lantronix.com/products/xport-pro/

Simon

I think an ESP32 will work with ethernet as well as wifi. I have used that in the past to provide as a web server and then communicated with a pic via websockets.

This makes things quite simple and you can write most of your code on the pic and you are just sending and receiving serial commands, the ESP32 does have a powerful processor itself and could probably do all the work but if like me you are more comfortable using Proton and a pic then this is a good way to do it.

tumbleweed

QuoteMany moons back i used a product called xport, a serial to Ethernet converter that has an embedded web server.
You have to be careful with those types of converters.

With many devices (like this one), the embedded webserver is only for configuration of the device.
They have no way of passing the server data through to the serial port, so they're pretty useless for something like this.

RayEllam

You could be right on that. this goes back to around 2012 when i purchased this to run a weather station that was running on a pic. From memory the TCPIP stack and the server were running on the xport and we were able to "frig" the webserver to display the weather station values with Linux. Highly complex but at the time the ONLY solution. As the previous suggestion from the forum, an ESP32 module may be a cheap and easy solution, the PIC communicates with the ESP32 through it's serial port and runs some bespoke code to do what ever.

okmn

#6
I had been used in 2010 a serial to ethernet module WIZ107SR  of this company and it was ok.
you can find some hardware kit from here maybe you can interest

https://www.wiznet.io/?s=Embedded+web+server

RayEllam

#7
Something like this for $6 :)

https://www.cnx-software.com/2020/11/09/6-wt32-eth01-is-a-tiny-esp32-board-with-ethernet/

Iv no idea if this will do the job required BUT being an open source ESP im sure you can make it do whatever you want :-)