EasyBT
tants
Posts: 2
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
' {$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
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
-Phil
How could I set the EasyBT to Serial Com Mode? or SPP ?
Thanks for you advice.
·