Shop OBEX P1 Docs P2 Docs Learn Events
Programing the propeller chip over bluetooth. — Parallax Forums

Programing the propeller chip over bluetooth.

KyeKye Posts: 2,200
edited 2010-06-16 21:39 in Propeller 1
So, it would be awsome if this were possible.

Can it be done? Can I just buy a bluetooth adapter and program the propeller wirelessly?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Nyamekye,

Comments

  • RaymanRayman Posts: 14,888
    edited 2010-06-16 19:10
    I've got a little bluetooth thing that acts like a serial port. So, I think it'd be pretty easy. Except, that it doesnt' give DTR, so you couldn't do it directly from the Prop Tool...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My Prop Apps:· http://www.rayslogic.com/propeller/Programming/Programming.htm

    My Prop Info: ·http://www.rayslogic.com/propeller/propeller.htm
    My Prop Products:· http://www.rayslogic.com/Propeller/Products/Products.htm
  • KyeKye Posts: 2,200
    edited 2010-06-16 19:14
    Mmm, sparkfun's adapters allow you to toggle the RTS and CTS lines. the prop tool supports those wires.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • T ChapT Chap Posts: 4,223
    edited 2010-06-16 19:16
    If you can't get the timing right, why not just send 64byte chunks, have the Prop write those to the eeprom as they come. I don't see why it is required to use the bootloader protocol.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2010-06-16 19:47
    If you write your own bootloader, you don't need to use the native protocol. That's what I did for the Propeller Backpack. It resets and enters monitor mode when it receives a BREAK on RxD. From there you can upload a program to RAM, then either execute it or save it it EEPROM. It requires a 64K-byte EEPROM to accommodate the monitor program and the user program.

    -Phil
  • KyeKye Posts: 2,200
    edited 2010-06-16 20:12
    What...?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
  • jazzedjazzed Posts: 11,803
    edited 2010-06-16 20:29
    I believe Phil is suggesting a different boot-loader because the default Propeller ROM boot-loader is intolerant of delays that Bluetooth can communications can introduce.

    Cheers.
    --Steve

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Pages: Propeller JVM
  • KyeKye Posts: 2,200
    edited 2010-06-16 20:46
    Oh, so that can be a problem. Okay, thats something I did not know.

    But I would rather use the prop tool to load code as its so easy. So... what would be the error rate...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,

    Post Edited (Kye) : 6/16/2010 8:52:05 PM GMT
  • jazzedjazzed Posts: 11,803
    edited 2010-06-16 21:26
    Kye said...
    Oh, so that can be a problem. Okay, thats something I did not know.
    But I would rather use the prop tool to load code as its so easy. So... what would be the error rate...
    It was 100% error rate for me in that I was never able to get a successful load. YMMV.

    Cheers.
    --Steve

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Propeller Pages: Propeller JVM
  • Mike GreenMike Green Posts: 23,101
    edited 2010-06-16 21:27
    Kye,
    Look at the bootloader code. You'll see that there are no retries and the delays are pretty short. I could be wrong, but I don't think you can tweek the Bluetooth parameters enough to make it work.
  • KyeKye Posts: 2,200
    edited 2010-06-16 21:39
    I would expect bluetooth to deliver the packets ontime more often. I may have to go with RF then.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Nyamekye,
Sign In or Register to comment.