On Fri, 2007-05-18 at 07:26 -0700, anthonysakr wrote: > this is what i could come up with by myself, i don't know if it's right but > please send any help you could think of. > my gps sends the following message every 2sec > $GPRMC,141832,A,3352.401,N,03531.500,E,005.1.277.7.310301,003.3,E*79 (with > different numbers each time of course) > $GPRMB,A,............V*71 > ... > i'm interested in only these lines, to be more specific i just want to save > the time, long, lat and speed, now from what i could understand the string > is devided into the following: > $GPRMC,"time"(6bytes),A,"long"(8bytes),N,"lat"(9bytes),E,005.1.2....... > $GPRMB,A,......"speed"(6bytes)V*71 > what i'm thinking of doing is the check for the C character (ASCII) wich > comes in GPRMC and is only present there in all the gps string wich signals > the start of the frame then read 86 bytes after the C character (from the > first , till the 1 in 71) save them then sort them in some sort of table or > buffer where i take only the bytes of the time, long, lat and speed before > transmitting them to the ram(24LC64) via the I2C bus. > > if someone is intrested or has such a program please reply because i've been > stuck on this part for quite some time, i've given it a try but i'm still > learning to program pic as i go so i'm 90% sure my program is wrong :s but > i'll be posting some of it soon. My carmon display project does this sort of thing, however it's in C, which is why I didn't respond before, however perhaps it might serve some use, even if you aren't familiar with the language: http://repatch.dyndns.org:8383/pic_stuff/carmondi TTYL -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist