Hello!
I'm having exactly the same problem described in this topic: Arduino Forum
The only exception is that I'm using Arduino Mega instead of Uno.
Most curious thing is that it works pretty well with IDE 0023, but doesn't work at all with IDE 1.0.x!
Here are some examples of tests I did:
IDE 1.0.4, using GPS.available():
#include <SoftwareSerial.h>
SoftwareSerial GPS(2, 3);
int i = 0;
void setup() {
Serial.begin(9600);
GPS.begin(4800);
}
void loop() {
if (i == 0) {
Serial.println("here!");
i = 1;
}
if (GPS.available()) {
Serial.write(GPS.read());
Serial.println("here! o/");
i = 0;
}
}
and the output is (after 15 min waiting):
here!
IDE 1.0.4, without GPS.available():
#include <SoftwareSerial.h>
SoftwareSerial GPS(2, 3);
void setup() {
Serial.begin(9600);
GPS.begin(4800);
}
void loop() {
Serial.write(GPS.read());
}
and the output is:
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Finally with IDE 0023:
#include <SoftwareSerial.h>
SoftwareSerial GPS = SoftwareSerial(2,3);
void setup(){
GPS.begin(4800);
Serial.begin(9600);
}
void loop(){
Serial.print(GPS.read(), BYTE);
}
and the great output is:
$GPRMC,144345.731,V,,,,,,,120313,,,N*49
$GPGGA,144346.742,,,,,0,00,,,M,0.0,M,,0000*57
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144346.742,V,,,,,,,120313,,,N*4E
$GPGGA,144347.734,,,,,0,00,,,M,0.0,M,,0000*57
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144347.734,V,,,,,,,120313,,,N*4E
$GPGGA,144348.731,,,,,0,00,,,M,0.0,M,,0000*5D
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144348.731,V,,,,,,,120313,,,N*44
$GPGGA,144349.744,,,,,0,00,,,M,0.0,M,,0000*5E
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144349.744,V,,,,,,,120313,,,N*47
$GPGGA,144350.732,,,,,0,00,,,M,0.0,M,,0000*57
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPGSV,1,1,00*79
$GPRMC,144350.732,V,,,,,,,120313,,,N*4E
$GPGGA,144351.732,,,,,0,00,,,M,0.0,M,,0000*56
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144351.732,V,,,,,,,120313,,,N*4F
$GPGGA,144352.744,,,,,0,00,,,M,0.0,M,,0000*54
$GPGSA,A,1,,,,,,,,,,,,,,,*1E
$GPRMC,144352.744,V,,,,,,,120313,,,N*4D
$GPGGA,144353.732,,,,,0,00,,,M,0.0,M,,0000*54
I really thought that the problem could be the GPS module, until I find out that it works with IDE 0023.
Anyone could give me any ideas of what to do?
Thanks!
Alex