Hi im also doing a similar project.Im using pic16f877a and a Sony Ericsson K750i phone as my receiver.I use the unused SE data cable DCU-60 and make some modification(I peel off the rubber exterrior)and had managed to determine all the pins connected with the wires inside.the pins for the data cable is as follow:
Sony Ericsson C702, C902, C905, F305, G502, G700, G705, G900, K205i, K310i, K320i, K330, K510i, K530i, K550i, K610i, K630i, K660i, K750i, K770i, K790i, K800i, K810i, K850i, M600i, P1i, P990i, R300, R306, S302, S500i, T303, T650i, T700, W200i, W300i,
my problem is to which pins should i connect in order to have serial communication with my MCU(is that DTMS/DFMS or CTMS/CFMS)??BTW i knew tat both CTMS and CFMS is used as DATA+/DATA- for USB protocols,since pic16f877a doesnt have USB module I assume i cannot connect CTMS/CFMS to my circuit.I had also tried DTMS/DFMS but stil cant managed to get any result.
my circuit is as follow:
pic(tx)------->k750(DTMS);
pic(rx)-------->k750(DFMS);
the following code is a first stage tester,which mean if i can get the message stored in my phone i am succeed.pls help......
void main()
{
unsigned char temp;
unsigned char a;
unsigned char b;
//set I/O input output
TRISB = 0b00000011; //configure PORTB I/O direction
TRISD = 0b00000000; //configure PORTD I/O direction
//Configure UART
SPBRG=129; //set baud rate as 9600 baud
BRGH=1; //baud rate high speed option
TXEN=1; //enable transmission
TX9 =0; //8-bit transmission
RX9 =0; //8-bit reception
CREN=1; //enable reception
SPEN=1; //enable serial port
temp=RCREG;
temp=RCREG;
while(1)
{
if(SW1==0)
{
delay(10000);
sync();
uart_str("AT+CMGW=24");
uart_send(0x0D);
uart_str("079106xxxxxxx11000A9xxxxxxxx000AA0CC8F71D14969741F977FD07");
uart_send(0x1A);
led1=!led1;
delay(5000);
}
}
}
======================================================
void sync(void)
{
unsigned char c;
c = 'u';
for( ;c>128;c--)
{
uart_send(c);
}