Discussion in "Embedded GSM Development" started by    Izzal    Nov 21, 2008.
Fri Nov 21 2008, 05:09 pm
#1
Hello I have been trying to interface PIC16F877 with Sony Ericsson T610 but i cant. For a start up Iam just sending AT to the phone but i dont receive "OK" Iam using the serial data cable for the phone directly connected to the serial of the PIC
Sun Nov 23 2008, 12:33 am
#2
Hi Izzal, Please provide the code will be easy to help..
Sun Nov 23 2008, 06:59 am
#3
According to Wikipedia and others,the 610 has Bluetooth ,Infrared and USB.
None of which are practical to connect to a PIC16F877.

I have seen no mention of a serial connection able to connect to a PC's serial port.


[ Edited Sun Nov 23 2008, 07:08 am ]
Mon Nov 24 2008, 02:22 am
#4
ExperimenterUK, PC has got all that where as a tiny 8051 has just got a serial port so thats the only available option
Mon Nov 24 2008, 02:36 am
#5
Hello Ajay thanks for your reply

I have attached the code
Mon Nov 24 2008, 02:36 am
#6
Sorry the code is as follows

#include <16F877.h>
#device *=16 // This allows auto variables over location 0xFF and set
#use delay(clock=4000000)
#fuses XT,NoWDT
#use rs232 (baud = 9600, BITS = 8, parity = N, rcv = PIN_c6, xmit = PIN_c7)
#opt 9
#include "lcd_driver.c"
#include<string.h>
main (){

char str[3], okay[10];
char c[2];
int i;

 lcd_init();  // Initialise the LCD
 lcd_putc('\f');  // clear the screen

  lcd_putc("WELCOME"); // to test for LCD
  delay_ms(2000);
  lcd_putc('\f');

printf("AT");
putc(13);
putc(10);


for (i=0 ; i<4 ; i++)
{   c[i] = getc();
    delay_ms(5);

}


delay_ms(100);

 for(i=0; i < 4 ; i++)
    {
     lcd_putc(c[i]);     // Show what the phone sends on LCD
     delay_ms(100);
    }
}


[ Edited Mon Nov 24 2008, 12:47 pm ]
Mon Nov 24 2008, 02:39 am
#7


ExperimenterUK, PC has got all that where as a tiny 8051 has just got a serial port so thats the only available option

Ajay


I meant was that as far as I can see this phone has no serial port meant for AT command
type communication.
It may have a serial link for flashing and special purposes, but that is not clear from what I have seen.

Of course Izzal's method may be fine, but it is worth checking before going further.




[ Edited Mon Nov 24 2008, 02:53 am ]
Mon Nov 24 2008, 12:45 pm
#8
Pinouts says it has serial output, and my friends have used that phone in a project. Also people on forum like Abbas has used it too. So probably it has serial output
Mon Nov 24 2008, 04:07 pm
#9
The Phone has serial output. I have already tested the AT-Commands using PC (Tera Term software) and it works fine. So after that I tried it with PIC16F877 but i could not communicate. I used MAX232 between the phone and PIC communication when it didnt work I used Transistor circuit but both methods failed.
Tue Nov 25 2008, 02:58 am
#10
OK I'm convinced

A couple of points to consider, (actually three).
The 610 interface is 3 volts so may need a low voltage MAX232.
The data bits may need to be inverted.
I have seen the baud rate for the 610 given as 9600 and 115200.
An XP "9600" baud modem actually defaults to a com port speed of 115200.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

ArnoldDiant
Fri Apr 26 2024, 03:53 am
RodneyKnorb
Thu Apr 25 2024, 07:08 pm
Williamjef
Thu Apr 25 2024, 02:08 pm
SamuelSmise
Thu Apr 25 2024, 09:56 am
DustinErele
Thu Apr 25 2024, 08:44 am
ztaletpzca
Wed Apr 24 2024, 11:19 pm
IrardlPex
Wed Apr 24 2024, 08:42 pm
Charlestehed
Wed Apr 24 2024, 05:20 pm