Go Down

Topic: Problem in Arduino DUE Serial port communication (Read 996 times) previous topic - next topic


Hello All,

Recently I bought Arduino Due. I have connected by GPS device via serial. But while reading data  i am getting 0xFF from Due board (very frequently).

Already i posted here.

This is sample data received  from Due:
5 2 E8 62 16 38 18 0 0 76 F 0 0 14 FC FF FF 0 0 0 0 0 0 0 0 9 0 99 1C

But i am sure that GPS device is working correctly.

Can anyone help on this?



Can anyone help on this?
Without seeing your code? No.
The art of getting good answers lies in asking good questions.


Herewith i have attached my code.

void setup()

    Serial.begin(115200);                                // serial to pc
    Serial2.begin (115200);                              // GPS

void loop()
while (Serial2.available () > 0)
        processIncomingByte (Serial2.read (),timestamp,north,east,latitude,longitude, newdata);

void processIncomingByte (const byte inByte,long& timestamp,double& north, double& east,double& latitude,double& longitude, int&newdata)

   Serial.println(inByte , HEX);

   //Processing message - code


What does it look like if you print the characters?  It looks to me like the baud rate for the GPS is wrong. Are you sure it is 115200?
"The problem is in the code you didn't post."


What GPS module do you have and at what voltage level is it powered?

Go Up