There will be a software running on a pc. I want to implement functionality where whenever a new device with due and ethernet shield (running my sketch) is connected to the network, and I click on 'search for new devices', it should show me an entry for the newly connected device. I should also be able to take a static ip/netmask/gateway from the user, send it to the new due and set it up and activate it. Any recommendations on how to have this setup. I am thinking along these lines -
- the pc can probably use a broadcast message when the user hits the search for new devices.
- shield listening on that port, responds to the message with some kind of unique identifier.
- pc detects that its a new device by comparing it against the list of already active devices. 4.pc sends the new ip etc to the shield, which reads it and activates it.
Issues: 1. the already connected and configured devices are already listening on a tcp port for its work. It uses the D2 line for interrupts from w5100. These devices will now listen to tcp and udp? 2. How do I get a unique identifier for a due/shield board. 3. where do I save it. microSD card isnt a good idea as then it can be modified. No eeprom on due. I guess I need to add an spi eeprom chip for this.