Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

Synchronizing serial strings

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
acjacques

Bascom Member



Joined: 24 Feb 2019
Posts: 10
Location: Rio de Janeiro

brazil.gif
PostPosted: Sun Jun 23, 2019 4:21 pm    Post subject: Synchronizing serial strings Reply with quote

What would be the best way to synchronize serial strings like GPS NMEA sentences to extract data ?
In PICBASIC PRO there are the WAIT a character and SKIP n characters commands....

I am using ATmega328p with hard and software UARTS

(BASCOM-AVR version : 2.0.8.1 )
Back to top
View user's profile
SirLeslie

Bascom Member



Joined: 17 Aug 2006
Posts: 10
Location: France

france.gif
PostPosted: Sun Jun 23, 2019 9:15 pm    Post subject: Re: Synchronizing serial strings Reply with quote

acjacques wrote:
What would be the best way to synchronize serial strings like GPS NMEA sentences to extract data ?
In PICBASIC PRO there are the WAIT a character and SKIP n characters commands....

I am using ATmega328p with hard and software UARTS

(BASCOM-AVR version : 2.0.8.1 )


Hi, acjacques

Please check this two topic:

https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=12677&start=0&postdays=0&postorder=asc&highlight=gprmc
https://www.mcselec.com/index2.php?option=com_forum&Itemid=59&page=viewtopic&t=11603&start=0&postdays=0&postorder=asc&highlight=gprmc


Leslie
Back to top
View user's profile Visit poster's website
Paulvk

Bascom Member



Joined: 28 Jul 2006
Posts: 1120
Location: SYDNEY

australia.gif
PostPosted: Mon Jun 24, 2019 12:57 am    Post subject: Reply with quote

Also read about the split command in bascom
very useful to break up strings with delimiters in them
Regards Paul
Back to top
View user's profile
O-Family

Bascom Member



Joined: 23 May 2010
Posts: 147
Location: Japan

japan.gif
PostPosted: Mon Jun 24, 2019 1:23 am    Post subject: Reply with quote

The page is in Japanese, but please translate it into the language of your country.
http://www.ne.jp/asahi/shared/o-family/ElecRoom/AVRMCOM/GPS_AE-GYSFDMAXB/GPS_AE-GYSFDMAXB.html

http://translate.google.com/translate?hl=ja&sl=auto&tl=en&u=http%3A%2F%2Fwww.ne.jp%2Fasahi%2Fshared%2Fo-family%2FElecRoom%2FAVRMCOM%2FGPS_AE-GYSFDMAXB%2FGPS_AE-GYSFDMAXB.html&sandbox=1
Back to top
View user's profile Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum