Problem with NewSoftSerial !

Hello,

I realize a project with an Arduino Duemilanove + GPRS (Libelium) and I want to retrieve the message from an SMS.

I have a problem in my code the following lines:

#include <NewSoftSerial.h>
#define rxPin 0
#define txPin 1

char inchar;

NewSoftSerial cell(0,1);

I have this error :

sketch_feb16b.cpp:2:27: error: NewSoftSerial.h: No such file or directory
sketch_feb16b:7: error: 'NewSoftSerial' does not name a type
sketch_feb16b.cpp: In function 'void setup()':
sketch_feb16b:31: error: 'cell' was not declared in this scope
sketch_feb16b.cpp: In function 'void loop()':
sketch_feb16b:52: error: 'cell' was not declared in this scope

If anyone can help me I thank in advance!

Have you downloaded the NewSoftSerial library and installed it in the correct folder on your PC?

Lefty

Also, you do not want to be using NewSoftSerial to read from the hardware serial pins (0 and 1). Use Serial for that.

I downloaded NewSoftSerial but it must be installed in that file?

Paul: I do not understand?!

From - Libraries - Arduino Reference

If you're using one of these libraries, you need to install it first. To do so, download the library and unzip it. It should be in a folder of its own, and will typically contain at least two files, one with a .h suffix and one with a .cpp suffix. Open your Arduino sketchbook folder. If there is already a folder there called libraries, place the library folder in there. If not, create a folder called libraries in the sketchbook folder, and drop the library folder in there. Then re-start the Arduino programming environment, and you should see your new library in the Sketch > Import Library menu.
For details, see the page on the Arduino environment.

LyMax:
I downloaded NewSoftSerial but it must be installed in that file?

Paul: I do not understand?!

There are hardware serial ports on all Arduinos. Some have more than one. On all of them, the hardware serial port is connected to pins 0 and 1. The HardwareSerial class, instanced as Serial, is designed to manage those two pins.

Any other pair of pins can be used for serial I/O, using NewSoftSerial. But, NewSoftSerial should NOT be used to do software serial on the hardware pins.

There is already a class that can do the (much more robust and rapid) job of serial I/O on those pins.