Hi all,

I'm woking on project for "sms remote control" so I can remotely control devices via sms of mobile, I have the nokia 6210 model which support AT commands for simplicity, first I connect the mobile with PC and using Hyperterminal to send AT commands but nothing work so I search until i found the DLR3 circuit so I build it and try again and AT commands working well without any problems , second I need to use PIC16f877A instead of PC so I connect PIC17f877A to (fbus TX and fubs RX ) fo mobile through 1Kohm resistor and send AT command from PIC and working fine , but main problem is I can't recieve anything from mobile but PC recieve , so I don't know where is the problem is't hardware of software
finaly I need to recive anything from mobile and display on LCD , for example we can display mobile model and version

here is my code
@ __config _HS_OSC & _WDT_ON & _LVP_OFF & _CP_OFF
include "modedefs.bas"
define osc 20
DEFINE LCD_DREG PORTB 'LCD data port
DEFINE LCD_DBIT 0 'LCD data starting bit 0 or 4
DEFINE LCD_RSREG PORTB 'LCD register select port
DEFINE LCD_RSBIT 4 'LCD register select bit
DEFINE LCD_EREG PORTB 'LCD enable port
DEFINE LCD_EBIT 5 'LCD enable bit
DEFINE LCD_BITS 4 'LCD bus size 4 or 8
DEFINE LCD_LINES 2 'Number lines on LCD
DEFINE LCD_COMMANDUS 2000 'Command delay time in us
DEFINE LCD_DATAUS 50 'Data delay time in us

DEFINE HSER_BAUD 9600 'Hser baud rate
DEFINE HSER_SPBRG 129 'Hser spbrg init
DEFINE HSER_RCSTA 90h 'Hser receive status init
DEFINE HSER_TXSTA 24h 'Hser transmit status init
DEFINE HSER_CLROERR 1


b0 var byte
b1 var byte
b2 var byte
b3 var byte

pause 1000 'wait for screen to sort get started
input portc.5
output portc.4

main:
lcdout $FE,1, "Sending AT.."
pause 2000
;serout2 portc.4, 32, ["AT", 13]
serout2 portc.4, 84, ["ATD0599896342", 13] ; mobile dial without any problems

pause 5000
serout2 portc.4, 84, ["AT+CMGF=1", 13]
serin2 portc.5, 84, [b0,b1,b2,b3]
lcdout $FE, 1, b0,b1,b2,b3 ; show strange symbol so nothing recievd


pause 3000
lcdout $FE,1, "Sending command.."
serout2 portc.4, 84, ["at+cgmm", 13]
serin2 portc.5, 84, [b0,b1,b2,b3]
lcdout $FE,1, b0,b1,b2,b3 ; show strange symbol so nothing recievd
pause 5000
;;; str caller\5

goto main
end