AMPS 0 Posted April 3, 2013 Share Posted April 3, 2013 Is there any liberary TINY GPS lib in arduino for Energia. I tried the code of tiny gps in ENERGIA but IT worked on MSP kits Quote Link to post Share on other sites
roadrunner84 466 Posted April 3, 2013 Share Posted April 3, 2013 Please, try to pay attention to your English. Even for someone with bare minimum mastering of the language you should be able to do punctuation and negations. I assume you're looking for a library like the tiny GPS library in Arduino. You've tried using the Arduino tiny GPS library in Energia but it didn't work. Did I read this correctly? As far as I know, there is no widespread GPS library for Energia, you could try modifying the Arduino library to work with Energia, preferably without breaking Arduino functionality. This way you'd have a portable library, deserving much likes/thanks. Quote Link to post Share on other sites
AMPS 0 Posted April 3, 2013 Author Share Posted April 3, 2013 Thanks for providing information. BUt in forum people say that , they made working with Arduino TINYGPS liberary but provide RAM has limited size for MSp Please, try to pay attention to your English. Even for someone with bare minimum mastering of the language you should be able to do punctuation and negations. I assume you're looking for a library like the tiny GPS library in Arduino. You've tried using the Arduino tiny GPS library in Energia but it didn't work. Did I read this correctly? As far as I know, there is no widespread GPS library for Energia, you could try modifying the Arduino library to work with Energia, preferably without breaking Arduino functionality. This way you'd have a portable library, deserving much likes/thanks. Quote Link to post Share on other sites
bluehash 1,581 Posted April 3, 2013 Share Posted April 3, 2013 (edited) Thanks for providing information. BUt in forum people say that , they made working with Arduino TINYGPS liberary but provide RAM has limited size for MSp Hi Amps, could you point us to that thread? Moving to Energia General. This forum is only for tested libraries. Edited April 3, 2013 by bluehash Moved Quote Link to post Share on other sites
johnmarwa 0 Posted April 4, 2016 Share Posted April 4, 2016 hello guys, did any one succeed in porting the tinygps library to energia IDE?.. if yes kindly help regards, marwa Quote Link to post Share on other sites
Fmilburn 445 Posted April 4, 2016 Share Posted April 4, 2016 I use the following library with the F5529 and Energia: https://github.com/anorse/NorseEngineering_GPS johnmarwa 1 Quote Link to post Share on other sites
johnmarwa 0 Posted April 11, 2016 Share Posted April 11, 2016 @mention does it work with g2553? regards marwa Quote Link to post Share on other sites
johnmarwa 0 Posted April 11, 2016 Share Posted April 11, 2016 i tried the library it gave me an error energia-0101e0017/hardware/tools/msp430/bin/../lib/gcc/msp430/4.6.3/../../../../msp430/bin/ld.exe: KitchenSink.cpp.elf section `.text' will not fit in region `rom' here is the code kindly help #include <TinyGPS++.h>#include <SoftwareSerial.h>/* This sample code demonstrates just about every built-in operation of TinyGPS++ (TinyGPSPlus). It requires the use of SoftwareSerial, and assumes that you have a 4800-baud serial GPS device hooked up on pins 4(rx) and 3(tx).*/static const int RXPin = 3, TXPin = 2;static const uint32_t GPSBaud = 9600;// The TinyGPS++ objectTinyGPSPlus gps;// The serial connection to the GPS deviceSoftwareSerial ss(RXPin, TXPin);// For stats that happen every 5 secondsunsigned long last = 0UL;void setup(){ Serial.begin(115200); ss.begin(GPSBaud); Serial.println(F("KitchenSink.ino")); Serial.println(F("Demonstrating nearly every feature of TinyGPS++")); Serial.print(F("Testing TinyGPS++ library v. ")); Serial.println(TinyGPSPlus::libraryVersion()); Serial.println(F("by Mikal Hart")); Serial.println();}void loop(){ // Dispatch incoming characters while (ss.available() > 0) gps.encode(ss.read()); if (gps.location.isUpdated()) { Serial.print(F("LOCATION Fix Age=")); Serial.print(gps.location.age()); Serial.print(F("ms Raw Lat=")); Serial.print(gps.location.rawLat().negative ? "-" : "+"); Serial.print(gps.location.rawLat().deg); Serial.print("[+"); Serial.print(gps.location.rawLat().billionths); Serial.print(F(" billionths], Raw Long=")); Serial.print(gps.location.rawLng().negative ? "-" : "+"); Serial.print(gps.location.rawLng().deg); Serial.print("[+"); Serial.print(gps.location.rawLng().billionths); Serial.print(F(" billionths], Lat=")); Serial.print(gps.location.lat(), 6); Serial.print(F(" Long=")); Serial.println(gps.location.lng(), 6); } else if (gps.date.isUpdated()) { Serial.print(F("DATE Fix Age=")); Serial.print(gps.date.age()); Serial.print(F("ms Raw=")); Serial.print(gps.date.value()); Serial.print(F(" Year=")); Serial.print(gps.date.year()); Serial.print(F(" Month=")); Serial.print(gps.date.month()); Serial.print(F(" Day=")); Serial.println(gps.date.day()); } else if (gps.time.isUpdated()) { Serial.print(F("TIME Fix Age=")); Serial.print(gps.time.age()); Serial.print(F("ms Raw=")); Serial.print(gps.time.value()); Serial.print(F(" Hour=")); Serial.print(gps.time.hour()); Serial.print(F(" Minute=")); Serial.print(gps.time.minute()); Serial.print(F(" Second=")); Serial.print(gps.time.second()); Serial.print(F(" Hundredths=")); Serial.println(gps.time.centisecond()); } else if (gps.speed.isUpdated()) { Serial.print(F("SPEED Fix Age=")); Serial.print(gps.speed.age()); Serial.print(F("ms Raw=")); Serial.print(gps.speed.value()); Serial.print(F(" Knots=")); Serial.print(gps.speed.knots()); Serial.print(F(" MPH=")); Serial.print(gps.speed.mph()); Serial.print(F(" m/s=")); Serial.print(gps.speed.mps()); Serial.print(F(" km/h=")); Serial.println(gps.speed.kmph()); } else if (gps.course.isUpdated()) { Serial.print(F("COURSE Fix Age=")); Serial.print(gps.course.age()); Serial.print(F("ms Raw=")); Serial.print(gps.course.value()); Serial.print(F(" Deg=")); Serial.println(gps.course.deg()); } else if (gps.altitude.isUpdated()) { Serial.print(F("ALTITUDE Fix Age=")); Serial.print(gps.altitude.age()); Serial.print(F("ms Raw=")); Serial.print(gps.altitude.value()); Serial.print(F(" Meters=")); Serial.print(gps.altitude.meters()); Serial.print(F(" Miles=")); Serial.print(gps.altitude.miles()); Serial.print(F(" KM=")); Serial.print(gps.altitude.kilometers()); Serial.print(F(" Feet=")); Serial.println(gps.altitude.feet()); } else if (gps.satellites.isUpdated()) { Serial.print(F("SATELLITES Fix Age=")); Serial.print(gps.satellites.age()); Serial.print(F("ms Value=")); Serial.println(gps.satellites.value()); } else if (gps.hdop.isUpdated()) { Serial.print(F("HDOP Fix Age=")); Serial.print(gps.hdop.age()); Serial.print(F("ms Value=")); Serial.println(gps.hdop.value()); } else if (millis() - last > 5000) { Serial.println(); if (gps.location.isValid()) { static const double LONDON_LAT = 51.508131, LONDON_LON = -0.128002; double distanceToLondon = TinyGPSPlus::distanceBetween( gps.location.lat(), gps.location.lng(), LONDON_LAT, LONDON_LON); double courseToLondon = TinyGPSPlus::courseTo( gps.location.lat(), gps.location.lng(), LONDON_LAT, LONDON_LON); Serial.print(F("LONDON Distance=")); Serial.print(distanceToLondon/1000, 6); Serial.print(F(" km Course-to=")); Serial.print(courseToLondon, 6); Serial.print(F(" degrees [")); Serial.print(TinyGPSPlus::cardinal(courseToLondon)); Serial.println(F("]")); } Serial.print(F("DIAGS Chars=")); Serial.print(gps.charsProcessed()); Serial.print(F(" Sentences-with-Fix=")); Serial.print(gps.sentencesWithFix()); Serial.print(F(" Failed-checksum=")); Serial.print(gps.failedChecksum()); Serial.print(F(" Passed-checksum=")); Serial.println(gps.passedChecksum()); if (gps.charsProcessed() < 10) Serial.println(F("WARNING: No GPS data. Check wiring.")); last = millis(); Serial.println(); }} Quote Link to post Share on other sites
Fmilburn 445 Posted April 12, 2016 Share Posted April 12, 2016 Hi @@johnmarwa It looks like you are using a different version of the library than me. But the problem is that the G2553 doesn't appear to have sufficient memory. I got a RAM overflow of 82 bytes with my version of the library and a basic example when I tried it just now with the G2553. Since I normally use it with the F5529 it isn't a problem for me. You will either need to pare things down or use a microcontroller with more memory. The thread above implies someone else has pared it down so you might search around a bit more. Good luck... johnmarwa 1 Quote Link to post Share on other sites
yosh 121 Posted April 12, 2016 Share Posted April 12, 2016 @@johnmarwa Please have look here for a starting point : http://forum.43oh.com/topic/4966-unable-to-retrieve-complete-nmea-string-from-serial-communication/?p=44095 @@Fmilburn is right ... G2553 does not have enough memory for the "standard" examples / sketches you'll find around the net (esp. those for Arduino). Try to get things started much more simple and try to find out which functions you really need (to reduce memory) ... Good luck ! johnmarwa 1 Quote Link to post Share on other sites
johnmarwa 0 Posted April 19, 2016 Share Posted April 19, 2016 @@yosh thanks i'll take a look at the link thanks alot guys Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.