mini web server

17 views
Skip to first unread message

vsurducan

unread,
Dec 21, 2021, 10:38:28 AM12/21/21
to jal...@googlegroups.com
Hi all,
I've noticed Matt wrote a few libraries related to ethernet:
enc28j60.jal, http.jal, networking.jal, ethernet mac.jal, maybe others...

However I did not find a simple example of a miniweb server (PIC + ENC28j60)  where you can do very simple tasks like reading a voltage or reading an input pin, or setting an output pin level.

I remember at one moment I saw a jal example of how to implement such a minimal stuff..but I do not remember where.
Any ideas are appreciated.
thx.

Matthew Schinkel

unread,
Dec 21, 2021, 4:57:21 PM12/21/21
to jallib
Hi Vasile, there are many samples on 18f4620. Take a look at microchip's documentation if needed.

Some samples are for  ENC28j60 and some may be for SLIP (Serial Line Internet Protocol). I suppose they could be named better. I believe both flavors use the same networking libs. 

I did have a web server working with this, I think the sample is 18f4620_network_all_in_one.jal but start with a small sample like 18f4620_network_ping.jal

18f4620_network_all_in_one.jal
18f4620_network_ping.jal
18f4620_network_slip_isr_ping_udp.jal
18f4620_network_tcp_client.jal
18f4620_network_tcp_server.jal
18f4620_network_udp_client.jal
18f4620_network_udp_server.jal
18f4620_network_webserver_enc28j60.jal

It would be nice if we could get the libraries to work with PICs that have a ethernet module within them.

Matt.

vsurducan

unread,
Dec 22, 2021, 12:36:19 AM12/22/21
to jal...@googlegroups.com
Thank you Matt, I did not observe those.
Yes, it would be interesting using the PIC18F67J60... but maybe testing first on some Olimex boards.
The Microchip ethernet stack is generally blamed for a huge number of compilation errors and the need to use old MPLAB versions to be sure it will work...
thx,

--
You received this message because you are subscribed to the Google Groups "jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jallib+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jallib/1a46375a-90cc-4c79-8fd9-8bf9ccfee17en%40googlegroups.com.

Rob CJ

unread,
Dec 22, 2021, 1:19:09 PM12/22/21
to jal...@googlegroups.com
Hi Matt, 

Wow, I never thought you could use a PIC to be a web server. Nice.

But are there 8-bit PICs with Ethernet on board? I tried to find one using this site but could not find any, only a PIC32:

Kind regards,

Rob



Van: jal...@googlegroups.com <jal...@googlegroups.com> namens Matthew Schinkel <mattsc...@hotmail.com>
Verzonden: dinsdag 21 december 2021 22:57
Aan: jallib <jal...@googlegroups.com>
Onderwerp: [jallib] Re: mini web server
 

Matthew Schinkel

unread,
Dec 22, 2021, 2:27:32 PM12/22/21
to jallib
I have one of these boards, but I never got around to using it or trying to make ethernet work.

It uses  PIC18F67J60 for ethernet. The registers in ENC28j60 may be similar, so my ENC28j60 library may help with development.


I had used a small breakout board with ENC28j60, which can be found on AliExpress.

Matt.

vsurducan

unread,
Dec 22, 2021, 10:08:52 PM12/22/21
to jal...@googlegroups.com
Hi Rob,
PIC18F96J60 and perhaps others...
best wishes

Reply all
Reply to author
Forward
0 new messages