waruna1992 / gsm-shield-arduino

Automatically exported from code.google.com/p/gsm-shield-arduino
0 stars 0 forks source link

error: 'Serial1' was not declared in this scope #60

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. use arduino ide 1.0 and arduino ide 1.0.3
2. file / examples / GSMSHIELD / GSM_GPRSLibrary_AT
3. use arduino duemilnove atmega328 with efcom v1.2 elecfreaks.com (4/16/2012)

What is the expected output? What do you see instead?
The expected result was the code compiles without error, but the end result of 
the compilation errors:
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In constructor 
'HWSerial::HWSerial()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:4: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 'void 
HWSerial::end()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:13: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 
'virtual void HWSerial::begin(int)':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:25: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 'int 
HWSerial::peek()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:29: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 
'virtual size_t HWSerial::write(uint8_t)':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:33: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 
'virtual int HWSerial::read()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:37: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 
'virtual int HWSerial::available()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:41: error: 'Serial1' was 
not declared in this scope
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp: In member function 
'virtual void HWSerial::flush()':
C:\arduino-1.0\libraries\GSMSHIELD_v303\HWSerial.cpp:45: error: 'Serial1' was 
not declared in this scope

What version of the product are you using? On what operating system?
Microsoft Windows 7 x64, with arduino 1.0.3 and both librarys

Original issue reported on code.google.com by silva.st...@gmail.com on 3 Feb 2013 at 7:31

GoogleCodeExporter commented 8 years ago
please, help me.

i need know what´s that problem to continue the project.

Original comment by silva.st...@gmail.com on 3 Feb 2013 at 9:20

GoogleCodeExporter commented 8 years ago
Seems you're using the configuration for Mega but you're compiling for 2009.
check instructions doc in the doc folder.
Marco

Original comment by martines...@gmail.com on 6 Feb 2013 at 6:31

GoogleCodeExporter commented 8 years ago
i check the instructions many times.

i understand "you're compiling for 2009"

what do you mean by that?

Original comment by silva.st...@gmail.com on 7 Feb 2013 at 3:31

GoogleCodeExporter commented 8 years ago
now i have other error

C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'int 
SIMCOM900::configandwait(char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:62: error: 'class HWSerial' has 
no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'int 
SIMCOM900::readCellData(int&, int&, long int&, long int&)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:117: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:119: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:121: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:123: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:125: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'boolean 
SIMCOM900::readSMS(char*, int, char*, int)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:196: error: 'class HWSerial' 
has no member named 'getString'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:202: error: 'class HWSerial' 
has no member named 'getString'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'boolean 
SIMCOM900::readCall(char*, int)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:229: error: 'class HWSerial' 
has no member named 'getString'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'int 
SIMCOM900::getCCI(char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:313: error: 'class HWSerial' 
has no member named 'getString'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'int 
SIMCOM900::getIMEI(char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:338: error: 'class HWSerial' 
has no member named 'getString'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'virtual 
uint8_t SIMCOM900::read()':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:350: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleRead()':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:356: error: 'class HWSerial' 
has no member named 'available'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:357: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWrite(char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:366: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWrite(const char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:371: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWrite(int)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:376: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWrite(const __FlashStringHelper*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:381: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWriteln(char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:386: error: 'class HWSerial' 
has no member named 'println'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWriteln(const __FlashStringHelper*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:391: error: 'class HWSerial' 
has no member named 'println'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWriteln(const char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:396: error: 'class HWSerial' 
has no member named 'println'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::SimpleWriteln(int)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:401: error: 'class HWSerial' 
has no member named 'println'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'void 
SIMCOM900::WhileSimpleRead()':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:407: error: 'class HWSerial' 
has no member named 'available'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:408: error: 'class HWSerial' 
has no member named 'read'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'byte 
GSM::CheckRegistration()':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:469: error: 'class HWSerial' 
has no member named 'println'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'char 
GSM::GetPhoneNumber(byte, char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:748: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:749: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:750: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'char 
GSM::WritePhoneNumber(byte, char*)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:822: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:823: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:824: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:825: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:826: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp: In member function 'char 
GSM::DelPhoneNumber(byte)':
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:878: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:879: error: 'class HWSerial' 
has no member named 'print'
C:\arduino-1.0.3\libraries\GSMSHIELD\SIM900.cpp:880: error: 'class HWSerial' 
has no member named 'print'

i check the new updated for the file SIM900.cpp, i put the new code in that 
file, but the error is the some.

Original comment by silva.st...@gmail.com on 7 Feb 2013 at 3:33

GoogleCodeExporter commented 8 years ago
open the file GSM.h and comment like this:

#define UNO
//#define MEGA

open the file HWSerial.h and comment this:
//#define MEGA

Original comment by momodesi...@gmail.com on 7 Feb 2013 at 2:38

GoogleCodeExporter commented 8 years ago

Original comment by martines...@gmail.com on 8 Mar 2013 at 10:47

GoogleCodeExporter commented 8 years ago
I have the same error. Im using arduino mega, and when its commented like this:
 #define UNO
//#define MEGA
the sketch compiles, but when i want to uncomment the mega and comment the uno 
i get the same errors. I would be really thankful if someone could help.

Original comment by scoobyc...@gmail.com on 9 Apr 2013 at 5:25

GoogleCodeExporter commented 8 years ago
Please have a look at DOC folder. There are instructions inside to do what you 
want to do.
Marco

Original comment by martines...@gmail.com on 9 Apr 2013 at 5:29

GoogleCodeExporter commented 8 years ago
This issue section is not longer supported.
Please check the support page www.gsmlib.org 

Original comment by martines...@gmail.com on 6 Jul 2013 at 11:27

GoogleCodeExporter commented 8 years ago
use the latest library here. 
http://www.gsmlib.org/download.html

BETA_GSM_GPRS_GPS_IDE100_v307_1.zip

Original comment by mfahmyka...@gmail.com on 3 Oct 2014 at 11:06