PDA

View Full Version : Deploy sketch via BT



windrago
11-22-2012, 10:03 PM
Hello there - I would like to deploy a sketch over BT but I can't figure out what's the sequence/trick/process with Teensy 2.0.

My setup:
teensy 2.0 + RN-42 + a couple of analog sensors

What I do:
- open the teensy loader (OS X)
- open Arduino IDE 1.x and set as device Teensy 2.0 and port the associate COM(BT) port.
- hit the upload button on the IDE

The IDE fails like there's no sketch on the board (like a first time upload)
here is the actual error:
status read, retry 49
Please press the RESET BUTTON on your Teensy to upload your sketch. Auto-reboot only works if the Teensy is running a previous sketch.


The project already works (arduino version and teensy version).
Given that the Teensy is smaller (and I like it over Arduino) I would like to be able
to deploy updates of the sketches over BT as I can do now with the Arduino.

I an highly confident that it can be done (and I hope so because I can't open the enclosure every time...)
any help it wildly appreciated

Magnethead494
11-23-2012, 07:53 AM
The primary issue here is that Teensy uses Teensy Loader, so that it can initiate the upload sequence to the chip. Also to be noted, is that as such, the upload is done over the USB lines, not the Serial lines. So I think you might be out of luck on this one...

That said, even though you can't open the enclosure, could you put a panel-mount USB port on the enclosure?