ENC28J60 Library V3.3 full source code

General discussion on mikroBasic.
Author
Message
mando
Posts: 23
Joined: 28 May 2008 05:48

#91 Post by mando » 19 Oct 2008 15:29

speechless :shock:

you are really great yo2lio!

MichaelN
Posts: 1
Joined: 23 Nov 2008 01:05

Trying to get Mini WEB SERVER working on 18F8722

#92 Post by MichaelN » 23 Nov 2008 01:25

Hi there,

I have been working with PICs for 8 years but am totally new on SPI Ethernet (so apologies in advance for stupid questions... :oops: )

Recently, I downloaded the ENC v3.3 library (thanks!) and loaded the hex for "Mini WEB SERVER" example into my 18F8722. Unfortunately, it's totally dead.

I have a 8MHz with PLL enable, thus 32 MHz, and I've read in this forum that at 8 MHz SPI speed and below, it can be troublesome for Ethernet. But could this really be the reason it is not responding at all??

My ENC28J60 is on PORTC, just as Mikroe's example, only exception is that CS and Reset are on PORTC 2 and 1 respectively and not 1 and 0. I've changed to Eth_Init_(PORTC, 2, 1) in the main routine.

Am I thinking really wrong somewhere? Isn't this program supposed to make the 18F8722 display the pages included in module "index_page.pbas" if I type //192.168.1.253/ in my webbrowser?

Any clue? Appreciate any guidance, thanks... :roll:

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#93 Post by yo2lio » 23 Nov 2008 06:41

Hello,

Your PC must have IP from this class : 192.168.1.xx.

I have new library, beta version, you can try it : http://www.mikroe.com/forum/viewtopic.php?t=17232

The final version will be available very soon.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Kamel
Posts: 13
Joined: 11 Mar 2007 14:29

ENC28J60 Library and PIC18F8723 not working

#94 Post by Kamel » 23 Nov 2008 12:41

Dear Florin,
You did an excellent job and the ENC28J60 library works fine with all Pic's but I tried to use it with Pic18F8723 (with 12Bit ADC) and it did not work even when I changed the SPI_init and advanced to SPI1 I also tested it with 18F8722 and did not work.
The successful one worked was when I used Pic 18F8520 witch is only having 1 SPI.
I am using MikroBasic V7.2 and UNI-DS PIC.
I Tested with Ethernet Lib for ME and it was working using PIC18F8723.
Please look at it and I am sure that you will be having the salutation very soon as you always do.
Thanks for all the help that you have been giving to all users.

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

#95 Post by yo2lio » 23 Nov 2008 13:11

The library work only with primary SPI.

Use Spi_Init instead of Spi1_Init !

Use the same configuration like for 8520.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

oliverb
Posts: 570
Joined: 24 May 2007 15:09

#96 Post by oliverb » 23 Nov 2008 13:41

Hi, I'm keen to try this out. I'm using a PIC18F4520 though, not the bigpic.

I tried some experiments with the other ENC software that came with mikrobasic but I seemed to hit limits, particularly with my version of the web server example, which did have limited form handling but seems to have broken since I last played with it.

Things I want to do:
another go at form handling, basically I want to be able to put a value in a box and click "Submit". I was close to this, had a version that displayed eight checkboxes and would write them to Port D but it "broke". I'm looking at "POST" handling, doesn't look too hard: just scan HTTP header for two LF in a row, then the next line is parameters I think, could be easier than GET?

IP assignment, not sure but think you've done DHCP successfully?

Have you tried implementing "Gleaning" which is probably the most trivial IP assignment method possible after baking the IP in to the HEX. In "gleaning" the device listens for incoming packets and initially it reacts to any IP, but stores the destination of an inbound packet and uses that as its IP. On a PC on the same LAN you manually create an arp entry for the device and then ping it or otherwise access it. This sends data to its MAC and it learns its IP from the first communication. Its a good fallback method for "black box" peripherals which may otherwise become "bricked" if a static assigned IP is lost/forgotten.

nofal2
Posts: 1
Joined: 10 Aug 2011 22:39
Location: Jordan- Amman

Re: ENC28J60 Library V3.3 full source code

#97 Post by nofal2 » 12 Aug 2011 23:04

Hi
Maybe this's good site, for learning Language HTML!
http://www.w3schools.com/

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Re: ENC28J60 Library V3.3 full source code

#98 Post by yo2lio » 15 Aug 2011 08:17

nofal2 wrote:Hi
Maybe this's good site, for learning Language HTML!
http://www.w3schools.com/
Thanks!
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

Post Reply

Return to “mikroBasic General”