Stalker v2.1 & GPS bee, unable to get correct sentences

Hello,

I am unable to receive correct sentences from the GPS Bee.
I am currently using :
-stalker v2.1
-uartsbee v4
-gps bee with antenna

#include <NewSoftSerial.h>

int RXpin = 1;
int TXpin = 2;

NewSoftSerial nss= NewSoftSerial(RXpin,TXpin);
int zz = 0;

void setup() 
{
Serial.begin(57600);    //set data rate from Arduino to PC
Serial.println("Lets get started!");  // this prints fine.
pinMode(8,OUTPUT);
nss.begin(9600);   // set the data rate for the NewSoftSerial port
}

void loop()
{
if (nss.available() > 0) 
{
  if (nss.overflow())
  digitalWrite(8,HIGH);
  else 
  digitalWrite(8,LOW);
     Serial.print((char)(nss.read()));  
} else {Serial.print("\nno data avaible");
    Serial.println();}
}

Here is an example of what I get in the serial monitor:
Lets get started!
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ

If I use the TinyGps library, the function nss.encode(char c) doesn’t recognize a GPRMC sentence.

Thanks,

Anomen

Please select the Arduino Pro 3.3v 8MHz with Atmega328 in Arduino IDE.
And reupload the sketch.

Thanks
Albert

Thank you for your reply.
I was already working with this board configuration… It was the one given on the stalker datasheet. Can you see anything else that could be a problem ?

Anomen

I have the same issue! Can you please give some simple source code to test Stalker Bee socket with GPS Bee?

Everything works fine! I used demo 1 code from seeedstudio.com/wiki/Seeeduino_Stalker_v1.0 with Stalker 2.1 and GPS Bee.
The problem that while Stalker is connected to PC with UartSBee I couldn’t receive any data from GPS bee in Serial Monitor.
NewSoftSerial is not able to get any data from pins 0 1 while connected via UartSBee?

Is there any way to get software serial data from Bee socket in Serial Monitor when connected to PC with UartSBee?

im using pins 2 & 3 wired

have managed to get gprmc output savedto microsd with tiny gps,ladyarda and tom igoes gps parser
into processing both .txt & .csv format using fat 16
check out my post for code
cheers
ken b

I’m trying to get the GPSBee example code working on a Stalker v2.1
First trick was figuring out how to get the sd card in. and now that it is in, it wont lock in place.

Then I had to go download the (older, not v1.0) versions of Fat16 and WS2Timer.
Now I download and … does anything happen?
cant tell until I take the card out and put it into a reader … which says there is nothing on the card.

Not sure what kenbrown93 means in his rather cryptic comment.
Do you have an GPSBee installed in a standard Bee socket?
are you using the Adafruit GPS library github.com/adafruit/Adafruit-GPS-Library ?

Is there a way to use the GPSBee and echo data out the FTDI port?
Or does the GPSBee co-opt the arduino serial port for its comms, as indicated by the Demo1 code?

hi there
im using the stalker 2.1 with gps bee i have only been able to get it to work with jumpers from the
bees rx & tx pins to the stalkers digital pins 2 and 3

this code should get you going at least printing gps strings to the serial monitor
you may want to comment out the code that sets nav mode as it stands it sets to pedestrian mode
the line that is allready commented out will set to airbourne mode
the other parts preceeded by $pubx turn on or off specific sentences ie ("$PUBX,40,RMC,0,1,0,0*46");//on

hope this helps if im still unclear let me know

[code]#include <NewSoftSerial.h>
NewSoftSerial ss(2, 3);

void setup()
{
Serial.begin(9600);
ss.begin(9600);
delay(3000);
delay(3000);
ss.println("$PUBX,41,1,0003,96,0,0*14");//on
// Set the navigation mode (Airborne, 1G) top line
// Set the navigation mode (pedestrian) bottom line
Serial.print("Setting uBlox nav mode: ");
uint8_t setNav[] = //{0xB5, 0x62, 0x06, 0x24, 0x24, 0x00, 0xFF, 0xFF, 0x06, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x27, 0x00, 0x00, 0x05, 0x00, 0xFA, 0x00, 0xFA, 0x00, 0x64, 0x00, 0x2C, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x16, 0xDC};// airbourne
{0xB5, 0x62, 0x06, 0x24, 0x24,0x00, 0xFF, 0xFF, 0x03, 0x03, 0x00, 0x00, 0x00, 0x00, 0x10, 0x27, 0x00, 0x00, 0x05, 0x00, 0xFA, 0x00, 0xFA, 0x00, 0x64, 0x00, 0x2C, 0x01, 0x00, 0x00, 0x00, 0x00,0x00,0x00,0x00, 0x00, 0x00, 0x00,0x00,0x00,0x00,0x00, 0x13, 0x76}; //pedestrian
//sendUBX(setNav, sizeof(setNav)/sizeof(uint8_t)); //this polls the message
//getUBX_ACK(setNav); leave commented

ss.println("$PUBX,40,GLL,0,1,0,05D");//on
// ss.println("$PUBX,40,GLL,0,0,0,0
5C");//off
//----------------------------------------
ss.println("$PUBX,40,GGA,0,1,0,05B");//on
// ss.println("$PUBX,40,GGA,0,0,0,0
5A");//off
//------------------------------------------
ss.println("$PUBX,40,GSA,0,1,0,04F");//on
// ss.println("$PUBX,40,GSA,0,0,0,0
4E");//off
//------------------------------------------------
ss.println("$PUBX,40,RMC,0,1,0,046");//on
// ss.println("$PUBX,40,RMC,0,0,0,0
47");//off
//------------------------------------------------
ss.println("$PUBX,40,GSV,0,1,0,058");//on
// ss.println("$PUBX,40,GSV,0,0,0,0
59");//off
//---------------------------------------
ss.println("$PUBX,40,VTG,0,1,0,05F");//on
// ss.println("$PUBX,40,VTG,0,0,0,0
5E");//off
delay(3000);
}

void loop()
{ // For one second we parse GPS data and report some key values
for (unsigned long start = millis(); millis() - start < 1000;)
{
while (ss.available())
{
char c = ss.read();

   Serial.write(c); // uncomment this line if you want to see the GPS data flowing
//  if (gps.encode(c)) // Did a new valid sentence come in?
   // newData = true;
   
}

}
}[/code]