![]() ![]() The following english sentence is for human, not machine If you want to reduce the size, most of message sent by the server can be reduced to the three-digit code. I am not sure if the string, witch is a constant, is located in flash or ram. That is because I was concerned about the logic of ftp protocol more than code optimization.īut the compiler does its job and there is only one occurrence of the string in the. An example is the string "500 Command line too long\r\n" that appears 10 times I admit ftpserver.cpp is not optimized in size. I will convert your text strings to Flash Did you explicitly include this file in your sketch?Ī search for #include "SdVolume.h" give no result in the whole SdFat library.Īny quick suggestions for getting the RAM down? Normally the file SdVolume.h is not included during compilation and you don't need it. ![]() I have to update itĬomment out the error line 25 in SDVolume.h I make this comment in message #17 and forgot to include it in the ReadMe. The only think I'd change to your ReadMe is adding these lines under the SdFat instructions.Ĭomment out lines 40 - 46 in iostream.hRight I like this idea, because as you say, each time you install a new ide, you have to rewrite the modifications. I made a new ethernet.h called EthernetConnected.h Yes, Arduino IDE has sometime as strange way to manage #define. ino is not seen at all of the include files. One problem that caused me a lot of grief is my assuming that a #define of FAT_SYST at line 1 in the. Remember you must also include the consumption of the SD card. I would appreciate to inform me of your results.Ībout the current consumption, I think it is difficult to measure it. But I think that you should use the SdFat and FatLib versions of February. So, if you are working with an Arduino Mega, you can use the last version of ftpserver. So I try to optimize the code for Due only.īut this only interfere with the code to manage the SD card and the ethernet module May be they are for ARM Arduinos like the Mega. I do not understand the goal of those changes but they introduce a lot code that, I think, is not necessary for Arduino Due. The reason is that the latest ide introduced some changes with the spi library. I made a new ethernet.h called EthernetConnected.h, modified the affected files, then installed the new library in my personal libraries.įor my last release in Github, I abandon the compatibility with Arduino Mega. If you change the files in the Arduino root and install new Arduino it seems to clobber the entire Arduino install directory so the modified ethernetserver files are wiped out. One item I did change that is important is the EthernetClient connected. I tried to define a global define that would automatically make changes from Due to Mega. I have a couple of things that I can pass along for now. Perhaps my biggest problem was figuring out how the library system works in Arduino. It took me a while to get my boards going but I did get it to work and I have successfully created files on SD and transferred files over the air to my Arduino system that is connected to a cellular router. It would be interesting to know if the difference is due to the driver of the ethernet module, the driver of the SD card or something else. This the half of what I obtain (up to 216 kB/s) 130 seconds for 13,5 MB corresponds to 103 kB/s. ![]() Your download speed of 255 kB/s is very similar to mines ( from 251 to 269 kB/s, varying with the type of card, the client, the operative system )īut I am surprised with the upload speed. I don't think a so long delay ( 3 seconds ) is necessary. In the shield you use, reset pin of W5200 chip is directly connected to reset pin of Arduino Due, so it is reseted at the same time as the other components of the application. So I can send a reset pulse to the chip in the setup() routine. I use Wiz820io and connect his Reset pin to a digital output of the Due (pin 8 ). I am not surprised you got approximatively the same upload/download times than with W5200 because it seems they have the same SPI characteristics. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |