sending a sketch without the ide

hi guys,
wondering if someone could point me in the right direction.

i want to upload a sketch with my own program - in vb6, is there an example of what data needs to be sent to the serial port?
I've made a machine but want to give my customer an easy way to upload a software update with 1 click in a vb6 app.

when the sketch is compiled in the ide where is the binary stored ?

grateful of any advice

ali

You can edit the Arduino preferences.txt file and add a line that says:

upload=verbose

When you compile your sketch you will then see (near the end of the process) the actual HEX filename that represents your program.

Note that you have to edit the preferences.txt file when the Arduino GUI is NOT running, because it overwrites the file when the GUI closes.

--
The Flexible MIDI Shield: MIDI IN/OUT, stacking headers, your choice of I/O pins

RuggedCircuits:
You can edit the Arduino preferences.txt file and add a line that says: upload=verbose

The less fiddly method...

• Start the Arduino IDE
• Click File then Preferences
• Ensure Show verbose output during upload is checked
• Click OK
• Load your sketch
• Upload

There is no need to shutdown or restart the IDE

aliboss:
i want to upload a sketch with my own program - in vb6, is there an example of what data needs to be sent to the serial port?

See the two posts above. avrdude is the path to success.

when the sketch is compiled in the ide where is the binary stored ?

%TEMP% The file has a dot-HEX extension.

firstly - thank you for such a quick response.

so i just need to send that hex file on the serial port and it uploads the sketch or do you send some type of header for the arduino to understand its a upload?

No. That won't work. You'll have to call AVRDUDE from your VB6 program. Do an upload with verbose output enabled, and study the output. You can ignore the compile/link stages, but you'll need to work out the upload sequence.

thanks for your help!!!!!