Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini19-Jan-10 23:44
mveCPallini19-Jan-10 23:44 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
Tim Craig20-Jan-10 12:55
Tim Craig20-Jan-10 12:55 
GeneralRe: problem with stack structure in C++(using pointer), plz help !!! Pin
CPallini20-Jan-10 21:32
mveCPallini20-Jan-10 21:32 
QuestionMessage Removed Pin
19-Jan-10 22:40
Mishgun5619-Jan-10 22:40 
AnswerRe: The problem with including headers in C++ Pin
Stuart Dootson19-Jan-10 22:48
professionalStuart Dootson19-Jan-10 22:48 
AnswerRe: The problem with including headers in C++ Pin
Stephen Hewitt19-Jan-10 22:50
Stephen Hewitt19-Jan-10 22:50 
GeneralRe: The problem with including headers in C++ Pin
Mishgun5619-Jan-10 22:56
Mishgun5619-Jan-10 22:56 
QuestionSwitching on and setting baud rate [modified] Pin
CodeyBlank19-Jan-10 21:28
CodeyBlank19-Jan-10 21:28 
Hi all, I am new to the forum. I am currently using C program to communicate with PIC18F2620 and using TR800 to transmit text message to hand phone. I am trying to power on, reset and set the baud rate without using Hyper terminal. I am currently having some difficulty in doing that. Any help would be gratefully appreciated. Thanks in advance. Below is the code snippet.




void setup_gsm(void)
{

        //setup_gsm
	// turn on the telit module and verify, else reset autobaud
	PWON = 1;
	Delay10KTCYx(40);
	// reset ram pointer
	RESET = 0;
	// AT command test
	// response: AT
	putrsUSART ((const far rom char *)"AT\r");
	Delay10KTCYx (50);
	// set_baud
	RESET = 0;                     
	// set_baude_rate 300,1200,2400,4800,9600,19200......
	// response: OK
	putrsUSART ((const far rom char *)"AT+IPR=115200\r");
	Delay10KTCYx (50);
	// disable_echo
	RESET = 0;
	// Disable echo command
	// response: OK
	putrsUSART ((const far rom char *)"ATE=0\r");        
	Delay10KTCYx (50);                                              
	// caller_id.
	RESET = 0;
        // Set CALLER ID; 1=on
	// response: OK
	putrsUSART ((const far rom char *)"AT+CLIP=1\r");
	Delay10KTCYx (10);
	// error_code
	RESET = 0;
	// Enable extended error code ; 1 =numeric
	// response: OK
        putrsUSART ((const far rom char *)"AT+CMEE=1\r");
       Delay10KTCYx(10);                                                   
	// sms_format
	RESET = 0;
	// SMS format type; 1=text
	// response: OK
	putrsUSART ((const far rom char *)"AT+CMGF=1\r");
       Delay10KTCYx(10);                                                   
	// sms_format
	RESET = 0;
	// Send sms to phone number
	// response: OK
	putrsUSART ((const far rom char *)"AT+CMGS=+phonenumber\r\n");
	Delay10KTCYx (10);
	// unsolecit_ind
	RESET = 0;
	// DISABLE New message unsolecited indication +CMTI
	// response: OK
	putrsUSART ((const far rom char *)"AT+CNMI=0,0,0,0,0\r"); 
	Delay10KTCYx (10);
	// storage_set
	RESET = 0;
	// AT+CPBS="SM"    set phonebook normal SIM
	putrsUSART ((const far rom char *)"AT+CPBS="SM\"\r");    
	Delay10KTCYx (50);
}


modified on Wednesday, January 20, 2010 4:03 AM

AnswerRe: Switching on and setting baud rate Pin
Richard MacCutchan19-Jan-10 22:27
mveRichard MacCutchan19-Jan-10 22:27 
GeneralRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:30
professionalGarth J Lancaster19-Jan-10 22:30 
GeneralRe: Switching on and setting baud rate Pin
Richard MacCutchan20-Jan-10 0:43
mveRichard MacCutchan20-Jan-10 0:43 
GeneralRe: Switching on and setting baud rate Pin
CPallini20-Jan-10 3:01
mveCPallini20-Jan-10 3:01 
GeneralRe: Switching on and setting baud rate Pin
Richard MacCutchan20-Jan-10 3:30
mveRichard MacCutchan20-Jan-10 3:30 
AnswerRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:30
professionalGarth J Lancaster19-Jan-10 22:30 
GeneralRe: Switching on and setting baud rate Pin
CodeyBlank19-Jan-10 22:43
CodeyBlank19-Jan-10 22:43 
GeneralRe: Switching on and setting baud rate Pin
Garth J Lancaster19-Jan-10 22:55
professionalGarth J Lancaster19-Jan-10 22:55 
QuestionSplit multi image tiff file using CXImage Pin
Pryabu19-Jan-10 17:30
Pryabu19-Jan-10 17:30 
AnswerRe: Split multi image tiff file using CXImage Pin
Game-point19-Jan-10 21:07
Game-point19-Jan-10 21:07 
GeneralRe: Split multi image tiff file using CXImage Pin
Pryabu20-Jan-10 1:33
Pryabu20-Jan-10 1:33 
GeneralRe: Split multi image tiff file using CXImage Pin
PJ Arends20-Jan-10 5:28
professionalPJ Arends20-Jan-10 5:28 
QuestionDEBUG_NEW [modified] Pin
iceman861619-Jan-10 15:07
iceman861619-Jan-10 15:07 
AnswerRe: DEBUG_NEW Pin
Chris Losinger19-Jan-10 16:59
professionalChris Losinger19-Jan-10 16:59 
GeneralRe: DEBUG_NEW Pin
iceman861620-Jan-10 13:55
iceman861620-Jan-10 13:55 
QuestionProgram Which: Takes numbers from a user, and sum's them. Pin
rbwest8619-Jan-10 13:44
rbwest8619-Jan-10 13:44 
AnswerRe: Program Which: Takes numbers from a user, and sum's them. Pin
loyal ginger19-Jan-10 14:53
loyal ginger19-Jan-10 14:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.