Remove the SD Card and use a card reader/writer under Windows.
My Setup:
I have a Mega+Ethernet shield in an enclosure.
An application sketch is uploaded onto the Mega.
There are very small config txt files written to the SD Card.
There is no access to the card without opening the casing i.e. removing 4 screws.
My Objective:
I want to update the config files i.e. overwrite the existing files with new versions.
I do not want to remove the card to do the update.
I do not want to upload a sketch (i.e. overwrite the application sketch with a utility sketch) to update the files.
Anyone know of a way I can achieve my objective?
TIA for any help.
Edit: FWIW the idea would be to plug the unit into a PC USB port and "somehow" write from the PC to the SDCard in situ.
As constructive input/suggestion, the Ethernet shield needs a redesign to place the card slot so-that one can have access when using an enclosure and a Mega.
aisc:
I do not want to upload a sketch (i.e. overwrite the application sketch with a utility sketch) to update the files.
I think there only one way to do what you want and that's to add a support for updating the SD card to you application sketch.
You will likely need a program on your PC to read the desired files and then send the data over the USB (or possibly Ethernet) to the Arduino. The Arduino would need to know what to do with the incoming data and write the data to the appropriate files on the SD card.
DuaneDegn:
I think there only one way to do what you want and that's to add a support for updating the SD card to you application sketch.
You will likely need a program on your PC to read the desired files and then send the data over the USB (or possibly Ethernet) to the Arduino. The Arduino would need to know what to do with the incoming data and write the data to the appropriate files on the SD card.
Are you just speculating or can you reference an example to implement your suggestion?
aisc:
Are you just speculating or can you reference an example to implement your suggestion?
Google "arduino pc communication" and "arduino sd card library".
At some point you will need to write your own code, not just copy and paste from examples.
aisc:
Are you just speculating or can you reference an example to implement your suggestion?
aisc:
Edit: FWIW the idea would be to plug the unit into a PC USB port and "somehow" write from the PC to the SDCard in situ.
I suppose one could call it speculating but I'd be very surprised if my speculation isn't correct.
I haven't looked at the schematic of an Arduino Mega but I've looked at (and designed) a lot of microcontroller PCBs. I think it's pretty safe to say there's not a direct connection between the USB port and the SD card. The program running on the Mega needs to write the data to the card.
I'm not aware of a simple way of passing the information from the PC to the Arduino but I'm sure it's possible to do so. Hopefully one of the searches mikb55 will turn up ways to do this.