Shop OBEX P1 Docs P2 Docs Learn Events
EasyBT — Parallax Forums

EasyBT

tantstants Posts: 2
edited 2009-06-01 09:19 in BASIC Stamp
Hi, After successfully pairing the EsayBT module to my handphone. I am still unable to send out any "AT" command to my hanphone. I have connected the EasyBT to a BS2e and use the serout command to send a STR "AT". But I there is no "OK" str return. Any other setting that I need to do on the EasyBT ? Will be grateful if someone can give me·a sample working code. Thanks

' {$STAMP BS2e}
' {$PBASIC 2.5}
RX CON 1 'Receive Pin
TX CON 0 'Transmit Pin
Baud CON 84 '9600 Baud
DEBUG "Starting",CR

SEROUT TX, Baud,[noparse][[/noparse]"AT",CR]
PAUSE 200
SERIN RX, Baud, [noparse][[/noparse]WAIT("OK")]
DEBUG "OK Detected",CR

END

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-05-29 15:03
    Are you sure your handphone communicates this way? What type of handphone do you have?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-05-29 16:53
    Before sending the AT command, try sending a "+++", followed by a one-second pause. This is the AT command-set's equivalent of a "pencil in the ear" and should get the device's attention. Also eliminate that 200ms pause after the SEROUT. You may well be missing the incoming data because of it.

    -Phil
  • tantstants Posts: 2
    edited 2009-06-01 09:19
    Hi, I tried sending "+++" , pause for 1 sec and send "AT", still no ack of "OK". I trying various model of Nokia phone (N6110, N78) and also some Sony/Erisson phone.

    How could I set the EasyBT to Serial Com Mode? or SPP ?

    Thanks for you advice.





    ·
Sign In or Register to comment.