Hi,
I cant put this simple sms sender to work in pic(the phone works pdu mode only on hterminal works all call and sms) . In my code you can see 2 parts 1 is the dailing that works fine the other was to be a sms sender but i cant put it to work can you please helpp me on that thans a lot.
By by
Code:@ Device HS_OSC ' High Speed Crystal define OSC 20 Include "modedefs.bas" ' Include serial modes ' Define LCD registers and bits this time not use it for later apps.. Define LCD_DREG PORTB 'Lcd D 4-bit parallel register starts at PortB.4 to PortB.7 Define LCD_DBIT 4 Define LCD_RSREG PORTB Define LCD_RSBIT 2 Define LCD_EREG PORTB Define LCD_EBIT 3 Define LCD_COMMANDUS 2000 ' Command Delay (uS) Define LCD_DATAUS 50 ' Data Delay (uS) DEFINE OSC 20 'Define oscilator frequency DEFINE LCD_LINES 4 'Number lines on LCD DEFINE HSER_RCSTA 90h ' Enable serial port & continuous receive DEFINE HSER_TXSTA 24h ' Enable transmit, BRGH = 1 DEFINE HSER_SPBRG 129 ' 9600 Baud @ 20MHz, 0.16% DEFINE HSER_CLROERR 1 ' Clear overflow automatically TrisC.5=0 TrisC.6=0 TrisC.7=1 B0 var byte High portC.5 ' Led flashing to see if wardware are ok Pause 500 Low portC.5 Pause 500 High portC.5 Pause 500 Low portC.5 Pause 500 HSEROUT ["AT", 13] HSEROUT ["ATD+351xxxx31210;", 13] 'phone dials to number no problem here pause 5000 ' Now were is the problem is when i thange the dialing line command for the sms to send a sms and the phone do nothing.. :( 'HSEROUT ["AT", 13] 'HSEROUT ["AT+CMGS=16", 13] 'HSEROUT ["079153912601000011000C915391663921010000AA02EF35",13] STOP end
Bookmarks