I'm here again to ask some information on how to upload sketches on Arduino with Ariadne bootloader via TFTP.
I succeded to upload the sketch both through serial port and using the tftp client from console (as this instructions suggests).
So Ariadne bootloader itself works great but I'm having some difficulties trying to upload the sketch using the tftp client implemented by Apache Commons.
I would have expected that the java client would have been able to upload sketch since it also works great with a tftp server on my computer but, unfortunately, I wasn't able to make it upload a sketch on Arduino with Ariadne.
Does anyone have tried to upload a sketch on Arduino with Ariadne using a tftp library (hopefully written in Java/Scala)?
Thanks in advance for you collaboration.
I've found the reason why the TFTP client of Apache Commons doesn't work with Ariadne.
I know that the TFTP server on Arduino listens on port 69 but then the data transfer happens on a different port that is written on the EEPROM of Arduino and can be speficied using the proper sketch WriteNetworkSettings provided with Ariadne (the default port for data transfer is 46969).
The TFTP client of Apache Commons doesn't initiate the communication on port 69 and then commutes on the data transfer port but it communicates only on one port.
So, for now, the only way I succeded to upload a sketch on Arduino with Ariadne is using the tftp command.
If anyone knows another way to upload a sketch via TFTP on Arduino with Ariadne, please share it (especially if it uses a Java/Scala library).