Connect Mobile Phone to BS2
vitaly1213
Posts: 10
Hello,
I am trying connect Nokia (6230i) with Board Education USB (BS2sx), but without success. I have read,already, many topics about this information, but in the Internet not enough infromation for me to understand how to do this.
I connect Nokia thorough cable DKU-2 to the Sout and Sin to BS2sx, also i was trying connect to the USB. I use baud rate 9600 (8-bit; no-parity; inverted 16624) and 4800(also was trying).
This is the code I use to communicate with mobile phone (AT commands):
SEROUT 16, 16624, [ "AT" , CR] '16 pin is for serial output
'DEBUG "AT"
SERIN 16, 16624,[ WAIT ( "OK" )]
DEBUG "OK"
Please, HELP me to understand why I couldn't get answer from mobile phone.
I am trying connect Nokia (6230i) with Board Education USB (BS2sx), but without success. I have read,already, many topics about this information, but in the Internet not enough infromation for me to understand how to do this.
I connect Nokia thorough cable DKU-2 to the Sout and Sin to BS2sx, also i was trying connect to the USB. I use baud rate 9600 (8-bit; no-parity; inverted 16624) and 4800(also was trying).
This is the code I use to communicate with mobile phone (AT commands):
SEROUT 16, 16624, [ "AT" , CR] '16 pin is for serial output
'DEBUG "AT"
SERIN 16, 16624,[ WAIT ( "OK" )]
DEBUG "OK"
Please, HELP me to understand why I couldn't get answer from mobile phone.
Comments
A USB host would be a PC or, in some cases, something like the Parallax Memory Stick Datalogger which is designed to allow you to plug in USB Memory Sticks (another USB client) to a Stamp. The control chip on the Datalogger can handle some other types of USB client devices, but it's not clear whether that would include something like the Nokia. In addition, you'd need information about the internal USB registers of the Nokia that is probably not available.
Here is the code:
Connection
1.DKU-5 cable connected to the Nokia phone.
2.a male type connector connected to the other end of the DKU-5 cable
3.from that connector I set up the connection to the basic stamp2 as shown above.
4.by the following bs2 code I successfully sent sms
SEROUT 1, 16572,25, [ "AT+CMGF=1" , CR]
SERIN 3, 16572,[ WAIT ( "OK" )]
SEROUT 1,16572,25,["AT+CMGS=",34,"+880191787670",34,CR]
SERIN 3, 16572, [WAIT (">")]
SEROUT 1, 16572, [“hello”,CR]
SEROUT 1, 16572, [26,CR]
SERIN 3, 16572, [WAIT ("OK")]
DEBUG "ok"
If you use SOUT and SIN, you need to remember that anything sent from the Nokia will be echoed back to the Nokia. This is a result of the RS232 interface circuitry in the Stamp. I don't know how the Nokia will respond to this echoing. Some devices get errors from this.
After this i can RX and TX connect to the PINs (Education Board USB) and try to communicate with phone. Is it correct?
PE -- It was a c168i
http://forums.parallax.com/showthread.php?105901-Motorola-c168i-Cell-Phone-and-Propeller&highlight=Motorola
There's some info, but, like I posted, it's sketchy, speculative.
That said, the cables you've shown are all USB cables and, as I've said, won't work with the Stamp. If you can find some cable for the Nokia designed for use with an RS232 port, you may be able to get this to work. No guarantees. Nokia only supports this with their own software.
Vitaly.
http://forums.parallax.com/showthread.php?107112-Cell-phone-text-message-email-interface
I used his work as a basis for a system of my own. It's a cell-phone based maple sap collection and temperature logging system. If you're interested you can see it action at:
Unfortunately none of this helps with your phone. If you are able to switch to the Motorola c168i there's info on the prop forum. These phones can still be had on eBay but only work with GSM networks. It has a serial port and removes any need for this USB stuff. MUCH easier in my opinion. I don't frequent the BS2 forum (I'm a propeller head). pm me if you want more info about using the Motorola phone.
Thank you for your help.
Vitaly