AVR Bootloader over bluetooth SPP

Go To Last Post
3 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Everyone,

 

Is it possible to program a Mega128 over bluetooth SPP? 

 

i have a board with a Bluetooth HC06  connected to USART0 of the mega128. I was thinking of using a bootloader so i can program the target without opening up the system. Can i bypass the physical reset using a routine to reset the target using the WDT. 

 

Which bootloader would you Suggest,

 

Regards

 

Rodney Almeida

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

With HC-05 it would be much easier, as there is possibility to switch polarity for second led that indicates connection - if it is connected to the reset pin through cap, it will reset avr. http://letsmakerobots.com/content/programming-arduino-bluetooth

But HC-06 is little bit more complicated, as there is just one led - however some 74HC123 with correct timeout would do the trick (with about more than 800ms delay).

And then you can use standard bootloader.

Computers don't make errors - What they do they do on purpose.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

rodney_alm wrote:
Is it possible to program a Mega128 over bluetooth SPP?
Yes.

Adafruit

Adafruit Learning System

Introducing Bluefruit EZ-Link Breakout

Overview

https://learn.adafruit.com/introducing-bluefruit-ez-link/overview

...

The Bluefruit EZ-Link is a regular 'SPP' serial link client device, that can pair with any computer or tablet and appear as a serial/COM port (except iOS as iOS does not permit SPP pairing).

...

Every other Bluetooth SPP device we've ever seen, if they even have the RTS/DTR pins brought out, do not sync back to the computer, instead the flow control is for the module serial buffer itself. 

...

rodney_alm wrote:
Which bootloader would you Suggest,
Probably Optiboot.

https://github.com/arduino/Arduino/tree/master/hardware/arduino/avr/bootloaders

"Dare to be naïve." - Buckminster Fuller

Last Edited: Mon. Jul 27, 2015 - 03:52 AM