Hi all,
I'd like to start adding Ethernet based control for some of my projects. I have the WIZ820io+SD board connected to a Teensy 3.2 for testing. Nothing else has been connected at this point, I want to just try to explore the libraries, etc.
I decided to start experimenting with the Artnet examples as it's a network protocol that I'm familiar with. I loaded the basic ArtnetReceive example sketch, modified the IP address, then tried to run it. I ran in to a few issues. I've managed to get it working, but now I have a few questions!
1. When I first tried to compile I had a failure. I realized I had downloaded a different Ethernet library and put it in my Arduino folder, not the application folder (this is on OSX). Moving my library away seems to have solved that. Is there a better way to deal with this, or is it all dependent on where the libraries are?
2. In the example it uses a private class C network (like 192.168.X.X). I saw another example that showed defining a subnet, gateway, and DNS server. So conceivably I should be able to move to a class A network (like many Artnet networks use). I tried looking at the source, but I can't figure out if there's a test in there to automatically determine subnet based on the IP address. If I have to explicitly specify a non 255.255.255.0 subnet, what would I put for gateway and DNS when I don't need them. 0.0.0.0?
3. This is more of a philosophical question. How do people handle configuration for small embedded projects without things like screens? For simple projects I'll usually have a set of DIP switches, one some physically larger ones I'll put on a display. The Teensy is so small and capable, it seems a shame to add a display just for things like IP addresses. I prefer not to hard code all of the values if possible. I did find a project showing an Ethernet configuration through the web server (http://www.jo3ri.be/arduino/projects/network-settings-web-page-form-using-eeprom-to-save-submit). My issue with that type of configuration is that you must already be on the same subnet as the device. And if you don't know the current IP address, connecting can be problematic. I suppose some sort of "reset to defaults" button would be a good idea. Or perhaps some kind of USB interface that allows config? My problem there is that I have very little coding experience for computers (I only really do embedded work), so creating the config program would be tricky. What other ideas have people come up with to accomplish this?
Thank you!
Josh
I'd like to start adding Ethernet based control for some of my projects. I have the WIZ820io+SD board connected to a Teensy 3.2 for testing. Nothing else has been connected at this point, I want to just try to explore the libraries, etc.
I decided to start experimenting with the Artnet examples as it's a network protocol that I'm familiar with. I loaded the basic ArtnetReceive example sketch, modified the IP address, then tried to run it. I ran in to a few issues. I've managed to get it working, but now I have a few questions!
1. When I first tried to compile I had a failure. I realized I had downloaded a different Ethernet library and put it in my Arduino folder, not the application folder (this is on OSX). Moving my library away seems to have solved that. Is there a better way to deal with this, or is it all dependent on where the libraries are?
2. In the example it uses a private class C network (like 192.168.X.X). I saw another example that showed defining a subnet, gateway, and DNS server. So conceivably I should be able to move to a class A network (like many Artnet networks use). I tried looking at the source, but I can't figure out if there's a test in there to automatically determine subnet based on the IP address. If I have to explicitly specify a non 255.255.255.0 subnet, what would I put for gateway and DNS when I don't need them. 0.0.0.0?
3. This is more of a philosophical question. How do people handle configuration for small embedded projects without things like screens? For simple projects I'll usually have a set of DIP switches, one some physically larger ones I'll put on a display. The Teensy is so small and capable, it seems a shame to add a display just for things like IP addresses. I prefer not to hard code all of the values if possible. I did find a project showing an Ethernet configuration through the web server (http://www.jo3ri.be/arduino/projects/network-settings-web-page-form-using-eeprom-to-save-submit). My issue with that type of configuration is that you must already be on the same subnet as the device. And if you don't know the current IP address, connecting can be problematic. I suppose some sort of "reset to defaults" button would be a good idea. Or perhaps some kind of USB interface that allows config? My problem there is that I have very little coding experience for computers (I only really do embedded work), so creating the config program would be tricky. What other ideas have people come up with to accomplish this?
Thank you!
Josh