Shop OBEX P1 Docs P2 Docs Learn Events
help with getting started bluetooth transceiver — Parallax Forums

help with getting started bluetooth transceiver

fisheaglerobotfisheaglerobot Posts: 4
edited 2007-10-15 07:01 in Learn with BlocklyProp
Can anybody help me get started with the bluetooth transceiver. I have plugged it into a BOE and downloaded this code but I get no reply giving me its address.·The transceiver card is plugged in correctly and the code downloads ok.

' {$STAMP BS2}
szdata· VAR Byte(20)
'wait for the eb500 to be ready
····· PAUSE 1000
·
'iniate getting the eb500 bluetooth address
····· SEROUT 1,84,[noparse][[/noparse]"get address",CR]
·
SERIN 0,84,[noparse][[/noparse]WAIT("ack",CR)]
·
'now read the address
····· SERIN 0,84,[noparse][[/noparse]STR szdata\17]
DEBUG "done 1",CR
·'again: GOTO again
SERIN 0,84,[noparse][[/noparse]WAIT(CR,">")]
····· szdata(17)=0
··· DEBUG "local eb500 address:",STR szdata\17,CR

Comments

  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-09 15:17
    Which model BASIC Stamp are you using? Have you tried the actual code download from our website instead of typing one in?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • fisheaglerobotfisheaglerobot Posts: 4
    edited 2007-10-14 06:27
    Chris I am using the BS2. Does that matter before I download code from your site? Where is that by the way? under downloads?
    Regards
    Frank Nickols
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-15 05:01
    Interestingly the code is available within the PDF (which can be copied and pasted). I will attach the version I have as well as provide the link to the documentation which has it. The importance of using a BS2 is that the baud rate parameters (timing) varies for other models and is quite often the reason code examples don't appear to work for some members.

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


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2007-10-15 05:04
    One other thing...How are you powering the board?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • fisheaglerobotfisheaglerobot Posts: 4
    edited 2007-10-15 07:01
    powering via a 9V battery
Sign In or Register to comment.