Have you tried connecting to a PC with a terminal program like the one in Micro Code Studio?
Dave
Always wear safety glasses while programming.
Camola, I am a little confuse. I did a bit of research on google and it seems that
nokia 6210 has a USB connection. Are you sure your phone has a serial connection?
Al.
All progress began with an idea
Camola, from your code it seems that you are using portC.6 and PortC.7 for communication with cellphone. If this is correct then:
Connect pic portC.6 to max232 pin 11 (TTL Tx)
Connect pic portC.7 to max232 pin 12 (TTL Rx)
Connect max232 pin 14 to phone serial cable pin 3 (Should be Rx ?)
Connect max232 pin 13 to phone serial cable pin 2 (should be Tx ?)
Connect circuit ground to phone serial cable pin 5
(If you connect it to the PC I assume you have a 9 pins DB female connector)
It should work. If it doesn't invert connections at the serial cable pins 2 & 3
Al.
Last edited by aratti; - 4th December 2008 at 15:47.
All progress began with an idea
Did you powered the cable working with hyperterminal? If not you don't need to do it with max232.Yes it have and there are nokia cables to conect it to pc rs232 i have one from nokia and works fine with hyperterminal.
Al.
All progress began with an idea
Hi,
I have used Serin2 and works not in any 16f877a port it works on B.7 as Rx and in B.6 as Tx.
Serout2 PortB.6, 84,["AT",13,10]
Serin2 PortB.7,84, [wait ("ok")]
High PortB.0
Dont work in C.7 and C6, C4 and C5 big mess.....
Can i used 2 diferents Serin2 and Serout2 in same code because i need to control phone and gps i was using hserin/out to phone and Serin2/out2 for gps.
Thanks
Last edited by camolas; - 4th December 2008 at 17:35.
Bookmarks