Closed yarnaudov closed 9 years ago
I had to add ini.open(); and it is working now.
I do have the same Problem. I'm using Arduino Uno and Ethernet Shield W5100, environment is 1.0.1 Even adding in.open(); does not make a difference. SD libary is working and prooves that net.ini exists. @yarnaudov Where did you put ini.open ?
Thanks
I had the same problem. I added the following to the example code (prior to the construction of the IniFile object)
// see if the card is present and can be initialized: if (!SD.begin(SD_CHIPSELECT)) { Serial.println("Card failed, or not present"); // don't do anything more: return; } Serial.println("Card initialized.");
and added
ini.open();
immediately following the construction.
This resolves the problem of opening the file. However, I then run into the following problem:
card initialized. Ini file exists network section has an entry mac with value ; Semi-colon comm
I.e. the mac value from the ini file is not read, it rather returns the first (comment) line from the file.
I have the same problem as oostenveld. T T
Please try the latest version.
Thank you for the fix.
Now, I found that buffer of 80 chars is too much for my Arduino Ethernet. It's crash and falling into auto-reboot loop;
Fitting Ethernet and SD library into 2KB RAM and 32KB flash is not easy, that's partly why I developed my Calunium Arduino clone based on the ATmega1284P with 16kB of RAM.
dude i am facing same problem ini file /net.ini does not exist I am using
Arduino Uno r3 w5100 sd card
Kindly provide the solution properly because there are incomplete solution above.. BTW it is very very good project.
Have you copied the example net.ini file to the SD card?
Have you adjusted the example file so that the SD_SELECT
is the correct value for your SD card? If you're using the standard Arduino ethernet shield then the SD card using digital pin 4.
Have you tried the listfiles
example from the SD library to confirm that the file is present and visible to the SD library?
i will reconfirm that tommorow thank you for your reply... Yes i copied the net.ini (via pc usb) 100% sure yes i am using W5100 with SD card will test and report back FYI : i was able to do logging of temp data to log file on my sd before will test it again and test your script.
Using last version + Arduino Uno + W5100 and the example is not working.
I tried to set SS of SD Card to LOW, I don't know why is setted to HIGH. In addition I tried to add ini.open() but this freezes the Serial.
Any suggestion?
Please provide the output or more information as to what is not working.
The chip select line for the SD card is set to high to be inactive before any initialisation. The SD library toggles this pin to make it active only when needed. There is already a call to ini.open() in the example.
Tested and found to work as expected. Added README.md
to which explain how to set up the example and what the expected output is for a successful result.
Hi,
I've tried your library but it doesn't find the file on SD card. When using the SD library I successfully manage to read the file.
I'm using Arduino Duemilanove with Ethernet Shild W5100 and Arduino environment 1.0.1.
What am I doing wrong?