Hello,
I am new in this forum and I have a problem. I am using a arduino duemilanove and GSM 900.
the code I use is ;
#include <GSM_Shield.h>
//for enable disable debug rem or not the string #define DEBUG_PRINT
// definition of instance of GSM class
GSM gsm;
void setup() {
Serial.begin(9600);
Serial.println("system startup");
//gsm.InitSerLine(9600); //initialize serial 1
gsm.TurnOn(9600); //module power on
//gsm.InitSerLine(9600); //initialize serial 1
gsm.InitParam(PARAM_SET_1);//configure the module
gsm.Echo(1); //enable AT echo
}
void loop()
{
int call;
call=gsm.CallStatus();
switch (call){
case CALL_NONE:
Serial.println("no call");
break;
case CALL_INCOM_VOICE:
Serial.println("incoming voice call");
delay(5000);
gsm.PickUp();
break;
case CALL_ACTIVE_VOICE:
Serial.println("active voice call");
delay(5000);
gsm.HangUp();
break;
case CALL_NO_RESPONSE:
Serial.println("no response");
break;
}
delay(1000);
}
And I got error like this ;
In file included from GSM_Shield_Call.cpp:13:
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:10:22: error: WProgram.h: No such file or directory
In file included from C:\Users\acer\Desktop\New folder\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:11,
from GSM_Shield_Call.cpp:13:
C:\Users\acer\Desktop\New folder\arduino-1.0.1\libraries\GSM_Shield/NewSoftSerial.h:71: error: conflicting return type specified for 'virtual void NewSoftSerial::write(uint8_t)'
\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding 'virtual size_t Print::write(uint8_t)'
In file included from GSM_Shield_Call.cpp:13:
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:152: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:161: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:163: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:169: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:175: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:178: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:180: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:182: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:184: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:185: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:197: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:202: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:205: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:208: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:213: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:214: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:215: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:215: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:216: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:216: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:217: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:217: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:218: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:221: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:222: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:223: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:224: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:229: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:230: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:231: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:232: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:237: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:242: error: 'byte' has not been declared
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:256: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:259: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:263: error: ISO C++ forbids declaration of 'byte' with no type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:263: error: expected ';' before '*' token
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:264: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:265: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:271: error: 'byte' does not name a type
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h: In member function 'void GSM::SetCommLineStatus(int)':
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:161: error: 'comm_line_status' was not declared in this scope
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h: In member function 'void GSM::DisableUserButton()':
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:206: error: 'module_status' was not declared in this scope
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h: In member function 'void GSM::EnableUserButton()':
\arduino-1.0.1\libraries\GSM_Shield/GSM_Shield.h:207: error: 'module_status' was not declared in this scope
GSM_Shield_Call.cpp: In function 'void loop()':
GSM_Shield_Call.pde:-1: error: 'class GSM' has no member named 'CallStatus'
can anyone help me to go through this problems?