bluetooth help
jaydee532
Posts: 3
hey everyone,
for my senior project I want to get the embedded bluetooth transceiver eb500 to send a text message to my bluetooth capable cellphone. By running the following code, I am able to establish a connection with my phone, but once I accept the connection, my cellphone asks me to type in the pin number. I keep getting an invalid pin, so my question is, where do i find this pin number? Or am I suppose to write it in the code? Here is the code I have so far, any help is greatly appreciated.
' {$STAMP BS2}
' {$PBASIC 2.5}
'Wait for the eb500 radio to be ready
PAUSE 1000
'Connect to the remote device
SEROUT 1,84,[noparse][[/noparse]"con XX:XX:XX:XX:XX:XX",CR]
SERIN 0,84,[noparse][[/noparse]WAIT( "ACK",CR)]
'Wait for the connection to be established and switch to data mode
WaitForConnection:
IF IN5 = 0 THEN WaitForConnection
HIGH 6
PAUSE 300
DEBUG "Connection established",CR
'Send "Hello World"
SEROUT 1,84,[noparse][[/noparse]"Hello World",CR]
PAUSE 1000
'Switch to Command Mode
LOW 6
SERIN 0,84,[noparse][[/noparse]WAIT(CR, ">")]
'Disconnect from the remote device
SEROUT 1,84,[noparse][[/noparse]"dis",CR]
SERIN 0,84,[noparse][[/noparse]WAIT(CR, ">")]
for my senior project I want to get the embedded bluetooth transceiver eb500 to send a text message to my bluetooth capable cellphone. By running the following code, I am able to establish a connection with my phone, but once I accept the connection, my cellphone asks me to type in the pin number. I keep getting an invalid pin, so my question is, where do i find this pin number? Or am I suppose to write it in the code? Here is the code I have so far, any help is greatly appreciated.
' {$STAMP BS2}
' {$PBASIC 2.5}
'Wait for the eb500 radio to be ready
PAUSE 1000
'Connect to the remote device
SEROUT 1,84,[noparse][[/noparse]"con XX:XX:XX:XX:XX:XX",CR]
SERIN 0,84,[noparse][[/noparse]WAIT( "ACK",CR)]
'Wait for the connection to be established and switch to data mode
WaitForConnection:
IF IN5 = 0 THEN WaitForConnection
HIGH 6
PAUSE 300
DEBUG "Connection established",CR
'Send "Hello World"
SEROUT 1,84,[noparse][[/noparse]"Hello World",CR]
PAUSE 1000
'Switch to Command Mode
LOW 6
SERIN 0,84,[noparse][[/noparse]WAIT(CR, ">")]
'Disconnect from the remote device
SEROUT 1,84,[noparse][[/noparse]"dis",CR]
SERIN 0,84,[noparse][[/noparse]WAIT(CR, ">")]
Comments
SEROUT 1,84,[noparse][[/noparse]"Hello World",CR]
sends nothing to my phone. I was hoping someone knew of a way to send a text message to a verizon phone. All i could find off the web was this:
'Enter your 10-digit phone number. Messages are sent via email TO number@vtext.com."
I need to get this project done by Monday. Any help is greatly appreciated. thank you.
·
·· Admittedly I know nothing about your Cell Phone, but I would still surmise that you cannot simply send text and have it appear.· There are probably Bluetooth commands that you have to send to do various functions.· You will need to find out what these instructions are and send them.· In order to send a text message it will have to be another phone than the one you’re connected to via Bluetooth.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support