Posted 10 July 2012 - 01:12 PM
Posted 11 July 2012 - 09:27 AM
Posted 11 July 2012 - 09:48 AM
In my experience 99% of all home routers are DHCP enabled. So i wouldn't worry to much about the users who are on static as they generally know enough to be able change IP addresses etc.!
As for using the ND as a DHCP device I wouldn't run the risk of having a second DHCP server on a home network especially as ALL SOHO routers are DHCP enabled by default. For your scenario i would just enable the DHCP client via mfdeploy and hope for the best, another thing you could do would be to store the desired IP in a config file on the SD card and set the device to that IP during an init sequence. Then the end user could manually edit the sd card config file to specify an IP for there device to use.
Thanks for your suggestions! Yep, I'm counting on the 'special cases' of static IP's, etc that the user is smart enough to figure their own stuff out.
I should point out that the final goal is to connect the device to a WiFi network and provide data logging available on the users home network. As such, the user will somehow need to configure the WiFi settings for the Netduino. This will be a simple configuration screen the user will browse to.
This is how I picture the setup process:
- User plugs Netduino to PC via ethernet.
- User navigates to http://netduino/index.html to configure WiFi settings.
- Hits save, and device is now on WiFi network. User unplugs the device and relocates (to where-ever they want).
Obviously, there is an inherent issue with IP addresses with the above solution (user needs to be on the same subnet as the IP address configured in the config file on the SD card. Eg, if the IP address of the Netduino was 192.168.0.100, the user would need to be on the 192.168.0.XXX range to communicate). Is there any way to somehow automate to allocation?
Any further thoughts on a user-friendly way to achieve this without having the end user muck around with IP settings?
Posted 11 July 2012 - 10:26 AM
Posted 11 July 2012 - 10:29 AM
I suppose you could write a small winforms app to do a udp broadcast on the home network, you would need a listener on the netduino to respond to the broadcast, but essentially that is a very similar method to the one used by cand Digi for their embedded ethernet controllers configuration. Once you have the connection you could use the local subnet mask (on the client pc running the winforms app) to set everything up, then you could have a simple wizard to set SSID and passphrase etc. for WiFi as well as a static ip if needed, that would probably be the nicest configuration experience for your end users...
Hope that helps
Yep, I tend to agree with you there. I don't think there is any way to getting away from implementing a WinForms-type 'Wizard' for clients to use. And it's probably the most elegant (and user-friendly) solution.
Thanks so much for your thoughts and insight!
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users