[En-Nut-Discussion] newbee problem - changing of IP
Harald Kipp
harald.kipp at egnite.de
Thu Apr 21 18:20:31 CEST 2005
Hi Andrzej,
in the current httpserv.c NutDhcpIfConfig() is called first.
Only if this fails, MYIP will be used. But NutDhcpIfConfig()
will _not_ fail, if
- A DHCP server is running in your network (probably not, because
of the weird IP)
- An IP is already stored in the ATmega128 EEPROM
You can use Basemon to change the EEPROM setting. Or run
AVRStudio and disable the "Preserve EEPROM Fuse". In that
case the EEPROM contents will be cleared whenever you
erase the device (during programming).
Even for Charon II Users the
http://www.ethernut.de/pdf/enswm21e.pdf
is quite helpful. See page 33.
Harald
At 00:11 21.04.2005 +0200, you wrote:
>hello all,
>It's my first email here. I bought charon II at egnite webstore. I
>soldered all together, downloaded nut os and installed it. Finally I
>compiled example (httpd) and programed device. It looks like everything
>goes well, but device has a strange ip number: 192.168.6.20
>I tried to modify following lines:
>
>#define MYMAC 0x00, 0x0A, 0x59, 0x03, 0x00, 0x60
>#define MYIP "192.168.1.47"
>#define MYMASK "255.255.255.0"
>
>compiled and programed again. no result.
>do you have any ideas???
>best regards,
>andrzej skaradzinski
>
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
More information about the En-Nut-Discussion
mailing list