|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/17 14:34
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
Maybe I'm not understanding all... Did you connect directly the circuit to the PC? DHCP server is a PC software? I believed that DHCP server was a simply hardware firewall. My connection was: Firewall->Switch to both enc and PC. Now, when I connect the circuit directly to the PC, the 2 leds of the enc don't blink. Help me Ian! thank you
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/17 17:23
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
If you connect the circuit directly to the PC you need a crossover cable, not a straight through network cable (some of the wires need to be crossed.) Or you can use a switch and two normal cables.
DHCP server, Dynamic Host Control Protocol. Provides IP addresses, it isn't a firewall. I use a free windows program for this called, magikDHCP
Ian
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/18 12:02
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
Hi Ian, thank to your help my circuit now works! I want ask you 2 questions: how can i set an fixed ip for my circuit?what file.c and what lines must change for set a fixed ip? and then what must i do to load a web site on the Pic? thank you! Filippo
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/18 12:39
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
Remove the DHCP define and set the Ip address in the c files. There is a bug when you remove DHCP as it leaves a bit of code in one place which you need to comment out. Won't compile otherwise.
put the website in the folder with the html pages in and then complie the website using the supllied program.
Ian
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/19 08:52
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
Ian wrote: put the website in the folder with the html pages in and then complie the website using the supllied program.
Ian
Sorry Ian, what is the program for website? (MPFS or Mib2bib)?! Filippo
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/19 10:18
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
use mpfs
mpfs [/?] [/c] [/r<Block>] <InputDir> <OutputFile>
/? : Display help /c : Generate āCā data file /b : Generate binary data file (Default) /r : Reserve a block of memory at beginning (Used in /b mode only. Default=32) <InputDir>: Directory that contains files <OutputFile>: Output file name[/b]
Ian
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/19 14:23
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
Thank you Ian! i would to ask you another info!have you used a eeprom in your circuit?if yes,what?and in which pins of Pic have you connected it?! Must i compiled the file mpnicee.mcp to use eeprom,ok? thank you!
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/19 14:26
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
As shown in the article circuit diagram, I haven't used an eeprom in my design. If you want to work out which pins to connect the eeprom to look in the source code.
Yes mpnicee.mcp is for the eeprom.
Ian
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/24 17:17
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
Ian wrote: Remove the DHCP define and set the Ip address in the c files. There is a bug when you remove DHCP as it leaves a bit of code in one place which you need to comment out. Won't compile otherwise. Ian
Hi Ian, can you tell me what lines of code must i changed for set ip address?and what files? i removed dhcp.h and dhcp.c but not compile the code. i have changed the ip address only with the usart but i don't know do with the stack.
sorry for my requests!!! filippo
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/25 14:19
|
By: Ian
|
Status: Moderator
|
|
|
Karma: 5  
|
|
| Posts: 85 |   | |
|
In the project build options there are a list of macro definitions. You need to remove the definitions for the DHCP.
Ian
|
|
|
|
|
|
Re:Fixed Ip address
|
|
Date: 2006/05/25 14:29
|
By: Filippo
|
Status: Visitor
|
|
|
|
|
|
|
|
In the stack TCP/IP 3.02, i try to delete dhcp.c and dhcp.h and set the new static ip address in Stacktsk.c at line 330-333 as you suggested me, but the compiler return some errors due to the absence of the 2 files i say before.
|
|
|
|