speechless :shock:
you are really great yo2lio!
ENC28J60 Library V3.3 full source code
Trying to get Mini WEB SERVER working on 18F8722
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... )
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...
I have been working with PICs for 8 years but am totally new on SPI Ethernet (so apologies in advance for stupid questions... )
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...
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.
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
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
ENC28J60 Library and PIC18F8723 not working
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.
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.
The library work only with primary SPI.
Use Spi_Init instead of Spi1_Init !
Use the same configuration like for 8520.
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
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro
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.
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.
Re: ENC28J60 Library V3.3 full source code
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
http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/
mail : florin@microelemente.ro