Go Down

Topic: printing and changing ip info (Read 715 times) previous topic - next topic

phinsil6

now you've confused me lol...the point of this device is so that others can use it and change the default ip address from a telnet prompt

i was thinking more about it and what if i stored the new ip info input into a buffer of sorts and then did a soft reset and had the arduino ethernet server start off of that buffer.  and also it would start off that buffer every time the arduino is initialized

PaulS

Quote
the point of this device is so that others can use it and change the default ip address from a telnet prompt

OK. Still not sure I understand this, but, that's not the issue.

Quote
i was thinking more about it and what if i stored the new ip info input into a buffer of sorts

You could do that.

Quote
and then did a soft reset

Not sure what this means, or how you would accomplish it.

Quote
and had the arduino ethernet server start off of that buffer.

Well, that buffer's data would have been lost in a reset.

You could store the IP address in EEPROM, and read from there on startup to get the IP address to use. Then, you could change the value in EEPROM with the right input.

phinsil6

okay so from with what you said would this procedure work:
1) Start ethernet.begin with ip, gateway, subnet from PROGMEM
2) from telnet session, if new ip, gateway, subnet info received store to buffer
3) stop telnet session
4) write buffer to PROGMEM
5) restart ethernet.begin server
6) voila new ip, gateway, subnet with new telnet session

please let me know if i'm way off base

Go Up