Jump to content
43oh

Recommended Posts

All,

 

I have a gps device that outputs several other sensor readings (wind, heading, ect.). All of those strings are output in NMEA format strings. I am able to read these strings and also (with the TinyGPS library) I can parse them to pull what I need.

 

Now the problem,

 

I want to be able to send NMEA strings back at the device in order to tell it to output different NMEA string types.

 

For example, sending "$PAMTC,EN,HDG" should enable the "$HCHDG" string on the device. Or sending "#PAMTC,QV" should query the software version number.

 

My code to read from the device is:



Code: [Select]
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(4800);
  Serial1.begin(4800);
}


void loop()
{
  // put your main code here, to run repeatedly:
  char c;
  
  c = Serial1.read();
  Serial.print
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...