Programm arduino using blue smirf

Hello,

is there a way to program an artduino pro mini using only both the tx- and the rx- pin on the ardunino?

Background:
I've established connection between a blue smirf and my arduino. The arduino is sending an recieving serial data using only the tx-/rx-pins on both boards. The smirf is connected to a pc via bluetooth as a bluetooth serial port. I can read data from the arduino on the pc and send data form the pc to the arduino (both tested).

What I can't do but like to is program the arduino via the blue smirf. In the arduino software I only get the following when I try:

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_recv(): programmer is not responding

Used the "LilyPad" and the "Decimalia or Duemilanove..." options under Tools->Board with no difference.

Thanks in advance!

The arduino must be reset just before uploading the program. You need to get the bluesmirf's DTR or RTS signal connected to the arduino RESET. I believe that Lady Ada has some info on doing this. Not sure if it was for bluetooth or an XBee.

Thank you, that was a hint. But connecting the RTS pin doen't work. Guess it needs CTR. Any other ideas?

I looked into this file:
http://code.google.com/p/arduino/source/browse/tags/0015/hardware/boards.txt

and I see: 19200 baud for most boards... it seems as if the new chips use 57600 baud for the bootloader... so: did you connect the blue smirf using the correct baud rate?

Can one change the baud-rate in the software by editing this file or does the ardunio require this disticnt baud-rate to be programmed? It would be a bit tricky to change it in the smirf.

you can try to change the baud rate in the bootloader sources and then compile your own bootloader and upload it to the board via ISP.

In the Makefile of the bootloader you want to specify the baudrate for the corresponding target board. To get an idea how this works search for

-DBAUD_RATE=57600

in the Makefile ( Google Code Archive - Long-term storage for Google Code Project Hosting. )

if no baud rate is specified then the default is 19200 (see Google Code Archive - Long-term storage for Google Code Project Hosting. )

Just to make things a little bit clearer: this changes the baudrate of the bootloader on your Arduino Pro Mini if you upload it to the board. Then you must also change the baud rate (speed) setting in the boards.txt to the same value.

And don't get confused by the ISPSPEED key in the Makefile, this is the baudrate for the ISP interface (e.g. stk500v2) and has nothing to do with the baudrate setting of the bootloader that you want to change.

Thanks alot! That was very helpfull.

It's a shame that it still doen't work. I changed the arduino bootloader and software. That had no result so I changed it back an set the smirf's baudrate. No result with or without reset-pin connected. Don't know what's the problem.

you have to disconnect digital pins 0 and 1 while uploading (they can connected and used after the code has been uploaded).
arduino.cc/en/Guide/Troubleshooting

ok... today i play with my arduino diecimila and muy BlueSMiRF and finally it works!!

first, you must upload the program only with de arduino conected (only USB the rest of the circuit not). the speed for the serial port is 115200.

Then you conect the rest of the circuit:

Arduino BlueSMiRF
TX Rx
RX TX
3v3 3v3
GND GND

The arduino is powered with 6 - 12 V between VIN and GND pins.
In the BlueSMiRF the pins RTS and CTS must be jump.

if you do that the BlueSMiRF can be localizable.

When you want to read or send the information to the circuit, you must to configurate the COM in 115200 bps.

Well... i Hope it helps you... and sorry for my english :-[

I wrote a tutorial on how to set up Bluesmirf with Arduino on Mac OS X:

http://forum.sparkfun.com/viewtopic.php?f=13&t=20344&p=97668#p97668