Shop OBEX P1 Docs P2 Docs Learn Events
downloading to stamp through bluetooth — Parallax Forums

downloading to stamp through bluetooth

Robot JayRobot Jay Posts: 12
edited 2006-06-24 00:50 in BASIC Stamp
hi Guys!· I have a BOE with a BS2.· I have a Blue SMiRF Bluetooth device.· I was wondering if there is a way to wire my blue smirf to my boe so i can download programs to the BS2 wirelessly.· The Blue SMiRF has the following pins:

RTS
CTS
GND
PWR
TX
RX



As I understand it, I should be able to connect Rx and TX to SerIn and SerOut respectively, but I am a little confused about what to do with the ATN pin for hardware handshaking.· Thanks in advance for your help.

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-06-17 18:10
    Hello,

    ·· The ATN pin is designed to be connected to the serial port DTR pin, which resets the Stamp Module.· Since it doesn't appear you have this signal it sounds like you will not be able to use your Bluetooth system for programming.· We carry a system designed for such things at the link below.· I hope this helps.· Take care.

    http://www.parallax.com/detail.asp?product_id=30076

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • shortcircuitshortcircuit Posts: 11
    edited 2006-06-24 00:50
    Similar problem cry.gif

    I cant seem to get my BT cable replacement to work with my BS2. I can see from above why it might not work for uploading programs but whats holding back the simple serial communications?

    i wrote this and it works fine over the cable on COM1. it will gererate a sound and reply with "data received" to a terminal window.
    ' {$STAMP BS2}
    ' {$PBASIC 2.5}
    serData VAR Byte
    poll VAR Word
    baudmode VAR Word
    FREQOUT 0,1000,2000
    baudmode=16468
    '2400,8,1,0  :  16780
    '9600,8,1,0  :  16468
    DO
    SERIN 16, baudmode, [noparse][[/noparse]serData]
    poll = serdata
    IF poll <>0 THEN
        FREQOUT 0,100,3000
        PAUSE 20
        SEROUT 16, baudmode, [noparse][[/noparse]"data received"]
    ENDIF
    PAUSE 10
    LOOP
    



    but when i hook up the BT wireless, and switch the COM to 3 (the BT port) nothing. The setup works GREAT for the CMU CAM and I can address it with no problem !
    Is there a mistake in my code? Something i'm not thinking of?
    Do I need to cross some of the serial pins and if so any ideas on which?
    simple communications with a terminal are all i'm after
Sign In or Register to comment.